Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ invoking it; `bin/pyauto-brain help <verb>` exposes its full contract.
| Verb | Purpose | Entrypoint |
|------|---------|------------|
| `intake` | File classified prompts; never start development | `bin/pyauto-brain intake` |
| `batch` | Propose a review-budgeted batch; collect its results | `bin/pyauto-brain batch` |
| `batch` | Propose a review-budgeted shift; brief, watch and digest it | `bin/pyauto-brain batch` |
| `community` | Triage community threads; human-approved replies and development handoffs | `bin/pyauto-brain community` |
| `feature` | Select, size and plan features | `bin/pyauto-brain feature` |
| `bug` | Classify regressions and plan repairs | `bin/pyauto-brain bug` |
Expand Down
6 changes: 4 additions & 2 deletions AUTONOMY.md
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ a skill or a record makes it the default.
amendment: the reader did not write the PR, runs the `Witness:` itself and
tries to falsify the claims. **A self-run adversary leg is still an absent
leg**: the author's own session re-reading its diff is not this pass,
whatever model it is on. `batch collect` reads it so: an adversary row whose
whatever model it is on. Read it so: an adversary row whose
`model` equals its `author_model` passes only with `independent_session:
true`.

Expand Down Expand Up @@ -1649,7 +1649,9 @@ Codex hook list.
pull request, never a base for one. It is **never forced** — a branch that is
not a fast-forward of what is already published is pushed under a new `-N`
name instead — and every pushed ref carries a `sweep-after:` date on the
batch record, after which `bin/branch_sweep.sh` may delete it.
batch record, after which `bin/branch_sweep.sh` may delete it. (`batch
collect` was retired on 2026-11-22; the sweep rule stays for refs already
published.)

A third exception, added 2026-11-03: the **shift watcher** — read-only
`gh pr checks` and `claude agents --json`, and one issue comment per shift —
Expand Down
20 changes: 0 additions & 20 deletions agents/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,24 +75,11 @@ _resolve_dir() {
# resolve_mind — locate the PyAutoMind checkout (the organism's intent store).
resolve_mind() { _resolve_dir PYAUTO_MIND PyAutoMind; }

# resolve_cortex — locate the PyAutoCortex checkout (the organism's science
# state: one ledger per project — Now, Runs, Log). Resolved independently of
# the Mind so a session holding one organ and not the other still works.
resolve_cortex() { _resolve_dir PYAUTO_CORTEX PyAutoCortex; }

# resolve_memory — locate the PyAutoMemory checkout (the organism's long-term
# scientific/architectural knowledge). Optional: the Feature Agent degrades
# gracefully when memory is absent rather than inventing context.
resolve_memory() { _resolve_dir PYAUTO_MEMORY PyAutoMemory; }

# readiness_verdict — run `pyauto-heart readiness --json` and echo the verdict
# string (green/yellow/red). Returns non-zero if Heart can't be resolved/run.
readiness_verdict() {
local heart
heart="$(resolve_heart)" || return $?
"$heart" readiness --json | python3 -c 'import json,sys; print(json.load(sys.stdin).get("verdict","unknown"))'
}

# _agents_dir — directory holding the sibling agents (this file lives in it).
# Agents are organised into two tiers beneath it: conductors/ (front-door agents
# a human drives) and faculties/ (read-only reasoning capabilities the conductors
Expand All @@ -108,10 +95,6 @@ _agents_dir() {
# keeps the conductors (build, release, feature, health) decoupled from Heart's
# surface and lets them all read the verdict the same way.
#
# (Back-compat: `consult_health_agent_verdict` remains as an alias below — the
# faculty was renamed health -> vitals, and the loop conductor took the name
# `health`.)
#
# --refresh ask the vitals faculty to refresh Heart's state first (a fresh
# gate); release-grade work uses this, ordinary build work does not.
# --profile P evaluate under a readiness evidence profile (e.g. `release-ci`
Expand Down Expand Up @@ -217,9 +200,6 @@ except Exception:
[[ "$out" == "green" ]] && echo "green" || echo "unknown"
}

# Back-compat alias for the pre-rename name (faculty: health -> vitals).
consult_health_agent_verdict() { consult_vitals_verdict "$@"; }

# Print the readiness verdict's RED reason strings, one per line (empty if none
# / unavailable). Used by the Build Agent's --accept-red override so a human can
# authorize proceeding despite specific, named RED reasons. Reads the SAME
Expand Down
22 changes: 9 additions & 13 deletions agents/_pyauto_root.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,15 @@
as unverified so a caller can say "I looked here and it was not a
workspace" instead of silently finding nothing.

Consumers used to default to a hardcoded developer-box path instead of step 2.
On that box it was right; in a remote session ``$HOME`` is ``/root`` while the
checkouts are under ``/home/user``, so every consumer resolved into a directory
that does not exist. Nothing raised — these consumers all degrade — so they
reported empty. That is the failure mode this module exists to remove, and
naming any absolute workspace path here would reintroduce it for the next
environment that does not match.

Step 2 exists for the mirror-image failure. Step 3 asks only "does this
directory hold an organ?", which a family subdirectory such as ``organs/``
would answer yes to the moment the organs move into one — resolving the root
one level too deep, where every ``root / <repo>`` join below misses and,
again, nothing raises. The marker is what a directory says about itself.
No absolute workspace path is named here: a hardcoded developer-box default
resolves, in a remote session, into a directory that does not exist, and
because every consumer degrades rather than raises, they all report empty.

Step 2 guards the mirror-image failure. Step 3 asks only "does this directory
hold an organ?", which a family subdirectory such as ``organs/`` also answers
yes to — resolving the root one level too deep, where every ``root / <repo>``
join misses and, again, nothing raises. The marker is what a directory says
about itself.

Stdlib only.
"""
Expand Down
Loading
Loading