Skip to content

feat: intake census + dashboard modes — Mind backlog page#31

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/intake-census-dashboard
Jul 8, 2026
Merged

feat: intake census + dashboard modes — Mind backlog page#31
Jammy2211 merged 1 commit into
mainfrom
feature/intake-census-dashboard

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Adds the two follow-up modes the Intake Agent's contract already named as planned: intake census (read-only inventory of every filed PyAutoMind prompt) and intake dashboard (renders the census as PyAutoMind/dashboard.md, the Mind backlog page). Census parses the light metadata header back out of each prompt; the taxonomy folder stays authoritative for work-type/target, and headerless legacy prompts surface as hygiene flags, never errors. Backlog only by design — health remains the Heart's (/health). repair stays the planned follow-up.

Closes #30.

API Changes

CLI surface only — no Python API consumed downstream.

  • bin/pyauto-brain intake census — backlog inventory (always read-only; --json for full records).
  • bin/pyauto-brain intake dashboard — backlog page to stdout; --apply writes PyAutoMind/dashboard.md.

See full details below.

Test Plan

  • Fixture Mind (headerless prompt, triage file, README.md skip, issued/ count, empty folder): census records/aggregates/hygiene correct; dashboard renders; --apply writes dashboard.md.
  • Live Mind dry-run: 83 backlog prompts, 261 issued, 77 hygiene flags; targets aggregate by taxonomy folder.
  • Regression: intake "<text>", intake ideas, --json, --help all unchanged in behaviour (help no longer leaks set -uo pipefail).
  • bash -n intake.sh + py_compile _intake.py clean.
Full API Changes (for automation & release notes)

Removed

  • None.

Added

  • _intake.py::parse_header(text) — parses the light Type:/Target:/Difficulty:/Autonomy:/Priority:/Status: header (top-of-file only, first occurrence wins, no YAML).
  • _intake.py::census(mind) — walks WORK_TYPES folders incl. triage/; per-prompt records + aggregates by work-type/target/difficulty/priority + hygiene flags; counts issued/ without itemising.
  • _intake.py::render_dashboard(census) / emit_census(census) — GitHub-rendered backlog page / terminal summary.
  • intake.shcensus and dashboard subcommands routed; help text updated.

Migration

  • None — existing classify / ideas behaviour unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_016ttFH96vcXuCVZfSBZEytf

census walks every WORK_TYPES folder (incl. triage/), parses the light
metadata header back out of each filed prompt, and reports records,
aggregates and hygiene flags (headerless legacy prompts). dashboard
renders that census as PyAutoMind/dashboard.md — the Mind backlog page,
written only under --apply. Folder position stays authoritative for
work-type/target; a header Target: is prose and never overrides the
taxonomy. Backlog only by design — health remains the Heart's.

Also fixes the intake --help sed range, which leaked shell lines past
the header comment.

Closes #30.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ttFH96vcXuCVZfSBZEytf
Copilot AI review requested due to automatic review settings July 8, 2026 11:16
@Jammy2211 Jammy2211 merged commit 7484d92 into main Jul 8, 2026
1 check passed
@Jammy2211 Jammy2211 deleted the feature/intake-census-dashboard branch July 8, 2026 11:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds two new Intake Agent modes that provide a read-only inventory (“census”) of all filed PyAutoMind prompts and a rendered markdown backlog page (“dashboard”), aligning the Intake contract/docs with the planned follow-ups and keeping “health” explicitly out of scope (Heart-owned).

Changes:

  • Implement intake census to walk PyAutoMind taxonomy folders, parse the light header, and emit aggregates/records (optionally --json).
  • Implement intake dashboard to render the census as a GitHub-friendly markdown page and (under --apply) write PyAutoMind/dashboard.md.
  • Update Intake docs + command surface docs to describe the new modes and reinforce the backlog vs health boundary.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
skills/intake/intake.md Document new census/dashboard backlog modes and reinforce boundaries.
skills/COMMANDS.md Update /intake entry to mention backlog inventory/dashboard outputs.
agents/conductors/intake/intake.sh Route new subcommands and adjust help text/known-subcommand handling.
agents/conductors/intake/INTAKE_TAXONOMY.md Document census/dashboard semantics (taxonomy-authoritative, hygiene flags).
agents/conductors/intake/AGENTS.md Update agent contract and run examples to include census/dashboard.
agents/conductors/intake/_intake.py Add header parsing, census aggregation, dashboard rendering, and CLI wiring.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +372 to +374
records.append({
"path": str(rel),
"work_type": wt,
Comment on lines +386 to +387
if len(missing) == len(HEADER_FIELDS):
hygiene.append(f"{rel} — no metadata header (pre-dates intake)")
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.

feat: intake census + dashboard modes — Mind backlog page

2 participants