Repository navigation
Conversation
…o: line fm_nm_select_run looked up a capped run inventory's repository strictly by the task worktree path, but no-mistakes init registers the primary clone, so a pooled worker copy's own path never matches a repos.working_path row and the whole inventory read as unreadable. no-mistakes axi already names the repository it resolved for that exact worktree on its own repo: line; trust that path (falling back to the raw worktree path when absent) so a worker copy reads a capped overview the same as the primary clone.
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
Issue #5211.
Once a repository has more than ten recorded validation runs, current-state reads report every ship task running in a pooled worker copy as unknown with an unreadable run inventory, and the fleet view and heartbeat reviews inherit that verdict.
The cause is a lookup, not missing data. On a capped overview the run selector resolves the inventory by the worker copy path, but
no-mistakes initregistered the primary clone, so no row exists under that path and the whole inventory reads unreadable. The overview itself names the repository it resolved on itsrepo:line.Two cases that should read correctly come back unknown: a branch whose newest run completed but falls outside the ten rows shown, and a branch with no run at all, such as a task that has not started validation or a direct-PR task that never validates.
The consequence is that a finished validation, a task that never validated, and a genuinely unreadable inventory become indistinguishable. Every ship task in a busy repository reads unknown, which buries real problems among false ones and prompts recovery checks that are not needed.
Expected: with a capped overview, a worker copy of a registered repository reads the same as the primary clone - a completed run outside the shown rows is selected as completed, and a branch with no recorded run reads as having no run - while a missing, mismatched, truncated or ambiguous inventory still reads unknown.
What Changed
repo:path alongside the worker-copy path, so completed runs beyond the ten-row window and branches with no runs are identified correctly.unknownfor unresolved or conflicting identity and unreadable inventories.repo:field.Risk Assessment
✅ Low: The change is a bounded, read-only lookup correction; review found no material correctness, intent-conformance, or simplification issues.
Testing
The live CLI probe was blocked by the unregistered checkout. Focused automated regressions, primary/worker comparisons, and inventory guards passed; both reported failures reproduced against the base. A broader test-file run was stopped to narrow scope, and a temporary harness quoting error was corrected before rerunning. CLI evidence was retained; this change has no rendered UI requiring screenshots.
Evidence: Live CLI probe blocked
Source: Live CLI probe blocked
error: repo not initialized (run 'no-mistakes init' first)Evidence: Automated base-to-target reproduction and primary/worker parity
Source: Automated base-to-target reproduction and primary/worker parity
Evidence: Focused automated regression results
Source: Focused automated regression results
Evidence: Automated worker-copy inventory guards
Source: Automated worker-copy inventory guards
Evidence: Test scope, reproduction method, and limitations
Source: Test scope, reproduction method, and limitations
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
✅ **Review** - passed
✅ No issues found.
no-mistakes --version,no-mistakes axi --help, andno-mistakes axifrom the assigned worktree.TMPDIR="$PWD/.test-phase-tmp" bin/fm-test-run.sh tests/fm-crew-state.test.sh— intentionally stopped after 150 seconds to narrow scope; not claimed as passing.Bothtest_capped_overview_worker_copy_repo_line_reports_absentandtest_capped_overview_worker_copy_repo_line_reports_completed_outside_windowexecuted against the base library and target library: expected failures before, passes after.Temporary focused harness executed 14 existing behavioral selectors covering worker copies, no-run fallback, hidden competing runs, timeout bounds, exact path matching, inventory failures, structural validation, unavailable Python/SQLite, and status disagreement; exact selectors appear in focused-green.log.bash tests/.phase-focused.test.sh phase_worker_inventory_guards— missing, mismatched, truncated, ambiguous, and competing inventories; database hashes unchanged.bash tests/.phase-focused.test.sh phase_primary_worker_parity— identical primary/worker CLI results for absent and completed runs.Removed temporary harness, baseline links, and generated test data;git status --shortwas clean at target e47d387ee4b1ede354c67078a135788cac8bac47.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.