Repository navigation
test(fleet-queue): seed design-valid dedupe keys in the #16909 R1 oracle tests - #16982
Conversation
Lane 0640-DG: dump the claim guard verdict, by-id claimability, verb outputs and the double's statement log for one seeded claimable row, to find which gate refuses the claim. Removed with the fix.
…cle tests The three *_16909 tests seeded rows with free-form dedupe keys (asg:16909:*). The #5444 claim guard revalidates every stored row through validate_packet before handing it out, and a key matching no repo-health:v1 design pattern is quarantined on sight — so the pick claimed each seeded row and the guard immediately blocked it, claim_by_id read it as unclaimable, and the assignment code the tests exist to exercise never ran. Diagnostic evidence: run 46311934644 (claim_guard_reason names the dedupe_key error; the statement log shows the claim UPDATE followed by the quarantine UPDATE). The implementation side is not at fault: both claim paths call bind_assigned_session and the schema creates worker_session_assignments; the guard's claim/enqueue agreement is deliberate (#5444), so the fix belongs in the fixtures. Seed keys are now repo-health:v1:slice:...:issue:16909:slice-<k>, the same design family the repair fixtures' KEY already uses. Also removes the temporary diagnostic test.
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
|
Gate run dispatched — Felix lane 0640-DG: run 46312701125 (fleet-command, developing-today/fleet) against this branch @ dcda40c: |
Gate run 46312701125 executed the three tests (the pattern fix landed) but they still failed: validate_packet cross-checks the key beyond the pattern — the family must be allowed for the payload kind (small_fix allows only fix; slice belongs to feature_slice) and the key's issue number must match payload.issue.number (7709, not 16909). The pattern error had masked both checks by returning early. Seed keys are now repo-health:v1:fix:...:issue:7709 with a distinct :dispatch:<8-hex> suffix per row — the same shape the repair fixtures' KEY uses, made unique per task.
|
Gate re-dispatched — Felix lane 0640-DG: run 46313334310 against this branch @ 1882463 (fix-family keys; see the second-layer correction on #16909, comment 7263040558). Same command shape as run 46312701125. Prior gate 46312701125 executed the three tests (0 passed / 3 failed) — its log is the baseline this run must beat: the three *_16909 tests executing AND passing. |
|
Gate verdict — Felix lane 0640-DG, 2026-11-29: GREEN, read firsthand. Run 46313334310, Linux job 141504630130: checkout |
Refs #16909 (R1 slice). Felix lane 0640-DG.
Adjudication: the tests were wrong, not the implementation
DA's executed evidence (runs 46308086105 + 46308071556) showed PR #16922's three R1 oracle tests failing on main. My diagnostic run 46311934644 (temporary test, removed in this PR's second commit) dumped the claim path on the Hrana double for one seeded row:
claim_guard_reason→quarantined by claim path: packet failed validation (#5444): packet.dedupe_key: 'asg:16909:diag' matches no design patternstatus='blocked') revoking it;verb_claimreturnsrow: null,claim_by_idreads the blocked row as unclaimable.by_id_claimableon the fresh row: true. Both production claim paths callbind_assigned_session(lifecycle.rsclaim_pick_once, claim.rsclaim_by_id) andensure_schemacreatesworker_session_assignments— the assignment code was never reached because the seeded rows were quarantined first.The tests seeded free-form dedupe keys (
asg:16909:*). The #5444 guard revalidates every stored row throughvalidate_packet— the same validator enqueue runs, deliberately (claim and enqueue must never disagree) — and a dedupe key matching norepo-health:v1:design pattern fails it. Production rows always carry design-pattern keys, so the guard never fires there; the fixtures were the defect. The seed helper already knew the payload dedupe block was guard-required; the key requirement was missed.Fix
Test fixtures only: the three tests now seed
repo-health:v1:slice:developing-today/code:issue:16909:slice-<k>keys (the design family the repair fixtures'KEYalready uses), with the requirement recorded inseed_claimable's comment. No production code changes; no assertion weakened — the tests now exercise the assignment implementation for the first time.Gate: fleet-command run with the full feature set (queue-broker,secrets-broker,client) + realised-OpenSSL recipe, filter
16909— id recorded on #16909 when dispatched. Felix merges after reading the gate log.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.