fix(dispatch): provider credential on its own mount, never among /sources (ISS-6) #114
No reviewers
Labels
No labels
severity/s2
severity/s3
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
janpeter/scrum4me-docker!114
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/dispatch-provider-mount"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why (ISS-6)
The Claude review slot reported a file
claude_oauth_tokenin/sources, next to the pinned documents it is told to read (dispatch requests1734aa13…and8082ebb0…). The broker copied operator sources (the child's provider credential) into the same attempt directory as the service-signed pins, and the child only left the name out ofsource_artifacts. The Codex slot had the same layout (codex_api_key, and M45'scodex_chatgpt_auth).The run-logs show models routinely running
sha256sum /sources/*orwc -l /sources/*, so they opened the token file on most runs. They printed only a hash or a count.Exposure check (2026-10-06, counts only, no values printed):
reviewedreplies and 115 run-logs: 0 token-shaped strings, and 0 substrings of the live credentials (compared on srv).What
PROVIDER_CREDENTIAL_SOURCES:codex_api_key,codex_chatgpt_auth,claude_oauth_token) go to<attempt>/provider/, mounted read-only at/run/provider. This applies only when they come in as operator sources; a signed pin always stays in/sources./run/provider. It refuses to run (DISPATCH_CHILD_SOURCE_REFUSED) when a credential name appears among/sources, which also turns a broker/image mismatch into a clear failure.broker.jsonsources), the profiles (source_mount_keys), the refresher (#113) and the MCP prompts.Dockerfile.dispatch.Tests
npx tsc -p tsconfig.dispatch.json --noEmit: clean.npx vitest run: 1157 passed, 8 skipped. The only failures are the 2 known macOStranscript-retentionones (BSDchmod), which also fail on master.npm run test:dispatch-model-imageon local Docker: CODEX, CODEX_CHATGPT and CLAUDE each pass 15/15 checks, including the new in-container checkmounts:credential-apart: no credential name in/sources, the credential under/run/provider./sourcesholds exactly the signed pins (__dispatch_inputand the document, or__repository_base), with the credential only underprovider/.operatorKeys. Without the copy,readCodealso pushed__repository_baseinto the operator config.Rollout (T-2034, needs a separate go)
Lockstep per slot: broker checkout, model image and a profile revision (new
image_digest), then a broker and supervisor restart.DISPATCH_CHILD_CREDENTIAL_MISSING.DISPATCH_CHILD_SOURCE_REFUSED.The supervisor image is unchanged. M45 T-2014 is already rolled out, so the Codex slot needs its own profile change.
Residual risk (B1, unchanged)
The model can still read
/run/provider/*, or its CLI's env through/proc, because it runs as the same uid. The output scrubbing stays the barrier, and a credential-injecting gateway outside the child remains the later hardening.Plan: Scrum4Me
docs/plans/M41-credential-buiten-sources.md(ProductDoc PLANS/m41-credential-buiten-sources). Sprint S-2026-10-06-1, story ST-1637, task T-2033.🤖 Generated with Claude Code
COMMENT
De diff op commit
e656a8a13fis inhoudelijk conform T-2033. Geen blokkerende bevindingen in codekwaliteit, architectuur/patronen of documentatie gevonden. Volgens de safe-default blijft het verdict COMMENT vanwege beperkte onafhankelijke runtimeverificatie.Findings
ERR_DLOPEN_FAILED: failed to map segment). Dit bewijst geen coderegressie; de groene suite en containerprobes uit de PR-beschrijving zijn niet onafhankelijk bevestigd.Beoordeling en verificatie
Broker, containerargumenten en child-entrypoint gebruiken consistent de aparte read-only mount
/run/provider. Gesigneerde pins blijven in/sources; credentialnamen daarin worden geweigerd. De tests dekken mountscheiding, mountinjectie, de drie credentialnamen en release-opruiming. De operatordoc beschrijft de broker/image-mismatch en het resterende risico correct.Zelf uitgevoerd: TypeScript dispatch-typecheck geslaagd;
git diff --checkgeslaagd. De PR is resolveerbaar en de actuele head-SHA komt overeen met de payload. Productstandaarden getoetst via de productdoc architecture/overview en de agent-guide; dispatchdetails via het gekoppelde taakplan en de operatordoc.Plan-conformiteit
plan gekoppeld via pr_refs (product Scrum4Me). References: T-2034 (Scrum4Me), T-2014 (Scrum4Me), T-2033 (Scrum4Me), ST-1637 (Scrum4Me). Er zijn geen omitted onderdelen.
De code, tests, probe en operatordoc komen overeen met het plan van T-2033. De PR claimt geen volledige afronding van ST-1637 of ST-1632: de uitrol van T-2034 en de Scrum4Me-documentatie/ISS-6-afhandeling van T-2035 zijn vervolgwerk en vormen daarom geen blokkerende finding voor deze PR.
Conflict met master opgelost in
2380f5c(merge, geen force-push). #115 hernummerde M45 naar M46 op dezelfde regels waar deze PR/sources→/run/providerzet, inlib/dispatch-child.tsendocs/dispatch-runtime-operator.md; beide wijzigingen zijn behouden. Daarnaast is de Rotation-regel in de operatordoc gecorrigeerd: de broker pint niet bij zijn start, de pin staat inbroker.jsonen elke create controleert daartegen. Checks:typecheck:dispatchok;vitest run1157 geslaagd, alleen de 2 bekende macOS-failures in transcript-retention; geen/sources/<credential>-verwijzingen meer.COMMENT
De wijziging is bij statische inspectie coherent: operatorcredentials gaan naar een afzonderlijke read-only mount, gesigneerde pins blijven in /sources, en het kind weigert credentialnamen tussen de bronnen. Padvalidatie, credentialselectie, opruiming en operator-documentatie volgen hetzelfde contract. Geen blokkerende code-, architectuur- of planfinding gevonden.
Findings
Plan en scope
plan gekoppeld via pr_refs (product Scrum4Me). References: T-2034 (Scrum4Me), T-2014 (Scrum4Me), T-2033 (Scrum4Me), ST-1637 (Scrum4Me). Er is niets omitted.
De diff dekt T-2033: broker, child, runtime-mount, regressietests, containerprobe en operatordoc. De PR benoemt uitrol T-2034 expliciet als vervolgwerk; productsynchronisatie en ISS-6-afsluiting onder T-2035 vallen eveneens buiten deze code-PR. Die resterende storycriteria zijn hier geen blokkade. De gelezen product-architectuurdoc geeft geen strijdige standaard.
Verificatie
Exacte head gecontroleerd:
2380f5c6a7. Na initialisatie van het gepinde shared-submodule slaagtnode node_modules/typescript/bin/tsc -p tsconfig.dispatch.json --noEmit. De in de PR vermelde unit- en Docker-resultaten zijn auteursbewijs; ze zijn hier niet opnieuw bevestigd.