Skip to content

ci(bin): refresh portable serial duration hints - #4144

Closed
mremond wants to merge 6 commits into
kunchenguid:mainfrom
mremond:fm/fm-ci-refresh-portable-serial-hints
Closed

mremond wants to merge 6 commits into
kunchenguid:mainfrom
mremond:fm/fm-ci-refresh-portable-serial-hints

Conversation

@mremond

@mremond mremond commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Intent

Stop the portable serial CI lanes from being cancelled at their job ceiling by refreshing the per-script duration hints that pack them, which had drifted badly enough that one shard reached its cap while another sat idle. Four of this project's deliveries were cut that way. The hints in bin/fm-test-run.sh are refreshed from the slowest measured duration per script across five green CI runs of 2026-09-10, so the longest-processing-time packing balances on evidence rather than on stale or missing measurements.

Two facts this delivery must state for its reader.

First, the documentation deliberately does NOT carry a refreshed copy of the per-shard duration table. Trunk removed that copied table on purpose and made the runner's own --check-coverage output the authority for lane size, shard composition and balance. That decision was upheld here and applied to the hint-provenance paragraph as well, because the numeric lane-size snapshot in that paragraph is the same kind of copied claim. Measurement proves the point rather than argument: the lane now holds 165 scripts with 6 unhinted, which is 3.6 percent against a 15 percent limit, so this branch's earlier documented claim of 157 hints with no script on the default weight would have shipped false the day it was written. A copied table that is wrong the day it is refreshed is the argument for deleting it.

Second, this branch originally carried four commits and now carries three. The commit "fix(test): Correct portable serial timing baseline documentation" became empty during the rebase onto current trunk and was dropped, because its entire content refined prose inside the copied table block that trunk had removed. Nothing was lost beyond the text it edited, and no reader should wonder where it went.

What Changed

  • Refresh portable serial packing hints using per-script maximum durations from five 2026-09-10 CI runs whose serial shards all passed. Clarify Windows skip timings, missing-hint guard limitations, and timeout evidence.
  • Preserve trunk’s removal of the copied shard-duration table and omit numeric lane snapshots from hint provenance. bin/fm-test-run.sh --check-coverage remains authoritative for lane size, composition, and balance: the recorded 165 scripts with six unhinted (3.6%, below the 15% limit) already contradicted the earlier “157 hints, no default weights” claim.
  • The rebase reduced the original four-commit series to three by dropping fix(test): Correct portable serial timing baseline documentation: it became empty because trunk removed the copied table block containing its entire prose change. No other content was lost. Three subsequent review/documentation corrections bring the final branch delta to six commits.

Risk Assessment

✅ Low: The refreshed hints match all five runs’ serial timing artifacts, preserve execution and coverage rules, and introduce no unnecessary behavior.

Testing

The focused runner suite and live CLI checks passed. Independent artifact comparison confirmed the refreshed assignment, and baseline replay improved the heaviest historical load. Verifier setup errors were corrected; transcripts and provenance evidence were saved. Fresh CI timing remains untested. This change has no GUI surface.

  • Live validation: ✅ go - 4 of 5 scenarios driven live against the product
Scenario Result Live Evidence
Maintainer follows the documented runner command to obtain the current inventory and missing-hint share ✅ pass live Live CLI transcript: --check-coverage and --list-lanes report 165 serial scripts, five shards, and six unhinted scripts.
Maintainer lists the five serial shards and receives the refreshed duration-balanced assignment without losing or duplicating scripts ✅ pass live packing-verification.json: all five actual shard listings exactly match independently calculated assignments using the five source runs' maxima, retained hints, and default weights; the partition is c…
Maintainer supplies mismatched or invalid shard names and receives an explicit refusal ✅ pass live Live CLI transcript: 1of4, 0of5, 6of5, and incomplete shard names return exit 2.
Maintainer attempts concurrent serial-lane execution and the runner refuses before starting tests ✅ pass live Live CLI transcript: --jobs 2 is rejected for portable-serial and every individual serial shard before any FM_TEST_BEGIN marker.
CI executes all five refreshed serial shards successfully below their job ceiling ⏸️ untested no This assigned test phase has no authority to execute the CI phase or the complete serial suite. The outer executor must run the target's five ubuntu-latest jobs and inspect their completed results and…
Evidence: Live CLI outputs, refusals, and baseline comparison

Source: Live CLI outputs, refusals, and baseline comparison

Real CLI run against target 53751a41d28be5e963528e90ec12d1e907b8f81f.
Baseline invocations use the previous executable with the same current inventory.
Inspection and refusal calls do not execute the selected lane.

$ /bin/bash bin/fm-test-run.sh --check-coverage
FM_TEST_COVERAGE ok total=205 parallel=24 parallel_max_ms=417163 parallel_imbalance_ms=2894 parallel_unhinted=0 serial=165 serial_shards=5 serial_unhinted=6 herdr=16
[exit 0]

$ /bin/bash bin/fm-test-run.sh --list-lanes
portable-parallel-1
portable-parallel-2
portable-serial
portable-serial-1of5
portable-serial-2of5
portable-serial-3of5
portable-serial-4of5
portable-serial-5of5
real-herdr-gated
[exit 0]

$ /bin/bash bin/fm-test-run.sh --list --lane portable-serial
tests/fm-afk-contract.test.sh
tests/fm-afk-inject-e2e.test.sh
tests/fm-afk-pi-herdr-return-e2e.test.sh
tests/fm-afk-return.test.sh
tests/fm-agy-harness.test.sh
tests/fm-agy-signals-live-e2e.test.sh
tests/fm-ask-user-authority.test.sh
tests/fm-backend-cmux-smoke.test.sh
tests/fm-backend-cmux.test.sh
tests/fm-backend-orca.test.sh
tests/fm-backend-tmux-smoke.test.sh
tests/fm-backend-zellij-smoke.test.sh
tests/fm-backend-zellij.test.sh
tests/fm-backend.test.sh
tests/fm-backlog-atomicity.test.sh
tests/fm-backlog-handoff.test.sh
tests/fm-backlog-read-bound.test.sh
tests/fm-bearings-board-lavish-live-e2e.test.sh
tests/fm-bearings-board-render.test.sh
tests/fm-bearings-board.test.sh
tests/fm-bearings-snapshot.test.sh
tests/fm-bootstrap-network-parallel.test.sh
tests/fm-bootstrap.test.sh
tests/fm-branch-supervision.test.sh
tests/fm-busy-adapter-wiring.test.sh
tests/fm-busy-state.test.sh
tests/fm-calm-pi-extension.test.sh
tests/fm-check-unregister.test.sh
tests/fm-ci-workflow.test.sh
tests/fm-classify-corr-token.test.sh
tests/fm-classify-decision-key.test.sh
tests/fm-claude-stop-autoarm-live-e2e.test.sh
tests/fm-claude-stop-autoarm.test.sh
tests/fm-claude-trust.test.sh
tests/fm-cmux-claude-composer-live-e2e.test.sh
tests/fm-codex-continuity-live-e2e.test.sh
tests/fm-composer-matrix-live-e2e.test.sh
tests/fm-control-relaunch.test.sh
tests/fm-control.test.sh
tests/fm-cursor-harness.test.sh
tests/fm-cursor-primary-live-e2e.test.sh
tests/fm-cursor-primary.test.sh
tests/fm-daemon.test.sh
tests/fm-documentation-audiences.test.sh
tests/fm-extension-binding.test.sh
tests/fm-fleet-snapshot-view.test.sh
tests/fm-fleet-sync.test.sh
tests/fm-gate-refuse.test.sh
tests/fm-gemini-harness.test.sh
tests/fm-gitignore-config.test.sh
tests/fm-gotmp.test.sh
tests/fm-grok-continuity-live-e2e.test.sh
tests/fm-grok-stop-live-e2e.test.sh
tests/fm-guard-stale-banner.test.sh
tests/fm-harness-adapter-instructions-live-e2e.test.sh
tests/fm-harness-adapter-references.test.sh
tests/fm-harness-liveness-drift-live-e2e.test.sh
tests/fm-harness-precedence.test.sh
tests/fm-herdr-pi-stale-registration-live-e2e.test.sh
tests/fm-herdr-session-cleanup.test.sh
tests/fm-herdr-submit-confirm-live-e2e.test.sh
tests/fm-herdr-version-floor-live-e2e.test.sh
tests/fm-home-summary-refresh.test.sh
tests/fm-inactive-reconcile.test.sh
tests/fm-kimi-harness.test.sh
tests/fm-lint-workflows.test.sh
tests/fm-live-gate.test.sh
tests/fm-mail-check.test.sh
tests/fm-mail.test.sh
tests/fm-muse-harness.test.sh
tests/fm-muse-signals-live-e2e.test.sh
tests/fm-nm-test-contract.test.sh
tests/fm-no-mistakes-required.test.sh
tests/fm-omp-harness.test.sh
tests/fm-omp-primary-live-e2e.test.sh
tests/fm-on.test.sh
tests/fm-opencode-primary-live-e2e.test.sh
tests/fm-operational-input.test.sh
tests/fm-peek-remote.test.sh
tests/fm-pending-reply.test.sh
tests/fm-pi-branch-extension.test.sh
tests/fm-pi-branch-live-e2e.test.sh
tests/fm-pi-branch-responsiveness-live-e2e.test.sh
tests/fm-pi-codex-native.test.sh
tests/fm-pi-primary-live-e2e.test.sh
tests/fm-pi-watch-extension.test.sh
tests/fm-pi-windows-shell-invocation.test.sh
tests/fm-pr-check-security.test.sh
tests/fm-procevent-quota.test.sh
tests/fm-procevent-when.test.sh
tests/fm-procevent.test.sh
tests/fm-project-origin.test.sh
tests/fm-public-followup.test.sh
tests/fm-quota-array-dispatch-live-e2e.test.sh
tests/fm-quota-choose.test.sh
tests/fm-remote-backlog-handoff.test.sh
tests/fm-remote-doctor.test.sh
tests/fm-remote-entrypoint.test.sh
tests/fm-remote-herdr-guard.test.sh
tests/fm-remote-job-orphan-reap.test.sh
tests/fm-remote-job.test.sh
tests/fm-remote-reply.test.sh
tests/fm-remote-secondmate-lifecycle-e2e.test.sh
tests/fm-remote-secondmate-parent-binding.test.sh
tests/fm-remote-secondmate-trace-context.test.sh
tests/fm-remote-transport-lanes.test.sh
tests/fm-rovo-harness.test.sh
tests/fm-rovo-signals-live-e2e.test.sh
tests/fm-secondmate-harness.test.sh
tests/fm-secondmate-lifecycle-e2e.test.sh
tests/fm-secondmate-liveness.test.sh
tests/fm-secondmate-reconcile.test.sh
tests/fm-secondmate-restart.test.sh
tests/fm-secondmate-safety.test.sh
tests/fm-secondmate-sync.test.sh
tests/fm-send-agy-confirm.test.sh
tests/fm-send-inbox-doorbell-live-e2e.test.sh
tests/fm-send-inbox.test.sh
tests/fm-send-remote-delivery.test.sh
tests/fm-send-resolve-key.test.sh
tests/fm-send-secondmate-marker-herdr-e2e.test.sh
tests/fm-send-secondmate-marker.test.sh
tests/fm-session-lock-ancestry.test.sh
tests/fm-session-start.test.sh
tests/fm-sessionstart-hook-live-e2e.test.sh
tests/fm-sessionstart-instruction-refresh-live-e2e.test.sh
tests/fm-sessionstart-nudge.test.sh
tests/fm-shared-captain-inheritance.test.sh
tests/fm-spawn-dispatch-profile.test.sh
tests/fm-spawn-pool-base-freshen.test.sh
tests/fm-spawn-worktree-settle.test.sh
tests/fm-startup-memory-budget.test.sh
tests/fm-startup-network.test.sh
tests/fm-stat-shadowing.test.sh
tests/fm-stow-cascade.test.sh
tests/fm-subagent-pretool-check.test.sh
tests/fm-supervision-events.test.sh
tests/fm-tangle-guard.test.sh
tests/fm-task-delivery.test.sh
tests/fm-task-inbox.test.sh
tests/fm-tasks-axi.test.sh
tests/fm-teardown-endpoint-safety.test.sh
tests/fm-teardown.test.sh
tests/fm-test-fixture-cleanup.test.sh
tests/fm-test-fixtures.test.sh
tests/fm-test-isolation-proof.test.sh
tests/fm-tmux-agent-liveness.test.sh
tests/fm-tool-update-check.test.sh
tests/fm-trace-context-lib.test.sh
tests/fm-trace-context-spawn.test.sh
tests/fm-turnend-guard.test.sh
tests/fm-update.test.sh
tests/fm-vendor-auth-probe.test.sh
tests/fm-voice-relay.test.sh
tests/fm-wake-daemon-lifecycle-e2e.test.sh
tests/fm-wake-drain-open-decisions-cursor.test.sh
tests/fm-wake-drain-open-decisions.test.sh
tests/fm-wake-drain-outcome-backstop.test.sh
tests/fm-wake-drain-unread-status.test.sh
tests/fm-wake-queue.test.sh
tests/fm-watch-arm.test.sh
tests/fm-watch-checkpoint.test.sh
tests/fm-watch-recovery-loop.test.sh
tests/fm-watch-triage.test.sh
tests/fm-watcher-lock.test.sh
[exit 0]

$ /bin/bash bin/fm-test-run.sh --list-scheduled --lane portable-serial-1of5
tests/fm-watch-triage.test.sh
tests/fm-spawn-pool-base-freshen.test.sh
tests/fm-secondmate-sync.test.sh
tests/fm-remote-transport-lanes.test.sh
tests/fm-bearings-board.test.sh
tests/fm-calm-pi-extension.test.sh
tests/fm-fleet-sync.test.sh
tests/fm-control.test.sh
tests/fm-send-remote-delivery.test.sh
tests/fm-herdr-pi-stale-registration-live-e2e.test.sh
tests/fm-wake-drain-open-decisions-cursor.test.sh
tests/fm-backend.test.sh
tests/fm-bearings-board-render.test.sh
tests/fm-pi-branch-responsiveness-live-e2e.test.sh
tests/fm-update.test.sh
tests/fm-bootstrap-network-parallel.test.sh
tests/fm-startup-memory-budget.test.sh
tests/fm-herdr-session-cleanup.test.sh
tests/fm-stow-cascade.test.sh
tests/fm-test-isolation-proof.test.sh
tests/fm-test-fixture-cleanup.test.sh
tests/fm-subagent-pretool-check.test.sh
tests/fm-documentation-audiences.test.sh
tests/fm-ask-user-authority.test.sh
tests/fm-codex-continuity-live-e2e.test.sh
tests/fm-harness-adapter-references.test.sh
tests/fm-quota-array-dispatch-live-e2e.test.sh
tests/fm-gitignore-config.test.sh
tests/fm-composer-matrix-live-e2e.test.sh
tests/fm-harness-adapter-instructions-live-e2e.test.sh
tests/fm-agy-signals-live-e2e.test.sh
[exit 0]

$ /bin/bash bin/fm-test-run.sh --list-scheduled --lane portable-serial-2of5
tests/fm-remote-secondmate-lifecycle-e2e.test.sh
tests/fm-bearings-snapshot.test.sh
tests/fm-spawn-dispatch-profile.test.sh
tests/fm-secondmate-reconcile.test.s

... [6975 bytes truncated] ...

 in the proven-isolated set (see bin/fm-test-isolation-proof.sh --list) and its family has no recorded concurrent proof. Unproven stateful scripts stay serial.
[exit 2]

$ /bin/bash bin/fm-test-run.sh --jobs 2 --lane portable-serial-1of5
[stderr]
fm-test-run: --jobs 2 refused: tests/fm-control.test.sh is not in the proven-isolated set (see bin/fm-test-isolation-proof.sh --list) and its family has no recorded concurrent proof. Unproven stateful scripts stay serial.
[exit 2]

$ /bin/bash bin/fm-test-run.sh --jobs 2 --lane portable-serial-2of5
[stderr]
fm-test-run: --jobs 2 refused: tests/fm-bearings-snapshot.test.sh is not in the proven-isolated set (see bin/fm-test-isolation-proof.sh --list) and its family has no recorded concurrent proof. Unproven stateful scripts stay serial.
[exit 2]

$ /bin/bash bin/fm-test-run.sh --jobs 2 --lane portable-serial-3of5
[stderr]
fm-test-run: --jobs 2 refused: tests/fm-control-relaunch.test.sh is not in the proven-isolated set (see bin/fm-test-isolation-proof.sh --list) and its family has no recorded concurrent proof. Unproven stateful scripts stay serial.
[exit 2]

$ /bin/bash bin/fm-test-run.sh --jobs 2 --lane portable-serial-4of5
[stderr]
fm-test-run: --jobs 2 refused: tests/fm-teardown-endpoint-safety.test.sh is not in the proven-isolated set (see bin/fm-test-isolation-proof.sh --list) and its family has no recorded concurrent proof. Unproven stateful scripts stay serial.
[exit 2]

$ /bin/bash bin/fm-test-run.sh --jobs 2 --lane portable-serial-5of5
[stderr]
fm-test-run: --jobs 2 refused: tests/fm-trace-context-spawn.test.sh is not in the proven-isolated set (see bin/fm-test-isolation-proof.sh --list) and its family has no recorded concurrent proof. Unproven stateful scripts stay serial.
[exit 2]

$ /bin/bash bin/.test-phase-baseline-run.sh --list-scheduled --lane portable-serial-1of5
tests/fm-watch-triage.test.sh
tests/fm-remote-reply.test.sh
tests/fm-procevent.test.sh
tests/fm-remote-transport-lanes.test.sh
tests/fm-remote-job.test.sh
tests/fm-cursor-primary.test.sh
tests/fm-trace-context-spawn.test.sh
tests/fm-send-inbox.test.sh
tests/fm-spawn-pool-base-freshen.test.sh
tests/fm-remote-secondmate-parent-binding.test.sh
tests/fm-ci-workflow.test.sh
tests/fm-mail-check.test.sh
tests/fm-rovo-harness.test.sh
tests/fm-daemon.test.sh
tests/fm-backend.test.sh
tests/fm-secondmate-liveness.test.sh
tests/fm-wake-drain-outcome-backstop.test.sh
tests/fm-bootstrap-network-parallel.test.sh
tests/fm-send-secondmate-marker.test.sh
tests/fm-task-delivery.test.sh
tests/fm-pi-windows-shell-invocation.test.sh
tests/fm-stow-cascade.test.sh
tests/fm-test-isolation-proof.test.sh
tests/fm-remote-herdr-guard.test.sh
tests/fm-subagent-pretool-check.test.sh
tests/fm-supervision-events.test.sh
tests/fm-test-fixtures.test.sh
tests/fm-project-origin.test.sh
tests/fm-send-secondmate-marker-herdr-e2e.test.sh
tests/fm-muse-signals-live-e2e.test.sh
tests/fm-cursor-primary-live-e2e.test.sh
tests/fm-quota-array-dispatch-live-e2e.test.sh
[exit 0]

$ /bin/bash bin/.test-phase-baseline-run.sh --list-scheduled --lane portable-serial-2of5
tests/fm-remote-secondmate-lifecycle-e2e.test.sh
tests/fm-bearings-snapshot.test.sh
tests/fm-inactive-reconcile.test.sh
tests/fm-watch-arm.test.sh
tests/fm-secondmate-reconcile.test.sh
tests/fm-watch-recovery-loop.test.sh
tests/fm-control.test.sh
tests/fm-remote-backlog-handoff.test.sh
tests/fm-afk-inject-e2e.test.sh
tests/fm-home-summary-refresh.test.sh
tests/fm-bearings-board-lavish-live-e2e.test.sh
tests/fm-harness-precedence.test.sh
tests/fm-omp-primary-live-e2e.test.sh
tests/fm-stat-shadowing.test.sh
tests/fm-pi-branch-extension.test.sh
tests/fm-backend-orca.test.sh
tests/fm-tool-update-check.test.sh
tests/fm-fleet-snapshot-view.test.sh
tests/fm-herdr-session-cleanup.test.sh
tests/fm-watch-checkpoint.test.sh
tests/fm-remote-doctor.test.sh
tests/fm-afk-contract.test.sh
tests/fm-remote-job-orphan-reap.test.sh
tests/fm-session-lock-ancestry.test.sh
tests/fm-peek-remote.test.sh
tests/fm-backend-tmux-smoke.test.sh
tests/fm-calm-pi-extension.test.sh
tests/fm-afk-pi-herdr-return-e2e.test.sh
tests/fm-harness-adapter-references.test.sh
tests/fm-herdr-submit-confirm-live-e2e.test.sh
tests/fm-claude-stop-autoarm-live-e2e.test.sh
tests/fm-opencode-primary-live-e2e.test.sh
tests/fm-pi-primary-live-e2e.test.sh
[exit 0]

$ /bin/bash bin/.test-phase-baseline-run.sh --list-scheduled --lane portable-serial-3of5
tests/fm-public-followup.test.sh
tests/fm-secondmate-restart.test.sh
tests/fm-teardown.test.sh
tests/fm-spawn-dispatch-profile.test.sh
tests/fm-omp-harness.test.sh
tests/fm-wake-queue.test.sh
tests/fm-busy-adapter-wiring.test.sh
tests/fm-pi-watch-extension.test.sh
tests/fm-fleet-sync.test.sh
tests/fm-guard-stale-banner.test.sh
tests/fm-backlog-read-bound.test.sh
tests/fm-gemini-harness.test.sh
tests/fm-nm-test-contract.test.sh
tests/fm-send-agy-confirm.test.sh
tests/fm-bootstrap.test.sh
tests/fm-procevent-when.test.sh
tests/fm-tangle-guard.test.sh
tests/fm-backend-zellij.test.sh
tests/fm-wake-daemon-lifecycle-e2e.test.sh
tests/fm-shared-captain-inheritance.test.sh
tests/fm-spawn-worktree-settle.test.sh
tests/fm-bearings-board.test.sh
tests/fm-busy-state.test.sh
tests/fm-quota-choose.test.sh
tests/fm-test-fixture-cleanup.test.sh
tests/fm-check-unregister.test.sh
tests/fm-operational-input.test.sh
tests/fm-remote-entrypoint.test.sh
tests/fm-backend-cmux-smoke.test.sh
tests/fm-cmux-claude-composer-live-e2e.test.sh
tests/fm-send-inbox-doorbell-live-e2e.test.sh
tests/fm-grok-stop-live-e2e.test.sh
tests/fm-grok-continuity-live-e2e.test.sh
[exit 0]

$ /bin/bash bin/.test-phase-baseline-run.sh --list-scheduled --lane portable-serial-4of5
tests/fm-pr-check-security.test.sh
tests/fm-secondmate-harness.test.sh
tests/fm-pending-reply.test.sh
tests/fm-sessionstart-nudge.test.sh
tests/fm-claude-stop-autoarm.test.sh
tests/fm-muse-harness.test.sh
tests/fm-backlog-handoff.test.sh
tests/fm-turnend-guard.test.sh
tests/fm-wake-drain-unread-status.test.sh
tests/fm-on.test.sh
tests/fm-send-remote-delivery.test.sh
tests/fm-herdr-pi-stale-registration-live-e2e.test.sh
tests/fm-pi-codex-native.test.sh
tests/fm-tasks-axi.test.sh
tests/fm-wake-drain-open-decisions-cursor.test.sh
tests/fm-send-resolve-key.test.sh
tests/fm-secondmate-sync.test.sh
tests/fm-extension-binding.test.sh
tests/fm-wake-drain-open-decisions.test.sh
tests/fm-branch-supervision.test.sh
tests/fm-gate-refuse.test.sh
tests/fm-backend-cmux.test.sh
tests/fm-afk-return.test.sh
tests/fm-tmux-agent-liveness.test.sh
tests/fm-classify-decision-key.test.sh
tests/fm-documentation-audiences.test.sh
tests/fm-trace-context-lib.test.sh
tests/fm-ask-user-authority.test.sh
tests/fm-agy-signals-live-e2e.test.sh
tests/fm-composer-matrix-live-e2e.test.sh
tests/fm-sessionstart-instruction-refresh-live-e2e.test.sh
tests/fm-harness-liveness-drift-live-e2e.test.sh
tests/fm-harness-adapter-instructions-live-e2e.test.sh
[exit 0]

$ /bin/bash bin/.test-phase-baseline-run.sh --list-scheduled --lane portable-serial-5of5
tests/fm-backlog-atomicity.test.sh
tests/fm-session-start.test.sh
tests/fm-watcher-lock.test.sh
tests/fm-remote-secondmate-trace-context.test.sh
tests/fm-startup-network.test.sh
tests/fm-secondmate-safety.test.sh
tests/fm-control-relaunch.test.sh
tests/fm-vendor-auth-probe.test.sh
tests/fm-classify-corr-token.test.sh
tests/fm-cursor-harness.test.sh
tests/fm-voice-relay.test.sh
tests/fm-claude-trust.test.sh
tests/fm-mail.test.sh
tests/fm-rovo-signals-live-e2e.test.sh
tests/fm-task-inbox.test.sh
tests/fm-kimi-harness.test.sh
tests/fm-agy-harness.test.sh
tests/fm-secondmate-lifecycle-e2e.test.sh
tests/fm-startup-memory-budget.test.sh
tests/fm-live-gate.test.sh
tests/fm-update.test.sh
tests/fm-teardown-endpoint-safety.test.sh
tests/fm-procevent-quota.test.sh
tests/fm-bearings-board-render.test.sh
tests/fm-gotmp.test.sh
tests/fm-lint-workflows.test.sh
tests/fm-no-mistakes-required.test.sh
tests/fm-gitignore-config.test.sh
tests/fm-pi-branch-live-e2e.test.sh
tests/fm-backend-zellij-smoke.test.sh
tests/fm-herdr-version-floor-live-e2e.test.sh
tests/fm-codex-continuity-live-e2e.test.sh
tests/fm-pi-branch-responsiveness-live-e2e.test.sh
tests/fm-sessionstart-hook-live-e2e.test.sh
[exit 0]
Evidence: Successful serial jobs in all five source runs

Source: Successful serial jobs in all five source runs

[
  {
    "run": "34413640474",
    "serial_jobs": [
      {
        "id": "102673487767",
        "name": "Behavior portable serial 2",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102673487779",
        "name": "Behavior portable serial 4",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102673487829",
        "name": "Behavior portable serial 1",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102673487927",
        "name": "Behavior portable serial 3",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102673487950",
        "name": "Behavior portable serial 5",
        "status": "completed",
        "conclusion": "success"
      }
    ]
  },
  {
    "run": "34413651260",
    "serial_jobs": [
      {
        "id": "102673522511",
        "name": "Behavior portable serial 1",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102673522521",
        "name": "Behavior portable serial 3",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102673522565",
        "name": "Behavior portable serial 2",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102673522579",
        "name": "Behavior portable serial 5",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102673522655",
        "name": "Behavior portable serial 4",
        "status": "completed",
        "conclusion": "success"
      }
    ]
  },
  {
    "run": "34413670094",
    "serial_jobs": [
      {
        "id": "102673584569",
        "name": "Behavior portable serial 1",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102673584622",
        "name": "Behavior portable serial 3",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102673584627",
        "name": "Behavior portable serial 5",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102673584638",
        "name": "Behavior portable serial 4",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102673584671",
        "name": "Behavior portable serial 2",
        "status": "completed",
        "conclusion": "success"
      }
    ]
  },
  {
    "run": "34439204619",
    "serial_jobs": [
      {
        "id": "102750501332",
        "name": "Behavior portable serial 2",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102750501336",
        "name": "Behavior portable serial 3",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102750501370",
        "name": "Behavior portable serial 4",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102750501436",
        "name": "Behavior portable serial 5",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102750501470",
        "name": "Behavior portable serial 1",
        "status": "completed",
        "conclusion": "success"
      }
    ]
  },
  {
    "run": "34466966385",
    "serial_jobs": [
      {
        "id": "102837688461",
        "name": "Behavior portable serial 4",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102837688509",
        "name": "Behavior portable serial 5",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102837688581",
        "name": "Behavior portable serial 2",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102837688615",
        "name": "Behavior portable serial 3",
        "status": "completed",
        "conclusion": "success"
      },
      {
        "id": "102837688814",
        "name": "Behavior portable serial 1",
        "status": "completed",
        "conclusion": "success"
      }
    ]
  }
]

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 2 issues found → auto-fixed (2) ✅
  • ⚠️ docs/fm-test-portable-shards.md:116 - Intent makes the runner's '--check-coverage output the authority for lane size, shard composition and balance'. This changed row instead adds 'Each shard carries about 19.14 minutes'. Tracing the current 165-script inventory yields approximately 19.71 minutes per shard; the new 10.3% claim at line 75 is also stale (approximately 10.02%). Remove these duplicated balance snapshots and retain the runner pointer, as required by the stated simplification decision.
  • ⚠️ docs/fm-test-portable-shards.md:60 - The serial-hint provenance still describes September 1 measurements and a 5121 ms Windows measurement, although this branch replaces the hints and changes that Windows entry to 81 ms. It never identifies the five September 10 source runs, preventing readers from reconstructing the refreshed table. Update this paragraph with the actual measurement provenance, without restoring copied lane-size totals.

🔧 Fix applied.
1 warning still open:

🔧 Fix applied.
✅ Re-checked - no issues remain.

✅ **Test** - passed

✅ No issues found.

  • Live validation: ✅ go - 4 of 5 scenarios driven live against the product
Scenario Result Live Evidence
Maintainer follows the documented runner command to obtain the current inventory and missing-hint share ✅ pass live Live CLI transcript: --check-coverage and --list-lanes report 165 serial scripts, five shards, and six unhinted scripts.
Maintainer lists the five serial shards and receives the refreshed duration-balanced assignment without losing or duplicating scripts ✅ pass live packing-verification.json: all five actual shard listings exactly match independently calculated assignments using the five source runs' maxima, retained hints, and default weights; the partition is c…
Maintainer supplies mismatched or invalid shard names and receives an explicit refusal ✅ pass live Live CLI transcript: 1of4, 0of5, 6of5, and incomplete shard names return exit 2.
Maintainer attempts concurrent serial-lane execution and the runner refuses before starting tests ✅ pass live Live CLI transcript: --jobs 2 is rejected for portable-serial and every individual serial shard before any FM_TEST_BEGIN marker.
CI executes all five refreshed serial shards successfully below their job ceiling ⏸️ untested no This assigned test phase has no authority to execute the CI phase or the complete serial suite. The outer executor must run the target's five ubuntu-latest jobs and inspect their completed results and…
  • git diff 036fec054283882c1cfaa3e66e6f8d16ff4f4b5f 53751a41d28be5e963528e90ec12d1e907b8f81f and manual inspection of the scoped documentation and commit history.
  • TMPDIR="$PWD/.test-phase-tmp" bin/fm-test-run.sh --jobs 1 --json ~/.no-mistakes/evidence/01M2GB01EQ2MPCJ200TG71Y9SV/runner-contract.json tests/fm-test-run.test.sh
  • python3 ~/.no-mistakes/evidence/01M2GB01EQ2MPCJ200TG71Y9SV/drive-runner.py exercised current CLI coverage, shard listings, determinism, and adversarial refusals; rerun successfully after correcting the verifier's retained-hint inputs.
  • git show 036fec054283882c1cfaa3e66e6f8d16ff4f4b5f:bin/fm-test-run.sh supplied the previous executable for comparison against the same current inventory.
  • gh-axi run download retrieved fm-test-timing-aggregate from runs 34413640474, 34413651260, 34413670094, 34439204619, 34466966385, and held-out run 34447627189; generated timing data supplied the independent packing oracle and historical replay.
  • gh-axi run view verified successful serial jobs in each of the five source runs.
  • Removed the temporary baseline executable and test directory; confirmed unchanged target HEAD and a clean worktree.
⚠️ **Document** - 1 info
  • ℹ️ PR-phase handoff: PR ci(bin): refresh portable serial duration hints #4144 still contains superseded balance snapshots and the unsupported healthy-runtime inference. Its final description must explain the deliberate omission of copied timing tables and provenance totals, and that the rebase reduced the original four commits to three: “fix(test): Correct portable serial timing baseline documentation” became empty because trunk removed the table it edited. PR updates belong to the outer executor.
✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@mremond mremond changed the title ci: refresh portable serial duration hints ci(bin): refresh portable serial shard timing hints Sep 10, 2026
@mremond
mremond force-pushed the fm/fm-ci-refresh-portable-serial-hints branch from 14bee50 to e6dc442 Compare September 11, 2026 07:11
@mremond mremond changed the title ci(bin): refresh portable serial shard timing hints ci(bin): refresh portable serial duration hints and clarify limits Sep 11, 2026
The portable serial shard assignment is bin packing over per-script
duration hints, and those hints had drifted badly: 145 of them changed
against fresh measurement, 37 were low by more than 2x and 11 by more
than 5x, and 11 lane scripts had no hint at all. The predicted split
therefore claimed every shard at 15.19 minutes while real shards ran 11
to 23 minutes on the same run.

That imbalance is what cancels the lane. It has done so three times in
nine days, most recently on 2026-09-10 when Behavior portable serial 1
was cancelled at 30 min 15 s with no hang - it was passing tests three
seconds earlier and simply ran out of budget.

Refresh all 157 hints from the slowest measured duration per script
across five green runs of 2026-09-10, so no script falls back to the
default weight and one slow runner cannot dominate the table.

Validated against a held-out run that contributed nothing to the table:
run 34447627189 scores 13.58 to 16.95 minutes across its five shards,
a worst shard of 56.5% of the job cap, against 13.24 to 21.93 minutes
under the previous hints.

This changes balance only. The shard count, the job cap, and the
coverage guard are untouched.
The documentation pass on this branch compressed five comment blocks and
removed the reasoning behind three numbers this delivery does not change.
Restoring it is not widening scope: the deletions ship under this branch's
name, so carrying them would remove those sentences from the trunk.

What is restored:

- CHANGED_DEFAULT_TIMEOUT_SECS keeps its stated intent, that 900s is a
  guard rather than a speed control, so a hung script becomes a bounded
  failure instead of an unbounded suite. Its pointer to
  docs/fm-test-portable-shards.md is dropped, because that document
  describes portable shard timing and does not own this constant.
- The hint table keeps its derivation rule, that each value is the slowest
  of several green runs so the balance holds on a slow runner, and its
  safety invariant, that hints affect balance only and a stale hint costs
  balance rather than coverage.
- The unhinted-share bound and the coverage guard keep the explanation of
  why unmeasured scripts unbalance shards.

Two original sentences are deliberately NOT restored, because measurement
has since made them false. Both rested on the slowest script being the
341s Herdr presentation E2E: tests/fm-watch-triage.test.sh was measured at
1191s on 2026-09-10, which is 1.32x the 900-second bound. The derivation
is restated as it stands today, scoped to the --changed selection where it
still holds.

Observation, not addressed here: that 1191s measurement means a healthy
script can now exceed a bound that exists to catch hung ones.
@mremond
mremond force-pushed the fm/fm-ci-refresh-portable-serial-hints branch from e6dc442 to e6be924 Compare September 14, 2026 16:56
@mremond mremond changed the title ci(bin): refresh portable serial duration hints and clarify limits ci(bin): refresh portable serial duration hints Sep 14, 2026
@mremond

mremond commented Sep 25, 2026

Copy link
Copy Markdown
Contributor Author

Closing as superseded: #4800 repacked the portable serial lanes into nine shards, so these five-shard duration hints no longer apply.

@mremond mremond closed this Sep 25, 2026
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.

1 participant