Skip to content

fix: intake honours declared Type, Target and Repos headers - #476

Merged
Jammy2211 merged 3 commits into
mainfrom
feature/intake-declared-header-fields
Oct 6, 2026
Merged

Jammy2211 merged 3 commits into
mainfrom
feature/intake-declared-header-fields

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Closes #472

Intake now honours declared Target: and Repos: (as written, in order, validated, notes for unknowns); an unknown declared Type: is never silently dropped — known aliases map with a visible note (hygiene → maintenance), anything else goes to triage with a note naming the valid set; a leading header block no longer becomes the title/slug or is echoed into the body. _sizing.py and the dashboard renderers are untouched; formalise/_derive_fields out of scope.

Tests: new tests/test_intake_declared_fields.py (11); targeted intake suites 211 passed; full Brain suite 1206 passed. Each new test was red on the unfixed code first.

Heart: readiness STALE (release validation stale: source moved since rehearsal — PyAutoNerves); human-acknowledged 2026-10-05. Tier notify — auto-merge on green per the approved plan; PyAutoBrain has no PR test CI, so the gate is the local full suite above.

Part of bundle pyautobrain-worktree-guards (one issue + one PR per member). No workspace impact (Brain tooling only).

🤖 Generated with Claude Code

- Unknown declared Type is no longer dropped silently: a small alias map
  (hygiene/upkeep -> maintenance, tests -> test, documentation -> docs) applies
  with a visible risk note; any other unknown Type files to triage/ with a note
  naming the valid WORK_TYPES set. Not a hard error, so an `intake ideas` batch
  never aborts. _sizing.py untouched.
- A declared Target is honoured when it normalises to a known repo or
  `workspaces`; otherwise a note and fall back to inference.
- A declared Repos list is taken as written, in order, normalised and
  validated; unknown names are dropped with a note and prose mentions add
  nothing (no phantom `workspaces`).
- New _split_header strips a leading heading plus a contiguous block of KNOWN
  header keys (requires an anchor key and a closing blank line, so a prose
  first line like "Status: ..." is not eaten). The title comes from the
  heading or first non-header line, and write_prompt no longer echoes the
  header block into the body.
- emit_human marks target/repos "(declared)".

Out of scope: formalise / _derive_fields still read only the faculty's
declared_header values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Jammy2211 and others added 2 commits October 5, 2026 21:58
…#472)

The retired PyAutoConf spelling tripped test_nerves_rename_complete in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HNJQJqKfbvtQ2Tbq9oyY5W
…ant firewall)

Read the library display names from the body map (REPO_DISPLAY) at runtime
instead of writing PyAuto* literals, so the declared Target/Repos assertions
still validate against the real known-repo registry while the organ-code
tenant firewall stays clean. A guard test pins that each name resolves to a
known library repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit a3a2ca3 into main Oct 6, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/intake-declared-header-fields branch October 6, 2026 08:11
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.

fix: intake honours declared Type, Target and Repos headers

1 participant