Skip to content

feat: not-Heart-gated repos + Stage 3 quarantine (#343, #344) - #345

Merged
Jammy2211 merged 3 commits into
mainfrom
feature/m2-finish
Nov 13, 2026
Merged

Jammy2211 merged 3 commits into
mainfrom
feature/m2-finish

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Programme M2 finish. Closes #343. Closes #344.

#343, repos Heart does not poll (human ruling 2026-11-13):

  • A not_heart_gated: list in config/repos.yaml. The loader refuses any polled name.
  • readiness --dev lists those repos as gate_deferred and shows them, with "PR checks decide".
  • Replay: the parked share falls from 36.9 percent to 4.7 percent.

#344, Stage 3 retry and quarantine (human ruling 2026-11-12):

  • config/stage3_quarantine.yaml and heart/quarantine.py: each entry needs a bug ref and expires after at most 7 days, with at most 3 active. Workspace scripts only.
  • Readiness is YELLOW while an entry is active, and RED for an expired or refused entry.
  • The rehearsal's own quarantined list is judged. A skipped script whose entry is gone reads RED, so a quarantine can never turn RED into GREEN.
  • Flaky passes appear as flaky_reasons.
  • workspace-validation.yml passes the quarantine and retry flags to the Hands runner.

REL-3 was re-checked against GitHub and holds (evidence m2_decision_sheets/evidence/rel3_recheck/).

Test plan

  • Heart suite: 1454 passed.
  • Tenant firewall clean.

Gate

  • Heart, scoped dev-ship verdict: GREEN at 14:00Z for the touched repos PyAutoHeart, PyAutoHands and PyAutoBrain (pyauto-heart readiness --dev --repos …). No RED override was needed: this is the first ship through the M2.1 scoped gate.
  • Independent review (fresh Opus context): three rounds of FINDINGS, then CLEAN. The findings were:
    • a quarantine could turn RED into GREEN after its entry was removed;
    • flaky passes were hidden;
    • the retry could resume finished output;
    • quarantine paths were matched as unanchored substrings;
    • the output clean could delete an earlier script's output.
  • Human rulings, 2026-11-13: ship. A quarantine-only YELLOW may let the nightly ship, which is a follow-up build. Timeouts get no retry.

Tier: glance. Merge mode: auto-merge on green if the Witness passes, with a post-merge summary.

🤖 Generated with Claude Code

Jammy2211 and others added 3 commits November 13, 2026 12:34
…LE (#343)

Human ruling, M2 gate 2026-11-13: profiling, inference, assistants,
visualization, Scientist, Broca and Cortex are not Heart-gated; their PR
checks decide.

- config/repos.yaml: `not_heart_gated:` (16 names resolved from the body
  map); every name must be unpolled and in `excluded:` (loader refuses
  otherwise). pyautolabs.github.io stays out: no CI.
- `readiness --dev`: a touched repo on the list is gate-deferred — listed
  in `gate_deferred`, shown as "not Heart-gated: PR checks decide", never
  STALE or blocking. An all-deferred scope does not judge the snapshot age.
- Witness test: a branch touching a not-Heart-gated repo reads GREEN,
  gate-deferred and shown, when the in-scope polled repos are green.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tive (#344)

Human ruling, M1 gate 2026-11-12.

- config/stage3_quarantine.yaml (repo-tracked, schema in its header) and
  heart/quarantine.py, its one reader: an entry names workspace, script,
  a filed bug task (Repo#N / Owner/Repo#N / issue URL), filed date and an
  expiry at most 7 days later; at most 3 active (a fourth is refused);
  workspace scripts only. `check` exits 1 on a refused entry; `skip-list`
  gives Stage 3 the ACTIVE entries for one workspace.
- readiness: an active entry is YELLOW with the list (`stage3_quarantine`);
  an expired or refused entry, or an unreadable file, is RED. Quarantine
  never turns RED into GREEN. A pass on the retry is carried as
  `stage3_flaky` (shown, not a tier).
- validate: the stage report, fold and validation_report carry `flaky`
  and `quarantined`.
- workspace-validation.yml (mode=release): resolve the quarantine per
  workspace and pass --retry-failed / --quarantine to the Hands runner
  (only when the runner has them, so merge order cannot break Stage 3).
- Witness tests: retry pass recorded flaky; retry fail red; quarantined
  YELLOW; missing bug ref refused; expired entry red again; fourth entry
  refused. Tests read no live quarantine (conftest).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… shown (#344 review)

- MUST-FIX: readiness now judges the ingested rehearsal's own
  `quarantined` list, not only the live file. Each skipped script is at
  least YELLOW, named; RED when its entry is no longer active (removed or
  expired) — only a fresh rehearsal that ran the script clears it. The
  stage report carries the `quarantine_entry` that skipped each script.
- Flaky passes become `flaky_reasons` ("flaky: passed on retry — ..."),
  rendered in the readiness block and shown at a dev ship; not a tier.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 00d979a into main Nov 13, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/m2-finish branch November 13, 2026 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant