Skip to content

maint: trim verbose repos.yaml role text; gate skips the organism-map leg on repos.yaml PRs (#486) - #487

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/trim-repo-role-text
Oct 7, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/trim-repo-role-text

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Trims the role: text of ten rows in repos.yaml (PyAutoPulse, PyAutoEyes, PyAutoInsight, PyAutoEars, PyAutoCortex, PyAutoGut and the four <lib>_visualization repos) to architect-approved wording. The workspace-root AGENTS.md routing table generated from these roles loads into every session and every delegated subagent; it drops from 7792 to 6316 bytes (-19%). No other row or key changes; public_role is untouched.

Closes #486

API Changes

None — data-only change to the body map. repos_sync.py is unchanged.
See full details below.

Test Plan

  • Each new role loaded back from YAML and compared byte-for-byte against the prompt's Scope (10/10 verbatim)
  • git diff touches only the ten role: lines
  • Mind suite in a clean shell (env -u PYTHONPATH python3 -m pytest tests): 693 passed
  • repos_sync.py --check --root ~/Code/PyAutoLabs (pre-existing workspace checkouts drift unchanged); new drift is exactly the expected legs:
    • root AGENTS.md routing table (generated) — root AGENTS.md
    • organism-map blocks (generated) — PyAutoBrain, PyAutoCortex, PyAutoEyes, PyAutoEars, PyAutoPulse, PyAutoInsight, PyAutoNerves, PyAutoGut
    • public front-door organ tables (generated) stays OK (they render public_role)
  • Nothing inside PyAutoMind is generated from role (Mind's AGENTS.md has no map block), so there is nothing Mind-local to regenerate

Gate policy

A PR that edits repos.yaml cannot make the eight organ copies of the organism map match it (they are regenerated by the per-repo wave after merge), so firewall_gate.yml now treats the organism-map blocks (generated) leg exactly as it treats the hook and where-to-file legs: a third diff-derived output map_pr drops the leg with a loud banner on pull requests only, and the compensating control asserts what the PR does control — the manifest renders a well-formed map (tests/test_repos_sync_organism_map.py). Graded on push to main as the other two are. Pinned in tests/test_session_hook_sync.py (decision, composition and label tests). Mind suite: 701 passed.

Follow-ups

regeneration wave: repos_sync:map blocks in the 8 organ AGENTS.md (Brain, Pulse, Nerves, Cortex, Ears, Gut, Eyes, Insight) and the public tables in PyAutoScientist/README.md and .github/profile/README.md — one PR per repo, run by the architect after merge; the workspace-root table is unversioned and regenerated by hand.

Note: --check reports the two public tables as OK after this change, because they render public_role, not role. They probably need no PR.

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QmiavJnNzmKb6EJmgYATfx

Jammy2211 and others added 2 commits October 7, 2026 15:22
Replace the role: text of ten rows (Pulse, Eyes, Insight, Ears, Cortex,
Gut and the four <lib>_visualization repos) with the architect-approved
wording. The workspace-root routing table generated from these roles
drops from 7792 to 6316 bytes. No other row or key changes; public_role
is untouched, so the public front-door tables do not drift.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QmiavJnNzmKb6EJmgYATfx
…he manifest renders (#486)

A PR that edits repos.yaml cannot make the eight organ copies of the
organism map match it: they are regenerated by the per-repo wave after
merge. Mirror the hook and where-to-file skips: a third diff-derived
output (map_pr) drops the "organism-map blocks (generated)" leg with a
loud banner on pull requests only, and asserts what the PR controls —
the manifest renders a well-formed map — through the new
test_repos_sync_organism_map.py. The leg name moves to a constant.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QmiavJnNzmKb6EJmgYATfx
@Jammy2211
Jammy2211 merged commit de2f395 into main Oct 7, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/trim-repo-role-text branch October 7, 2026 14:32
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.

maint: trim verbose repos.yaml role text (root routing table ≤ 6 KB)

1 participant