Skip to content

feat: intake reconcile mode — flag shipped-but-stale backlog prompts - #53

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

feat: intake reconcile mode — flag shipped-but-stale backlog prompts#53
Jammy2211 merged 1 commit into
mainfrom
feature/intake-reconcile

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Adds intake reconcile — the fourth backlog mode (census → dashboard → formalise → reconcile). A prompt's Status: header is not a completeness signal: formalise preserves an existing Status verbatim, so shipped work can still read Status: planned (the PyAutoHeart M0–M5 release-validation cluster sat exactly like that until today's manual audit caught it). Reconcile makes that audit repeatable: per backlog prompt it collects four Mind-local signals and prints a confidence-ranked suspect list for a human to retire. Always read-only, even under --apply — the final verification (target repo git log / merged PRs) and the retirement to issued/ stay human.

Closes #52.

API Changes

CLI surface only — no Python API consumed downstream.

  • bin/pyauto-brain intake reconcile [prefix] — ranked shipped-but-stale suspects; --json for full records; --apply prints a read-only note and is otherwise ignored.

See full details below.

Test Plan

  • Fixture Mind: each signal fires independently at the right confidence — prompt: path reference (high), follow-up-worded reference (low), issued/ duplicate basename (high), completed-header topic overlap (medium), hand-set Status: planned (low), clean prompt excluded; prefix filter + --apply stderr note.
  • Live Mind: 20 suspects of 74 ranked — surfaced real candidates the manual audit missed (nnls_gpu_bottleneck, jax_substructure/5,6 referenced by a retroactive close-out note) and correctly downgraded known-open follow-ups; "next step" wording added to the follow-up downgrade list after the live run caught it ranking a follow-up high.
  • Regression: classify / ideas / census / dashboard / formalise unchanged; bash -n + py_compile clean; help renders fully.
Full API Changes (for automation & release notes)

Removed

  • None.

Added

  • _intake.py::reconcile(mind, prefix="") — census-driven, four Mind-local signals, confidence-ranked suspects (high: prompt:-style reference or issued-duplicate; medium: topic overlap; low: follow-up reference / stale status only).
  • _intake.py::_tokens(s) + _STOPWORDS / _FOLLOWUP_WORDS — token overlap and follow-up-wording downgrade vocabulary.
  • _intake.py::emit_reconcile(result) — ranked report with evidence lines (truncated at 160 chars; --json keeps full text).
  • intake.shreconcile subcommand routed; help updated.

Migration

  • None — existing modes unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_016ttFH96vcXuCVZfSBZEytf

A prompt's Status: header is not a completeness signal (formalise
preserves an existing Status verbatim, so shipped work can still read
Status: planned — the PyAutoHeart M0-M5 cluster sat exactly like that).
reconcile makes the manual audit repeatable: per backlog prompt it
collects four Mind-local signals — complete.md path references
(follow-up wording downgrades to likely-open), duplicate basenames in
issued/, token overlap with completed task headers, and hand-set Status
values — then ranks suspects high/medium/low with the evidence shown.
Always read-only, even under --apply: the final verification (target
repo git log / merged PRs) and the retirement to issued/ stay human.

Closes #52.

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 14:04
@Jammy2211
Jammy2211 merged commit 7f30b9f into main Jul 8, 2026

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Jammy2211
Jammy2211 deleted the feature/intake-reconcile branch July 8, 2026 14:04
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 reconcile mode — flag shipped-but-stale backlog prompts

2 participants