@antoneeo/agentic-sdlc-skill 1.15.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +55 -0
- package/README.md +4 -1
- package/gemini-extension.json +6 -6
- package/package.json +48 -46
- package/scripts/init.js +3 -1
- package/skills/agentic-sdlc-skill/ENFORCEMENT.md +6 -2
- package/skills/agentic-sdlc-skill/SKILL.md +32 -13
- package/skills/agentic-sdlc-skill/architect.md +215 -0
- package/skills/agentic-sdlc-skill/dispatch.md +3 -1
- package/skills/agentic-sdlc-skill/elicitation.md +12 -1
- package/skills/agentic-sdlc-skill/guides.md +25 -0
- package/skills/agentic-sdlc-skill/review.md +90 -7
- package/skills/agentic-sdlc-skill/scripts/sdlc_check.py +387 -17
- package/skills/agentic-sdlc-skill/templates.md +196 -23
- package/skills/agentic-sdlc-skill/vision.md +245 -0
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
# The Architect Pass
|
|
2
|
+
|
|
3
|
+
Applies at L3, in phase 3, AFTER the spec elicitation and BEFORE the Impact is
|
|
4
|
+
drafted. It answers the one question the Impact cannot ask: *does the system
|
|
5
|
+
already have the components and services this feature needs?*
|
|
6
|
+
|
|
7
|
+
Why it exists: **a feature is not a unit of construction.** Left alone, an agent
|
|
8
|
+
designs the feature and builds whatever it lacks inside the feature's own code
|
|
9
|
+
path — so no component owns the capability, the next feature that needs it
|
|
10
|
+
rebuilds it differently, and the platform accretes feature-shaped code nobody can
|
|
11
|
+
reuse. That is myopia one level above the file: the change is complete, the tests
|
|
12
|
+
pass, and the architecture is worse.
|
|
13
|
+
|
|
14
|
+
## 1. State the feature as capabilities, not as files
|
|
15
|
+
|
|
16
|
+
Write what the system must be able to DO for this feature to exist — "persist a
|
|
17
|
+
draft across sessions", "notify a third party asynchronously", "authorize per
|
|
18
|
+
tenant". A capability is a verb over a domain noun. It names no file, no class and
|
|
19
|
+
no library: **that** is the decoupling. Files come later, in the Impact.
|
|
20
|
+
|
|
21
|
+
Two or three capabilities is a normal feature. When the list has one obvious entry
|
|
22
|
+
and it plainly exists, say so in one line **under the `## Capability Ledger`
|
|
23
|
+
heading, still naming the component and where it lives**, and move on — this pass
|
|
24
|
+
is a question to answer, not a form to fill. The heading is what makes a cheap
|
|
25
|
+
answer distinguishable from a skipped pass; a bare "everything already exists"
|
|
26
|
+
names nothing and is the **Paper ledger** anti-pattern, not the licence.
|
|
27
|
+
|
|
28
|
+
## 2. Rule each capability against the platform
|
|
29
|
+
|
|
30
|
+
One verdict per capability:
|
|
31
|
+
|
|
32
|
+
| Verdict | Meaning | What the row must carry |
|
|
33
|
+
|---|---|---|
|
|
34
|
+
| **EXISTS** | a component already owns this capability and covers the need | the component, where it lives (path / symbol), and the one guarantee you re-read it to confirm |
|
|
35
|
+
| **INADEQUATE** | a component owns it but does not cover the need | the same, plus the gap in one line |
|
|
36
|
+
| **MISSING** | no component owns it | the terms you searched, the tool, and the areas covered |
|
|
37
|
+
|
|
38
|
+
Read the **`## Component Map`** in `strategic/architecture.md` first — the project's
|
|
39
|
+
inventory of what owns which capability, kept so this pass does not re-derive the
|
|
40
|
+
platform from source every session.
|
|
41
|
+
|
|
42
|
+
**The map is a cache of evidence somebody already paid for. It lowers the COST of a
|
|
43
|
+
verdict, never the STANDARD of one.** Every verdict carries the same evidence
|
|
44
|
+
whether the map answered it or not; a hit means the search is already written down,
|
|
45
|
+
a miss means you pay full price. Reading a row does not excuse you from checking
|
|
46
|
+
that it is still true — the map is the index, the code is the evidence.
|
|
47
|
+
|
|
48
|
+
**Its silence is unread, not empty.** The map covers only the areas `audit/
|
|
49
|
+
audit_plan.md` marks ANALYZED — and that state is a claim someone made, not a fact
|
|
50
|
+
the tooling verified: marking asserts *the area was read closely enough to name the
|
|
51
|
+
capabilities it owns*, so an area marked after two greps is a false ANALYZED and
|
|
52
|
+
the person who wrote it owns the duplicate that follows. In an area still PENDING —
|
|
53
|
+
or SKIPPED, or absent from the plan entirely — **the map can never ground a MISSING
|
|
54
|
+
verdict.** Nothing there has been looked at yet, and "the inventory does not mention
|
|
55
|
+
it" is the reasoning that builds a second copy of a component that already exists.
|
|
56
|
+
|
|
57
|
+
**Searching for an owner** is text search first, symbol-graph second — in that
|
|
58
|
+
order, because you are looking for a name you do not know yet, and a call-hierarchy
|
|
59
|
+
tool needs a resolved symbol as *input*. Grep the repository (minus SKIPPED areas)
|
|
60
|
+
for the domain noun, at least two plausible synonyms, and the verb; then use the
|
|
61
|
+
symbol-graph tool to confirm or dismiss the candidates the search surfaced.
|
|
62
|
+
|
|
63
|
+
**The floor for a MISSING** is about triage, not term count: every hit that lands in
|
|
64
|
+
an unmapped area gets opened, or the MISSING is **provisional** and says so in its
|
|
65
|
+
row. Record what you ran — terms, tool, areas — and stop when the terms are
|
|
66
|
+
exhausted and no candidate remains unopened. A provisional MISSING is honest and
|
|
67
|
+
cheap; an unfalsifiable one is the same defect as an EXISTS with no symbol named.
|
|
68
|
+
|
|
69
|
+
**Understanding is never deferred; only WRITING the map is.** You may leave the rest
|
|
70
|
+
of the repository unmapped and grow the inventory feature by feature — you may not
|
|
71
|
+
leave unexamined anything this change touches or depends on. That blast zone is
|
|
72
|
+
understood now, at full standard, mapped or not. The incremental licence is about
|
|
73
|
+
the artifact, never about the comprehension.
|
|
74
|
+
|
|
75
|
+
Ground every verdict. An EXISTS with no named symbol is an assumption wearing a
|
|
76
|
+
verdict's clothes, and it is the row that breaks in implementation. A MISSING
|
|
77
|
+
declared without a real search is how duplication enters — the component may be
|
|
78
|
+
there under a name you did not guess. This is the DRY check at architecture level.
|
|
79
|
+
|
|
80
|
+
## 3. Design what is missing as a component, not as feature internals
|
|
81
|
+
|
|
82
|
+
INADEQUATE and MISSING produce design work of their own, governed by one rule:
|
|
83
|
+
|
|
84
|
+
**The component's contract is stated in the component's own vocabulary. The feature
|
|
85
|
+
is one consumer, never the owner.**
|
|
86
|
+
|
|
87
|
+
The test is mechanical: write the contract — what it does, what it takes, what it
|
|
88
|
+
guarantees — *without naming the feature*. If you cannot, the contract is
|
|
89
|
+
feature-shaped, and the second consumer will force it open. **Renaming the
|
|
90
|
+
feature's nouns is not stating the contract in the component's vocabulary**:
|
|
91
|
+
`store(ConfirmationPayload) -> id` described as "stores records by id" still fails.
|
|
92
|
+
The question the wording cannot dodge — *would a second plausible consumer have to
|
|
93
|
+
change this signature?* If yes it is feature-shaped, however it is phrased.
|
|
94
|
+
|
|
95
|
+
The opposite error is equally real: this is not a licence to build a framework.
|
|
96
|
+
Build for the need you have, at the size you need. What the rule constrains is the
|
|
97
|
+
contract's **vocabulary and ownership**, not its scope — a five-line component with
|
|
98
|
+
a clean contract satisfies it in full.
|
|
99
|
+
|
|
100
|
+
## 4. Decide the unit of change
|
|
101
|
+
|
|
102
|
+
A capability that needs building becomes **its own ANALYSIS, its own branch and its
|
|
103
|
+
own closure** when ANY of these holds:
|
|
104
|
+
|
|
105
|
+
- it will have more than one consumer, now or in the declared roadmap;
|
|
106
|
+
- **it can ship before this feature does** — merged and adopted on its own cadence,
|
|
107
|
+
with the feature still unfinished. (Not "buildable and testable on its own": §3
|
|
108
|
+
requires that of every component, so reading it that way makes the default branch
|
|
109
|
+
below unreachable and puts every five-line helper through its own L3.) IN: a
|
|
110
|
+
storage layer another team can adopt next sprint while this feature is still in
|
|
111
|
+
design. OUT: a helper nobody can use until the feature that motivated it lands;
|
|
112
|
+
- it carries its own risk surface: security, a public contract, a data model, or a
|
|
113
|
+
new dependency.
|
|
114
|
+
|
|
115
|
+
Otherwise it is a **phase inside this feature's plan** — the first phase, before the
|
|
116
|
+
feature consumes it — and it is still a component: own contract, own tests, never
|
|
117
|
+
inlined into the feature's code path. **The split rule decides the paperwork; it
|
|
118
|
+
never decides whether the component exists.**
|
|
119
|
+
|
|
120
|
+
When it does become its own unit, each document names the other: the feature's
|
|
121
|
+
ANALYSIS points at the component's, and the component's lists its consumers.
|
|
122
|
+
|
|
123
|
+
## 5. Order
|
|
124
|
+
|
|
125
|
+
The component is designed before the feature that consumes it, and normally built
|
|
126
|
+
and tested before it too. A feature blocked on a capability it does not have is not
|
|
127
|
+
"in progress" — it is a component task wearing a feature's name.
|
|
128
|
+
|
|
129
|
+
## Anti-patterns
|
|
130
|
+
|
|
131
|
+
- **Inlining** — the capability is implemented inside the feature's code path and no
|
|
132
|
+
component owns it. Symptom: the next feature that needs it must copy it or
|
|
133
|
+
refactor yours. This is the failure the pass exists to prevent.
|
|
134
|
+
- **Feature-shaped platform** — the component exists, but its contract speaks the
|
|
135
|
+
feature's vocabulary. Symptom: the second consumer forces a contract change.
|
|
136
|
+
- **Silent degradation** — a capability comes out MISSING, nobody wants to build it,
|
|
137
|
+
so the feature is quietly reshaped around what exists and ships as less than what
|
|
138
|
+
was asked. The reduced benefit must be surfaced to the user as a scope change and
|
|
139
|
+
recorded in the ANALYSIS; absorbing it silently is the Vision-divergence rule
|
|
140
|
+
broken one level down.
|
|
141
|
+
- **Speculative platform** — a general framework built for a single known need.
|
|
142
|
+
- **Paper ledger** — every row EXISTS, nothing named. Unfalsifiable, exactly like a
|
|
143
|
+
review that reports "I checked".
|
|
144
|
+
- **Empty-map MISSING** — ruling a capability MISSING because the Component Map is
|
|
145
|
+
silent about it, in an area nobody has analyzed yet. The map's silence is
|
|
146
|
+
*unread*, not *empty*. On a project the methodology has just arrived in, the map
|
|
147
|
+
is nearly all silence, and this is the anti-pattern that duplicates the existing
|
|
148
|
+
codebase one component at a time.
|
|
149
|
+
|
|
150
|
+
## Where the output is recorded
|
|
151
|
+
|
|
152
|
+
Standalone: the `## Capability Ledger` section of the ANALYSIS (`templates.md`),
|
|
153
|
+
immediately before `## Impact`, which it feeds — every INADEQUATE or MISSING row
|
|
154
|
+
lands there as files to create or change. The closure review maps the ledger row by
|
|
155
|
+
row (`review.md`).
|
|
156
|
+
|
|
157
|
+
**A component that gets built lands in the `## Component Map`** of
|
|
158
|
+
`strategic/architecture.md`, in the same closure — capability owned, contract,
|
|
159
|
+
where it lives. This is the loop that makes the pass repeatable instead of
|
|
160
|
+
per-session: the ledger asks the map what exists, so a component the map never
|
|
161
|
+
learned about is one the next feature rules MISSING and builds a second time. The
|
|
162
|
+
trigger is the component's birth, not a stack change (Write Triggers).
|
|
163
|
+
|
|
164
|
+
**So does a component you merely discovered.** When the pass searches an unmapped
|
|
165
|
+
area and finds an existing owner, write that row too, then `sdlc_check.py mark` the
|
|
166
|
+
area you covered — **in that order, and never the mark without the rows.** Marking
|
|
167
|
+
an area ANALYZED while its owners stay unwritten is the worst of both states: the
|
|
168
|
+
area now looks read, so the map's silence there becomes groundable, and the next
|
|
169
|
+
feature rules MISSING and builds a duplicate — lawfully. What a mark asserts is
|
|
170
|
+
exactly this: *the area was read closely enough to name the capabilities it owns.*
|
|
171
|
+
The map then grows by the feature that needed the knowledge instead of by an
|
|
172
|
+
up-front sweep — the understanding was paid for either way, and this is the step
|
|
173
|
+
that stops the next session paying for it again.
|
|
174
|
+
|
|
175
|
+
Hybrid: the ledger goes in the `E-ISP`, above its Impacted Components map. A
|
|
176
|
+
capability split out as its own unit of change gets its own `E-ISP`/`E-TDD`, and the
|
|
177
|
+
feature's `E-ISP` names it as a dependency.
|
|
178
|
+
|
|
179
|
+
## Mechanical backstops
|
|
180
|
+
|
|
181
|
+
Prose is not enforcement; these are the checks that notice when the pass did not
|
|
182
|
+
run or its output rotted. Both are **advisories** — printed as `[note]`, never
|
|
183
|
+
counted as warnings, and never failing a build, **not even under `--strict`**. That
|
|
184
|
+
is deliberate: the ceremony budget accepted for this pass was a signal, and a
|
|
185
|
+
warning that reddens a pipeline is a gate under another name.
|
|
186
|
+
|
|
187
|
+
- **Skipped pass**: `validate` notes an L3 ANALYSIS started on/after 2026-07-28
|
|
188
|
+
that lacks `## Capability Ledger`. Grandfathered by `start_date` alone —
|
|
189
|
+
analyses born before the pass existed never nag — and deliberately NOT by
|
|
190
|
+
status: closure flips the ANALYSIS to COMPLETED *before* `check` runs, so a
|
|
191
|
+
status filter would silence the backstop at the exact moment the process
|
|
192
|
+
mandates the validator.
|
|
193
|
+
- **Rotting map**: `validate` resolves every path-shaped ref in the Component
|
|
194
|
+
Map's `Where` column — a path that no longer exists, or a `#symbol` no longer
|
|
195
|
+
present as a whole word in the file, is flagged; so is a map whose rows carry
|
|
196
|
+
no checkable path at all, or whose header has no `Where` column (an inert check
|
|
197
|
+
reported as a clean one is the same defect as an unread map reported as empty).
|
|
198
|
+
This is the map's equivalent of the guides' `source_hash`, with the same honest
|
|
199
|
+
limit: it proves the ref resolves, never that the row still describes the
|
|
200
|
+
component correctly.
|
|
201
|
+
- **A mark nobody paid for**: `validate` notes an area the audit plan marks
|
|
202
|
+
ANALYZED that owns no Component Map row. Marking is one cheap command and it is
|
|
203
|
+
what converts the map's silence into a groundable MISSING — so this is the other
|
|
204
|
+
half of the loop, the check that a mark asserted something real.
|
|
205
|
+
- **Adherence** (non-gating, **skill development only** — `evals/` is not shipped
|
|
206
|
+
in the installed package): `architect_rules_before_impact.md` runs the pass
|
|
207
|
+
cold; `unmapped_never_grounds_missing.md` sets the brownfield trap — an existing
|
|
208
|
+
component in a PENDING area, where ruling MISSING from the map's silence is the
|
|
209
|
+
failure.
|
|
210
|
+
|
|
211
|
+
## Below L3
|
|
212
|
+
|
|
213
|
+
L1 and L2 do not run this pass. A capability discovered MISSING during L2 work is
|
|
214
|
+
itself an escalation trigger: stop, reclassify to L3, declare it (Rule Zero). "The
|
|
215
|
+
component was not there" is never a reason to build it inside an L2.
|
|
@@ -38,7 +38,9 @@ consult trigger (`guides.md` §0) applied at plan-authoring time: the orchestrat
|
|
|
38
38
|
runs the router lookup (project router `ai_docs/reference/INDEX.md` + the agent-KB
|
|
39
39
|
router) when populating `guides`. A dispatched context-free subagent does **NOT**
|
|
40
40
|
run its own router consult — it reads the guide pointers handed to it in the
|
|
41
|
-
brief.
|
|
41
|
+
brief. The router verdict (Rule Zero) is therefore declared ONCE, by the
|
|
42
|
+
orchestrator, when it authors the plan; a dispatched subagent does not declare
|
|
43
|
+
one. (Proactive guide-creation stays at closure — the same broad final pass
|
|
42
44
|
below — so it needs no separate dispatch hook.)
|
|
43
45
|
|
|
44
46
|
## Model tiers (client-relative, no provider names)
|
|
@@ -8,13 +8,24 @@ user requirements already answer goal, scope, and constraints — skip the
|
|
|
8
8
|
round and add a one-line note in the analysis stating why it was skipped.
|
|
9
9
|
Do not run the round as a formality when the answers are already on record.
|
|
10
10
|
|
|
11
|
+
Unattended path: when the user is not reachable (a scheduled or autonomous run,
|
|
12
|
+
and a bootstrap Vision is `DRAFT` by mandate, so the skip path above cannot
|
|
13
|
+
apply on a project's first L3), do not stall and do not invent consensus. Write
|
|
14
|
+
the six answers as **declared assumptions** in `## Objective`, mark the ANALYSIS
|
|
15
|
+
`BLOCKED on the user`, and stop before implementation. An assumption on the
|
|
16
|
+
record is reviewable; a guess folded silently into a design is not.
|
|
17
|
+
|
|
11
18
|
## The round
|
|
12
19
|
|
|
13
20
|
Ask ONE structured set of questions, not a drip of follow-ups. Keep each
|
|
14
21
|
question short and numbered; offer concrete options where a real choice
|
|
15
22
|
exists (this narrows the reply and speeds up the round). Cover:
|
|
16
23
|
|
|
17
|
-
1. **Goal / benefit** — what problem this closes and why now.
|
|
24
|
+
1. **Goal / benefit** — what problem this closes and why now. The answer must
|
|
25
|
+
name what the actor *obtains*, not a mechanism: "a dashboard" is not an
|
|
26
|
+
answer to "never lose the thread" — ask again until it is a benefit
|
|
27
|
+
(`vision.md`: the Vision is the distilled benefit; solutions and preferences
|
|
28
|
+
are what gets filtered out).
|
|
18
29
|
2. **Actors** — who interacts with this: their role, primary goal, and what
|
|
19
30
|
"good UX" means to them. These become the Vision's `## Actors`; each
|
|
20
31
|
use-case below attaches to one (actor = who they are, use-case = what
|
|
@@ -40,6 +40,26 @@ already cover how to do this well?*
|
|
|
40
40
|
the task — never load every guide, which would reintroduce the exact token
|
|
41
41
|
cost the "point to them" model exists to avoid. The two-level model (compact
|
|
42
42
|
synthesis / verbatim snapshot) already bounds a single guide's cost.
|
|
43
|
+
- **Declare the router verdict.** The lookup result travels with the triage
|
|
44
|
+
level (`SKILL.md` Rule Zero) as one line — `router: no match`, or
|
|
45
|
+
`router: GUIDE_x.md → read`. This is what makes the consult reliable: an
|
|
46
|
+
undeclared lookup is indistinguishable from a skipped one, to the user, to a
|
|
47
|
+
later reviewer, and to you in the next session. Declaring `no match` on a repo
|
|
48
|
+
with no matching guide is the correct, expected output — not noise.
|
|
49
|
+
- **Three legal verdicts, not two.** `GUIDE_x.md → read`, `no match` (the router
|
|
50
|
+
was read; nothing fitted — including a project whose router is an empty stub,
|
|
51
|
+
which is the normal state before the first guide exists), and
|
|
52
|
+
`router: absent (no router file)` for the case where `ai_docs/reference/INDEX.md`
|
|
53
|
+
does not exist at all. That third value exists so the honest answer is always
|
|
54
|
+
available: a required declaration with no truthful value gets faked or dropped,
|
|
55
|
+
and it takes the rest of Rule Zero with it. Regenerate the router
|
|
56
|
+
(`sdlc_check.py index`) when you report `absent`.
|
|
57
|
+
- **Never fake the verdict.** `no match` means the router was read and nothing
|
|
58
|
+
fitted. A verdict that is always `no match` certifies a lookup that did not
|
|
59
|
+
happen and is worse than silence; a verdict listing the catalogue means the
|
|
60
|
+
match was not targeted (T7). Two guides are legitimate only when they cover
|
|
61
|
+
distinct concerns — typically an operative guide plus the comprehension map of
|
|
62
|
+
the component being touched; three is a smell, not a thorough lookup.
|
|
43
63
|
- **Under subagent dispatch** the consult happens at plan-authoring time (the
|
|
44
64
|
orchestrator populates each task's `guides` field); a context-free subagent
|
|
45
65
|
reads the pointers it was handed and does not run its own router lookup. See
|
|
@@ -103,6 +123,11 @@ the component from partial understanding.
|
|
|
103
123
|
guide per topic, both routers). Honor the fidelity floor (§3). RECOMMEND the
|
|
104
124
|
independent guide-vs-source review (§5) — it matters more here, since no human gated
|
|
105
125
|
creation. Announce the autonomous write in the closure / handoff so it is visible.
|
|
126
|
+
- **When it fires.** As soon as you recognize the signal, during the work. The
|
|
127
|
+
Phase-5 **Comprehension checkpoint** (`SKILL.md` §5) is the backstop that asks the
|
|
128
|
+
question out loud before closure — a safety net for a signal you noticed and did not
|
|
129
|
+
act on, never a licence to defer. Writing it at closure is still far better than not
|
|
130
|
+
writing it: the model you built is complete now and gone next session.
|
|
106
131
|
|
|
107
132
|
## 2. Pipeline
|
|
108
133
|
|
|
@@ -1,10 +1,62 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Review Discipline
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
and any future review step
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
The single definition of how to request, receive, and perform a review. Other
|
|
4
|
+
places that need review behavior point here instead of restating it (DRY) —
|
|
5
|
+
including devPNT's §4.5/§4.6 gates and any future review step.
|
|
6
|
+
|
|
7
|
+
## When a review is due
|
|
8
|
+
|
|
9
|
+
Two moments, and they review different things:
|
|
10
|
+
|
|
11
|
+
| # | Moment | Object | Level |
|
|
12
|
+
|---|---|---|---|
|
|
13
|
+
| **1. Design review** | End of Phase 3 — **before any implementation** | the ANALYSIS (Standalone) / the `E-ISP`+`E-TDD` (Hybrid) | L3 |
|
|
14
|
+
| **1b. Late arrival** | Work that became L3 *after* code existed — an L1/L2 reclassified mid-flight, or a design increment on a feature already implemented — runs moment 1 **now**, before any further implementation, logged `design (late)` | same | L3 |
|
|
15
|
+
| **2. Closure review** | Phase 5, before DONE | the actual diff, against that approved design | L2 / L3 — the L2 row is optional |
|
|
16
|
+
|
|
17
|
+
**Why the design review is its own moment, and not a nicety.** The closure review
|
|
18
|
+
can only tell you the code matches the design; it cannot tell you the design was
|
|
19
|
+
wrong. An omission in the design — an impacted file nobody listed, a threat with no
|
|
20
|
+
answering requirement, a capability ruled EXISTS on an assumption — is *cheapest*
|
|
21
|
+
to fix before code exists and most expensive after. And the author cannot catch it:
|
|
22
|
+
a self-review runs in the context that produced the omission and is structurally
|
|
23
|
+
blind to it, which is why independence, not effort, is what this gate buys.
|
|
24
|
+
|
|
25
|
+
**Independence, best realization the client supports** — declare which one you used:
|
|
26
|
+
|
|
27
|
+
1. **A fresh subagent** (Claude Code's Task tool, or the equivalent facility) with
|
|
28
|
+
its own context, given the artifacts below and nothing from this conversation.
|
|
29
|
+
2. **A one-shot run of the client itself** (`gemini -p "…"`, `codex exec "…"`) with
|
|
30
|
+
a SELF-CONTAINED prompt — the reviewer session has no other context, which is
|
|
31
|
+
exactly what makes it independent.
|
|
32
|
+
3. **A declared self-pass** — a separate, explicitly adversarial pass by you,
|
|
33
|
+
against the same checklist. **Rung 3 is illegitimate wherever rung 1 or 2
|
|
34
|
+
exists**: on a client with a subagent facility or a one-shot CLI, descending to
|
|
35
|
+
it is choosing zero independence, which is the one thing this gate buys. When
|
|
36
|
+
you do use it, the log row must carry *why* — `self-pass (declared; no subagent
|
|
37
|
+
facility on this client)` — not merely that you did. A rung named without its
|
|
38
|
+
reason is indistinguishable from a rung chosen for convenience.
|
|
39
|
+
|
|
40
|
+
Rung 3 stays in the ladder deliberately: it is what keeps the methodology
|
|
41
|
+
completable with no network, no account and no subagent facility. It is a floor,
|
|
42
|
+
never a default.
|
|
43
|
+
|
|
44
|
+
Use a different model from the author's where the client allows it.
|
|
45
|
+
|
|
46
|
+
**Rounds are capped at 3.** FAIL → revise → re-review. If findings still stand
|
|
47
|
+
after the third, stop and surface them to the user with the artifact — a gate that
|
|
48
|
+
can block forever gets removed. **Log one row per completed review, PASS or FAIL**
|
|
49
|
+
— a FAIL surfaced to the user is the highest-value outcome the gate produces, and
|
|
50
|
+
logging only passes would erase exactly that evidence. The row goes in
|
|
51
|
+
`ai_docs/audit/reviews/REVIEW_LOG.md` (create it if absent — `templates.md`):
|
|
52
|
+
`| date | doc_key | tier | reviewer | findings_raised | findings_real | verdict | revise_rounds |`,
|
|
53
|
+
with `tier` = `design` or `closure` in Standalone. One schema for both modes: a
|
|
54
|
+
Hybrid project's devPNT gates write to the same file.
|
|
55
|
+
The log is how the gate's value is measured over time; skipping it makes the gate
|
|
56
|
+
unfalsifiable, the same defect as an unnamed EXISTS or a faked router verdict.
|
|
57
|
+
|
|
58
|
+
**The reviewer is read-only and advisory.** It never edits, never commits, never
|
|
59
|
+
marks anything DONE, and a PASS is not an approval to merge — the human owns that.
|
|
8
60
|
|
|
9
61
|
## Requesting
|
|
10
62
|
|
|
@@ -13,7 +65,9 @@ When you hand work to a reviewer (human or agent), give them:
|
|
|
13
65
|
- **Scope**: what changed and why, in one or two lines.
|
|
14
66
|
- **The authoritative design artifact**: the ANALYSIS, E-TDD, or equivalent
|
|
15
67
|
the change was built against — not a paraphrase of it.
|
|
16
|
-
- **The actual diff**: the real changed files, not a description of them.
|
|
68
|
+
- **The actual diff**: the real changed files, not a description of them. (For a
|
|
69
|
+
**design** review there is no diff yet — that is the point; hand the artifact
|
|
70
|
+
plus the constraints below, and say the object under review is the design.)
|
|
17
71
|
- **For an impact/solution-analysis review, the constraints it derives from**:
|
|
18
72
|
the **Vision**, including its `## Actors` (Hybrid: the `M-VISION`; Standalone:
|
|
19
73
|
`project_vision.md`/`roadmap.md` + the ANALYSIS Vision-Alignment), the
|
|
@@ -22,6 +76,14 @@ When you hand work to a reviewer (human or agent), give them:
|
|
|
22
76
|
(Hybrid: `P-TM`; Standalone: the ANALYSIS `## Security and Threat Model`). Hand these
|
|
23
77
|
*in addition to* the design artifact — the reviewer checks the artifact **against**
|
|
24
78
|
them, not only for internal consistency.
|
|
79
|
+
- **For a design review, the threat model too** (same sources as above). Why this
|
|
80
|
+
one and not the whole set: file coverage crosses the impact-analysis→design hop on
|
|
81
|
+
a mechanical gate (every impacted file needs a design block), so a dropped file is
|
|
82
|
+
caught; **threats have no such gate** — a threat answered in the impact analysis
|
|
83
|
+
can silently fail to become a security requirement in the design, and the later
|
|
84
|
+
code review only verifies the requirements that are there, never the ones that
|
|
85
|
+
should have been. The design reviewer checks that every threat surface the change
|
|
86
|
+
touches has a matching security requirement.
|
|
25
87
|
|
|
26
88
|
Never ask a reviewer to "review my session" or "review what I just did"
|
|
27
89
|
without the artifacts above — that forces them to reconstruct scope from
|
|
@@ -63,6 +125,27 @@ When you are the reviewer:
|
|
|
63
125
|
statement is the proof the check ran; an unfalsifiable "I checked" is the review
|
|
64
126
|
theater this discipline exists to prevent (the reviewer-side twin of §Receiving's
|
|
65
127
|
silent-drop rule). Plain code reviews stay findings-only.
|
|
128
|
+
- **Capability Ledger (same reviews).** **An L3 impact/solution analysis or design
|
|
129
|
+
that carries NO Capability Ledger is itself a finding** — the architect pass left
|
|
130
|
+
no record, and "the artifact does not have one" is what a skipped pass looks like,
|
|
131
|
+
not a reason to skip the check. (This half is load-bearing in Hybrid, where the
|
|
132
|
+
validator backstop reads Standalone ANALYSIS files only and this clause is the
|
|
133
|
+
sole check that the pass ran.) When the ledger is there, map each
|
|
134
|
+
ledger row to where the design or diff realizes it. Three findings live here and
|
|
135
|
+
nowhere else (`architect.md`): a capability ruled MISSING but implemented inside
|
|
136
|
+
the feature's code path, with no component owning it; a component whose contract
|
|
137
|
+
names the feature (a second consumer would force it open); and a capability ruled
|
|
138
|
+
MISSING, not built, and absorbed by quietly reshaping the feature — that is a
|
|
139
|
+
scope change owed to the user, not a design detail. An EXISTS row with no named
|
|
140
|
+
path or symbol is itself a finding. A capability built in this change and absent
|
|
141
|
+
from the `## Component Map` (`strategic/architecture.md`) is a finding too — and
|
|
142
|
+
so is **a component the pass merely DISCOVERED and did not write**, especially
|
|
143
|
+
when the change marks that area ANALYZED: the area now looks read, the map is
|
|
144
|
+
still silent, and the next feature may lawfully rule the capability MISSING and
|
|
145
|
+
build it twice. And a **MISSING row in an area `audit/audit_plan.md` does not
|
|
146
|
+
mark ANALYZED, with no searches named**, is the finding that matters most on a
|
|
147
|
+
project the methodology arrived in recently — an unread map reported as an empty
|
|
148
|
+
one is how a duplicate of the existing codebase gets designed.
|
|
66
149
|
|
|
67
150
|
## Anti-patterns
|
|
68
151
|
|