@antoneeo/kb-agentic-skill 1.33.0 → 1.35.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 +36 -0
- package/README.md +3 -28
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/scripts/init.js +6 -6
- package/skills/kb-agentic-skill/ENFORCEMENT.md +10 -0
- package/skills/kb-agentic-skill/SKILL.md +1 -1
- package/skills/kb-agentic-skill/elicitation.md +3 -1
- package/skills/kb-agentic-skill/review.md +3 -1
- package/skills/kb-agentic-skill/scripts/sdlc_core.py +60 -3
- package/skills/kb-agentic-skill/templates.md +9 -1
- package/skills/kb-agentic-skill/vision.md +308 -308
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
Every significant change to this skill is recorded here.
|
|
4
4
|
|
|
5
|
+
## [1.35.0] - 2026-11-01
|
|
6
|
+
|
|
7
|
+
### What's new
|
|
8
|
+
|
|
9
|
+
**Branches that add review rows merge without a conflict.** When two branches both add rows to the review log and your project has no merge rule for that file, merging them stops on a conflict you resolve by hand. The check the agent runs when it closes a piece of work now notices the missing rule and prints the exact line to add to `.gitattributes`, so the agent sees what to fix while it works, without anyone reading release notes. Nothing changes at session start, and the note never makes a check fail.
|
|
10
|
+
|
|
11
|
+
#### What to do
|
|
12
|
+
|
|
13
|
+
**1. Update (everyone).** The changes arrive only with the update.
|
|
14
|
+
1. Run `npm install -g @antoneeo/kb-agentic-skill@latest`, then `kb-agentic-install-skill`.
|
|
15
|
+
2. Close and reopen your agent sessions: the new version loads only at startup.
|
|
16
|
+
|
|
17
|
+
To check: `npm ls -g @antoneeo/kb-agentic-skill` shows 1.35.0.
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
- The shared validator (F-090): `check` prints a `[note]` when the review log (`<docs>/audit/reviews/REVIEW_LOG.md`) has no `merge` attribute, naming the line to add to `.gitattributes` at the repository root (`git check-attr`, with personal and system attribute files ignored; a per-clone `.git/info/attributes` still counts). A deliberate non-union driver is respected. The exit code is unchanged, and session orientation still runs no git.
|
|
21
|
+
- `ENFORCEMENT.md`: «A review log git would not merge cleanly -- `check` names it» (F-090).
|
|
22
|
+
- `templates.md`: the `.gitattributes` stanza's note says `check` names a missing stanza and the line to add (F-090).
|
|
23
|
+
|
|
24
|
+
## [1.34.0] - 2026-10-31
|
|
25
|
+
|
|
26
|
+
### What's new
|
|
27
|
+
|
|
28
|
+
**Decisions taken on your behalf are labelled.** In the request record, a decision a session took under a delegation you gave it, and words you gave one session for work another session records, now carry their own heading. They are never read later as something you said yourself, and a delegated decision never overrides one of yours: a choice that would change it comes back to you as a question.
|
|
29
|
+
|
|
30
|
+
#### What to do
|
|
31
|
+
|
|
32
|
+
**1. Update (everyone).** The changes arrive only with the update.
|
|
33
|
+
1. Run `npm install -g @antoneeo/kb-agentic-skill@latest`, then `kb-agentic-install-skill`.
|
|
34
|
+
2. Close and reopen your agent sessions: the new version loads only at startup.
|
|
35
|
+
|
|
36
|
+
To check: `npm ls -g @antoneeo/kb-agentic-skill` shows 1.34.0.
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
- Request record (`templates.md`, F-088): labelled entries `decided under delegation R<m>` and `received for <unit>`; `review.md` and `elicitation.md` treat them as the deciding session's choice or relayed words, never an owner statement.
|
|
40
|
+
|
|
5
41
|
## [1.33.0] - 2026-10-31
|
|
6
42
|
|
|
7
43
|
### What's new
|
package/README.md
CHANGED
|
@@ -6,17 +6,9 @@ The sibling of [`@antoneeo/agentic-sdlc-skill`](https://www.npmjs.com/package/@a
|
|
|
6
6
|
|
|
7
7
|
<!-- whats-new:begin -->
|
|
8
8
|
<!-- generated by scripts/whats_new.js from distributions/kb-agentic-skill/CHANGELOG.md: edit the CHANGELOG, then run node scripts/whats_new.js --write -->
|
|
9
|
-
## What's new in 1.
|
|
9
|
+
## What's new in 1.35.0
|
|
10
10
|
|
|
11
|
-
**
|
|
12
|
-
|
|
13
|
-
**The npm page tells you what is new.** This section, at the top of the package page, now summarizes each version for the people who install it.
|
|
14
|
-
|
|
15
|
-
**From 1.32.0, published without notes:**
|
|
16
|
-
- **You know what the knowledge base has not read yet.** It tells you how much of the project remains to be examined, and before answering "no information" it checks where the answer could be.
|
|
17
|
-
- **What you told others stays a statement.** What you wrote to a client or a partner does not become a fact about the product. If it contradicts what the knowledge base holds, it is flagged.
|
|
18
|
-
- **Decisions from other projects no longer apply by themselves.** Importing a topic from another project brings the knowledge whole, but the decisions taken there stay pending until one of you approves them.
|
|
19
|
-
- **The process checks can no longer be bypassed by accident.** Quoting a work level inside a sentence no longer counts as declaring it, and protected parts of the project stay protected when the agent changes folder.
|
|
11
|
+
**Branches that add review rows merge without a conflict.** When two branches both add rows to the review log and your project has no merge rule for that file, merging them stops on a conflict you resolve by hand. The check the agent runs when it closes a piece of work now notices the missing rule and prints the exact line to add to `.gitattributes`, so the agent sees what to fix while it works, without anyone reading release notes. Nothing changes at session start, and the note never makes a check fail.
|
|
20
12
|
|
|
21
13
|
#### What to do
|
|
22
14
|
|
|
@@ -24,24 +16,7 @@ The sibling of [`@antoneeo/agentic-sdlc-skill`](https://www.npmjs.com/package/@a
|
|
|
24
16
|
1. Run `npm install -g @antoneeo/kb-agentic-skill@latest`, then `kb-agentic-install-skill`.
|
|
25
17
|
2. Close and reopen your agent sessions: the new version loads only at startup.
|
|
26
18
|
|
|
27
|
-
To check: `npm ls -g @antoneeo/kb-agentic-skill` shows 1.
|
|
28
|
-
|
|
29
|
-
**2. Approving the design (significant units).**
|
|
30
|
-
- **This concerns you if** you use the skill for significant (L3) work. Nothing to configure: after the design review passes, the agent asks whether to proceed. Answer yes to start the drafting, or say what to change; the design is then revised and, where the change touches what the review judged, reviewed again before you are asked again.
|
|
31
|
-
- **A unit already in progress.** Units started before 2026-10-31 are not affected. If a unit started on or after 2026-10-31 with an earlier version is already in progress or finished, `sdlc_check.py validate` shows a `[note]` saying it has `no design approval in its request record`. Why: the earlier version never asked you. To clear it, tell the agent that you approve the design as it was implemented; it records your words under a label that begins `design approved` (for example `design approved after implementation`). The note never fails a check, so you can also leave it.
|
|
32
|
-
- **To check:** on your next significant unit, the agent stops after the design review and asks you before any drafting starts.
|
|
33
|
-
|
|
34
|
-
**3. Decisions imported from another project (only if you used `import` before 1.32.0).**
|
|
35
|
-
- **This concerns you if** you used the knowledge base's `import` command to bring topics from another project with version 1.31.0 or earlier. If you never did, skip this point.
|
|
36
|
-
- **Why:** the knowledge base leaves open the questions on which sources disagree, and only a reasoned decision of yours closes them. The earlier version brought another project's decisions in already in force. For example, if someone in project A had settled "the right price is 49 €", importing into B made that price the truth in B too, without anyone in B deciding it. The update corrects future imports only; past ones stay as they are.
|
|
37
|
-
- **Steps:** the simplest way is to ask the agent: "convert the imported decisions as described in portability.md §4". Or by hand: delete the imported topic together with the files that came with it, then run `import` again on the same bundle with the new version; you can try it first with `--dry-run`.
|
|
38
|
-
- **To check:** `sdlc_check.py check` is clean; the other project's decisions appear as imported, and the questions they closed are open again. To make one yours, write your own decision with your own reasoning.
|
|
39
|
-
|
|
40
|
-
**4. Protected folders in a repository with several `ai_docs/` (only if you use them; from 1.32.0).**
|
|
41
|
-
- **This concerns you if** your agent settings contain `gate --hook --protected` and the repository has more than one `ai_docs/` folder, for example a package with its own.
|
|
42
|
-
- **Why:** protected paths are now read from the `ai_docs/` nearest to the edited file. A path written from the repository root, such as `packages/api/src/auth`, no longer matches the files inside `packages/api`, so the agent could change them without an analysis.
|
|
43
|
-
- **Steps:** rewrite those paths from the package: `packages/api/src/auth` becomes `src/auth`. Note that `src/auth` then protects the folder with that name in every project that has its own `ai_docs/`.
|
|
44
|
-
- **To check:** in a session with no open analysis, ask the agent for a small change to a protected file. It must be refused.
|
|
19
|
+
To check: `npm ls -g @antoneeo/kb-agentic-skill` shows 1.35.0.
|
|
45
20
|
|
|
46
21
|
Full history: [CHANGELOG](https://github.com/Antoneeo/agentic-sdlc-skill/blob/main/distributions/kb-agentic-skill/CHANGELOG.md)
|
|
47
22
|
<!-- whats-new:end -->
|
package/gemini-extension.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kb-agentic-skill",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35.0",
|
|
4
4
|
"description": "Knowledge-Base & Document-First protocol with risk triage, Vision governance, signal distillation and optional devPNT integration.",
|
|
5
5
|
"author": "Antonio Pinto (https://github.com/Antoneeo)"
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antoneeo/kb-agentic-skill",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.35.0",
|
|
4
4
|
"description": "Knowledge-Base & Document-First protocol for Claude Code, Gemini CLI, Google Antigravity and Codex with risk triage, Vision governance, signal distillation and optional devPNT integration.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"claude-code",
|
package/scripts/init.js
CHANGED
|
@@ -196,16 +196,16 @@ in the skill's \`routing.md\`: it decides which lens's method and validation rul
|
|
|
196
196
|
that unit. L1 never reaches it. Never refer to a document whose meaning differs by lens
|
|
197
197
|
("threat model", "vision", \`principles.md\`, \`handoff.md\`) by its bare name.
|
|
198
198
|
|
|
199
|
-
Select the owning lens by the unit's purpose, then apply only its risk scale.
|
|
200
|
-
The project's always-on pointer stays intact: consult the selected skill rather than
|
|
201
|
-
merging multiple mandatory ladders. All lenses already carry shared project memory
|
|
202
|
-
(\`memory.md\`); another installation is not needed for cross-domain recall.
|
|
199
|
+
Select the owning lens by the unit's purpose, then apply only its risk scale.
|
|
200
|
+
The project's always-on pointer stays intact: consult the selected skill rather than
|
|
201
|
+
merging multiple mandatory ladders. All lenses already carry shared project memory
|
|
202
|
+
(\`memory.md\`); another installation is not needed for cross-domain recall.
|
|
203
203
|
This file is NOT auto-loaded by any client: it is a note for you, deliberately additive.
|
|
204
|
-
Delete this note once the routing pointer is integrated.
|
|
204
|
+
Delete this note once the routing pointer is integrated.
|
|
205
205
|
`, 'multi-lens routing note');
|
|
206
206
|
if (wrote && protocolPreexisting) {
|
|
207
207
|
console.log(' ⚠️ A protocol pointer already existed and was NOT overwritten.');
|
|
208
|
-
console.log(' Integrate the routing pointer from AGENTIC_MULTI_LENS.md; keep one risk scale per unit.');
|
|
208
|
+
console.log(' Integrate the routing pointer from AGENTIC_MULTI_LENS.md; keep one risk scale per unit.');
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
|
|
@@ -150,6 +150,16 @@ not see them, because the wired hook legitimately lives in the git-ignored
|
|
|
150
150
|
mechanism (Gemini today) keeps the note -- read it as the manual-reads reminder; a
|
|
151
151
|
`.codex/hooks.json` wired in a shape other than the documented one keeps it too.
|
|
152
152
|
|
|
153
|
+
**A review log git would not merge cleanly -- `check` names it (F-090).** When the docs
|
|
154
|
+
root holds `audit/reviews/REVIEW_LOG.md` and git reports no `merge` attribute for it (no
|
|
155
|
+
committed `.gitattributes` line covers it: a project set up before the stanza, a custom
|
|
156
|
+
docs root, a project below the repository root, a course project), `check` prints one
|
|
157
|
+
`[note]` with the exact line to add at the repository root. Same contract as above:
|
|
158
|
+
informational, never the exit code, never a `validate` warning. Personal attribute files
|
|
159
|
+
(except the per-clone `.git/info/attributes`) are ignored, so the note matches what a
|
|
160
|
+
teammate's clone does; a deliberate driver other
|
|
161
|
+
than `union` is respected. Session orientation does not run it: it stays zero-execution.
|
|
162
|
+
|
|
153
163
|
**Installing the package wires the hook machine-wide (F-042).** On Claude Code
|
|
154
164
|
with Python, `npm i -g` (and every update) wires a SessionStart orient hook into
|
|
155
165
|
the USER-level settings (`$CLAUDE_CONFIG_DIR/settings.json` when set, else
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: kb-agentic
|
|
3
|
-
version: 1.
|
|
3
|
+
version: 1.35.0
|
|
4
4
|
description: Knowledge-Base & Document-First protocol with risk-proportional triage, Vision as a guide, Signal Distillation, a complete Standalone mode and optional symbiosis with devPNT. Use for user documentation, knowledge extraction, SOPs, research notes, decision logs, knowledge management — and for answering project questions from the claim ledger and topic graph.
|
|
5
5
|
author: Antonio Pinto (https://github.com/Antoneeo)
|
|
6
6
|
copyright: (c) 2026 Antonio Pinto
|
|
@@ -89,7 +89,9 @@ intent choice with neither a source nor a weighing is a finding (`review.md`
|
|
|
89
89
|
- **Unattended** — the practitioner is not reachable (the Unattended path above).
|
|
90
90
|
- **Delegated** — their own words handed you this choice; cite their entry in the
|
|
91
91
|
request record, or quote them where the unit has none (below L3). A general
|
|
92
|
-
"go ahead" is not a delegation.
|
|
92
|
+
"go ahead" is not a delegation. A choice you make under it goes, where the
|
|
93
|
+
unit has a request record, into it as a delegated entry (`templates.md` §REQUEST) and the artifact
|
|
94
|
+
cites that entry; it never changes an earlier decision of theirs — ask instead.
|
|
93
95
|
|
|
94
96
|
Each states **what it is taken from** and **the alternative it excludes**, and is
|
|
95
97
|
listed where the practitioner will read it — an assumption nobody is shown is a
|
|
@@ -467,7 +467,9 @@ When you are the reviewer:
|
|
|
467
467
|
the artifact relies on — an answer, an approval, a cost acceptance, a ruling, a
|
|
468
468
|
delegation — that resolves to no entry of the unit's request record, or that the
|
|
469
469
|
record contradicts, is a finding; so is a quotation in the record carrying what
|
|
470
|
-
its template says to redact
|
|
470
|
+
its template says to redact, a delegated entry citing no delegation or changing
|
|
471
|
+
an earlier owner decision, and an artifact of a shared unit citing a received
|
|
472
|
+
entry instead of the shared record (`templates.md` §REQUEST, labelled entries). What makes a ground
|
|
471
473
|
or an assumption legal is each lens's `elicitation.md` §The question discipline —
|
|
472
474
|
cite it, never restate it. The fix is the question, not a better justification.
|
|
473
475
|
- **Restated facts (cite, never copy).** Every governance slot has ONE owning document
|
|
@@ -1377,9 +1377,12 @@ def _open_units(root):
|
|
|
1377
1377
|
return units
|
|
1378
1378
|
|
|
1379
1379
|
|
|
1380
|
-
def _git_out(root, *args, timeout=30):
|
|
1380
|
+
def _git_out(root, *args, timeout=30, env=None):
|
|
1381
|
+
# `env` is merged into the inherited environment, never a replacement: a bare
|
|
1382
|
+
# dict would drop PATH and fail silently on Windows.
|
|
1381
1383
|
r = subprocess.run(["git", *args], cwd=str(root), capture_output=True, text=True,
|
|
1382
|
-
encoding="utf-8", errors="replace", timeout=timeout
|
|
1384
|
+
encoding="utf-8", errors="replace", timeout=timeout,
|
|
1385
|
+
env={**os.environ, **env} if env else None)
|
|
1383
1386
|
return r.stdout if r.returncode == 0 else None
|
|
1384
1387
|
|
|
1385
1388
|
|
|
@@ -2481,10 +2484,64 @@ def cmd_check(root, strict=False, hybrid=False, extra_validate=None, extra_secti
|
|
|
2481
2484
|
failed = any(rc for _, rc in rcs)
|
|
2482
2485
|
print(f"\ncheck: {'NOT CLEAN' if failed else 'CLEAN'} "
|
|
2483
2486
|
f"({', '.join(f'{title} rc={rc}' for title, rc in rcs)})")
|
|
2484
|
-
|
|
2487
|
+
print_check_notes(root)
|
|
2485
2488
|
return 1 if failed else 0
|
|
2486
2489
|
|
|
2487
2490
|
|
|
2491
|
+
def _attr_pattern(path):
|
|
2492
|
+
"""A .gitattributes pattern matching exactly `path`. Order matters (probed):
|
|
2493
|
+
a backslash, glob characters and a leading `#` or `!` (comment, negation)
|
|
2494
|
+
are escaped first, then the result is C-quoted when it holds whitespace,
|
|
2495
|
+
`"` or a backslash."""
|
|
2496
|
+
p = re.sub(r"([\\\[*?])", r"\\\1", path)
|
|
2497
|
+
if p.startswith(("#", "!")):
|
|
2498
|
+
p = "\\" + p
|
|
2499
|
+
if re.search(r'[\s"\\]', p):
|
|
2500
|
+
p = '"' + p.replace("\\", "\\\\").replace('"', '\\"') + '"'
|
|
2501
|
+
return p
|
|
2502
|
+
|
|
2503
|
+
|
|
2504
|
+
def review_log_union_note(root):
|
|
2505
|
+
"""F-090: the note for a review log git would not merge with union, or None.
|
|
2506
|
+
|
|
2507
|
+
Git itself is asked (`check-attr`), so patterns and nested files count;
|
|
2508
|
+
personal and system attribute files do not, so the answer is the one a
|
|
2509
|
+
teammate's clone gets. Only `unspecified` is a gap: `union` or any other
|
|
2510
|
+
driver is a choice. Residual: `.git/info/attributes` is still read. Any
|
|
2511
|
+
failure -- no git, not a work tree, timeout -- is no note: `check` never
|
|
2512
|
+
breaks on it."""
|
|
2513
|
+
try:
|
|
2514
|
+
log = ai_path(root, "audit", "reviews", "REVIEW_LOG.md")
|
|
2515
|
+
if not log.is_file():
|
|
2516
|
+
return None
|
|
2517
|
+
prefix = _git_out(root, "rev-parse", "--show-prefix", timeout=3)
|
|
2518
|
+
if prefix is None:
|
|
2519
|
+
return None
|
|
2520
|
+
rel = log.resolve().relative_to(Path(root).resolve()).as_posix()
|
|
2521
|
+
out = _git_out(root, "-c", "core.attributesFile=", "check-attr", "-z", "merge",
|
|
2522
|
+
"--", rel, timeout=3, env={"GIT_ATTR_NOSYSTEM": "1"})
|
|
2523
|
+
if out is None:
|
|
2524
|
+
return None
|
|
2525
|
+
fields = out.split("\0")
|
|
2526
|
+
if len(fields) < 3 or fields[2] != "unspecified":
|
|
2527
|
+
return None
|
|
2528
|
+
path = prefix.rstrip("\r\n") + rel # a folder may begin with a space
|
|
2529
|
+
return (f"[note] {path} has no merge attribute: two branches that both add review "
|
|
2530
|
+
"rows conflict when merged. Fix: add this line to .gitattributes at the "
|
|
2531
|
+
f"repository root: {_attr_pattern(path)} merge=union")
|
|
2532
|
+
except Exception:
|
|
2533
|
+
return None
|
|
2534
|
+
|
|
2535
|
+
|
|
2536
|
+
def print_check_notes(root):
|
|
2537
|
+
"""Every check-layer note, informational and never an exit code. The one
|
|
2538
|
+
place an overlay that replaces `check` calls, so a new note cannot miss it."""
|
|
2539
|
+
print_orient_hook_note(root)
|
|
2540
|
+
note = review_log_union_note(root)
|
|
2541
|
+
if note:
|
|
2542
|
+
print(note)
|
|
2543
|
+
|
|
2544
|
+
|
|
2488
2545
|
# --------------------------------------------------------------------- gate
|
|
2489
2546
|
|
|
2490
2547
|
# --- UserPromptSubmit reminder hook (F-046) --------------------------------
|
|
@@ -289,6 +289,14 @@ Context (agent): "the question it answered, quoted"
|
|
|
289
289
|
entered only as `[NOT VERBATIM — from <source>]`, never as a quote.
|
|
290
290
|
- **Unattended**: R1 quotes the trigger that started the unit, labelled as such.
|
|
291
291
|
Declared assumptions are not owner statements and never enter the record.
|
|
292
|
+
- **Labelled entries** (r41): a decision taken under the owner's delegation is
|
|
293
|
+
`### R<n> — YYYY-MM-DD — decided under delegation R<m> — <what it settles>`, citing
|
|
294
|
+
the delegation entry (in Hybrid also the devPNT proposal it accepted); it is the
|
|
295
|
+
deciding session's choice, never an owner statement, and never changes an earlier
|
|
296
|
+
owner decision — that goes to the owner as a question. Owner words received for a
|
|
297
|
+
unit whose record another session writes are
|
|
298
|
+
`### R<n> — YYYY-MM-DD — received for <unit> — <what it settles>`, then sent to that
|
|
299
|
+
record's writer, who enters them verbatim citing this entry.
|
|
292
300
|
- **Design approval** (L3): the owner's approval of the design is an entry whose
|
|
293
301
|
label begins `design approved`; a no or a correction takes its own label
|
|
294
302
|
(`review.md` §When a review is due).
|
|
@@ -594,7 +602,7 @@ Concurrent reviews: `init` writes a `.gitattributes` stanza giving this file
|
|
|
594
602
|
Rows are date-stamped and their order carries no meaning, so a union merge keeps
|
|
595
603
|
both sides instead of asking a human to choose. It is defence in depth: without
|
|
596
604
|
git, or without the stanza, the outcome is today's — one conflict you resolve by
|
|
597
|
-
hand, never a lost row.
|
|
605
|
+
hand, never a lost row. `check` names a missing stanza and the line to add (F-090).
|
|
598
606
|
|
|
599
607
|
|
|
600
608
|
## ai_docs/audit/HANDOFF_[topic].md — one open workstream, its own file
|
|
@@ -1,308 +1,308 @@
|
|
|
1
|
-
# Writing a Vision that a cold reviewer can actually apply
|
|
2
|
-
|
|
3
|
-
Support file for `ai_docs/vision/project_vision.md`, `vision/features/VISION_*.md`
|
|
4
|
-
and (Hybrid) the devPNT M-VISION. Read it when writing or amending any of them.
|
|
5
|
-
The template lives in `templates.md`; this file is the *why it works*.
|
|
6
|
-
|
|
7
|
-
**The problem this solves.** A Vision's job is to be read cold — by a later
|
|
8
|
-
session, by a reviewer, by another agent — and to produce a ruling on a proposed
|
|
9
|
-
change. Most Visions cannot do that: they read as intent to whoever wrote them and
|
|
10
|
-
as ambiguity to everyone else, and the gap is invisible until something wrong gets
|
|
11
|
-
through. Writing one and then discovering the holes by adversarial rounds works,
|
|
12
|
-
but it costs several rewrites. The checklist below exists so a Vision is
|
|
13
|
-
verifiable on the **first** draft.
|
|
14
|
-
|
|
15
|
-
Everything here was derived empirically: six blind adversarial rounds against one
|
|
16
|
-
real Vision, reviewers with no repository access, ~25 attack proposals. Rules that
|
|
17
|
-
survived every attack and rules that fell were compared for structure. What
|
|
18
|
-
follows is that difference.
|
|
19
|
-
|
|
20
|
-
## What a Vision IS
|
|
21
|
-
|
|
22
|
-
A Vision states **what is to be obtained — the benefit — while leaving the most
|
|
23
|
-
degrees of freedom possible. It binds nothing that does not obstruct that
|
|
24
|
-
benefit.**
|
|
25
|
-
|
|
26
|
-
Four consequences, each operational:
|
|
27
|
-
|
|
28
|
-
- **State the benefit, not the mechanism.** What the actor *obtains*, never how —
|
|
29
|
-
and concrete enough that an obstacle to it is *recognizable*. This is the test a
|
|
30
|
-
North Star must pass: from "best-in-class" no constraint is derivable and none
|
|
31
|
-
is refutable, because nothing recognizably obstructs it. From "everything the
|
|
32
|
-
methodology produces stays usable in full without paying", a metering ban
|
|
33
|
-
follows and can be checked.
|
|
34
|
-
- **The deletion test — the generative rule for every constraint.** Remove the
|
|
35
|
-
rule: is the benefit still reachable? If **yes**, delete the rule — it was
|
|
36
|
-
spending a degree of freedom on nothing. If **no**, keep it, and its sentence
|
|
37
|
-
must name the obstacle it removes. This is also the stop rule: when nothing on
|
|
38
|
-
the table would obstruct the benefit, the Vision needs no new rule.
|
|
39
|
-
- **Constraints accumulate as the work reveals obstacles.** The first draft is the
|
|
40
|
-
benefit plus the few constraints already known — usually almost none, and that
|
|
41
|
-
is correct (`DRAFT` informs, `APPROVED` binds). Each constraint added later
|
|
42
|
-
*sharpens* the Vision without shrinking it more than the obstacle requires.
|
|
43
|
-
- **A constraint never obstructs the Vision.** A proposed rule that conflicts with
|
|
44
|
-
the benefit is not a constraint to negotiate in place — it is a Vision
|
|
45
|
-
**amendment**, and amending is the owner's decision, never a side effect of a
|
|
46
|
-
downstream edit.
|
|
47
|
-
|
|
48
|
-
Extracting the benefit from a discussion is real work: a discourse arrives with
|
|
49
|
-
solutions, preferences and constraints tangled together, and the Vision is the
|
|
50
|
-
distilled benefit only. The owner interview below asks for it — and a mechanism
|
|
51
|
-
("a dashboard") is not an acceptable answer to a benefit question ("never lose
|
|
52
|
-
the thread"); ask again until the answer names what the actor obtains.
|
|
53
|
-
|
|
54
|
-
The deletion test decides **which** rules exist. Everything below decides **how**
|
|
55
|
-
to write a rule so it holds once you know it must exist.
|
|
56
|
-
|
|
57
|
-
## The owner interview (before any Vision text)
|
|
58
|
-
|
|
59
|
-
A Vision is the **owner's** statement of what is to be obtained. Nothing in this
|
|
60
|
-
file after this section can detect a Vision the author wrote alone: the blind
|
|
61
|
-
check (§6) tests whether the rules survive a hostile reader, never whether they
|
|
62
|
-
are the owner's. So every Vision is born from an interview of the owner, and its
|
|
63
|
-
north star is approved **before** a line of it is drafted.
|
|
64
|
-
|
|
65
|
-
**Scope — every Vision, in every mode:** `project_vision.md`, a feature
|
|
66
|
-
`VISION_*.md`, a lens Vision (course, marketing), and the devPNT M-VISION in
|
|
67
|
-
Hybrid; also an ANALYSIS `## Feature Vision` that states a benefit no existing
|
|
68
|
-
Vision names (one that cites an approved Vision's benefit is alignment, not a
|
|
69
|
-
Vision). An amendment re-runs the questions whose answers it changes, and Gate 1
|
|
70
|
-
again when the north star changes. **There is no skip path**: one sentence from
|
|
71
|
-
the user plus a spike is not a complete spec — that exact shortcut produced a
|
|
72
|
-
Vision with an imported prohibition, no north star and a missing actor, and four
|
|
73
|
-
downstream artifacts built on it (field case, 2026-10). A reply already on record
|
|
74
|
-
in the owner's words is read back for confirmation, never re-asked as an open
|
|
75
|
-
question; an answer the author derived (from a spike, the code, another Vision)
|
|
76
|
-
is never an answer — it is a proposal the owner confirms or rejects.
|
|
77
|
-
|
|
78
|
-
**The questions, in this order.** Each is repeated until its answer has the form
|
|
79
|
-
stated; the wrong form is named so it can be recognized and asked again.
|
|
80
|
-
|
|
81
|
-
| # | Question | Right form | Wrong form — ask again |
|
|
82
|
-
|---|---|---|---|
|
|
83
|
-
| 1 | **Problem** — which concrete case today does not get the expected result? | one real case, with an example | a missing feature ("there is no drawing tool") |
|
|
84
|
-
| 2 | **Benefit** — once solved, who obtains what? | a result for a named actor | a function or mechanism ("a renderer") |
|
|
85
|
-
| 3 | **Actors** — who receives the benefit, who acts, who has the initiative? | all three named, initiative included | only the one who asks — the actor who acts unprompted goes missing |
|
|
86
|
-
| 4 | **Success** — what observable signal shows the benefit arrived? | a signal with its starting value | a feeling, or a signal with no baseline |
|
|
87
|
-
| 5 | **Boundaries** — what does this NOT pursue? | scope excluded from this work | a ban on behaviour ("X must never happen") — that is a constraint (6) or an obligation (2, 4) |
|
|
88
|
-
| 6 | **Known constraints** — each with its provenance: owner, a quoted line of a higher Vision, or author inference | every constraint sourced; every inference asked here | a constraint written in silently, or imported from a higher Vision without asking whether it applies here |
|
|
89
|
-
|
|
90
|
-
A **Non-Goal bounds scope**: it rejects a proposal that pursues what it names; it
|
|
91
|
-
is not a ban on behaviour that already exists, and it creates no obligation.
|
|
92
|
-
Obligations come from the Benefit and the Success Signals.
|
|
93
|
-
|
|
94
|
-
**Gate 1 — north star.** One or two sentences, in the owner's words, explicitly
|
|
95
|
-
approved by the owner. The author may compose a wording from the answers; the
|
|
96
|
-
approval is of that exact text, recorded verbatim in the request record
|
|
97
|
-
(`audit/requests/REQUEST_[unit].md`; a Vision written outside any unit, such as
|
|
98
|
-
the project Vision after bootstrap, records its interview in
|
|
99
|
-
`audit/requests/REQUEST_project_vision.md`). **Without it no Vision text is written** —
|
|
100
|
-
not a DRAFT, not a reconstruction: bootstrap writes a stub awaiting the
|
|
101
|
-
interview, and what the agent observed goes to `strategic/`.
|
|
102
|
-
Unattended, the unit is `BLOCKED on the user` (`elicitation.md` Unattended path).
|
|
103
|
-
|
|
104
|
-
**Gate 2 — the full Vision**, written from the answers. Every section traces to
|
|
105
|
-
an answer or a stated provenance (`REQUEST_[unit].md#R<n>`); every rule carries
|
|
106
|
-
its provenance; an author inference the owner did not confirm is not in it. The
|
|
107
|
-
blind check (§6) verifies that it holds; the approved north star verifies that it
|
|
108
|
-
is the owner's. Promotion to APPROVED still needs the owner's explicit
|
|
109
|
-
confirmation — Gate 2 is that confirmation, given on the written text.
|
|
110
|
-
|
|
111
|
-
## 0. The one-line test
|
|
112
|
-
|
|
113
|
-
> Could a reader who has never seen this project rule ACCEPT or REJECT on a
|
|
114
|
-
> proposed change, quoting one line of this document, without asking anyone
|
|
115
|
-
> anything?
|
|
116
|
-
|
|
117
|
-
If a section cannot contribute to that, it is background — keep it if it helps a
|
|
118
|
-
human, but know it carries no gate weight.
|
|
119
|
-
|
|
120
|
-
## 1. The nine properties of a rule that holds
|
|
121
|
-
|
|
122
|
-
Each is stated as a drafting action, with the attack it defeats.
|
|
123
|
-
|
|
124
|
-
1. **Key the rule to a property observable in the artifact — never to intent,
|
|
125
|
-
commitment, plan or purpose.** Test while drafting: *could I verify compliance
|
|
126
|
-
by reading the diff, without asking the author what they meant?*
|
|
127
|
-
→ Defeats: the proposer simply promises the opposite. A rule that forbids
|
|
128
|
-
"committing to track someone's format" is satisfied by saying "we commit to
|
|
129
|
-
nothing"; a rule that forbids "code in this repo that parses a format we do
|
|
130
|
-
not define" is not.
|
|
131
|
-
2. **Write it as one yes/no question with BOTH branches answered.**
|
|
132
|
-
→ Defeats: a gate that can only reject. A prohibition-only Vision rejects the
|
|
133
|
-
work it wants (new client support, packaging, bug fixes) and is abandoned.
|
|
134
|
-
3. **Phrase the question counterfactually about capability, not about the status
|
|
135
|
-
quo** — "could the user obtain this…", not "does the product currently do it".
|
|
136
|
-
→ Defeats: "we never shipped it, so nothing is being taken away."
|
|
137
|
-
4. **Enumerate the near-miss verbs, not just the headline one** — charge / count /
|
|
138
|
-
cap / condition / gate / degrade / delay / require-signup.
|
|
139
|
-
→ Defeats: the soft form. A generous cap, a free-but-registered tier, a
|
|
140
|
-
zero-cost counter — all are the same harm and none is the headline verb.
|
|
141
|
-
5. **Define every term the rule turns on by EFFECT, and close the list.** A
|
|
142
|
-
definition that enumerates mechanisms is a list of the ways you already thought
|
|
143
|
-
of; end it with "…and anything else the user must give, accept or obtain from
|
|
144
|
-
us."
|
|
145
|
-
→ Defeats: the third mechanism. "Charge = payment or account" is walked past by
|
|
146
|
-
"requires opting into telemetry".
|
|
147
|
-
6. **Enumerate the FORMS a violation can take, then state a closure rule** —
|
|
148
|
-
"anything not named here is out unless it is X".
|
|
149
|
-
→ Defeats: the unnamed variant. "A step, a required field, a check, or a cost
|
|
150
|
-
that varies but is never zero" kills "auto-filled, zero human input", because
|
|
151
|
-
the form is still a required field.
|
|
152
|
-
7. **State the subject predicate of any enumerated test in checkable terms.** If
|
|
153
|
-
the test applies to "a record of work", say what makes something one.
|
|
154
|
-
→ Defeats: denying the subject. The proposer agrees with every item on your
|
|
155
|
-
list and asserts the list does not apply.
|
|
156
|
-
8. **Give one IN and one OUT example on the same axis, differing in a single
|
|
157
|
-
variable.** The pair carries the discriminator; without it the reader invents
|
|
158
|
-
one.
|
|
159
|
-
→ Defeats: the borderline case, which is where every real argument happens.
|
|
160
|
-
9. **Name the re-descriptions you expect, inside the rule's own sentence** —
|
|
161
|
-
"in any presentation", "however the code got here", "not by a component that
|
|
162
|
-
does not exist yet", "storing it as Markdown changes nothing".
|
|
163
|
-
→ Defeats: relabeling. A board called a "view" is still a board.
|
|
164
|
-
|
|
165
|
-
## 2. The five clauses a Vision needs around its rules
|
|
166
|
-
|
|
167
|
-
Rules do not hold alone. These structural clauses were the difference between a
|
|
168
|
-
rule that survived and the same rule leaking.
|
|
169
|
-
|
|
170
|
-
- **Supremacy clause** — on any rule a second layer, product, tier or future
|
|
171
|
-
component could route around: *"these bind the product as a whole; shipping a
|
|
172
|
-
forbidden thing in the paid layer does not put it out of reach."*
|
|
173
|
-
- **Exceptions attached to the rule they limit, in the same bullet, phrased
|
|
174
|
-
affirmatively.** An exception in another section is a leak; an exception phrased
|
|
175
|
-
only as a negation produces CANNOT DECIDE. *"This rule does not reach X;
|
|
176
|
-
supporting one more X is squarely wanted."*
|
|
177
|
-
- **Anti-abuse clause on every exemption, naming the only permitted outcomes.**
|
|
178
|
-
A maintenance exemption without one lets any forbidden thing that already
|
|
179
|
-
shipped be maintained forever, and any new one be framed as a fix to it:
|
|
180
|
-
*"work framed as a fix to something that should never have shipped is not
|
|
181
|
-
exempt — it is the removal of that thing, or it is out."*
|
|
182
|
-
- **Stated defaults, per path including the exempt path** — "anything unreached is
|
|
183
|
-
out"; "an exempt fix that preserves a forbidden thing is out". A test that says
|
|
184
|
-
"admitted only if" gives new capability a default; exempt work has none unless
|
|
185
|
-
you write one.
|
|
186
|
-
- **Precedence, when two sentences can both apply.** Two adjacent statements
|
|
187
|
-
pointing opposite ways are decided by whichever the reader reaches first.
|
|
188
|
-
|
|
189
|
-
## 3. Only prohibitions can reject; only positives can admit
|
|
190
|
-
|
|
191
|
-
This is the most common structural failure and it is invisible from the inside.
|
|
192
|
-
|
|
193
|
-
- **A Goal cannot reject anything.** If the admission test says "advances a Goal
|
|
194
|
-
and violates no Non-Goal", then rejection power lives *only* in the Non-Goals
|
|
195
|
-
(and the Invariants, where the Vision has them).
|
|
196
|
-
- **A Non-Goal rejects scope, not behaviour.** It turns away a proposal that
|
|
197
|
-
pursues what it names; it never forbids a behaviour the product already has, and
|
|
198
|
-
it never creates an obligation — obligations come from the Benefit and the
|
|
199
|
-
Success Signals. A behaviour the product must never have is an Invariant, or a
|
|
200
|
-
constraint with its provenance (§The owner interview, question 6). Written as a
|
|
201
|
-
Non-Goal, it reads as a ban the owner never stated.
|
|
202
|
-
A Goal that says "scale cost to risk in both directions" cannot stop cost
|
|
203
|
-
inflation — you need a prohibition for that.
|
|
204
|
-
- **A prohibition scoped to one rung of your own scale protects only that rung.**
|
|
205
|
-
Banning ceremony on trivial edits invites the same ceremony one level up.
|
|
206
|
-
- **A criterion phrased as an already-true state cannot be advanced.** "The check
|
|
207
|
-
is CLEAN at every closure" is a state, so "advances this signal" is meaningless
|
|
208
|
-
and any proposal citing it is undecidable. Give every positive criterion a
|
|
209
|
-
**baseline with headroom**: a current value and date, or an explicit list of
|
|
210
|
-
improvement categories that count.
|
|
211
|
-
- **Give recurring legitimate work an explicit authorization clause**, or it will
|
|
212
|
-
be rejected by your own test: packaging and installation, the product's own
|
|
213
|
-
tests, reducing what the agent must read, supporting one more client. Each needs
|
|
214
|
-
a home in the positive sources — otherwise "moves nothing this document commits
|
|
215
|
-
to" fires on exactly the maintenance the product needs.
|
|
216
|
-
|
|
217
|
-
## 4. Minimum operable sections
|
|
218
|
-
|
|
219
|
-
A Vision is a gate. These are the load-bearing parts; anything else is
|
|
220
|
-
orientation for humans and should be recognized as such.
|
|
221
|
-
|
|
222
|
-
| Section | Must contain | Enables |
|
|
223
|
-
|---|---|---|
|
|
224
|
-
| Authority & scope | what it binds (all layers, tiers, future components), that packaging is irrelevant, precedence among its own sections, the approval line | both |
|
|
225
|
-
| Defaults | the default ruling for anything unreached, stated per path | both |
|
|
226
|
-
| Admission test | one sentence naming *exactly which* sections are positive sources and *exactly which* are prohibitions | ACCEPT |
|
|
227
|
-
| Positive sources | Goals / Actor commitments / Success Signals — each with a baseline and headroom, checkable against a named artifact | ACCEPT |
|
|
228
|
-
| Prohibitions | property-based, closed enumerations, named re-descriptions, in/out pairs | REJECT |
|
|
229
|
-
| Invariants | the decision question with both branches answered, plus an anti-laundering clause | both |
|
|
230
|
-
| Exemptions | each with its anti-abuse clause | prevents laundering |
|
|
231
|
-
| Definitions & imported facts | terms defined by effect; **any fact from another document a ruling depends on, restated here** with the reason | standalone use |
|
|
232
|
-
| Pointers | what deliberately lives elsewhere, so an absence reads as intentional | prevents false CANNOT DECIDE |
|
|
233
|
-
|
|
234
|
-
**Imported facts matter more than they look.** If a ruling needs your triage
|
|
235
|
-
levels, your risk tiers or your lifecycle states, restate the boundaries in the
|
|
236
|
-
Vision — routing the reader to another file breaks the cold-read premise the
|
|
237
|
-
whole gate rests on. Keep the procedure elsewhere; bring the boundaries here.
|
|
238
|
-
|
|
239
|
-
**Keep competitive positioning OUT.** A Vision defined by comparison to another
|
|
240
|
-
product rots silently: the comparison target moves and no one edits your document.
|
|
241
|
-
Put it in a dated snapshot elsewhere and point to it.
|
|
242
|
-
|
|
243
|
-
## 5. What no wording can fix — use a mechanism instead
|
|
244
|
-
|
|
245
|
-
Five failure classes are structural. Prose cannot close them; do not try.
|
|
246
|
-
|
|
247
|
-
| Failure | Mechanism |
|
|
248
|
-
|---|---|
|
|
249
|
-
| "Advances a Goal" is a claim about the world, not the text | Measure it: run the ruling battery before and after, admit on measured improvement |
|
|
250
|
-
| **Cumulative ratchet** — each addition defensible, the sum is the ceremony the Vision forbids | A measured budget: steps per level, tokens the agent loads, artifacts per change; add-one-remove-one |
|
|
251
|
-
| Facts the proposal never states ("a quota of *what*?") | A proposal template that demands them, and a stated rule that omission resolves against the proposal |
|
|
252
|
-
| Structural compliance without truth — every rule satisfied, the artifact still wrong | Independent review; a Vision cannot detect this |
|
|
253
|
-
| An accepted change silently falsifying the Vision | Require the amendment in the same change; check cross-document facts mechanically |
|
|
254
|
-
|
|
255
|
-
And the sixth, which is why this file exists:
|
|
256
|
-
|
|
257
|
-
**Adversarial re-description is unbounded.** Every patch names the evasions seen so
|
|
258
|
-
far; a new one always exists. Patch-after-defeat is a treadmill. The only thing
|
|
259
|
-
that converts it into a ratchet is a **standing battery**: keep every attack
|
|
260
|
-
proposal that ever worked as a fixture and re-run the whole set against every
|
|
261
|
-
Vision edit. A Vision without a battery decays the moment someone motivated reads
|
|
262
|
-
it.
|
|
263
|
-
|
|
264
|
-
## 6. The blind check (procedure)
|
|
265
|
-
|
|
266
|
-
Run this **before promoting any Vision to APPROVED, and before any amendment of an
|
|
267
|
-
approved one**. It runs on a Vision that already passed Gate 1 (§The owner
|
|
268
|
-
interview): it tests whether the rules hold against a hostile reader, and it
|
|
269
|
-
cannot see whether they are the owner's — a Vision the author wrote alone passes
|
|
270
|
-
it cleanly. Not for DRAFT edits — promotion is when authority is granted, and
|
|
271
|
-
it is rare, so the cost lands where it buys most.
|
|
272
|
-
|
|
273
|
-
1. **Give the reviewer the document text and nothing else.** Not a path — the
|
|
274
|
-
text, pasted. Forbid opening files, searching, and web access explicitly. A
|
|
275
|
-
term the reviewer cannot resolve is then a property of the document, not of
|
|
276
|
-
their tooling.
|
|
277
|
-
2. **Fresh context, and a different model from the author where the client allows
|
|
278
|
-
it.** Author self-review is structurally blind to its own omissions.
|
|
279
|
-
3. **Hand them a battery, not an open question.** Concrete proposals to rule on:
|
|
280
|
-
- the standing fixtures (every attack that ever worked — see §5);
|
|
281
|
-
- **reject-side** proposals aimed at each prohibition;
|
|
282
|
-
- **accept-side** proposals the document plainly wants (a bug fix, packaging
|
|
283
|
-
work, supporting one more client, a documentation improvement). *A gate that
|
|
284
|
-
can only reject is half a gate, and the accept side is where most Visions
|
|
285
|
-
fail without anyone noticing.*
|
|
286
|
-
4. **Ask for the mechanism, not just the verdict.** For each ruling: the exact
|
|
287
|
-
quoted line, or precisely what the document fails to say. Then: *which rules
|
|
288
|
-
could you not get around, and what structural property defeated you?* That
|
|
289
|
-
answer is worth more than the findings.
|
|
290
|
-
5. **Ask for rewords.** "Slip a bad proposal past this document, including one
|
|
291
|
-
dressed in its own approving vocabulary." A rule nobody can reword is done; a
|
|
292
|
-
rule that falls to the first attempt was never a rule.
|
|
293
|
-
6. **Every finding is answered — fixed, or refused with reasoning** (`review.md`
|
|
294
|
-
§Receiving). Add every successful reword to the standing battery, whether or
|
|
295
|
-
not you fix it this round.
|
|
296
|
-
|
|
297
|
-
Three lenses are worth running for a product-level Vision: **comprehension** (what
|
|
298
|
-
is this, what could you not resolve), **gate operability** (the battery above),
|
|
299
|
-
**durability** (what rots, what is unfalsifiable, what is a time bomb). For a
|
|
300
|
-
feature-level Vision or an M-VISION, the gate lens alone is usually enough.
|
|
301
|
-
|
|
302
|
-
## 7. Cost, honestly
|
|
303
|
-
|
|
304
|
-
A first draft written against §1–§4 will still have findings — the checklist
|
|
305
|
-
removes the structural classes, not judgement errors. Expect one blind round to
|
|
306
|
-
find real things and a second to confirm. What it should NOT take is five rounds
|
|
307
|
-
of discovering the same class of defect in a new disguise; that is the specific
|
|
308
|
-
waste this file exists to prevent.
|
|
1
|
+
# Writing a Vision that a cold reviewer can actually apply
|
|
2
|
+
|
|
3
|
+
Support file for `ai_docs/vision/project_vision.md`, `vision/features/VISION_*.md`
|
|
4
|
+
and (Hybrid) the devPNT M-VISION. Read it when writing or amending any of them.
|
|
5
|
+
The template lives in `templates.md`; this file is the *why it works*.
|
|
6
|
+
|
|
7
|
+
**The problem this solves.** A Vision's job is to be read cold — by a later
|
|
8
|
+
session, by a reviewer, by another agent — and to produce a ruling on a proposed
|
|
9
|
+
change. Most Visions cannot do that: they read as intent to whoever wrote them and
|
|
10
|
+
as ambiguity to everyone else, and the gap is invisible until something wrong gets
|
|
11
|
+
through. Writing one and then discovering the holes by adversarial rounds works,
|
|
12
|
+
but it costs several rewrites. The checklist below exists so a Vision is
|
|
13
|
+
verifiable on the **first** draft.
|
|
14
|
+
|
|
15
|
+
Everything here was derived empirically: six blind adversarial rounds against one
|
|
16
|
+
real Vision, reviewers with no repository access, ~25 attack proposals. Rules that
|
|
17
|
+
survived every attack and rules that fell were compared for structure. What
|
|
18
|
+
follows is that difference.
|
|
19
|
+
|
|
20
|
+
## What a Vision IS
|
|
21
|
+
|
|
22
|
+
A Vision states **what is to be obtained — the benefit — while leaving the most
|
|
23
|
+
degrees of freedom possible. It binds nothing that does not obstruct that
|
|
24
|
+
benefit.**
|
|
25
|
+
|
|
26
|
+
Four consequences, each operational:
|
|
27
|
+
|
|
28
|
+
- **State the benefit, not the mechanism.** What the actor *obtains*, never how —
|
|
29
|
+
and concrete enough that an obstacle to it is *recognizable*. This is the test a
|
|
30
|
+
North Star must pass: from "best-in-class" no constraint is derivable and none
|
|
31
|
+
is refutable, because nothing recognizably obstructs it. From "everything the
|
|
32
|
+
methodology produces stays usable in full without paying", a metering ban
|
|
33
|
+
follows and can be checked.
|
|
34
|
+
- **The deletion test — the generative rule for every constraint.** Remove the
|
|
35
|
+
rule: is the benefit still reachable? If **yes**, delete the rule — it was
|
|
36
|
+
spending a degree of freedom on nothing. If **no**, keep it, and its sentence
|
|
37
|
+
must name the obstacle it removes. This is also the stop rule: when nothing on
|
|
38
|
+
the table would obstruct the benefit, the Vision needs no new rule.
|
|
39
|
+
- **Constraints accumulate as the work reveals obstacles.** The first draft is the
|
|
40
|
+
benefit plus the few constraints already known — usually almost none, and that
|
|
41
|
+
is correct (`DRAFT` informs, `APPROVED` binds). Each constraint added later
|
|
42
|
+
*sharpens* the Vision without shrinking it more than the obstacle requires.
|
|
43
|
+
- **A constraint never obstructs the Vision.** A proposed rule that conflicts with
|
|
44
|
+
the benefit is not a constraint to negotiate in place — it is a Vision
|
|
45
|
+
**amendment**, and amending is the owner's decision, never a side effect of a
|
|
46
|
+
downstream edit.
|
|
47
|
+
|
|
48
|
+
Extracting the benefit from a discussion is real work: a discourse arrives with
|
|
49
|
+
solutions, preferences and constraints tangled together, and the Vision is the
|
|
50
|
+
distilled benefit only. The owner interview below asks for it — and a mechanism
|
|
51
|
+
("a dashboard") is not an acceptable answer to a benefit question ("never lose
|
|
52
|
+
the thread"); ask again until the answer names what the actor obtains.
|
|
53
|
+
|
|
54
|
+
The deletion test decides **which** rules exist. Everything below decides **how**
|
|
55
|
+
to write a rule so it holds once you know it must exist.
|
|
56
|
+
|
|
57
|
+
## The owner interview (before any Vision text)
|
|
58
|
+
|
|
59
|
+
A Vision is the **owner's** statement of what is to be obtained. Nothing in this
|
|
60
|
+
file after this section can detect a Vision the author wrote alone: the blind
|
|
61
|
+
check (§6) tests whether the rules survive a hostile reader, never whether they
|
|
62
|
+
are the owner's. So every Vision is born from an interview of the owner, and its
|
|
63
|
+
north star is approved **before** a line of it is drafted.
|
|
64
|
+
|
|
65
|
+
**Scope — every Vision, in every mode:** `project_vision.md`, a feature
|
|
66
|
+
`VISION_*.md`, a lens Vision (course, marketing), and the devPNT M-VISION in
|
|
67
|
+
Hybrid; also an ANALYSIS `## Feature Vision` that states a benefit no existing
|
|
68
|
+
Vision names (one that cites an approved Vision's benefit is alignment, not a
|
|
69
|
+
Vision). An amendment re-runs the questions whose answers it changes, and Gate 1
|
|
70
|
+
again when the north star changes. **There is no skip path**: one sentence from
|
|
71
|
+
the user plus a spike is not a complete spec — that exact shortcut produced a
|
|
72
|
+
Vision with an imported prohibition, no north star and a missing actor, and four
|
|
73
|
+
downstream artifacts built on it (field case, 2026-10). A reply already on record
|
|
74
|
+
in the owner's words is read back for confirmation, never re-asked as an open
|
|
75
|
+
question; an answer the author derived (from a spike, the code, another Vision)
|
|
76
|
+
is never an answer — it is a proposal the owner confirms or rejects.
|
|
77
|
+
|
|
78
|
+
**The questions, in this order.** Each is repeated until its answer has the form
|
|
79
|
+
stated; the wrong form is named so it can be recognized and asked again.
|
|
80
|
+
|
|
81
|
+
| # | Question | Right form | Wrong form — ask again |
|
|
82
|
+
|---|---|---|---|
|
|
83
|
+
| 1 | **Problem** — which concrete case today does not get the expected result? | one real case, with an example | a missing feature ("there is no drawing tool") |
|
|
84
|
+
| 2 | **Benefit** — once solved, who obtains what? | a result for a named actor | a function or mechanism ("a renderer") |
|
|
85
|
+
| 3 | **Actors** — who receives the benefit, who acts, who has the initiative? | all three named, initiative included | only the one who asks — the actor who acts unprompted goes missing |
|
|
86
|
+
| 4 | **Success** — what observable signal shows the benefit arrived? | a signal with its starting value | a feeling, or a signal with no baseline |
|
|
87
|
+
| 5 | **Boundaries** — what does this NOT pursue? | scope excluded from this work | a ban on behaviour ("X must never happen") — that is a constraint (6) or an obligation (2, 4) |
|
|
88
|
+
| 6 | **Known constraints** — each with its provenance: owner, a quoted line of a higher Vision, or author inference | every constraint sourced; every inference asked here | a constraint written in silently, or imported from a higher Vision without asking whether it applies here |
|
|
89
|
+
|
|
90
|
+
A **Non-Goal bounds scope**: it rejects a proposal that pursues what it names; it
|
|
91
|
+
is not a ban on behaviour that already exists, and it creates no obligation.
|
|
92
|
+
Obligations come from the Benefit and the Success Signals.
|
|
93
|
+
|
|
94
|
+
**Gate 1 — north star.** One or two sentences, in the owner's words, explicitly
|
|
95
|
+
approved by the owner. The author may compose a wording from the answers; the
|
|
96
|
+
approval is of that exact text, recorded verbatim in the request record
|
|
97
|
+
(`audit/requests/REQUEST_[unit].md`; a Vision written outside any unit, such as
|
|
98
|
+
the project Vision after bootstrap, records its interview in
|
|
99
|
+
`audit/requests/REQUEST_project_vision.md`). **Without it no Vision text is written** —
|
|
100
|
+
not a DRAFT, not a reconstruction: bootstrap writes a stub awaiting the
|
|
101
|
+
interview, and what the agent observed goes to `strategic/`.
|
|
102
|
+
Unattended, the unit is `BLOCKED on the user` (`elicitation.md` Unattended path).
|
|
103
|
+
|
|
104
|
+
**Gate 2 — the full Vision**, written from the answers. Every section traces to
|
|
105
|
+
an answer or a stated provenance (`REQUEST_[unit].md#R<n>`); every rule carries
|
|
106
|
+
its provenance; an author inference the owner did not confirm is not in it. The
|
|
107
|
+
blind check (§6) verifies that it holds; the approved north star verifies that it
|
|
108
|
+
is the owner's. Promotion to APPROVED still needs the owner's explicit
|
|
109
|
+
confirmation — Gate 2 is that confirmation, given on the written text.
|
|
110
|
+
|
|
111
|
+
## 0. The one-line test
|
|
112
|
+
|
|
113
|
+
> Could a reader who has never seen this project rule ACCEPT or REJECT on a
|
|
114
|
+
> proposed change, quoting one line of this document, without asking anyone
|
|
115
|
+
> anything?
|
|
116
|
+
|
|
117
|
+
If a section cannot contribute to that, it is background — keep it if it helps a
|
|
118
|
+
human, but know it carries no gate weight.
|
|
119
|
+
|
|
120
|
+
## 1. The nine properties of a rule that holds
|
|
121
|
+
|
|
122
|
+
Each is stated as a drafting action, with the attack it defeats.
|
|
123
|
+
|
|
124
|
+
1. **Key the rule to a property observable in the artifact — never to intent,
|
|
125
|
+
commitment, plan or purpose.** Test while drafting: *could I verify compliance
|
|
126
|
+
by reading the diff, without asking the author what they meant?*
|
|
127
|
+
→ Defeats: the proposer simply promises the opposite. A rule that forbids
|
|
128
|
+
"committing to track someone's format" is satisfied by saying "we commit to
|
|
129
|
+
nothing"; a rule that forbids "code in this repo that parses a format we do
|
|
130
|
+
not define" is not.
|
|
131
|
+
2. **Write it as one yes/no question with BOTH branches answered.**
|
|
132
|
+
→ Defeats: a gate that can only reject. A prohibition-only Vision rejects the
|
|
133
|
+
work it wants (new client support, packaging, bug fixes) and is abandoned.
|
|
134
|
+
3. **Phrase the question counterfactually about capability, not about the status
|
|
135
|
+
quo** — "could the user obtain this…", not "does the product currently do it".
|
|
136
|
+
→ Defeats: "we never shipped it, so nothing is being taken away."
|
|
137
|
+
4. **Enumerate the near-miss verbs, not just the headline one** — charge / count /
|
|
138
|
+
cap / condition / gate / degrade / delay / require-signup.
|
|
139
|
+
→ Defeats: the soft form. A generous cap, a free-but-registered tier, a
|
|
140
|
+
zero-cost counter — all are the same harm and none is the headline verb.
|
|
141
|
+
5. **Define every term the rule turns on by EFFECT, and close the list.** A
|
|
142
|
+
definition that enumerates mechanisms is a list of the ways you already thought
|
|
143
|
+
of; end it with "…and anything else the user must give, accept or obtain from
|
|
144
|
+
us."
|
|
145
|
+
→ Defeats: the third mechanism. "Charge = payment or account" is walked past by
|
|
146
|
+
"requires opting into telemetry".
|
|
147
|
+
6. **Enumerate the FORMS a violation can take, then state a closure rule** —
|
|
148
|
+
"anything not named here is out unless it is X".
|
|
149
|
+
→ Defeats: the unnamed variant. "A step, a required field, a check, or a cost
|
|
150
|
+
that varies but is never zero" kills "auto-filled, zero human input", because
|
|
151
|
+
the form is still a required field.
|
|
152
|
+
7. **State the subject predicate of any enumerated test in checkable terms.** If
|
|
153
|
+
the test applies to "a record of work", say what makes something one.
|
|
154
|
+
→ Defeats: denying the subject. The proposer agrees with every item on your
|
|
155
|
+
list and asserts the list does not apply.
|
|
156
|
+
8. **Give one IN and one OUT example on the same axis, differing in a single
|
|
157
|
+
variable.** The pair carries the discriminator; without it the reader invents
|
|
158
|
+
one.
|
|
159
|
+
→ Defeats: the borderline case, which is where every real argument happens.
|
|
160
|
+
9. **Name the re-descriptions you expect, inside the rule's own sentence** —
|
|
161
|
+
"in any presentation", "however the code got here", "not by a component that
|
|
162
|
+
does not exist yet", "storing it as Markdown changes nothing".
|
|
163
|
+
→ Defeats: relabeling. A board called a "view" is still a board.
|
|
164
|
+
|
|
165
|
+
## 2. The five clauses a Vision needs around its rules
|
|
166
|
+
|
|
167
|
+
Rules do not hold alone. These structural clauses were the difference between a
|
|
168
|
+
rule that survived and the same rule leaking.
|
|
169
|
+
|
|
170
|
+
- **Supremacy clause** — on any rule a second layer, product, tier or future
|
|
171
|
+
component could route around: *"these bind the product as a whole; shipping a
|
|
172
|
+
forbidden thing in the paid layer does not put it out of reach."*
|
|
173
|
+
- **Exceptions attached to the rule they limit, in the same bullet, phrased
|
|
174
|
+
affirmatively.** An exception in another section is a leak; an exception phrased
|
|
175
|
+
only as a negation produces CANNOT DECIDE. *"This rule does not reach X;
|
|
176
|
+
supporting one more X is squarely wanted."*
|
|
177
|
+
- **Anti-abuse clause on every exemption, naming the only permitted outcomes.**
|
|
178
|
+
A maintenance exemption without one lets any forbidden thing that already
|
|
179
|
+
shipped be maintained forever, and any new one be framed as a fix to it:
|
|
180
|
+
*"work framed as a fix to something that should never have shipped is not
|
|
181
|
+
exempt — it is the removal of that thing, or it is out."*
|
|
182
|
+
- **Stated defaults, per path including the exempt path** — "anything unreached is
|
|
183
|
+
out"; "an exempt fix that preserves a forbidden thing is out". A test that says
|
|
184
|
+
"admitted only if" gives new capability a default; exempt work has none unless
|
|
185
|
+
you write one.
|
|
186
|
+
- **Precedence, when two sentences can both apply.** Two adjacent statements
|
|
187
|
+
pointing opposite ways are decided by whichever the reader reaches first.
|
|
188
|
+
|
|
189
|
+
## 3. Only prohibitions can reject; only positives can admit
|
|
190
|
+
|
|
191
|
+
This is the most common structural failure and it is invisible from the inside.
|
|
192
|
+
|
|
193
|
+
- **A Goal cannot reject anything.** If the admission test says "advances a Goal
|
|
194
|
+
and violates no Non-Goal", then rejection power lives *only* in the Non-Goals
|
|
195
|
+
(and the Invariants, where the Vision has them).
|
|
196
|
+
- **A Non-Goal rejects scope, not behaviour.** It turns away a proposal that
|
|
197
|
+
pursues what it names; it never forbids a behaviour the product already has, and
|
|
198
|
+
it never creates an obligation — obligations come from the Benefit and the
|
|
199
|
+
Success Signals. A behaviour the product must never have is an Invariant, or a
|
|
200
|
+
constraint with its provenance (§The owner interview, question 6). Written as a
|
|
201
|
+
Non-Goal, it reads as a ban the owner never stated.
|
|
202
|
+
A Goal that says "scale cost to risk in both directions" cannot stop cost
|
|
203
|
+
inflation — you need a prohibition for that.
|
|
204
|
+
- **A prohibition scoped to one rung of your own scale protects only that rung.**
|
|
205
|
+
Banning ceremony on trivial edits invites the same ceremony one level up.
|
|
206
|
+
- **A criterion phrased as an already-true state cannot be advanced.** "The check
|
|
207
|
+
is CLEAN at every closure" is a state, so "advances this signal" is meaningless
|
|
208
|
+
and any proposal citing it is undecidable. Give every positive criterion a
|
|
209
|
+
**baseline with headroom**: a current value and date, or an explicit list of
|
|
210
|
+
improvement categories that count.
|
|
211
|
+
- **Give recurring legitimate work an explicit authorization clause**, or it will
|
|
212
|
+
be rejected by your own test: packaging and installation, the product's own
|
|
213
|
+
tests, reducing what the agent must read, supporting one more client. Each needs
|
|
214
|
+
a home in the positive sources — otherwise "moves nothing this document commits
|
|
215
|
+
to" fires on exactly the maintenance the product needs.
|
|
216
|
+
|
|
217
|
+
## 4. Minimum operable sections
|
|
218
|
+
|
|
219
|
+
A Vision is a gate. These are the load-bearing parts; anything else is
|
|
220
|
+
orientation for humans and should be recognized as such.
|
|
221
|
+
|
|
222
|
+
| Section | Must contain | Enables |
|
|
223
|
+
|---|---|---|
|
|
224
|
+
| Authority & scope | what it binds (all layers, tiers, future components), that packaging is irrelevant, precedence among its own sections, the approval line | both |
|
|
225
|
+
| Defaults | the default ruling for anything unreached, stated per path | both |
|
|
226
|
+
| Admission test | one sentence naming *exactly which* sections are positive sources and *exactly which* are prohibitions | ACCEPT |
|
|
227
|
+
| Positive sources | Goals / Actor commitments / Success Signals — each with a baseline and headroom, checkable against a named artifact | ACCEPT |
|
|
228
|
+
| Prohibitions | property-based, closed enumerations, named re-descriptions, in/out pairs | REJECT |
|
|
229
|
+
| Invariants | the decision question with both branches answered, plus an anti-laundering clause | both |
|
|
230
|
+
| Exemptions | each with its anti-abuse clause | prevents laundering |
|
|
231
|
+
| Definitions & imported facts | terms defined by effect; **any fact from another document a ruling depends on, restated here** with the reason | standalone use |
|
|
232
|
+
| Pointers | what deliberately lives elsewhere, so an absence reads as intentional | prevents false CANNOT DECIDE |
|
|
233
|
+
|
|
234
|
+
**Imported facts matter more than they look.** If a ruling needs your triage
|
|
235
|
+
levels, your risk tiers or your lifecycle states, restate the boundaries in the
|
|
236
|
+
Vision — routing the reader to another file breaks the cold-read premise the
|
|
237
|
+
whole gate rests on. Keep the procedure elsewhere; bring the boundaries here.
|
|
238
|
+
|
|
239
|
+
**Keep competitive positioning OUT.** A Vision defined by comparison to another
|
|
240
|
+
product rots silently: the comparison target moves and no one edits your document.
|
|
241
|
+
Put it in a dated snapshot elsewhere and point to it.
|
|
242
|
+
|
|
243
|
+
## 5. What no wording can fix — use a mechanism instead
|
|
244
|
+
|
|
245
|
+
Five failure classes are structural. Prose cannot close them; do not try.
|
|
246
|
+
|
|
247
|
+
| Failure | Mechanism |
|
|
248
|
+
|---|---|
|
|
249
|
+
| "Advances a Goal" is a claim about the world, not the text | Measure it: run the ruling battery before and after, admit on measured improvement |
|
|
250
|
+
| **Cumulative ratchet** — each addition defensible, the sum is the ceremony the Vision forbids | A measured budget: steps per level, tokens the agent loads, artifacts per change; add-one-remove-one |
|
|
251
|
+
| Facts the proposal never states ("a quota of *what*?") | A proposal template that demands them, and a stated rule that omission resolves against the proposal |
|
|
252
|
+
| Structural compliance without truth — every rule satisfied, the artifact still wrong | Independent review; a Vision cannot detect this |
|
|
253
|
+
| An accepted change silently falsifying the Vision | Require the amendment in the same change; check cross-document facts mechanically |
|
|
254
|
+
|
|
255
|
+
And the sixth, which is why this file exists:
|
|
256
|
+
|
|
257
|
+
**Adversarial re-description is unbounded.** Every patch names the evasions seen so
|
|
258
|
+
far; a new one always exists. Patch-after-defeat is a treadmill. The only thing
|
|
259
|
+
that converts it into a ratchet is a **standing battery**: keep every attack
|
|
260
|
+
proposal that ever worked as a fixture and re-run the whole set against every
|
|
261
|
+
Vision edit. A Vision without a battery decays the moment someone motivated reads
|
|
262
|
+
it.
|
|
263
|
+
|
|
264
|
+
## 6. The blind check (procedure)
|
|
265
|
+
|
|
266
|
+
Run this **before promoting any Vision to APPROVED, and before any amendment of an
|
|
267
|
+
approved one**. It runs on a Vision that already passed Gate 1 (§The owner
|
|
268
|
+
interview): it tests whether the rules hold against a hostile reader, and it
|
|
269
|
+
cannot see whether they are the owner's — a Vision the author wrote alone passes
|
|
270
|
+
it cleanly. Not for DRAFT edits — promotion is when authority is granted, and
|
|
271
|
+
it is rare, so the cost lands where it buys most.
|
|
272
|
+
|
|
273
|
+
1. **Give the reviewer the document text and nothing else.** Not a path — the
|
|
274
|
+
text, pasted. Forbid opening files, searching, and web access explicitly. A
|
|
275
|
+
term the reviewer cannot resolve is then a property of the document, not of
|
|
276
|
+
their tooling.
|
|
277
|
+
2. **Fresh context, and a different model from the author where the client allows
|
|
278
|
+
it.** Author self-review is structurally blind to its own omissions.
|
|
279
|
+
3. **Hand them a battery, not an open question.** Concrete proposals to rule on:
|
|
280
|
+
- the standing fixtures (every attack that ever worked — see §5);
|
|
281
|
+
- **reject-side** proposals aimed at each prohibition;
|
|
282
|
+
- **accept-side** proposals the document plainly wants (a bug fix, packaging
|
|
283
|
+
work, supporting one more client, a documentation improvement). *A gate that
|
|
284
|
+
can only reject is half a gate, and the accept side is where most Visions
|
|
285
|
+
fail without anyone noticing.*
|
|
286
|
+
4. **Ask for the mechanism, not just the verdict.** For each ruling: the exact
|
|
287
|
+
quoted line, or precisely what the document fails to say. Then: *which rules
|
|
288
|
+
could you not get around, and what structural property defeated you?* That
|
|
289
|
+
answer is worth more than the findings.
|
|
290
|
+
5. **Ask for rewords.** "Slip a bad proposal past this document, including one
|
|
291
|
+
dressed in its own approving vocabulary." A rule nobody can reword is done; a
|
|
292
|
+
rule that falls to the first attempt was never a rule.
|
|
293
|
+
6. **Every finding is answered — fixed, or refused with reasoning** (`review.md`
|
|
294
|
+
§Receiving). Add every successful reword to the standing battery, whether or
|
|
295
|
+
not you fix it this round.
|
|
296
|
+
|
|
297
|
+
Three lenses are worth running for a product-level Vision: **comprehension** (what
|
|
298
|
+
is this, what could you not resolve), **gate operability** (the battery above),
|
|
299
|
+
**durability** (what rots, what is unfalsifiable, what is a time bomb). For a
|
|
300
|
+
feature-level Vision or an M-VISION, the gate lens alone is usually enough.
|
|
301
|
+
|
|
302
|
+
## 7. Cost, honestly
|
|
303
|
+
|
|
304
|
+
A first draft written against §1–§4 will still have findings — the checklist
|
|
305
|
+
removes the structural classes, not judgement errors. Expect one blind round to
|
|
306
|
+
find real things and a second to confirm. What it should NOT take is five rounds
|
|
307
|
+
of discovering the same class of defect in a new disguise; that is the specific
|
|
308
|
+
waste this file exists to prevent.
|