Skip to content

feat(board): Gut board + state.json feed + one-tap void #9

Closed

Description

@Jammy2211

Human request (2026-09-26, verbatim)

ok do the Gut dashboard and feed next, which should be a clear overview of everything in gut, and ways to click buttons to remove it permenantly

Overview

The Gut holds condemned self-material as durable refs refs/heads/archive/condemned/<name> on the
PyAutoGut remote (48 refs today) and the Mind's condemned.md is the ledger (30 live entries, most past
their sweep-after date since August). PyAutoGut's README says "there is no dashboard here by design";
the human has now decided otherwise: the Gut joins the board family and the cockpit, and voiding must be a
button, not a CLI session. Nothing in the org deletes refs from a button today; the closest patterns are
PyAutoMemory's queue_actions.yml (issue-opened one-tap, author-association gate, prefilled
issues/new?title=…&labels=… links) and Brain's branch_archive.yml (verify with ls-remote, then
git push --delete). PyAutoGut has no .github/ and no Pages site yet.

Design decisions

  • The button is a prefilled GitHub issue. Each row's "Void permanently" link opens
    PyAutoGut/issues/new?title=void:+<ref-name>&labels=void&body=<prefilled reason + SHA>; pressing
    Submit is the human's --yes. A void.yml workflow (issues: opened, gate author_association ∈ OWNER/MEMBER/COLLABORATOR + label or void: title prefix) deletes the ref with the repo's own
    GITHUB_TOKEN (contents: write, same repo — no PAT), records the pre-delete SHA in a closing comment,
    closes the issue and re-dispatches the board. Audit trail = the closed issues. A special title
    void: all-due voids every ref whose ledger entry is past sweep-after (the workflow checks the Mind
    out read-only to compute "due"). Refs without an entry and undated ("never") entries are never bulk-voided.
  • Voiding removes bytes; the ledger row is bookkeeping. The workflow cannot edit the Mind (cross-repo
    PAT gaps, PAT403 precedent). The board reconciles refs against entries, so a voided ref shows as
    "voided — entry still in condemned.md" with a 📋 payload for a session to retire the entry. Filed as a
    known limitation, not hidden.
  • Truth = ls-remote + condemned.md. The collector never trusts one side: it lists both and shows
    orphans (refs without an entry, e.g. __selftest_branch__) and dangling entries (archive-ref missing).
    Void names come from the archive-ref field, never the ## heading (they differ — hygiene's
    run_sweep has that bug; noted for a follow-up, not fixed here).
  • Feed semantics: grey when nothing could be listed; yellow when anything is due for voiding or any
    orphan/dangling row exists; green when transit is clean. Never red — nothing in the Gut can break.
  • Nerves decision (from the old prompt): Nerves gets no board; it has no standing state. Recorded in
    the completion record and the cockpit keeps its grey card.

PR 1 — PyAutoBrain (feature/gut-board)

  1. board/_theme.py: ORGANS["gut"] (palette sampled off PyAutoGut/logo.png: dark olive/green
    #1f3006 family; check ≥4.5:1 contrast per the docstring) + MARKS["gut"] (48×48 SVG path).
  2. config/policy.yaml board: boards: gains gut: PyAutoGut (keeps the one-name: Repo-per-line shape
    the Mind footer regex parses).
  3. agents/conductors/hygiene/_hygiene_condemned.py: keep as the parser (Gut's collector imports it from the
    checked-out Brain, like _state.py); add ref_name(entry) that extracts <name> from archive-ref,
    and expose classify as-is. Tests in tests/test_hygiene_condemned*.py (or add) for ref_name.
  4. Tests: tests/test_board_theme.py — gut in ORGANS/MARKS, contrast check passes; a policy test that
    every boards: entry has a theme key.

PR 2 — PyAutoGut (feature/gut-board, after PR 1 merges)

  1. scripts/board.py (stdlib + pyyaml; mirrors PyAutoHands/autohands/board.py shape: collect() →
    snapshot → render(fmt) md / md-brief / html / json / badge / state; theme() finds Brain like Hands
    does; BOARD_KEY="gut"). collect(): git ls-remote --heads <remote> 'archive/condemned/*' (sha,
    name) + parse_manifest(condemned.md) via Brain's parser (path from --mind), reconcile into rows:
    due (sweep-after ≤ today, ref present), in transit (pending, days left), held (undated),
    orphan refs, dangling entries (archive-ref n/a is not dangling — those are "history-only"
    rows, listed separately, never voidable), recently voided (closed void: issues via gh api,
    last 10, best-effort). Snapshot also carries owner/repo, generated, errors[].
  2. Renders: html page with the shared theme — sections in that order, each row: name, type, reason (clipped),
    condemned/sweep-after/days, SHA, then the actions: Void permanently (prefilled-issue link, only
    for rows with a present ref), Recover 📋 (pyauto-gut recover <name>), Void via session 📋
    (pyauto-gut void <name> --yes); section header for due carries Void all due (prefilled
    void: all-due issue) and shows the count. Orphans get Void + a "no ledger entry" flag; dangling get
    "retire entry" 📋. badge.json (gut · N in transit · M due), board.json, state.json via
    to_state: yellow/green/grey as above; items = due rows (yellow, url = the row's void-issue link,
    prompt = the session void payload) then orphans/dangling (info), cap 20.
  3. .github/workflows/gut_board.yml: cron + workflow_dispatch + workflow_run of void.yml;
    checkout self, PyAutoLabs/PyAutoBrain → PyAutoBrain, PyAutoLabs/PyAutoMind → PyAutoMind
    (read-only); render into _site/ (index.html, badge.json, board.json, state.json, dashboard.md);
    "Validate the cockpit feed against the Brain contract"; configure-pages enablement: true;
    upload + deploy (Pages birth for PyAutoGut). README strip self-commit like Hands (optional).
  4. .github/workflows/void.yml: on: issues: [opened]; permissions: contents: write, issues: write, actions: write; gate on author_association + (void label or void: title); parse
    void: <name> or void: all-due; for all-due check out the Mind and compute due via the Brain parser;
    for each name: git ls-remote → record SHA → git push origin --delete refs/heads/archive/condemned/<name>;
    refuse names not under the namespace, main, or undated entries; comment a table
    (name, pre-delete SHA, result), close the issue, gh workflow run gut_board.yml. Any failure → comment +
    leave the issue open.
  5. README.md: replace "There is no dashboard here by design" with the board + the void button contract;
    AGENTS.md: the void workflow rules (issue = the human yes; never bulk-void undated; ledger retirement
    is a session act). bin/pyauto-gut: unchanged.
  6. Tests tests/test_board.py (pytest, hermetic: fake ls-remote output + a fixture condemned.md): reconcile
    buckets, due/transit/held/orphan/dangling, the void link is well-formed and only on present refs,
    all-due never includes undated, state validates (copy the 6-line check; no Brain import in tests —
    but collect() may import the Brain parser when --brain is given; tests use a fixture parser path).
    No tenant literals in tests. A tests/test_void_workflow.py that lints the workflow YAML and asserts
    the gate + namespace refusal strings are present.

PR 3 — pyautolabs.github.io (feature/gut-board, after PR 2 deploys)

  • cockpit/index.html ORGANS: Gut gains feed: BASE + "PyAutoGut/state.json" (one line) and the
    README/AGENTS organ list mentions the Gut board.

Branch survey / claims

Repo Branch Dirty Claimed by
PyAutoBrain main clean eyes-organ-order, cosmos-web-ring-greeting — disjoint (theme/policy/hygiene parser)
PyAutoGut main clean eyes-organ-order (AGENTS.md 1 line) — disjoint except AGENTS.md: this task appends a new section, merge-safe
pyautolabs.github.io main clean eyes-organ-order (no diff) — disjoint

Own worktree with parallel-claim: recorded.

Execution (Fable session)

/create_issue on PyAutoGut (issue quotes the human's widened scope verbatim) → active.md → worktree_create gut-board PyAutoBrain PyAutoGut pyautolabs.github.io → one Opus subagent, three repos in order Brain → Gut →
hub (Gut's renderer exercised locally against the worktree Brain + the canonical Mind's condemned.md and a
real ls-remote), progress file + Monitor → /ship_library per repo (Heart YELLOW → ask ack) → merge Brain,
then Gut, dispatch gut_board.yml (Pages birth), verify the feed, then hub → cockpit shows the Gut card →
witness: the human presses Void permanently on __selftest_branch__ (the orphan self-test ref) and the
ref disappears, the issue closes with the SHA, the board re-renders.

Verification

  • Brain: pytest tests/test_board_theme.py tests/test_hygiene_condemned*.py -q.
  • Gut: pytest tests -q; python scripts/board.py --mind ../PyAutoMind --brain ../PyAutoBrain --collect snap.json
    (real ls-remote) then --snapshot snap.json --state | python ../PyAutoBrain/board/_state.py - → state: ok;
    --html opens with the theme; workflow YAMLs parse; tenant firewall --root <wt> OK.
  • After merge: gut_board.yml green, https://pyautolabs.github.io/PyAutoGut/ + state.json live and
    validating; the cockpit's Gut card populates; the __selftest_branch__ void witness above.

Original Prompt

Click to expand starting prompt (draft/feature/pyautogut/gut_board.md, filed 2026-09-04)

Birth a PyAutoGut board (Pages) so the footer family can carry the Gut

Type: feature
Target: pyautogut
Repos:

  • PyAutoGut
    Difficulty: medium
    Autonomy: safe
    Priority: low
    Status: formalised
    Consequence: notify
    Witness: Either a PyAutoGut board renders with the shared theme (a gut entry in ORGANS and MARKS, gut: PyAutoGut in config/policy.yaml board: boards:, a Pages publish workflow, rows for transit contents, next sweep, recoverable refs and last releases) or the decision not to build it is recorded; the Nerves-board decision is recorded either way.
    Review-minutes: 0
    Filed: 2026-09-04

The one-tap board family (PyAutoBrain/config/policy.yaml, board: boards:)
currently names seven boards: brain, mind, cortex, memory, heart, hands,
organism. Two organs in the ruled order have no board at all — Nerves and
Gut — so the cross-board footer cannot carry them and neither has a palette
entry in PyAutoBrain/board/_theme.py ORGANS.

The Gut is the one with obvious board-shaped content: condemned self-material
held as durable git refs through a transit window, what is in transit, what is
due to be voided on the next sweep, and what a sweep just released. That is a
list of rows with a 📋 copy-for-Claude payload each — exactly the one-tap board
shape.

Work:

  • Decide whether the Gut board is warranted now, and what its rows are (transit
    window contents, next sweep, recoverable refs, last sweep's releases).
  • If yes: render it with the shared theme (PyAutoBrain/board/_theme.py) the way
    the Heart/Hands/Memory boards do, add a gut palette entry to ORGANS and a
    mark to MARKS, add gut: PyAutoGut to config/policy.yaml board: boards:,
    and wire a Pages publish workflow.
  • Decide separately whether Nerves gets a board. Nerves is a configuration
    and serialization layer with little standing state; it may be right that it
    never grows one. Record the decision either way so this question is not
    re-asked.

Filed from the board-family footer work (2026-09-04), which made the footer read
the canonical list — the family is now only as complete as boards: is.

🤖 Generated with Claude Code

Activity

  1. Jammy2211 commented on Sep 26, 2026

    @Jammy2211
    ContributorAuthor

    PRs created (3) — under Heart YELLOW acknowledgement

    Merge order Brain → Gut → hub. Known limitation: the void workflow deletes refs in PyAutoGut only; the 8 overdue refs held on sibling repos need a PAT-backed follow-up.

    Heart YELLOW (score 85, snapshot 2026-09-26T16:19:27+00:00); verbatim reasons: manifest drift: hub organism blurb (organs present) — 7 mismatch(es) vs PyAutoMind/repos.yaml; manifest drift: organism-map blocks (generated) — 1 mismatch(es) vs PyAutoMind/repos.yaml; manifest drift: workspace checkouts (manifest ↔ disk) — 1 mismatch(es) vs PyAutoMind/repos.yaml — pre-existing. Human acknowledgement, live, 2026-09-26, this session, given after the reasons were shown: "continue".

  2. added a commit that references this issue on Sep 26, 2026
  3. Jammy2211 commented on Sep 26, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    • PyAutoBrain#421, PyAutoGut#10, pyautolabs.github.io#14 merged in that order (human merge command in session under the recorded YELLOW acknowledgement).
    • Pages birth: the repo token could not create the site (Create Pages site failed: Resource not accessible by integration on run 36258437259 even with pages: write + enablement: true); the site was created once with the human's account (POST /repos/PyAutoLabs/PyAutoGut/pages build_type=workflow), then run 36258481348 deployed green with state: ok.
    • Live: https://pyautolabs.github.io/PyAutoGut/ · feed state.json validates: yellow | 0 due · 43 in transit · 4 held · 8 due on other repos · 1 orphan ref(s) | 9 items; the cockpit's Gut card now reads it.
    • void.yml is active on main (issues: opened). Witness pending (human): press "Void permanently" on the orphan __selftest_branch__ → ref deleted, issue closed with its SHA, board re-rendered.

    Follow-ups (not filed): extend void.yml with PAT_PYAUTOLABS so the button reaches the 8 overdue refs held on sibling repos; hygiene run_sweep should use ref_name (heading ≠ ref name); PyAutoLens carries an orphan archive/condemned/paper-jax-intro-revision the board does not track; after an all-due void, refs show as dangling rather than voided-pending. Nerves decision: no board (no standing state).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions