Repository navigation
feat: add optional no-mistakes gate mode - #68
JTInventory wants to merge 1 commit into
Conversation
|
Maintainer update from JTInventory, 2026-06-25:\n\nThis PR is still conceptually useful, but it is not ready to merge as-is. It now conflicts with the newer Firstmate workflow changes on main, especially around AGENTS/README and the brief/spawn flow.\n\nRecommended handling:\n- Do not merge until rebased/refreshed.\n- Keep it as the optional no-mistakes gate-mode proposal.\n- Rebase after the current branch-metadata hardening PR is settled, because that PR changes the same branch/brief assumptions this PR touches.\n- Preserve the core boundary: direct-PR remains the base mode; the no-mistakes gate should be optional and explicit, not silently applied to scouts or local fleet state.\n\nI can refresh this branch after the branch-metadata PR lands, so the owner does not have to resolve the stale conflicts manually. |
5d8f62f to
d1d4653
Compare
d1d4653 to
c157333
Compare
|
Closing because this work is maintained in the JTInventory fork. We are not expecting upstream review or merge for this branch. |
…enguid#68) * Port upstream instruction precedence and intake behavior Re-author the frozen batch under the fork's current instruction owners while preserving project routing, browser isolation, the action gateway, durable decision handling, executable-test lint, and captain-controlled green merges. Upstream dispositions: - 587f591 adapted: prefer direct end-to-end work only inside existing safety and delivery boundaries. - 861b1f8 adapted: separate current guidance from reusable verification and private task evidence without deleting fork certification records. - 34213e6 rejected as inapplicable: the fork has no superseded quota-array interim rule. - b6e351d rejected as incompatible: the fork retains its declared dispatch selector instead of upstream quota-array ownership. - 96e027e ported: route validation-time new requirements to follow-up work while keeping accepted corrections in scope. - 3772964 adapted: concrete captain instructions outrank defaults but cannot bypass structural safety or the green-PR rule. - 9fdef64 adapted: superseded validation stops through supported axi custody recovery before one final-head run. - b4316be adapted: exact per-home inherited-config rereads use the fork's bootstrap, liveness, and spawn owners. - 792174d adapted: reuse evidence and parallelize reconcilable work without turning diagnosis into implementation authority. - d89a1b6 adapted: shard lint and bound dynamic ShellCheck source expansion while retaining watcher ownership and executable-test enforcement. - ec09871 adapted: a dedicated authority owner distinguishes accepted corrections from contract expansion and preserves stronger captain boundaries. - a24eac1 adapted: concrete approvals settle named values but never authorize raw project writes around guarded paths or the action gateway. - 0bbb27b adapted: new project intake checks registered secondmate scopes first and remains in the main home when none exist or fit. - daf6dce ported: validation correction scope follows accepted behavior rather than an anticipated file list. CAPTAIN-VISIBLE CHANGES - asks you MORE about product or engineering contract expansion, repeated same-theme fixes, ambiguous override scope, and a registered second mate that cannot accept an in-scope new project. - asks you LESS about answers already established by evidence, ordinary file overlap, values you already approved concretely, and downstream corrections required by accepted behavior. - routes speculative investigations to existing evidence or one concise implementation question, new projects through registered secondmate scopes first, and genuinely new validation requirements to follow-up work. - keeps merge authority, green-PR requirements, terminal presentation, worker selection, and notification timing unchanged. * Declare the upstream instruction intake port surface * no-mistakes(review): fix review findings in instruction intake port surface * no-mistakes(review): Captain: preserve exact config reread generations * no-mistakes(review): Captain: pin config reread bytes before assembly * no-mistakes(review): Captain: unwedge config reread retry queue at bound * no-mistakes: apply CI fixes
… strip, status bar and Factory pane (kunchenguid#68) * fix(bin): show the same fleet numbers in the same words on the bridge strip, status bar and Factory pane The status bar, the bridge strip and the Factory pane's count line now all take their figures from one overview reading (fm_fleet_status_counts overview) and use one set of words, defined once in docs/status-bar.md "Fleet words": busy, waiting, decisions for you, ready to merge, needs a look, failed and stopped. The Factory pane's count line shows only that reading's figures, its NEEDS YOU is built on the overview's own ready work, and its job words, including the states that earn a live worker copy in a factory tab, match. Listing the fleet takes one awk pass instead of one per record. * fix(bin): keep the Factory pane's overview reads light while it is being driven The pane's overview thread now rests at least as long as its last read took, so a slow read never takes most of the machine, and the tests that drive the live pane read the overview from a seeded cache, as a running pane does. * no-mistakes(review): Show unlisted ready work as busy until overview lists it * test(factory): expect the shared fleet words and the overview's count line beside routine passes * test(factory): give the light-snapshot comparison the same overview reading in both runs * test(factory): expect the shared fleet words in main's new Read-line and slow-refresh checks * no-mistakes(document): Name Factory pane colours with the shared fleet words * no-mistakes(ci): All three failing checks trace back to one cause in this PR: the new suite `tests/fm-fleet-overview.test.sh` had no timing hint, so test-shard planning (`bin/fm-test-run.sh`) counted it at the 45000 ms default. - **Test coverage guard:** that default pushed the largest serial shard to 1201541 ms, just over the 1200000 ms target. - **Behavior portable parallel 3:** its only failing script was `tests/fm-test-run.test.sh`, and it failed on that same coverage-guard message. - **Full suite:** this is only the roll-up check. It fails whenever any lane fails. **Fix:** I added `serial-hint tests/fm-fleet-overview.test.sh 4082` to `tests/fork-test-timing.conf`. 4082 ms is the suite's passing Ubuntu time from this PR's own CI run, 44142548908 (serial shard 16). Three local runs took 3.8–4.4 s. I also added one line to `docs/fm-test-portable-shards.md` recording where the hint came from, as the doc does for every hint. **Verified locally:** - `bin/fm-test-run.sh --check-coverage` now passes: `FM_TEST_COVERAGE ok ... serial_unhinted=0 serial_max_ms=1199124 serial_budget_ms=1200000`. - `tests/fm-test-run.test.sh` passed (exit 0) through `bin/fm-test-run.sh`. **Still open, not fixed here:** the same CI run measured `tests/fm-factory.test.sh` at 722076 ms, above its 560697 ms hint. Raising that hint takes the largest shard to 1208610 ms, over the target, so it needs another serial shard and a matching CI matrix change. That is outside this fix. The largest shard currently models at only 876 ms under the target --------- Co-authored-by: Starship <[email protected]>
Summary
+nm-gatesupport while keepingdirect-PRas the base delivery mode.Behavior
direct-PRremains the base mode.+nm-gateis optional and orthogonal to+yolo.nm_gateand keepnm_status=not_applicable.direct-PR +nm-gate.done: ready for Firstmate PR scope review.nm_status=passedmust be explicit; no-mistakes PR source alone recordsnm_status=pr_recorded.data/projects.mdis not changed in this PR.Tests
git diff --checkbash -n bin/fm-project-mode.sh bin/fm-brief.sh bin/fm-spawn.sh bin/fm-pr-check.sh bin/fm-fleet-sync.sh bin/fm-home-seed.sh tests/*.test.shbash tests/fm-project-mode.test.shbash tests/fm-brief-nm-gate.test.shbash tests/fm-spawn-nm-gate.test.shbash tests/fm-pr-check.test.shbash tests/fm-spawn-batch.test.shbash tests/fm-teardown.test.shbash tests/fm-secondmate.test.shPost-Deploy Monitoring & Validation
No additional operational monitoring required. This change only updates Firstmate local workflow scripts, documentation, and shell tests; it does not change a live service or runtime process.