Repository navigation
feat: read the Heart freeze flag — vitals, /prm merge gate, batch packet - #347
Merged
Merged
Conversation
…tch packet Three read-only surfaces for the flag PyAutoHeart now owns (`pyauto-heart freeze`, PyAutoHeart#196). Brain never writes it. - **vitals faculty** — reads `pyauto-heart freeze --show --json` and reports `FROZEN: <reason> until <ts>` as a warning line. Explicitly NOT a `yellow_reasons` entry and not a verdict input: readiness answers "is the organism healthy", the freeze answers "is a validation window open right now". An older Heart with no verb prints nothing, which is not an error. - **`/prm`** — the one surface with teeth. A merge-gate leg before the library-first gate: an active freeze stops a **library** repo's PR (the `category: library` entries of the body map); organ and workspace repos are untouched. `--thaw "<why>"` overrides and appends one row to `PyAutoMind/autonomy_log.md` under `## Freeze overrides` — the override exists because a freeze is advice about evidence, not a protected branch, and an unloggable override is one people route around instead of recording. - **batch** — `heart_freeze()` re-derives expiry from the sidecar rather than trusting it, so a forgotten `--set` cannot block a collect for ever, and one line lands in the `collect` summary and packet. `_status.py` carries the same line as a CALLER-SUPPLIED fact, defaulting to nothing: the Mind dashboard is a committed artifact regenerated in CI, where this dev-box state does not exist, so folding a live freeze into it would read as dashboard drift on the next `--check`. The wording lives once (`_status.freeze_line`) and is byte-identical to Heart's, so the three surfaces say the same sentence. Tests: 12 new (wording, expiry re-derivation, unreadable state, the byte-identical box without a freeze, both renderers, the packet and summary lines). Suite 872 passed; the one failure is the pre-existing worktree-only `test_cortex_conductor::test_a_fixture_tree_finds_the_schema_its_checkout_ships`. Refs PyAutoLabs/PyAutoHeart#196. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013HsZA1ufn3msgPiDFxEXa6
This was referenced Sep 3, 2026
…tex-p5-heart-freeze
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes part of PyAutoLabs/PyAutoHeart#196 — phase 5 (last) of the
mind-post-cortexepic (assessment gap 6). The read surfaces. Companions: PyAutoLabs/PyAutoHeart#197 (the flag itself — merge that first, this PR reads its verb) and PyAutoLabs/PyAutoHands#275 (thepre_buildcall site).Decision taken by the architect — reverse before merge if you disagree
The prompt named one human-required decision: may
/prmoverride an active freeze with an explicit--thaw? Adopted per the prompt's own recommendation — yes, logged./prm --thaw "<why>"merges a library PR through an active freeze and appends one row toPyAutoMind/autonomy_log.mdunder a## Freeze overridesheading (created on first use, no new log file):The reasoning, also in
prm.md: a freeze is advice about evidence, not a protected branch, and an unloggable override is one people route around instead of recording. This was decided by the architect on the prompt's recommendation, not by a human. If you disagree, the change is confined to the--thawbullets inskills/prm/prm.md(§4 item 1, the Usage line, the §6 guard) and the mirror inskills/prm/reference.md— drop them and the gate becomes absolute.The section itself is deliberately not pre-created in
autonomy_log.md: it would land on Mind'smainimmediately via the ledger auto-merge, ahead of this review. The first override writes it.What changed — three read-only surfaces, no writes
1.
vitalsfaculty. Readspyauto-heart freeze --show --jsonand reportsFROZEN: <reason> until <ts>as a warning line (vitals.shprints it under the board;AGENTS.mdstep 1b + the Output schema). Explicitly not ayellow_reasonsentry and not a verdict input: readiness answers "is the organism healthy", the freeze answers "is a validation window open right now". An older Heart with nofreezeverb prints nothing, and that is not an error.2.
/prm— the one surface with teeth. A new merge-gate leg (§4, before the library-first gate): an active freeze stops a PR in a library repo (thecategory: libraryentries of the body map — organ and workspace repos are untouched, and a workspace PR whose library half is held waits on the library-first gate anyway). Where Heart is not installed (mobile, web, CI) there is nothing to read and an absent flag is not a freeze. Plus the--thawoverride above, the§6guard bullet, the Usage line, and the mechanics mirror inreference.md.3.
batch.heart_freeze()reads the sidecar and re-derives expiry rather than trusting it, so a forgotten--setcannot block a collect for ever; anything unreadable reads as clear. One line in thecollectsummary and at the top of the packet, saying what the freeze means for merging._status.pycarries the same line as a caller-supplied fact, defaulting to nothing on purpose: the Mind dashboard is a committed artifact regenerated in CI, where this dev-box state does not exist, so folding a live freeze into it would read as dashboard drift on the next--check.collect— which runs on the box that holds the state, printing to a terminal — supplies it. That invariant has its own test.The wording lives once (
_status.freeze_line) and is byte-identical to Heart'srender_line, so all three surfaces say the same sentence.Tests
python3 -m pytest -q→ 872 passed, 1 failed; the failure is the pre-existing worktree-onlytest_cortex_conductor::test_a_fixture_tree_finds_the_schema_its_checkout_ships(a task worktree has no Cortex checkout), unrelated to this diff.12 new in
tests/test_batch_freeze.py: the wording verbatim, empty-when-thawed (clear / expired / absent), expiry re-derived, unreadable and expiry-less state reading clear, a zonelessuntilread as UTC, the box byte-identical with no freeze supplied, both renderers carrying exactly one line above the members, the science box, and the packet + summary lines.Merge order and siblings
Base
main.git merge-treeagainstorigin/feature/mind-post-cortex-p3-pr-ledgerandorigin/feature/mind-post-cortex-p4-batch-fidelity: 0 conflicts against both (p3 editsprm.md§5 only; p4 edits_batch.py's outcome and merge-order blocks, not_status.pyorcollect_report's head). Merge PyAutoHeart#197 first — this PR documents a verb that has to exist.Heart
pyauto-heart readinessis RED at PR-open:PyAutoLens: CI failure,release validation FAILED (stage integrate),PyAutoArray: open PR 11d old. None touches this diff — one faculty, one skill, one conductor and its tests; no library source, no release surface. The RED is not acknowledged for this task, so merge needs the human's own call.🤖 Generated with Claude Code
https://claude.ai/code/session_013HsZA1ufn3msgPiDFxEXa6