Skip to content

ci: rebalance test shards and expand lint partitions - #54

Merged
peterOC26 merged 7 commits into
mainfrom
fm/fm-ci-serial2-timeout-s1
Nov 9, 2026
Merged

peterOC26 merged 7 commits into
mainfrom
fm/fm-ci-serial2-timeout-s1

Conversation

@peterOC26

Copy link
Copy Markdown
Owner

Intent

Firstmate's own CI must report real results so the open firstmate PRs (47, 50, 51) and main can go green. On 2026-11-09 jobs were cancelled at their time limits while their tests were still passing: Behavior portable serial 2 (30 min limit; 24-29 min on passing runs) on PR 47 and PR 51, and on main 8697998 Lint 2 (Lint canonical partition, 30 min) and Stock macOS Bash snapshot compatibility (20 min). Each cancellation makes Full suite fail with no real test failure.

What Changed

  • Refresh CI duration hints and rebalance portable tests across sixteen serial shards and three parallel shards.
  • Generalize canonical lint partitioning to <k>of<n> and expand CI lint to three partitions.
  • Wire the third parallel shard into timing aggregation and Full suite; update coverage guards, regression tests, and shard documentation.

Risk Assessment

⚠️ Medium: The CI rebalance is well-bounded and the coverage guard still passes: 16 serial and 3 parallel shards, modeled serial max 1105643 ms under the 1200000 ms budget, and 3 lint partitions that are complete and disjoint. But 39 placeholder hints set to the default weight silently disarm the unmeasured-hint guard and misstate where the hints came from; that should be fixed as a follow-up.

Testing

Both focused suites and live CLI inventory/refusal checks passed. Disposable guard experiments and workflow analysis do not establish live scenario results. Four JSON evidence artifacts were saved. No source changes or transient worktree artifacts remain. Remote CI timing awaits the outer executor.

  • Live validation: ⚠️ inconclusive - 3 of 7 scenarios driven live against the product
Scenario Result Live Evidence
Select three parallel lanes and sixteen serial shards; coverage is complete, disjoint, deterministic, and within the modeled budget ✅ pass live live-partitions.json
List three canonical lint partitions; each selects 200 roots and their union covers every canonical root exactly once ✅ pass live live-partitions.json
Request stale shard counts, invalid indices, or weakened lint partition modes; commands refuse with exit 2 ✅ pass live live-partitions.json
Move Pi into lane 2 in a disposable runner; the coverage guard rejects its placement ⏸️ untested no The prior payload records a disposable runner experiment with live=false; it does not establish that this scenario was driven against the live product.
Exercise packing-budget boundaries; exact budget passes, excess fails, and refreshed timings reject twelve-shard packing ⏸️ untested no The prior payload records non-live tests and disposable packing experiments with live=false; it does not establish a live result for these budget boundaries.
Evaluate workflow semantics; matrices match executable partitions and aggregation retains all required lanes and failure results ⏸️ untested no The prior payload records workflow contract checks and parsed YAML with live=false; it does not establish execution of these workflow semantics against the live product.
Run Linux and macOS CI jobs to completion without timeout cancellations ⏸️ untested no This Test-phase agent lacks authority to execute the CI phase. The outer executor must run and observe GitHub Actions on the target commit to establish actual job durations.
Evidence: Live CLI partition listings and refusals

Source: Live CLI partition listings and refusals

{
  "coverage": {
    "command": [
      "bin/fm-test-run.sh",
      "--check-coverage"
    ],
    "exit": 0,
    "stdout": "FM_TEST_COVERAGE ok total=334 parallel=26 parallel_max_ms=934441 parallel_imbalance_ms=606 parallel_unhinted=0 serial=292 serial_shards=16 serial_unhinted=39 serial_max_ms=1105643 serial_budget_ms=1200000 herdr=16\n",
    "stderr": ""
  },
  "lanes": {
    "command": [
      "bin/fm-test-run.sh",
      "--list-lanes"
    ],
    "exit": 0,
    "stdout": "portable-parallel-1\nportable-parallel-2\nportable-parallel-3\nportable-serial\nportable-serial-1of16\nportable-serial-2of16\nportable-serial-3of16\nportable-serial-4of16\nportable-serial-5of16\nportable-serial-6of16\nportable-serial-7of16\nportable-serial-8of16\nportable-serial-9of16\nportable-serial-10of16\nportable-serial-11of16\nportable-serial-12of16\nportable-serial-13of16\nportable-serial-14of16\nportable-serial-15of16\nportable-serial-16of16\nreal-herdr-gated\n",
    "stderr": ""
  },
  "partition_listings": [
    {
      "command": [
        "bin/fm-test-run.sh",
        "--list",
        "--lane",
        "portable-parallel-1"
      ],
      "exit": 0,
      "stdout": "tests/fm-captain-hold-lifecycle.test.sh\ntests/fm-crew-state.test.sh\ntests/fm-composer-lib.test.sh\ntests/fm-pi-primary-types.test.sh\ntests/fm-cd-pretool-check.test.sh\ntests/fm-send-popup-settle.test.sh\ntests/fm-spawn-batch.test.sh\ntests/fm-tmux-submit-busy.test.sh\n",
      "stderr": ""
    },
    {
      "command": [
        "bin/fm-test-run.sh",
        "--list",
        "--lane",
        "portable-parallel-2"
      ],
      "exit": 0,
      "stdout": "tests/fm-pr-merge.test.sh\ntests/fm-backend-t3code.test.sh\ntests/fm-x-mode.test.sh\ntests/fm-herdr-lab.test.sh\ntests/fm-review-diff.test.sh\ntests/fm-grok-harness.test.sh\ntests/fm-send-settle.test.sh\ntests/fm-supervision-instructions.test.sh\ntests/fm-ensure-agents-md.test.sh\n",
      "stderr": ""
    },
    {
      "command": [
        "bin/fm-test-run.sh",
        "--list",
        "--lane",
        "portable-parallel-3"
      ],
      "exit": 0,
      "stdout": "tests/fm-test-run.test.sh\ntests/fm-lint.test.sh\ntests/fm-t3-mcp.test.sh\ntests/fm-backend-herdr.test.sh\ntests/fm-arm-pretool-check.test.sh\ntests/fm-brief.test.sh\ntests/fm-send-strict.test.sh\ntests/fm-composer-ghost.test.sh\ntests/fm-transition-lib.test.sh\n",
      "stderr": ""
    },
    {
      "command": [
        "bin/fm-test-run.sh",
        "--list",
        "--lane",
        "portable-serial-1of16"
      ],
      "exit": 0,
      "stdout": "tests/fm-watch-triage.test.sh\ntests/fm-wake-daemon-lifecycle-e2e.test.sh\ntests/fm-herdr-groups.test.sh\ntests/fm-operational-input.test.sh\ntests/fm-harness-liveness-drift-live-e2e.test.sh\ntests/fm-trace-context-lib.test.sh\ntests/fm-polytoken-signals-live-e2e.test.sh\ntests/fm-pi-codex-native.test.sh\ntests/fm-pr-state-live-e2e.test.sh\ntests/fm-backend-zellij-smoke.test.sh\n",
      "stderr": ""
    },
    {
      "command": [
        "bin/fm-test-run.sh",
        "--list",
        "--lane",
        "portable-serial-2of16"
      ],
      "exit": 0,
      "stdout": "tests/fm-remote-secondmate-lifecycle-e2e.test.sh\ntests/fm-timeout-lib.test.sh\ntests/fm-afk-entry-brief.test.sh\ntests/fm-secondmate-lifecycle-e2e.test.sh\ntests/fm-backend-zellij.test.sh\ntests/fm-harness-precedence.test.sh\ntests/fm-quota-choose.test.sh\ntests/fm-lint-workflows.test.sh\ntests/fm-pr-state.test.sh\ntests/fm-codex-continuity-live-e2e.test.sh\ntests/fm-sessionstart-hook-live-e2e.test.sh\ntests/fm-bearings-board-lavish-live-e2e.test.sh\ntests/fm-sessionstart-instruction-refresh-live-e2e.test.sh\n",
      "stderr": ""
    },
    {
      "command": [
        "bin/fm-test-run.sh",
        "--list",
        "--lane",
        "portable-serial-3of16"
      ],
      "exit": 0,
      "stdout": "tests/fm-watch-triage-wedge-defer.test.sh\ntests/fm-control.test.sh\ntests/fm-remote-transport-lanes.test.sh\ntests/fm-remote-job-launchagent.test.sh\ntests/fm-bearings-board.test.sh\ntests/fm-hermes-harness.test.sh\ntests/fm-remote-inherit-generation.test.sh\ntests/fm-vendor-auth-probe.test.sh\ntests/fm-backend.test.sh\ntests/fm-classify-corr-token.test.sh\ntests/fm-live-gate.test.sh\ntests/fm-inbox.test.sh\ntests/fm-devin-harness.test.sh\ntests/fm-test-linux.test.sh\ntests/fm-read-repetition-live.test.sh\ntests/fm-opencode-primary-live-e2e.test.sh\ntests/fm-afk-pi-herdr-return-e2e.test.sh\ntests/fm-devin-signals-live-e2e.test.sh\n",
      "stderr": ""
    },
    {
      "command": [
        "bin/fm-test-run.sh",
        "--list",
        "--lane",
        "portable-serial-4of16"
      ],
      "exit": 0,
      "stdout": "tests/fm-supervision-host.test.sh\ntests/fm-pi-branch-extension.test.sh\ntests/fm-sessionstart-nudge.test.sh\ntests/fm-secondmate-sync.test.sh\ntests/fm-daemon.test.sh\ntests/fm-hc-lab.test.sh\ntests/fm-record-export.test.sh\ntests/fm-usage-warner.test.sh\ntests/fm-herdr-projected-cd-live-e2e.test.sh\ntests/fm-fleet-ledger.test.sh\ntests/fm-shared-captain-inheritance.test.sh\ntests/fm-live-lab-isolation.test.sh\ntests/fm-test-isolation-proof.test.sh\ntests/fm-pi-seeded-home-trust-live-e2e.test.sh\ntests/fm-jev-mem-guard.test.sh\ntests/fm-pr-reviewers.test.sh\ntests/fm-supervision-host-live-e2e.test.sh\ntests/fm-cortex-signals-live-e2e.test.sh\n",
      "stderr": ""
    },
    {
      "command": [
        "bin/fm-test-run.sh",
        "--list",
        "--lane",
        "portable-serial-5of16"
      ],
      "exit": 0,
      "stdout": "tests/fm-spawn-dispatch-profile.test.sh\ntests/fm-remote-job.test.sh\ntests/fm-remote-secondmate-parent-binding.test.sh\ntests/fm-startup-network.test.sh\ntests/fm-send-inbox.test.sh\ntests/fm-backend-rex-eventwait-smoke.test.sh\ntests/fm-opencode-abs-cwd-rail-live-e2e.test.sh\ntests/fm-send-kiro-confirm.test.sh\ntests/fm-codex-stop-park.test.sh\ntests/fm-watch-checkpoint.test.sh\ntests/fm-tangle-guard.test.sh\ntests/fm-cortex-harness.test.sh\ntests/fm-remote-job-orphan-reap.test.sh\ntests/fm-gemini-harness.test.sh\ntests/fm-backend-tmux-smoke.test.sh\ntests/fm-herdr-submit-confirm-live-e2e.test.sh\ntests/fm-cmux-claude-composer-live-e2e.test.sh\ntests/fm-grok-stop-live-e2e.test.sh\ntests/fm-backend-paseo-smoke.test.sh\n",
      "stderr": ""
    },
    {
      "command": [
        "bin/fm-test-run.sh",
        "--list",
        "--lane",
        "portable-serial-6of16"
      ],
      "exit": 0,
      "stdout": "tests/fm-watch-triage-pause.test.sh\ntests/fm-busy-adapter-wiring.test.sh\ntests/fm-cursor-primary.test.sh\ntests/fm-project-capacity.test.sh\ntests/fm-calm-pi-extension.test.sh\ntests/fm-backend-hc-appdetect-smoke.test.sh\ntests/fm-kiro-signals-live-e2e.test.sh\ntests/fm-review-check.test.sh\ntests/fm-spawn-compact-adviser-disable.test.sh\ntests/fm-extension-binding.test.sh\ntests/fm-guard-stale-banner.test.sh\ntests/fm-spawn-worktree-settle.test.sh\ntests/fm-send-agy-confirm.test.sh\ntests/fm-classify-decision-key.test.sh\ntests/fm-warm-compact.test.sh\ntests/fm-subagent-pretool-check.test.sh\ntests/fm-project-origin.test.sh\ntests/fm-commandcode-signals-live-e2e.test.sh\ntests/fm-launch-prompt-signals-live-e2e.test.sh\n",
      "stderr": ""
    },
    {
      "command": [
        "bin/fm-test-run.sh",
        "--list",
        "--lane",
        "portable-serial-7of16"
      ],
      "exit": 0,
      "stdout": "tests/fm-teardown.test.sh\ntests/fm-remote-secondmate-trace-context.test.sh\ntests/fm-secondmate-reconcile.test.sh\ntests/fm-teardown-endpoint-safety.test.sh\ntests/fm-watch-recovery-loop.test.sh\ntests/fm-watch-wedge-cap-unconfigured-parity.test.sh\ntests/fm-capacity.test.sh\ntests/fm-pipeline-spend.test.sh\ntests/fm-spawn-herdr-lease.test.sh\ntests/fm-fleet-snapshot-view.test.sh\ntests/fm-backend-tern.test.sh\ntests/fm-ci-workflow.test.sh\ntests/fm-backend-hc-liveness-live-e2e.test.sh\ntests/fm-stow-cascade.test.sh\ntests/fm-calm-claude-mod.test.sh\ntests/fm-forge-detect.test.sh\ntests/fm-ask-user-authority.test.sh\ntests/fm-composer-codex-idle-live-e2e.test.sh\ntests/fm-muse-signals-live-e2e.test.sh\ntests/fm-backend-cmux-smoke.test.sh\n",
      "stderr": ""
    },
    {
      "command": [

... [43534 bytes truncated] ...

sh\nbin/fm-harness.sh\nbin/fm-hc-ci-cleanup.sh\nbin/fm-hc-lab.sh\nbin/fm-herdr-ci-cleanup.sh\nbin/fm-herdr-groups.sh\nbin/fm-herdr-lab.sh\nbin/fm-hermes-hook.sh\nbin/fm-hermes-lib.sh\nbin/fm-home-seed.sh\nbin/fm-inbox.sh\nbin/fm-install-hc.sh\nbin/fm-kimi-trust-lib.sh\nbin/fm-lint-workflows.sh\nbin/fm-lint.sh\nbin/fm-lock-lib.sh\nbin/fm-mail-check.sh\nbin/fm-merge-authority-lib.sh\nbin/fm-nm-run-lib.sh\nbin/fm-omp-profile-lib.sh\nbin/fm-osc7501.sh\nbin/fm-parent-channel-lib.sh\nbin/fm-pr-check.sh\nbin/fm-pr-health.sh\nbin/fm-pr-poll.sh\nbin/fm-pr-reviewers.sh\nbin/fm-primary-scope-lib.sh\nbin/fm-procevent-lavish.sh\nbin/fm-procevent-when.sh\nbin/fm-project-origin-lib.sh\nbin/fm-quota-axi-lib.sh\nbin/fm-remote-entrypoint.sh\nbin/fm-remote-herdr-owner-lib.sh\nbin/fm-remote-job-lib.sh\nbin/fm-remote-job-reap-orphans.sh\nbin/fm-remote-job-worker.sh\nbin/fm-remote-secondmate-control.sh\nbin/fm-role-lib.sh\nbin/fm-role.sh\nbin/fm-secondmate-nudge-lib.sh\nbin/fm-secondmate-reconcile.sh\nbin/fm-secondmate-registry-lib.sh\nbin/fm-secondmate-report.sh\nbin/fm-secondmate-restart-lib.sh\nbin/fm-session-start.sh\nbin/fm-sessionstart-run.sh\nbin/fm-startup-memory-budget.sh\nbin/fm-startup-network.sh\nbin/fm-supervise-daemon.sh\nbin/fm-supervision-handoff.sh\nbin/fm-supervision-instructions.sh\nbin/fm-tasks-axi-lib.sh\nbin/fm-test-isolation-proof.sh\nbin/fm-trace-context-lib.sh\nbin/fm-turnend-guard-grok.sh\nbin/fm-wake-drain.sh\nbin/fm-wake-lib.sh\nbin/fm-wake-surface-lib.sh\nbin/fm-watch-arm.sh\nbin/fm-worker-account-lib.sh\nbin/fm-x-link.sh\nbin/backends/cmux.sh\nbin/backends/herdr.sh\nbin/backends/rex.sh\ntests/fixtures.sh\ntests/fm-afk-inject-herdr-e2e.test.sh\ntests/fm-afk-launch.test.sh\ntests/fm-agy-primary.test.sh\ntests/fm-arm-pretool-check.test.sh\ntests/fm-ask-user-authority.test.sh\ntests/fm-backend-autodetect-smoke.test.sh\ntests/fm-backend-hc.test.sh\ntests/fm-backend-herdr-presentation-e2e.test.sh\ntests/fm-backend-herdr-workspace-per-home-e2e.test.sh\ntests/fm-backend-orca.test.sh\ntests/fm-backend-rex-composer-live-e2e.test.sh\ntests/fm-backend-rex-eventwait-smoke.test.sh\ntests/fm-backend-t3code-live-e2e.test.sh\ntests/fm-backend-t3code-pr-tools-live-e2e.test.sh\ntests/fm-backend-zellij.test.sh\ntests/fm-backlog-read-bound.test.sh\ntests/fm-bearings-snapshot.test.sh\ntests/fm-bootstrap.test.sh\ntests/fm-captain-hold-lifecycle.test.sh\ntests/fm-cd-pretool-check.test.sh\ntests/fm-ci-workflow.test.sh\ntests/fm-claude-trust.test.sh\ntests/fm-codex-continuity-live-e2e.test.sh\ntests/fm-codex-hook-layer-live-e2e.test.sh\ntests/fm-codex-stop-park.test.sh\ntests/fm-commandcode-signals-live-e2e.test.sh\ntests/fm-contributions.test.sh\ntests/fm-control-herdr-smoke.test.sh\ntests/fm-control.test.sh\ntests/fm-crew-state.test.sh\ntests/fm-devin-signals-live-e2e.test.sh\ntests/fm-documentation-audiences.test.sh\ntests/fm-fleet-ledger.test.sh\ntests/fm-fleet-snapshot-view.test.sh\ntests/fm-gemini-harness.test.sh\ntests/fm-gotmp.test.sh\ntests/fm-guard-stale-banner.test.sh\ntests/fm-herdr-groups.test.sh\ntests/fm-herdr-lab.test.sh\ntests/fm-hermes-harness.test.sh\ntests/fm-hermes-profile-safety-live-e2e.test.sh\ntests/fm-host-mirror-live-e2e.test.sh\ntests/fm-install-herdr.test.sh\ntests/fm-kimi-trust-prompt-live-e2e.test.sh\ntests/fm-kiro-signals-live-e2e.test.sh\ntests/fm-live-gate.test.sh\ntests/fm-nm-test-contract.test.sh\ntests/fm-on.test.sh\ntests/fm-operational-input.test.sh\ntests/fm-peek-remote.test.sh\ntests/fm-pending-reply.test.sh\ntests/fm-pi-branch-live-e2e.test.sh\ntests/fm-pi-primary-types.test.sh\ntests/fm-pi-watch-extension.test.sh\ntests/fm-pr-reviewers.test.sh\ntests/fm-pr-state-live-e2e.test.sh\ntests/fm-project-capacity.test.sh\ntests/fm-read-repetition-live.test.sh\ntests/fm-remote-entrypoint.test.sh\ntests/fm-remote-inherit-generation.test.sh\ntests/fm-remote-job-claim-reap.test.sh\ntests/fm-remote-job-claim-retention.test.sh\ntests/fm-remote-job-orphan-reap.test.sh\ntests/fm-remote-job-process-start.test.sh\ntests/fm-remote-secondmate-trace-context.test.sh\ntests/fm-rovo-harness.test.sh\ntests/fm-self-repo-role.test.sh\ntests/fm-send-agy-confirm.test.sh\ntests/fm-send-inbox-doorbell-live-e2e.test.sh\ntests/fm-send-popup-settle.test.sh\ntests/fm-send-remote-delivery.test.sh\ntests/fm-send-secondmate-marker.test.sh\ntests/fm-send-settle.test.sh\ntests/fm-session-lock-ancestry.test.sh\ntests/fm-session-lock-ps-denied.test.sh\ntests/fm-session-start.test.sh\ntests/fm-sessionstart-instruction-refresh-live-e2e.test.sh\ntests/fm-sessionstart-nudge.test.sh\ntests/fm-shared-captain-inheritance.test.sh\ntests/fm-spawn-batch.test.sh\ntests/fm-spawn-compact-adviser-disable-remote.test.sh\ntests/fm-spawn-slot-ownership.test.sh\ntests/fm-stow-cascade.test.sh\ntests/fm-subagent-pretool-check.test.sh\ntests/fm-supervision-events.test.sh\ntests/fm-supervision-host-live-e2e.test.sh\ntests/fm-supervision-instructions.test.sh\ntests/fm-task-delivery.test.sh\ntests/fm-task-inbox.test.sh\ntests/fm-tasks-axi.test.sh\ntests/fm-teardown-endpoint-safety.test.sh\ntests/fm-test-fixture-cleanup.test.sh\ntests/fm-test-linux.test.sh\ntests/fm-test-tap-verify.test.sh\ntests/fm-tmux-submit-busy.test.sh\ntests/fm-trace-context-lib.test.sh\ntests/fm-turnend-foreign-owner-arm-fix.test.sh\ntests/fm-turnend-guard.test.sh\ntests/fm-vendor-auth-probe.test.sh\ntests/fm-voice-relay.test.sh\ntests/fm-wake-drain-open-decisions-cursor.test.sh\ntests/fm-wake-drain-unread-status.test.sh\ntests/fm-wake-queue.test.sh\ntests/fm-warm-compact.test.sh\ntests/fm-watch-checkpoint.test.sh\ntests/fm-watch-open-decisions.test.sh\ntests/fm-watch-triage.test.sh\ntests/fm-watch-wedge-cap-unconfigured-parity.test.sh\ntests/fm-watcher-lock.test.sh\ntests/herdr-client-pair-fixture.sh\ntests/secondmate-helpers.sh\n",
      "stderr": "",
      "root_count": 200,
      "root_bytes": 7182206
    }
  ],
  "lint_refusals": [
    {
      "command": [
        "bin/fm-lint.sh",
        "--partition",
        "0of3",
        "--list-files"
      ],
      "exit": 2,
      "stdout": "",
      "stderr": "fm-lint.sh: --partition must be <k>of<n>, got 0of3.\n"
    },
    {
      "command": [
        "bin/fm-lint.sh",
        "--partition",
        "4of3",
        "--list-files"
      ],
      "exit": 2,
      "stdout": "",
      "stderr": "fm-lint.sh: --partition index is outside 1..3, got 4of3.\n"
    },
    {
      "command": [
        "bin/fm-lint.sh",
        "--partition",
        "1of1",
        "--list-files"
      ],
      "exit": 2,
      "stdout": "",
      "stderr": "fm-lint.sh: --partition must be <k>of<n> with n at least 2, got 1of1.\n"
    },
    {
      "command": [
        "bin/fm-lint.sh",
        "--partition",
        "01of3",
        "--list-files"
      ],
      "exit": 2,
      "stdout": "",
      "stderr": "fm-lint.sh: --partition must be <k>of<n>, got 01of3.\n"
    },
    {
      "command": [
        "bin/fm-lint.sh",
        "--partition",
        "1of03",
        "--list-files"
      ],
      "exit": 2,
      "stdout": "",
      "stderr": "fm-lint.sh: --partition must be <k>of<n> with n at least 2, got 1of03.\n"
    },
    {
      "command": [
        "bin/fm-lint.sh",
        "--partition",
        "1of3of3",
        "--list-files"
      ],
      "exit": 2,
      "stdout": "",
      "stderr": "fm-lint.sh: --partition must be <k>of<n>, got 1of3of3.\n"
    },
    {
      "command": [
        "bin/fm-lint.sh",
        "--partition",
        "1of3",
        "--fast",
        "--list-files"
      ],
      "exit": 2,
      "stdout": "",
      "stderr": "fm-lint.sh: --partition requires full canonical lint; omit --fast and explicit paths.\n"
    },
    {
      "command": [
        "bin/fm-lint.sh",
        "--partition",
        "1of3",
        "--list-files",
        "bin/fm-lint.sh"
      ],
      "exit": 2,
      "stdout": "",
      "stderr": "fm-lint.sh: --partition requires full canonical lint; omit --fast and explicit paths.\n"
    }
  ],
  "assertions": "Complete disjoint deterministic runner partitions; parallel scheduled ordering; Pi lane 1; stale/invalid lane refusal; complete disjoint two- and three-way lint inventories; malformed and weakened lint partition refusal."
}
Evidence: Baseline packing and disposable Pi relocation experiment

Source: Baseline packing and disposable Pi relocation experiment

{
  "base": {
    "exit": 0,
    "stdout": "FM_TEST_COVERAGE ok total=334 parallel=26 parallel_max_ms=814249 parallel_imbalance_ms=552 parallel_unhinted=0 serial=292 serial_shards=12 serial_unhinted=43 serial_max_ms=1105445 serial_budget_ms=1200000 herdr=16\n",
    "stderr": ""
  },
  "relocated_pi_lane2_listing": {
    "exit": 0,
    "stdout": "tests/fm-pi-primary-types.test.sh\ntests/fm-pr-merge.test.sh\ntests/fm-backend-t3code.test.sh\ntests/fm-x-mode.test.sh\ntests/fm-herdr-lab.test.sh\ntests/fm-review-diff.test.sh\ntests/fm-grok-harness.test.sh\ntests/fm-send-settle.test.sh\ntests/fm-supervision-instructions.test.sh\ntests/fm-ensure-agents-md.test.sh\n",
    "stderr": ""
  },
  "relocated_pi_guard": {
    "exit": 1,
    "stdout": "",
    "stderr": "fm-test-run: coverage guard: tests/fm-pi-primary-types.test.sh must stay in portable-parallel-1\n"
  }
}
Evidence: Former shard count exceeds packing budget

Source: Former shard count exceeds packing budget

{
  "experiment": "Current measured timings with former twelve-shard packing",
  "exit": 1,
  "stdout": "",
  "stderr": "fm-test-run: coverage guard: largest portable serial shard packs 1474182ms above the 1200000ms target\nfm-test-run: refresh CI hints and rebalance or add shards; do not raise the job timeout: docs/fm-test-portable-shards.md\n"
}
Evidence: Normalized workflow execution plan

Source: Normalized workflow execution plan

{
  "lint": {
    "name": "${{ (github.event.action == 'labeled' && github.event.label.name != 'full-ci') && 'Not run for label - ' || '' }}Lint ${{ matrix.partition }}",
    "runs-on": "ubuntu-24.04",
    "timeout-minutes": 30,
    "strategy": {
      "fail-fast": false,
      "matrix": {
        "partition": [
          1,
          2,
          3
        ]
      }
    }
  },
  "tests-portable-parallel-1": {
    "name": "${{ (github.event.action == 'labeled' && github.event.label.name != 'full-ci') && 'Not run for label - ' || '' }}Behavior portable parallel 1",
    "runs-on": "ubuntu-24.04",
    "timeout-minutes": 30
  },
  "tests-portable-parallel-2": {
    "name": "${{ (github.event.action == 'labeled' && github.event.label.name != 'full-ci') && 'Not run for label - ' || '' }}Behavior portable parallel 2",
    "runs-on": "ubuntu-24.04",
    "timeout-minutes": 30
  },
  "tests-portable-parallel-3": {
    "name": "${{ (github.event.action == 'labeled' && github.event.label.name != 'full-ci') && 'Not run for label - ' || '' }}Behavior portable parallel 3",
    "runs-on": "ubuntu-24.04",
    "timeout-minutes": 30
  },
  "tests-portable-serial": {
    "name": "${{ (github.event.action == 'labeled' && github.event.label.name != 'full-ci') && 'Not run for label - ' || '' }}Behavior portable serial ${{ matrix.shard }}",
    "runs-on": "ubuntu-24.04",
    "timeout-minutes": 30,
    "strategy": {
      "fail-fast": false,
      "matrix": {
        "shard": [
          1,
          2,
          3,
          4,
          5,
          6,
          7,
          8,
          9,
          10,
          11,
          12,
          13,
          14,
          15,
          16
        ]
      }
    }
  },
  "tests-timing-aggregate": {
    "name": "${{ (github.event.action == 'labeled' && github.event.label.name != 'full-ci') && 'Not run for label - ' || '' }}Behavior timing aggregate",
    "runs-on": "ubuntu-24.04",
    "timeout-minutes": 5,
    "needs": [
      "tests-portable-parallel-1",
      "tests-portable-parallel-2",
      "tests-portable-parallel-3",
      "tests-portable-serial",
      "tests-herdr",
      "tests-hc"
    ]
  },
  "macos-stock-bash": {
    "name": "${{ (github.event.action == 'labeled' && github.event.label.name != 'full-ci') && 'Not run for label - ' || '' }}Stock macOS Bash snapshot compatibility",
    "runs-on": "macos-latest",
    "timeout-minutes": 30
  },
  "full-suite": {
    "name": "${{ (github.event.action == 'labeled' && github.event.label.name != 'full-ci') && 'Not run for label - ' || '' }}Full suite",
    "runs-on": "ubuntu-24.04",
    "timeout-minutes": 5,
    "needs": [
      "lint",
      "test-coverage",
      "tests-portable-parallel-1",
      "tests-portable-parallel-2",
      "tests-portable-parallel-3",
      "tests-portable-serial",
      "tests-herdr",
      "tests-hc",
      "macos-stock-bash",
      "invariants"
    ]
  }
}
- Outcome: ⚠️ 1 warning across 1 run (11m42s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 1 info
  • ⚠️ bin/fm-test-run.sh:762 - The serial hint table gains 39 new entries set to exactly 45000 ms. That is PORTABLE_SERIAL_DEFAULT_WEIGHT_MS, not a CI measurement. Examples: tests/fm-assertions.test.sh:762, fm-backend-hc-appdetect-smoke:765, fm-backend-rex*.test.sh:772-775, fm-capacity:801, fm-hermes-:859-862, fm-kiro-:872-873, fm-merge-local:882, fm-project-mode:919, fm-record-export*:926-927, fm-remote-*:929-935, and fm-watch-open-decisions:1031. All 39 are portable-serial members. Because they equal the default, packing does not change. What changes is the guard: --check-coverage drops from serial_unhinted=43 at the base commit to serial_unhinted=0 here. That turns off the PORTABLE_SERIAL_MAX_UNHINTED_PERCENT (15%) guard and the test test_portable_serial_hint_coverage_is_reported_and_bounded for about 13% of the lane, and it misreports where the numbers came from. The commit message and docs say the hints are 'the slower successful script durations from CI runs', but these are guesses. Concrete failure: new unmeasured serial tests can now take a fresh 15% of the lane before the guard trips, while 39 guessed scripts already sit in the packing. A long guessed script (for example the Rex suites) can push a shard past its cap while the guard reports zero unmeasured. Fix: delete the 39 new 45000 lines. Packing is unchanged, and the guard still passes, since 39/292 is about 13.4%, under 15%. The guard then reports the true unmeasured share again. The existing provisional fm-agy-primary 45000 entry is documented and is not part of this finding.
  • ⚠️ .github/workflows/ci.yml:190 - Parallel lanes 2 and 3 now run npm install -g @earendil-works/pi-coding-agent and --fail-on-gate-skip &#39;Pi extension typecheck prerequisite not found&#39; (.github/workflows/ci.yml:190-200 and :235-246). The only script that emits that gate token is tests/fm-pi-primary-types.test.sh, and the new LPT split keeps it in list_portable_parallel_1 (bin/fm-test-run.sh:608-618). Nothing the intent requires needs these lane 2/3 steps: they add a global npm install to each of those runners only to support a possible future rebalance. Strictly, the narrower form is the Pi install on lane 1 only. Removing the lane 2/3 steps is that narrower form, but the author may prefer the rebalance-safety tradeoff, so this needs a decision.
  • ℹ️ .github/workflows/ci.yml:589 - The intent lists 'Stock macOS Bash snapshot compatibility (20 min)' as one of the cancellations. This change does not touch the macOS job, but in source it is already timeout-minutes: 30 at both the base commit and 8697998 (normal tier). So no source change is needed here; whether it now finishes inside 30 minutes is up to later CI observation.

🔧 Fix applied.
2 issues (1 warning, 1 info) still open:

  • ⚠️ bin/fm-test-run.sh:762 - The serial hint table gains 39 new entries set to exactly 45000 ms. That is PORTABLE_SERIAL_DEFAULT_WEIGHT_MS, not a CI measurement. Examples: tests/fm-assertions.test.sh:762, fm-backend-hc-appdetect-smoke:765, fm-backend-rex*.test.sh:772-775, fm-capacity:801, fm-hermes-:859-862, fm-kiro-:872-873, fm-merge-local:882, fm-project-mode:919, fm-record-export*:926-927, fm-remote-*:929-935, and fm-watch-open-decisions:1031. All 39 are portable-serial members. Because they equal the default, packing does not change. What changes is the guard: --check-coverage drops from serial_unhinted=43 at the base commit to serial_unhinted=0 here. That turns off the PORTABLE_SERIAL_MAX_UNHINTED_PERCENT (15%) guard and the test test_portable_serial_hint_coverage_is_reported_and_bounded for about 13% of the lane, and it misreports where the numbers came from. The commit message and docs say the hints are 'the slower successful script durations from CI runs', but these are guesses. Concrete failure: new unmeasured serial tests can now take a fresh 15% of the lane before the guard trips, while 39 guessed scripts already sit in the packing. A long guessed script (for example the Rex suites) can push a shard past its cap while the guard reports zero unmeasured. Fix: delete the 39 new 45000 lines. Packing is unchanged, and the guard still passes, since 39/292 is about 13.4%, under 15%. The guard then reports the true unmeasured share again. The existing provisional fm-agy-primary 45000 entry is documented and is not part of this finding.
  • ℹ️ .github/workflows/ci.yml:589 - The intent lists 'Stock macOS Bash snapshot compatibility (20 min)' as one of the cancellations. This change does not touch the macOS job, but in source it is already timeout-minutes: 30 at both the base commit and 8697998 (normal tier). So no source change is needed here; whether it now finishes inside 30 minutes is up to later CI observation.

🔧 Fix applied.
2 issues (1 warning, 1 info) still open:

  • ℹ️ .github/workflows/ci.yml:589 - The intent lists 'Stock macOS Bash snapshot compatibility (20 min)' as one of the cancellations. This change does not touch the macOS job, but in source it is already timeout-minutes: 30 at both the base commit and 8697998 (normal tier). So no source change is needed here; whether it now finishes inside 30 minutes is up to later CI observation.
  • ⚠️ docs/fm-test-portable-shards.md:27 - The change replaced about 200 serial hints in bin/fm-test-run.sh with durations from CI runs 42627283545/42599636961. Several provenance sentences in this doc, which owns hint provenance, still quote the old values as the current hint and give the old source. That is now false: the base commit's hints matched these sentences, and this change broke the match. Sites: :27 says fm-approval-failover is 'a provisional local measurement of 5410 ms', but the hint is 10103 (bin/fm-test-run.sh:758). :26 says polytoken-harness is 21090 ms, but the hint is 27135 (:884). :33 says read-repetition-live is 1110 ms, but the hint is 1212 (:900). :38 says agy-primary-live-e2e is 75 ms, but the hint is 84 (:755). :40 says wedge-cap-live is 74 ms, but the hint is 188 (:995). :42 says the wedge-cap parity suite 'packs' 27763 ms, but the hint is 47201 (:996). :46 says T3 watch-inbox-meta is 283 ms and pr-tools-live-e2e is 52 ms, but the hints are 419 (:990) and 56 (:769). :24 says the supervision-host weights are 'local duration_ms scaled by ~2.3', but fm-supervision-host.test.sh is now the CI-derived 573730 (:958). Fix: update each of these sentences to the current values and the 42627283545/42599636961 source, or reduce them to the hints that are still provisional.

🔧 Fix applied.
4 issues (3 warnings, 1 info) still open:

  • ℹ️ .github/workflows/ci.yml:589 - The intent lists 'Stock macOS Bash snapshot compatibility (20 min)' as one of the cancellations. This change does not touch the macOS job, but in source it is already timeout-minutes: 30 at both the base commit and 8697998 (normal tier). So no source change is needed here; whether it now finishes inside 30 minutes is up to later CI observation.
  • ⚠️ docs/fm-test-portable-shards.md:27 - The change replaced about 200 serial hints in bin/fm-test-run.sh with durations from CI runs 42627283545/42599636961. Several provenance sentences in this doc, which owns hint provenance, still quote the old values as the current hint and give the old source. That is now false: the base commit's hints matched these sentences, and this change broke the match. Sites: :27 says fm-approval-failover is 'a provisional local measurement of 5410 ms', but the hint is 10103 (bin/fm-test-run.sh:758). :26 says polytoken-harness is 21090 ms, but the hint is 27135 (:884). :33 says read-repetition-live is 1110 ms, but the hint is 1212 (:900). :38 says agy-primary-live-e2e is 75 ms, but the hint is 84 (:755). :40 says wedge-cap-live is 74 ms, but the hint is 188 (:995). :42 says the wedge-cap parity suite 'packs' 27763 ms, but the hint is 47201 (:996). :46 says T3 watch-inbox-meta is 283 ms and pr-tools-live-e2e is 52 ms, but the hints are 419 (:990) and 56 (:769). :24 says the supervision-host weights are 'local duration_ms scaled by ~2.3', but fm-supervision-host.test.sh is now the CI-derived 573730 (:958). Fix: update each of these sentences to the current values and the 42627283545/42599636961 source, or reduce them to the hints that are still provisional.
  • ⚠️ docs/fm-test-portable-shards.md:12 - Sibling that the round-3 provenance fix left behind. Round 3 fixed only the serial-hint sentences. The change also rewrote all 26 entries in portable_parallel_weight_hints (bin/fm-test-run.sh:566-591): fm-captain-hold-lifecycle went from 343658 to 720304, fm-pr-merge from 300199 to 598530, fm-test-run from 156781 to 395643, fm-lint from 252498 to 370014, and so on. The doc that owns hint provenance still says at :12 that 'Both hint tables were refreshed on 2026-09-30 from five Ubuntu CI runs', and nowhere names a source for the new parallel values. The only new-source sentence, :74, covers the serial table. A related stale sentence is :130, 'verifies that both parallel lanes partition the proven-isolated set'; there are now three lanes (PORTABLE_PARALLEL_SHARDS=3). Fix: at :12, say the parallel table (and the serial entries already noted) now comes from CI runs 42627283545/42599636961, or add one sentence in the Parallel lanes section (around :68) saying so. Change :130 to 'the parallel lanes'.
  • ⚠️ bin/fm-test-run.sh:606 - The original commit (e58494e) deleted two things: the runner comment saying 'tests/fm-pi-primary-types.test.sh runs the production-consumer typecheck here' above list_portable_parallel_1, and the doc's mention of 'lane-specific prerequisite constraints'. Round 2 then kept the Pi install and --fail-on-gate-skip &#39;Pi extension typecheck prerequisite not found&#39; on parallel lane 1 only (.github/workflows/ci.yml:144-156), on the stated basis that this is 'where tests/fm-pi-primary-types.test.sh runs'. Nothing in the runner now records that this script must stay in lane 1, and no test checks it. Today it lands there only because of LPT packing over the current hints. Concrete sequence: the documented refresh procedure (docs/fm-test-portable-shards.md:68) is run, and the new hints move fm-pi-primary-types into lane 2 or 3. That lane has no gate-skip guard, so a missing prerequisite becomes a silent capability skip instead of a failure. Fix: restore the removed comment at list_portable_parallel_1, or add a one-line coverage-guard check that the script is in portable-parallel-1. Do not re-add the Pi steps to lanes 2 and 3; the user rejected that.

🔧 Fix applied.
4 issues (3 warnings, 1 info) still open:

  • ℹ️ .github/workflows/ci.yml:589 - The intent lists 'Stock macOS Bash snapshot compatibility (20 min)' as one of the cancellations. This change does not touch the macOS job, but in source it is already timeout-minutes: 30 at both the base commit and 8697998 (normal tier). So no source change is needed here; whether it now finishes inside 30 minutes is up to later CI observation.
  • ⚠️ docs/fm-test-portable-shards.md:27 - The change replaced about 200 serial hints in bin/fm-test-run.sh with durations from CI runs 42627283545/42599636961. Several provenance sentences in this doc, which owns hint provenance, still quote the old values as the current hint and give the old source. That is now false: the base commit's hints matched these sentences, and this change broke the match. Sites: :27 says fm-approval-failover is 'a provisional local measurement of 5410 ms', but the hint is 10103 (bin/fm-test-run.sh:758). :26 says polytoken-harness is 21090 ms, but the hint is 27135 (:884). :33 says read-repetition-live is 1110 ms, but the hint is 1212 (:900). :38 says agy-primary-live-e2e is 75 ms, but the hint is 84 (:755). :40 says wedge-cap-live is 74 ms, but the hint is 188 (:995). :42 says the wedge-cap parity suite 'packs' 27763 ms, but the hint is 47201 (:996). :46 says T3 watch-inbox-meta is 283 ms and pr-tools-live-e2e is 52 ms, but the hints are 419 (:990) and 56 (:769). :24 says the supervision-host weights are 'local duration_ms scaled by ~2.3', but fm-supervision-host.test.sh is now the CI-derived 573730 (:958). Fix: update each of these sentences to the current values and the 42627283545/42599636961 source, or reduce them to the hints that are still provisional.
  • ⚠️ docs/fm-test-portable-shards.md:12 - Sibling that the round-3 provenance fix left behind. Round 3 fixed only the serial-hint sentences. The change also rewrote all 26 entries in portable_parallel_weight_hints (bin/fm-test-run.sh:566-591): fm-captain-hold-lifecycle went from 343658 to 720304, fm-pr-merge from 300199 to 598530, fm-test-run from 156781 to 395643, fm-lint from 252498 to 370014, and so on. The doc that owns hint provenance still says at :12 that 'Both hint tables were refreshed on 2026-09-30 from five Ubuntu CI runs', and nowhere names a source for the new parallel values. The only new-source sentence, :74, covers the serial table. A related stale sentence is :130, 'verifies that both parallel lanes partition the proven-isolated set'; there are now three lanes (PORTABLE_PARALLEL_SHARDS=3). Fix: at :12, say the parallel table (and the serial entries already noted) now comes from CI runs 42627283545/42599636961, or add one sentence in the Parallel lanes section (around :68) saying so. Change :130 to 'the parallel lanes'.
  • ⚠️ docs/fm-test-portable-shards.md:150 - Doc sentences still describe the old watch-triage hints. Rounds 3 and 4 fixed the provenance sentences but left these two behind. Line 150 says 'the three watch-triage members still sum to about 26 minutes of CI test time'. That was true for the base hints (592950+466750+526980 ≈ 26.4 min). This change raised them to 1085417+487363+614407 = 2187187 ms (bin/fm-test-run.sh:993-995), about 36.5 minutes, so the latency claim is now understated by about 10 minutes. Line 109 says 'maxima from five runs do not establish a P95', but the watch-triage paragraph at :107-108 now sources these hints from two CI runs, 42627283545 and 42599636961. Fix: change :150 to about 36 minutes and :109 to 'two runs' (or 'a few runs').

🔧 Fix applied.
1 info still open:

  • ℹ️ .github/workflows/ci.yml:589 - The intent lists 'Stock macOS Bash snapshot compatibility (20 min)' as one of the cancellations. This change does not touch the macOS job, but in source it is already timeout-minutes: 30 at both the base commit and 8697998 (normal tier). So no source change is needed here; whether it now finishes inside 30 minutes is up to later CI observation.
⚠️ **Test** - 1 warning
  • ⚠️ live validation verdict: inconclusive (3 of 7 scenarios were driven live against the product); untested: Move Pi into lane 2 in a disposable runner; the coverage guard rejects its placement, Exercise packing-budget boundaries; exact budget passes, excess fails, and refreshed timings reject twelve-shard packing, Evaluate workflow semantics; matrices match executable partitions and aggregation retains all required lanes and failure results, Run Linux and macOS CI jobs to completion without timeout cancellations
  • Live validation: ⚠️ inconclusive - 3 of 7 scenarios driven live against the product
Scenario Result Live Evidence
Select three parallel lanes and sixteen serial shards; coverage is complete, disjoint, deterministic, and within the modeled budget ✅ pass live live-partitions.json
List three canonical lint partitions; each selects 200 roots and their union covers every canonical root exactly once ✅ pass live live-partitions.json
Request stale shard counts, invalid indices, or weakened lint partition modes; commands refuse with exit 2 ✅ pass live live-partitions.json
Move Pi into lane 2 in a disposable runner; the coverage guard rejects its placement ⏸️ untested no The prior payload records a disposable runner experiment with live=false; it does not establish that this scenario was driven against the live product.
Exercise packing-budget boundaries; exact budget passes, excess fails, and refreshed timings reject twelve-shard packing ⏸️ untested no The prior payload records non-live tests and disposable packing experiments with live=false; it does not establish a live result for these budget boundaries.
Evaluate workflow semantics; matrices match executable partitions and aggregation retains all required lanes and failure results ⏸️ untested no The prior payload records workflow contract checks and parsed YAML with live=false; it does not establish execution of these workflow semantics against the live product.
Run Linux and macOS CI jobs to completion without timeout cancellations ⏸️ untested no This Test-phase agent lacks authority to execute the CI phase. The outer executor must run and observe GitHub Actions on the target commit to establish actual job durations.
  • bash tests/fm-ci-workflow.test.sh
  • bash tests/fm-test-run.test.sh
  • bin/fm-test-run.sh --check-coverage, --list-lanes, and repeated --list/--list-scheduled checks across configured lanes
  • CI=true bin/fm-lint.sh --partition &lt;k&gt;of&lt;n&gt; --list-files for two- and three-way partitions; invalid and weakened modes checked without running lint
  • Disposable runner experiments: base packing, current timings with twelve shards, and Pi relocated to lane 2
  • Parsed workflow YAML into normalized JSON; verified final worktree cleanliness
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

peterOC26 and others added 7 commits November 9, 2026 17:15
Serial shard 2 and lint partition 2 were finishing at 24-30 minutes, so the shared 30-minute job limit cancelled passing work. Refresh duration hints from the slow successful runs, split portable serial work across 16 runners and the proven-isolated set across 3, and split canonical lint across 3 byte-balanced partitions. Every test and lint root still runs once. The 30-minute hang tripwire is unchanged.
@peterOC26
peterOC26 merged commit 8d1817f into main Nov 9, 2026
55 of 59 checks passed
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