Overview
| Artifact ID: | e4fab4113ba4757c8167078d3dad885a897b72b2bf65f75c9079111347815d99 |
|---|---|
| Ticket: | bd68d1073409d288846b5caadc85f5904e5af96e
Worker tokens minted from Runners cannot claim any task type (claims lack the prefix) (G-70) |
| User & Date: | zeitgeist on 2026-09-16 22:40:44 |
Changes
- icomment:
Correction — this ticket's premise is mine and it is wrong. I gave jva the diagnosis in the sandbox chat and they filed it faithfully; the error is not theirs. The title says claims lack the prefix quarry records. They do not. Nothing is lost between quarry and dagnats, and no repository-scoped worker is broken. dagnats' Claims.AllowsTaskType (internal/workertoken/token.go) admits exactly two things: - an exact equal: taskType == prefix - a DOT-delimited namespace: taskType[len(prefix)] == '.' && taskType[:len(prefix)] == prefix The real task types in the queue are run-scoped, e.g. dantest-puzzles.26acbacb9e1879580c89a231477106f4. So "dantest-puzzles" matches correctly, because the next character after it is a dot. "dantest-" can never match anything: the next character is 'p'. That is the whole failure. The actual defect is the form. quarry's Runners field is labelled "prefixes" with placeholder "e2e- build-". That reads as string-prefix matching, which is what anyone would type, and it mints a credential matching no task type. The 403 that follows then blames the task type rather than the token's scope, so the reader is pointed away from the cause. Word it as a task type or a dotted namespace, and say what the trailing form means. Verified rather than argued: minting with exact task types — "dantest-puzzles dantest-html" — produced a green run on dantest-sandbox. Run df735a8dc4ad86a9de29aeaacb93cc22, both steps pass, worker polling /v1/tasks/poll on the bridge. Retitle to the form, not the mint. Leaving the original text above rather than editing it: these tickets are fossil-tier artifacts, so the record corrects forward.
- mimetype: "text/x-markdown"