Skip to content

feat: questions inbox store — questions.md + questions_edit.py (M3.5 build B, PyAutoBrain#645) - #576

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/m35-inbox
Nov 16, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/m35-inbox

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

The PyAutoMind half of M3.5 build B (PyAutoLabs/PyAutoBrain#645). Merge this first; the PyAutoBrain PR follows. Design: Science/scratch/m3_4_m3_5_design/DESIGN.md §4. The human's decisions, all as recommended (2026-11-16): H7 a, H9 a, H11 a/a.

  • scripts/questions_edit.py: show, add, answer, defer, drop and reopen for questions.md (Open / Deferred / Answered / Dropped). questions.md is created from its template on the first add. answer also appends the answer to the task's prompt in draft/ or active/. add_text is the function the watcher's question-add op runs from the tree it writes.
  • lifecycle.py: check validates questions.md, and close answers a closed task's open questions.
  • ledger_merge LEDGER_FILES, a spawn.py rule, dashboard_refresh.yml watching questions.md, and a REFERENCE.md section.

Test plan

  • tests/test_questions_edit.py (24): round trips, the id after a replay, the prompt appended in draft/ and active/, and refused writes keeping lifecycle.py check clean.
  • Mind suite: 932 passed. lifecycle.py check OK.
  • Independent review: FINDINGS (all in the Brain half), fixed; re-review CLEAN.

🤖 Generated with Claude Code

… checks (PyAutoBrain#645)

M3.5 Build B, Mind half. Parked shift questions get one ledger file,
questions.md (Open / Deferred / Answered / Dropped; the section is the state),
and one script for every write:

- scripts/questions_edit.py: show / add / answer / defer / drop / reopen,
  built like queue_edit.py (Refused, exit 0/1/2, a write that adds a
  lifecycle finding is undone). add_text() is the pure function the shift
  watcher's question-add op runs from the tree it writes: ids are the file's
  highest plus 1, and (shift, task, issue) is unique, so a replay is a
  silent repeat. answer appends the answer to the task's prompt (draft/ or
  active/) under "## Answers from the human" and prints the path to commit.
- lifecycle.py: questions_parse/questions_findings in `check` (ids unique,
  required keys, Open/Deferred task resolves); `close` moves the task's open
  questions to Answered with answer: (task completed).
- ledger_merge.py: questions.md is a ledger file.
- spawn.py: questions.md is EMPTY instance state; dashboard_refresh.yml
  watches it; REFERENCE.md gains a questions inbox section.

questions.md itself is not added here: add creates it from the template, and
the lead lands the seed after merge.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 88c408d into main Nov 16, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/m35-inbox branch November 16, 2026 14:25
Jammy2211 added a commit that referenced this pull request Nov 16, 2026
…ointer; keep both sections

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant