Skip to content

feat(questions): ruling inbox kind for the readiness pass (M3.3 slice 1) - #585

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/shift-readiness-pass
Nov 18, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/shift-readiness-pass

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Part of PyAutoLabs/PyAutoBrain#671 (M3.3 slice 1, the readiness pass). Merge this before the Brain PR. The Brain pass files rulings only once Mind main has this kind, and its real-Mind test skips until then.

Summary

A new questions-inbox kind, ruling. Brain's new batch ready uses it to file a gate it found on a queued task, such as "repo claimed by another task" or "no next-phase prompt filed", so the human can rule on it with /questions.

  • scripts/lifecycle.py:
    • ruling is added to QUESTION_KINDS.
    • A ruling needs gate: (a kebab-case slug, not a fixed list) and may have no issue:; a gate: on any other kind is an error.
    • The check flags two Open or Deferred rulings on the same task and gate.
    • The (shift, task, issue) repeat rule now applies only to questions and blocks.
  • scripts/questions_edit.py:
    • add_text skips a ruling while one on the same task and gate is Open or Deferred, from any shift; once that one is Answered or Dropped it can be filed again.
    • answer appends - Q<n> (<day>, ruling <gate>, shift X): … to the prompt.
    • show names the gate.
    • The add CLI takes --gate.
  • questions.md: the header documents the kind. A ruling never holds or releases a parked task; Brain enforces that.

Example:

### Q1. sprocket_calibration — PyAutoMind is claimed by another task. Run this one anyway?
- task: draft/feature/flywheel/sprocket_calibration.md
- kind: ruling
- gate: claimed
- ask: …
- options: (a) override · (b) wait
- shift: 2026-11-18-am
- asked: 2026-11-18T08:00Z
- worker: readiness pass

Evidence

  • Mind suite: 1053 passed. lifecycle.py check: OK, with one warning that was already on main.
  • Tenant firewall (organ code): OK.
  • Brain's parser-parity test (tests/test_questions_inbox.py) passes against this branch.
  • Independent Fable 5.2 review over two rounds, together with the Brain PR. Round 1 had one Mind finding (L2: two rulings on one issue tripped the triple check); it is fixed and round 2 was CLEAN.

🤖 Generated with Claude Code

…ce 1)

kind: ruling carries a required gate: (kebab slug) and an optional issue:.
add_text skips a ruling while one on the same task and gate is Open or
Deferred, whatever its shift; the (shift, task, issue) repeat rule now
applies to questions only. answer() writes 'ruling <gate>, shift X' on the
prompt; show() names the gate. lifecycle check validates gate and flags two
open rulings on one task and gate. Header documents the kind.

Part of PyAutoLabs/PyAutoBrain#671

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 1bd5193 into main Nov 18, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/shift-readiness-pass branch November 18, 2026 09:12
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