Skip to content

docs(arch-and-scope): architecture design, acceptance criteria, and workflow consistency#7

Open
nullhack wants to merge 9 commits intomainfrom
docs/arch-and-scope
Open

docs(arch-and-scope): architecture design, acceptance criteria, and workflow consistency#7
nullhack wants to merge 9 commits intomainfrom
docs/arch-and-scope

Conversation

@nullhack
Copy link
Copy Markdown
Owner

Summary

  • Architecture design session: 9 ADRs, domain model, system.md, context/container diagrams, glossary, and arch journal
  • Acceptance criteria written for all 14 backlog features
  • Workflow consistency fixes: state machine loopholes, C4 prefix removal, doc ownership clarifications

Changes

  • docs/adr/ — 9 new ADRs covering module structure, slug derivation, adapter protocol, error handling, and more
  • docs/system.md — domain model, Context, and Container sections merged and expanded
  • docs/features/backlog/ — all 14 feature files with full @id-tagged acceptance criteria
  • docs/glossary.md — living glossary populated from discovery sessions
  • docs/discovery.md, docs/scope_journal.md — updated session records
  • docs/post-mortem/ — stage 2 infinite loop post-mortem
  • AGENTS.md, FLOW.md, README.md, WORK.md — workflow consistency and ownership fixes
  • pyproject.toml — minor update

- All 14 features BASELINED (2026-04-22)
- Rules + Examples + @id tags written for all features
- Fixed FLOW.md: add [STEP-1-BACKLOG-CRITERIA] state and detection rule
- Fixed product-owner agent: handle backlog-criteria state without looping
- Clarified @id validity in scope_journal (I1a): any non-empty value is valid
…; embed arch Q&A into ADRs; slim discovery.md format
… skills

Root A (issues 3,9,10,11,16,18,20,21): FLOW.md/WORK.md confusion — all session
log, state update, and format references corrected to WORK.md (FLOW.md is
static and agent-immutable).

Root B (issues 1,6,14,19): domain-model.md phantom references removed from
AGENTS.md, run-session, verify, system-architect, implement skills; all
references now point to ## Domain Model section of docs/system.md.

Root C (issues 2,7,8,12,13,15): ownership errors fixed — [STEP-2-READY] owner
changed to software-engineer; [POST-MORTEM] action split between PO and SE;
[STEP-5-COMPLETE] detection rule 13 added and entry condition disambiguated from
[STEP-5-MERGE]; create-skill/SKILL.md implement step corrected to Step 3;
system-architect.md create-skill entry removed; implement/SKILL.md
test-coverage -> test.

Root D (issues 4,5,17): git-release stages docs/system.md not deleted
context.md/container.md; architect/SKILL.md template directory fixed to
'this skill's directory'; FLOW.md Source:/Feature: field references replaced
with WORK.md @id/@Branch.
i2A: STEP-2-ARCH failure exit changed from STEP-1-DISCOVERY to STEP-1-CRITERIA;
a baselined feature with a spec gap needs criteria extended, not rediscovered.

i3A: detection rule 10 now checks WORK.md @State = STEP-5-READY before the
filesystem test-pass check (rule 11); filesystem alone cannot distinguish
Step 4 complete from Step 5 ready, so WORK.md takes precedence for late-
pipeline states.

i4/5: software-engineer.md No-In-Progress and Spec-Gaps sections corrected
to reference WORK.md instead of FLOW.md (FLOW.md is agent-immutable).

i6B: IDLE exit now lists all 3 conditional initial states depending on feature
content (STEP-1-DISCOVERY / STEP-1-CRITERIA / STEP-2-READY), matching the
logic in select-feature skill.

i7A: STEP-3-READY and STEP-3-GREEN merged into STEP-3-WORKING; STEP-3-RED
retained as a mid-cycle sub-state with a note that WORK.md stays STEP-3-WORKING
unless the session ends mid-RED. All STEP-3-READY references in agent files
updated to STEP-3-WORKING.
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