Repository navigation
feat: shift-owned keep-Heart-green lane (#625) - #626
Merged
Merged
Conversation
`batch brief --new` now reads Heart's release verdict (local `pyauto-heart readiness --json` with its per-repo keys, else the published feed; the 6 h age rule applies, and a fresher feed wins over an over-age snapshot) and sorts every RED/YELLOW/STALE reason with a tested rule table (`_green.RULES`) into fixable-dev, local-checkout, release-scope or human-only. For fixable-dev reasons it files at most 3 bug drafts per brief (judge tier, Lane, re-check-first note, quoted reason, Witness, a heart-key mark), deduplicated against draft/, active/, queue.md and a state file in the orchestrator home, and names lane-matching drafts as tasks under a last `heart-green` goal. The record gets a `## Heart` section. `batch green` runs the lane alone (report by default). It runs at brief time only, never in the watcher tick. It never releases, rehearses, dispatches, forces, writes queue.md, edits another prompt or quarantines (it may propose one). `_green.py` imports no process or network module; heart_feed gains `local_readiness` (the raw verdict). Tests use real Heart reason strings (fixtures/heart_green/reasons.json). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Writes only with --out and an explicit --mind that is not the shared canonical checkout (temp-worktree route named); a preview writes no draft and no state. - Every manifest-drift leg is local-checkout (they read on-disk checkouts, other sessions' worktrees included); MANIFEST_FIXABLE is the allowlist, empty today. Fixture corrected. - Default mode `file`; `pick` is the human's opt-in. Drafts carry no Unattended: header and the sizing faculty's Difficulty. - A fresh, valid Heart read that no longer lists a key clears its state row, so a recurrence files again (still deduped). - floor-unsatisfiable is release-scope. - A quarantine's bug task matches only the key mark or its Issue: ref. - STALE release-scope reasons reach "Needs the human". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…625 review) write_hold compared --mind with the Mind this Brain resolves, so a worktree Brain could write into the shared organs checkout. Now a write needs `git rev-parse --git-dir` != `--git-common-dir`: the main checkout of any Mind clone, wherever it lives, is refused. Tested with a real repo and a linked worktree in tmp. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Pre-M3 build 3 of 3: a shift-owned keep-Heart-green lane. Closes #625.
agents/conductors/batch/_green.pyruns frombatch brief --new(and asbatch green, which reports only).Classification: Heart's RED and YELLOW reasons are sorted by a tested rule table (
RULES, first match wins; an unmatched reason is human-only):What it does with them:
Unattended:header, and their Difficulty comes from sizing, so the lane never self-approves unattended work.fileby default;pickis opt-in.--mindthat is a linked git worktree with--out. A preview writes nothing.Test plan
pytest tests/: 1932 passed. The known node-env failure was deselected.Gate
Unattended: ready;🤖 Generated with Claude Code