Repository navigation
Fix Architect waiting forever on a conflicted Architect idea - #2336
Conversation
An Architect idea labelled both needs-triage and a triage outcome blocked every Architect run while the Triage Pass passed it over. Share one waiting-for-triage predicate between the two, note conflicted ideas on the progress output and in the Activity log once per change, and let Architect runs proceed past them.
Name the seam for the glossary's conflicted idea, make waiting-for-triage a Labels query over the shared disqualifiers, record the claim.rs placement exception, and key Activity dedup on the idea's prefix alone.
|
Delivery completed on agent-authored or reviewed head 039ad7b. |
Name the waiting-for-triage exception in labels' header, add the conflicted-idea line to the Activity log definitions (manual regenerated), point the domain-to-code index at the shared disqualifiers, and describe IdeasWaiting as waiting for triage.
|
Review run. Pushed fixes to issue-2335 at 5aa1b01. Spec axis used the linked closing issues. Review of PR #2336 against fixed point Standards4 actionable findings, all agreed and fixed:
Files read (Standards): GLOSSARY.md, docs/guide.md, site/docs/index.html, src/architect.rs, src/claim.rs, src/logs.rs, src/logs/activity.rs, src/logs/recording.rs, src/logs/recording/tests.rs, src/pass.rs, src/triage/pass.rs, AGENTS.md, CODING_STANDARDS.md, docs/agents/domain.md, docs/agents/triage-labels.md, docs/agents/issue-tracker.md, docs/testing.md, docs/code-navigation.md, docs/adr/0011-thirdshift-keeps-a-per-repository-activity-log.md, docs/adr/0029-in-progress-marks-only-a-live-run.md, src/labels.rs, src/progress.rs, src/pickup.rs, .agents/skills/codebase-design/SKILL.md, site/index.html, site/how-it-works/index.html, site/architecture/index.html. Generated-output exclusions: none. Unread changed files: none. SpecNo actionable findings: (a) missing/partial none, (b) scope creep none, (c) implemented-but-wrong none. The reviewer verified the shared six-label rule in src/claim.rs, the Files read (Spec): .thirdshift-review-input.md, GLOSSARY.md, docs/guide.md, site/docs/index.html, src/architect.rs, src/claim.rs, src/logs.rs, src/logs/activity.rs, src/logs/recording.rs, src/logs/recording/tests.rs, src/pass.rs, src/triage/pass.rs, src/labels.rs, site/index.html, site/how-it-works/index.html, site/architecture/index.html. Generated-output exclusions: none. Unread changed files: none. FixedEach finding command was run as written before deciding; all four failed as the findings said (exit 1). Fixed in 5aa1b016:
Unaddressed findingsStandards
Spec
No Review coverageNo changed file was left unread by either axis, and no generated-output exclusion was taken: both reviewers read the site/docs/index.html hunk directly because Validation
Summary: Standards 4 findings (worst: the self-contradictory labels header), Spec 0 findings (worst: none). Security
CI passed or absent at 5aa1b01 |
Summary
Confirmed cause:
gates()counted everyneeds-triageArchitect idea as waiting, whileineligible()in the Triage Pass refused any that also carried an outcome or Claim label, so neither side ever moved. The two now share one label rule, so an idea Architect waits on is always one the Triage Pass can take by labels; the logged conflict is the Day shift's signal to take one label off. Glossary and user manual updated with the new waiting rule (manual regenerated).Evidence
Execution evidence
cargo test --bin thirdshift architect::tests::repro_idea_labelled_needs_triage_and_ready_for_human_does_not_skipon the base — FAILED:left: Some("Architect idea #5 \"Issue 5\" is waiting for triage: https://github.com/acme/widgets/issues/5"),right: None. The reproduction became the regression tests beside the existing waiting-idea case (one per disqualifier, with aReady-For-Humancase variant, plus a mixed clean-plus-conflicted case).After:
cargo test --bin thirdshift architect::tests— 35 passed;claim::tests::waiting_for_triage_is_needs_triage_with_no_disqualifier— 1 passed;logs::recording::tests::conflicted_architect_idea_logs_once_per_change_per_idea— 1 passed;cargo test --test triage_pass— 12 passed.cargo fmt --checkandcargo clippy --all-targets -- -D warningspass.scripts/affected-tests main:npm test --prefix sitePASS,cargo build --lockedPASS,npm test --prefix consolePASS,cargo test(full suite) FAIL with exactly one failure,plan_usage::fleet_plan_usage_groups_shared_logins_and_keeps_an_offline_peer_cached. That test asserts only its savedclaude/agyharnesses appear, but this host has amusebinary on PATH, so extramuseentries appear. Rerun without~/.local/binon PATH (PATH="$HOME/.cargo/bin:/usr/local/bin:/usr/bin:/bin" cargo test --test console plan_usage::fleet_plan_usage_groups_shared_logins_and_keeps_an_offline_peer_cached) passes, and this change touches no harness or plan-usage code.npm run docs --prefix siteregeneratedsite/docs/index.html;npm run docs:check --prefix sitepasses.No visual change: the site pages only mirror the manual text; the site browser suite above covers them.
Unaddressed findings
Standards review raised five findings; four are addressed in the follow-up commit (glossary
conflicted_*naming,Labelsmethods over the shared set, theclaim.rsplacement exception recorded in its header, and prefix-only Activity dedup). Spec review raised none. One Standards finding is skipped:Standards
(issue: u64, line: String)travelspass::Outside → logs:: → Record::and widens the shared PassOutsideinterface for one Architect caller. Declined: the issue's Agent Brief pins this shape — "Go through theOutsideseam insrc/pass.rs(extend the trait and theInMemoryCallrecording, following thestep/skippedpattern) rather than callinglogs::directly fromgates()" — and the layering follows the existinglogs::skipped/logs::listing_disagreementpath throughRecord.Spec
Review coverage: no changed file was left unread except
site/docs/index.htmlunder Standards, confirmed there as a generated-output exclusion (sourcedocs/guide.mdreviewed; regenerated withnpm run docs --prefix site,npm run docs:check --prefix sitepassed,npm test --prefix sitepassed). The Spec reviewer inspectedsite/docs/index.htmldirectly.Security review outcome
Merge Danger
Door: two-way
No label edits, no data migration, and Triage Pass selection is unchanged; reverting restores the old gate exactly.
Blast Radius: narrow
Only the Architect run's idea gate changes behaviour: a conflicted idea that previously paused every Architect run forever now lets runs proceed to the Ready-issue gate, with one progress line per conflicted idea per run and an Activity log line once per change per idea.
Closes #2335
Built with muse Muse Code 1.4.25 (1.4.25-R9361.1) · muse-wonder-full-1.0 · default effort