Skip to content

Fix Architect waiting forever on a conflicted Architect idea - #2336

Merged
JacobStephens2 merged 3 commits into
mainfrom
issue-2335
Nov 27, 2026
Merged

JacobStephens2 merged 3 commits into
mainfrom
issue-2335

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

 Architect run gates (src/architect.rs)
-  waiting idea = architect-idea + needs-triage, whatever else it carries
+  waiting idea = Labels::waiting_for_triage() (src/claim.rs)
+    needs-triage and none of TRIAGE_DISQUALIFIERS:
+    ready-for-agent, ready-for-human, needs-info, wontfix,
+    in-progress, agent-failed — the same set the Triage Pass
+    passes over (src/triage/pass.rs now shares it)
+  needs-triage + a disqualifier = conflicted idea:
+    noted once per idea through the Pass Outside seam
+    (progress line + Activity log, once per change), never a skip,
+    no labels edited; a clean waiting idea beside it still skips,
+    naming only the waiting ones

Confirmed cause: gates() counted every needs-triage Architect idea as waiting, while ineligible() 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

  • Before: cargo test --bin thirdshift architect::tests::repro_idea_labelled_needs_triage_and_ready_for_human_does_not_skip on 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 a Ready-For-Human case 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 --check and cargo clippy --all-targets -- -D warnings pass.
  • scripts/affected-tests main: npm test --prefix site PASS, cargo build --locked PASS, npm test --prefix console PASS, 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 saved claude/agy harnesses appear, but this host has a muse binary on PATH, so extra muse entries appear. Rerun without ~/.local/bin on 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 site regenerated site/docs/index.html; npm run docs:check --prefix site passes.

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, Labels methods over the shared set, the claim.rs placement exception recorded in its header, and prefix-only Activity dedup). Spec review raised none. One Standards finding is skipped:

Standards

  • Middle Man / Data Clumps: (issue: u64, line: String) travels pass::Outside → logs:: → Record:: and widens the shared Pass Outside interface for one Architect caller. Declined: the issue's Agent Brief pins this shape — "Go through the Outside seam in src/pass.rs (extend the trait and the InMemory Call recording, following the step/skipped pattern) rather than calling logs:: directly from gates()" — and the layering follows the existing logs::skipped/logs::listing_disagreement path through Record.

Spec

  • None.

Review coverage: no changed file was left unread except site/docs/index.html under Standards, confirmed there as a generated-output exclusion (source docs/guide.md reviewed; regenerated with npm run docs --prefix site, npm run docs:check --prefix site passed, npm test --prefix site passed). The Spec reviewer inspected site/docs/index.html directly.

Security review outcome

  • Security review on grok failed; see Session trace

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

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.
@JacobStephens2

Copy link
Copy Markdown
Owner Author

Delivery completed on agent-authored or reviewed head 039ad7b.

@JacobStephens2 JacobStephens2 added the in-progress A Claim: thirdshift has taken this issue label Nov 26, 2026
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.
@JacobStephens2

Copy link
Copy Markdown
Owner Author

Review run. Pushed fixes to issue-2335 at 5aa1b01. Spec axis used the linked closing issues.

Review of PR #2336 against fixed point 0d205f00966d1ed024fd2b6660ceaa28c2f39557 is done. Spec source: linked closing issue #2335 including its Agent Brief, from .thirdshift-review-input.md. Reports written to standards.md, spec.md and summary.json ({"standards":4,"spec":0}). Fixes committed locally as 5aa1b016, not pushed.

Standards

4 actionable findings, all agreed and fixed:

  1. Hard - labels-ownership standard left self-contradictory. src/labels.rs says "every rule about them" lives there, but src/claim.rs adds a second impl Labels. The exception note sits only in the excepting file, so the canonical header is false. Check: test "$(grep -rn '^impl Labels' src | wc -l)" -eq 1.
  2. Hard - Activity log definitions omit the new line kind. GLOSSARY.md and docs/guide.md enumerate Activity lines without the conflicted-idea line that the guide itself links to #logs. ADR-0011 governs. Check: sed -n '333,335p' GLOSSARY.md | grep -qi conflicted && sed -n '3456p' docs/guide.md | grep -qi conflicted.
  3. Hard - domain-to-code index not kept current. docs/code-navigation.md requires pointers stay current when ownership moves; no Claim, Triage Pass or Architect row named TRIAGE_DISQUALIFIERS or the Labels queries. Check: grep -n 'waiting_for_triage\|TRIAGE_DISQUALIFIERS\|triage_disqualifiers' docs/code-navigation.md.
  4. Judgement call - stale variant invariant. src/architect.rs defined IdeasWaiting as ideas "still labelled needs-triage", though conflicted ideas are still so labelled and deliberately excluded. Check: test -z "$(grep -n 'still labelled' src/architect.rs)".

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.

Spec

No 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 Outside seam and once-per-change dedup, per-disqualifier and mixed-case tests, unchanged Triage selection and label_idea, and the docs against Spec items 1-5, including edge cases for multiple disqualifiers, gate order, stale in-progress, and activity-prefix collisions. Full verification notes are in spec.md.

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.

Fixed

Each finding command was run as written before deciding; all four failed as the findings said (exit 1). Fixed in 5aa1b016:

  • F1: src/labels.rs header now names the one exception and points to crate::claim. This is the finding's own alternative remedy; its written command encodes the other remedy (one impl Labels), which the Spec bars because labels cannot name the Claim's IN_PROGRESS/AGENT_FAILED, so that command still exits 1 by design while the header contradiction is gone.
  • F2: conflicted-idea line added to GLOSSARY.md and docs/guide.md; site/docs/index.html regenerated. Command now exits 0.
  • F3: owning symbols added to docs/code-navigation.md rows 10, 28 and 102. Command now exits 0.
  • F4: IdeasWaiting reworded to "waiting for triage" in src/architect.rs. Command now exits 0.

Unaddressed findings

Standards

  • None.

Spec

  • None.

No needs-triage issue was filed: nothing was declined for a Spec or Day shift decision, and there is no departure explained only by the pull request body.

Review coverage

No 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 npm run docs:check --prefix site could not run at review time (missing marked). After the fixes, regeneration was verified (below). No follow-up round was needed.

Validation

  • F1 command test "$(grep -rn '^impl Labels' src | wc -l)" -eq 1 - exit 1 before (impls at src/labels.rs:87, src/claim.rs:68) and exit 1 after, by design per F1 above.
  • F2 command (above) - exit 1 before, exit 0 after.
  • F3 command (above) - exit 1 before (no matches), exit 0 after (rows 10, 28, 102).
  • F4 command (above) - exit 1 before (src/architect.rs:94), exit 0 after.
  • npm run docs:check --prefix site before install - exit 1, ERR_MODULE_NOT_FOUND for marked (could not run; no node_modules).
  • npm ci --prefix site - installed from lockfile (added 4 packages, lockfile unchanged); the wrapper call reported exit 2 from an sh "Bad substitution" in its trailing echo, not from npm, as the next two commands show.
  • npm run docs --prefix site - exit 0. npm run docs:check --prefix site - exit 0.
  • cargo fmt --check - exit 0.
  • cargo test --bin thirdshift architect::tests - exit 0, 35 passed.
  • gh pr view 2336 --json state,headRefOid (once, before the suite) - OPEN at 039ad7b7.
  • scripts/affected-tests main - exit 1: npm test --prefix site PASS (73.18s); cargo nextest run FAIL with exactly 1 of 4921 tests failing, plan_usage::fleet_plan_usage_groups_shared_logins_and_keeps_an_offline_peer_cached, which sees extra muse harness entries from this host's PATH - the same environmental failure the PR body reports, in code this change does not touch.
  • 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 - exit 0, 1 passed, proving that failure environmental.
  • Spec-reviewer-observed on the reviewed head: cargo test --bin thirdshift architect::tests 35 passed, predicate test 1 passed, dedup test 1 passed, cargo test --test triage_pass 12 passed.
  • Extra shell commands from the session prompt: [] - none to run.

Summary: Standards 4 findings (worst: the self-contradictory labels header), Spec 0 findings (worst: none).

Security

  • Security review on grok failed; see Session trace

CI passed or absent at 5aa1b01

@JacobStephens2 JacobStephens2 removed the in-progress A Claim: thirdshift has taken this issue label Nov 26, 2026
@JacobStephens2
JacobStephens2 merged commit 131c494 into main Nov 27, 2026
26 checks passed
@JacobStephens2
JacobStephens2 deleted the issue-2335 branch November 27, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Architect waits forever on an idea labelled both needs-triage and ready-for-human

1 participant