GeezerVison is showing github.com — main red: id-cli contract-check test expects shell contract v1.16 after the revision-17 bump (#15265) · Issue #15330 · developing-today/code
main red: id-cli contract-check test expects shell contract v1.16 after the revision-17 bump (#15265) #15330Labels app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivestatus/needs-triageNot yet triaged; needs a first look Descriptionmain is red: id-cli contract-check test still expects shell contract v1.16 after the revision-17 bump
Found by the #12229 pre-merge gate, batch 4 (candidate = main baaf970d2 + PR #14933 head; the failure is in main's own code, not in PR #14933 — both main and the PR head carry the stale expectation, and main's contract JSON is already at revision 17).
Failure
cargo test --manifest-path pkgs/id/Cargo.toml -p id-cli (lib suite: 770 passed, 1 failed):
---- commands::world::tests::the_contract_check_reports_conformance_or_every_violation stdout ----
thread 'commands::world::tests::the_contract_check_reports_conformance_or_every_violation' panicked at crates/id-cli/src/commands/world.rs:2687:9:
assertion `left == right` failed
left: "6 frames conform to shell contract v1.17"
right: "6 frames conform to shell contract v1.16"
Evidence: gate batch-4 run 45726075216 (developing-today/fleet fleet-command), marker GATE_TEST_PKG_RC id-cli 101; every other gate package passed (8,010 passed / 1 failed / 21 ignored across the full pkgs/id gate command).
Cause
Commit fa4f2ddc1 (PR #15265, landed on main 2026-11-25 16:23 CST) bumped pkgs/id/contract/shell-contract.v1.json from "revision": 16 to "revision": 17. The conformance summary is formatted from the embedded contract (id_worlds::shell_contract, crates/id-cli/src/commands/world.rs check_contract), so the message now says v1.17, but the test the_contract_check_reports_conformance_or_every_violation in the same file still hardcodes the expected string "6 frames conform to shell contract v1.16".
Fix shape
Update the hardcoded expectation to v1.17 — or, better, derive the expected string from the embedded contract's version/revision the way check_contract does, so the next revision bump cannot strand this test again. Any other hardcoded v1.16 expectations from the same bump should be swept in the same pass.
Gate impact
#12229 batch 4 is recorded red on this failure (consecutive_green stays 0). PR #14933 is not the cause and stays unmerged until a gate batch completes green; once this is fixed on main, the gate re-runs against the new main.
Refs #12229.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-26T01:10:45Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch",
"repo": "developing-today/code",
"branch": "main",
"sha": "8826be7a94faf495a143e45eab53db6f11c96eab"
},
"auth_subject": "felix",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Acceptance criteria
Activitydeveloping-today-fleet commented on Nov 26, 2026 ContributorAuthor More actions Claimed by felix lane (worker felix) — fixing the stale v1.16 expectation in the_contract_check_reports_conformance_or_every_violation, preferring derivation from the embedded contract revision so the next bump cannot strand it again. Verification will be remote dispatch only: named test on branch (pass) + same test on main as negative control (fail with the v1.17/v1.16 mismatch). PR left unmerged for Felix. added kind/bugSomething isn't working (prefixed form of the classic bug label) effort/sSmall: expected under 2 hours of work app/idPackage/app: id (pkgs/ or apps/ in this repo) meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added on Nov 26, 2026developing-today-fleet commented on Nov 26, 2026 ContributorAuthor More actions Intake review
🤖 Agent note · filed
Related: PR #15332 is OPEN and implements exactly the preferred fix shape (derives the expected string from ShellContract::embedded(), test-only, sweep confirms it was the only hardcoded v1.16 expectation in pkgs/id) — this issue is live, not solved; do not close until that PR merges. PR #15265 landed the contract revision 16 → 17 bump. No merged PR resolves this issue (searched merged PRs for 15330 / "shell contract v1.17" this run; the only merged hit, PR #15331, is the gate log record).
Notes: The failure is in main's own code, not in PR #14933 (per the issue body; gate batch 4, run 45726075216: 8,010 passed / 1 failed). Labels applied: kind/bug, priority/high (main is red and the #12229 gate is blocked), effort/s, status/needs-triage, app/id, meta/enriched. Acceptance criteria appended to the body (original preserved verbatim above it).
Risks: Low — test-only change. The derive-don't-hardcode shape in PR #15332 removes the recurrence risk at the next contract bump.
Suggested approach: Merge PR #15332 once its recorded verification (branch run + main negative control, noted on this issue) is accepted, then re-run the #12229 gate batch against the new main. developing-today-fleet commented on Nov 26, 2026 ContributorAuthor More actions Verification record (felix lane)
Fix: PR #15332 (branch felix/15330-contract-version-test @ cae2ce0) — left unmerged for Felix. Chose the derive shape: the test now builds the expected string from ShellContract::embedded() (v{version}.{revision}, formatted exactly as check_contract formats it), so the next contract revision bump cannot strand the expectation again. Test-only, one assertion changed (+9/−1 in pkgs/id/crates/id-cli/src/commands/world.rs). Sweep confirmed the stranded v1.16 string was the only hardcoded expectation of its kind in pkgs/id (the other 1.16 hit is the unrelated F11.16 feature reference in world_fixture.rs). No new dependencies.
Method: remote dispatch only (fleet-command on developing-today/fleet), identical command on both refs: fresh in-checkout CARGO_TARGET_DIR, CARGO_BUILD_JOBS=2, cargo test -p id-cli --lib <named test> then cargo test -p id-cli --lib commands::world::tests.
Branch — run 45734457520:
test commands::world::tests::the_contract_check_reports_conformance_or_every_violation ... ok — test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 770 filtered out; NAMED_RC=0
- Module:
test result: ok. 15 passed; 0 failed; 0 ignored; 0 measured; 756 filtered out; MODULE_RC=0
Negative control, current main — run 45734467832:
test commands::world::tests::the_contract_check_reports_conformance_or_every_violation ... FAILED — panicked at crates/id-cli/src/commands/world.rs:2687:9: left: "6 frames conform to shell contract v1.17" / right: "6 frames conform to shell contract v1.16"; NAMED_RC=101
- Module:
test result: FAILED. 14 passed; 1 failed; 756 filtered out — the named test is the only world-module failure on main, and the branch flips exactly that one (14+1 → 15 passed).
Once PR #15332 merges, the #12229 gate can re-run batch 5 against the new main.
MetadataMetadataapp/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)meta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivestatus/needs-triageNot yet triaged; needs a first look DevelopmentNo branches or pull requestsIssue actions
|