Repository navigation
Conversation
The portable serial lane has been cancelled at its job cap three times in nine days: 2026-09-01 and 2026-09-08 against a 20-minute cap, and again on 2026-09-10 against the 30-minute cap that replaced it. Each remedy so far refreshed the hints or raised the cap; neither keeps the balance repaired, and the coverage guard stayed green throughout because it checks whether a hint is missing, not whether a hint is wrong. Add `--check-shard-balance`, which scores each shard's own recorded wall time against the job cap using the timing artifacts the serial lanes already upload, and names the scripts furthest over their hints so the failure says what to re-measure. The bound is 72% of the 30-minute cap, 21.6 minutes, derived from this lane's measured variance: shard 1 averaged 21.75 min and reached 29.95 min on the run that was cancelled, so a shard at or above 72.6% of the cap reaches it on an excursion that size. A bound of 78% or more fires on none of the 29 green shard measurements taken, so it could not warn about anything. Refresh the duration hints from four green runs on 2026-09-10, covering all 157 lane scripts so none falls back to the default weight. Validated against a held-out run that contributed nothing to the table: its worst shard falls from 21.93 to 16.99 minutes and the spread from 1.66x to 1.17x. The shard count and the job cap are unchanged; both stay trunk's decisions.
…guard The guard skipped timing artifacts whose lane is not a numbered portable serial shard, then needed a no-valid-shards fallback for the case where every input was skipped. Nothing supplies such an input: the CI step globs fm-test-timing-portable-serial-*.json and the documented invocation does the same, so both paths were unreachable compatibility surface. A malformed input now fails normally instead of being tolerated. That failure is loud rather than silent, and it cannot be reached through any supported path. Re-proved after the change that the guard can still go red: a shard at 73.3% of the cap fails and names tests/fm-watch-triage.test.sh as 607.3s over its hint, a shard at 93.3% fails the same way, and a balanced lane passes at 46.7%.
The margin figures in this section came from replaying one held-out run's per-script durations into the new bins. The first real CI run on the refreshed table, 34460760299, measured higher: worst shard 20.78 min and 68.4% of the cap, against the replay's 16.99 min and 56.6%. That overstated the headroom roughly fourfold, in the direction of reassurance, in the document a reader consults to judge whether the bound is safe. Correct the margin to about 1.1 minutes, name the run it came from, and say plainly that the guard is expected to fire on modest drift because the bound is an early warning rather than a last resort. Also correct the claim that a healthy run comes in under the assignment weights. Per-script maxima are conservative only relative to the runs they were measured from; the same real run put a shard at 20.78 min against 18.11 min of predicted weight.
|
Speaking as Kun's firstmate: Tip Contract-class: new-default. Additive always-on CI step VISION.md (each rule)
Outcome: waiting-ci. Blocker: parallel 1 cancelled (required suite not green). No first-time fork approval needed (contributor already trusted). Do not merge. When CI is fully green, re-triage as waiting-captain (new-default). |
…e five specified runs and updated the documentation. All 157 scripts remain covered. The excluded held-out run scores a 16.95-minute worst shard and 3.37-minute spread. All 42 runner checks, coverage, targeted lint, and documentation checks passed. Threshold, cap, shard count, guard, and tests are unchanged. Fresh CI remains for the outer executor; the original recorded artifact correctly still fails
|
Superseded: the measured hint refresh this carried already ships in #4144, and the shard-balance guard it adds cannot be green at the current five-shard count - the window between a bound low enough to warn and one high enough not to fire on ordinary variance measures empty. Closing rather than leaving it open; the branch is preserved and this can be reopened if the shard count changes. |
Intent
Follow-up on the SAME already-open request #4137 (shard balance guard + refreshed hints). This adds ONE documentation-only commit, e0fb8c5.
WHY: the margin figures in docs/fm-test-portable-shards.md came from replaying one held-out run's per-script durations into the new bins. The first real CI run on the refreshed table (34460760299) measured higher - worst shard 20.78 min, 68.4% of cap - against the replay's 16.99 min and 56.6%. The document therefore overstated the headroom roughly fourfold, in the direction of reassurance, in the very section a reader consults to judge whether the bound is safe, AND it contradicted the PR description which had already been corrected. This commit corrects it to the measured ~1.1 minutes, names the run, and states plainly that the guard is expected to fire on modest drift because the bound is early warning rather than last resort. It also corrects a claim my own number-search would not have caught: 'a healthy run comes in under them' was false, since that same real run put a shard at 20.78 min against 18.11 min of predicted weight.
STRICT SCOPE: documentation only. No behavior change. The 72% bound, the 30-minute cap, the shard count, the hint table, the guard code and the tests are all UNCHANGED from the already-reviewed state.
CARRIED FORWARD FROM THE EARLIER REVIEW OF THIS BRANCH, please do not re-raise:
EXPECTED CI BEHAVIOUR: 'Behavior portable parallel 1' is cancelled at its own 10-minute cap on roughly one main run in three, independently of this change - the hints feed serial packing only. If it cancels again that is the same pre-existing condition and not a regression; if it passes that is one more sample, not a fix.
Repo style applies: one sentence per line in tracked Markdown, plain dash never em dash, no agent co-author. Merge authority belongs to the repository owner: deliver green and stop, do not merge.
What Changed
Risk Assessment
✅ Low: The full scoped review found no material issues; the documentation correction matches historical CI timing evidence and preserves the accepted behavior.
Testing
The focused runner suite passed, and mutation checks proved both new boundary assertions detect threshold drift. Fresh CLI runs demonstrated shard planning, timing consumption, partial reporting, aggregation, and foreign-artifact rejection. Documentation arithmetic matched; synthetic checks remain distinguished from live evidence. Temporary files were removed. No full suite, lint, or CI phase ran.
Evidence: Threshold mutation proof
Source: Threshold mutation proof
Evidence: Fresh timing, partial-shard reporting, aggregation, and foreign-artifact rejection
Source: Fresh timing, partial-shard reporting, aggregation, and foreign-artifact rejection
Evidence: Live shard plans
Source: Live shard plans
Evidence: Fresh filtered serial-lane timing
Source: Fresh filtered serial-lane timing
Evidence: Documented margin calculation
Source: Documented margin calculation
Pipeline
Updates from git push no-mistakes
✅ **intent** - passed
✅ No issues found.
✅ **Rebase** - passed
✅ No issues found.
🔧 **Review** - 1 issue found → auto-fixed ✅
docs/fm-test-portable-shards.md:156- The table mixes job time with the suite time the guard scores. Run 34460760299's artifact records 1,231,845 ms for shard 4: 20.53075 minutes, 68.4358% of cap, and 1.06925 minutes of headroom. The displayed 20.78 minutes instead implies 69.27% and 0.82 minutes. Use 20.53 minutes in this row and distinguish whole-job timings in the nearby comparisons, preserving the correct approximately 1.1-minute margin.🔧 Fix applied.
✅ Re-checked - no issues remain.
🔧 **Test** - 2 issues found → auto-fixed ✅
git diff b1ad702fafdd03d94e5ce47cd4ba86e589ad33d6 14dc4a60cfcc7a996f07dde5570e37a3b117c5f2and commit-history inspection.git diff --quiet be2ec4dd 14dc4a60cfcc7a996f07dde5570e37a3b117c5f2 -- bin/fm-test-run.sh tests/fm-test-run.test.sh .github/workflows/ci.ymlconfirmed unchanged runtime, workflow, and tests in the documentation follow-up.bin/fm-test-run.sh --jobs 1 --json <evidence>/runner-contract-timing.json tests/fm-test-run.test.shpassed.bin/fm-test-run.sh --list --lane portable-serialand all five numbered shard listings; compared outputs for completeness and disjointness.bin/fm-test-run.sh --check-shard-balance <artifact>exercised seven synthetic timing cases; exact commands and responses are retained in the evidence transcript.bin/fm-test-run.sh --check-shard-balance <evidence>/runner-contract-timing.jsonrejected the freshly generated non-serial artifact as intended.Python Decimal arithmetic using the user-confirmed 1231845 ms verified 20.53075 minutes, 68.4358% of cap, and 1.06925 minutes of headroom.Finalgit status --shortconfirmed no working-tree changes or transient artifacts.🔧 Fix applied.
✅ Re-checked - no issues remain.
bin/fm-test-run.sh tests/fm-test-run.test.sh --json ~/.no-mistakes/evidence/01M25C6PVFERGFF8VCGKNJPMP3/round2-focused-runner-timing.jsonExecuted the five existing balance tests against an isolated 90% runner mutation; all remained green, reproducing the reported hole.Executedtest_shard_balance_pins_the_72_percent_thresholdagainst isolated 71%, 73%, and 90% mutations and the unchanged 72% runner; each mutation failed at the intended assertion and 72% passed.bin/fm-test-run.sh --list --lane portable-serial-{1,2,3,4,5}of5, compared with--list --lane portable-serialfor complete, disjoint coverage.bin/fm-test-run.sh --lane portable-serial-4of5with every family exceptpr-forgeexcluded and--json; exact command recorded in round2-live-cli.txt.bin/fm-test-run.sh --check-shard-balanceagainst the fresh filtered serial artifact and fresh non-serial artifact.bin/fm-test-run.sh --aggregate-jsonagainst both fresh timing artifacts.Manually checked corrected suite/job wording and independently calculated the documented margin from 1231845 ms.Removed temporary test and mutation files; confirmed clean worktree at 8a7259b8fe3a8da37dbb047aaac219a12a277186.✅ **Document** - passed
✅ No issues found.
✅ **Lint** - passed
✅ No issues found.
✅ **Push** - passed
✅ No issues found.