@antoneeo/course-creator 0.1.0-beta.5 → 0.1.0-beta.7

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.
@@ -54,6 +54,13 @@ SHARED_FILES = (
54
54
  "scripts/test_chronology.py",
55
55
  "scripts/test_merge_safety.py",
56
56
  "scripts/test_audit_refs.py",
57
+ # the docs site (F-072): generator, its battery and its page
58
+ "scripts/docs_site.py",
59
+ "scripts/test_docs_site.py",
60
+ "docs_site/index.html",
61
+ "docs_site/app.js",
62
+ "docs_site/style.css",
63
+ "docs_site/strings.js",
57
64
  # domain-neutral doctrine
58
65
  "review.md",
59
66
  "routing.md",
@@ -1,28 +1,34 @@
1
- {
2
- "_comment": "Generated by shared_files.py --update. IDENTICAL in every distribution of the family: if two copies of this file differ, the spine has diverged. Never edit by hand.",
3
- "files": {
4
- "LICENSE": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30",
5
- "NOTICE": "8414f424f7c1db19d89d74286fd2d6b1acdd9eedde910fa57a16d6835602e4bd",
6
- "dispatch.md": "d127057198415f81b921c74e3234a47d5794a2af662eeadaf3dff3cc1739ebc8",
7
- "guides.md": "651c150ad3014edbbbc1908dfdca2404db2a877e3d0cbf5cc7921d9be31c187f",
8
- "memory.md": "5907be5f99b18eb66ffda2c25815f4fa266fff4b3767f4c142d601b146271167",
9
- "review.md": "0b94b48b0ef3b407c3fe8b2a503e89fb30af4dfcf37519b5541ff017cfa83f00",
10
- "routing.md": "2f90556cb8516599b9fd6ebf0b5f61dffc107ff186a4c14aed0e483b82cf91d2",
11
- "scripts/entry_point.py": "4a560d4d41db989d3426182f1b24270cbb934b3db0f3246c700578a4ed93089b",
12
- "scripts/knowledge.py": "ac50bffcbfd9c7d7c098e4a40995f66f18884202a5511d602961c9dcd9afa498",
13
- "scripts/sdlc_core.py": "709bcfc98cf9d0a5941aeca3e109d8b74f2d441314a303ac38f07b5db30de1a8",
14
- "scripts/shared_files.py": "525a6f9dc278d3e35c6ff41e634038c0f1d6ab3a31eea5903440d22029ea176b",
15
- "scripts/test_audit_refs.py": "a6f06e73f4c9469dd64bed283024b6b37294e6c26f171d8cbdbdfd03771a6884",
16
- "scripts/test_chronology.py": "5cffc2711282452fe1148a95e46b0b31940809aed3a63950329d9b3e868d0cda",
17
- "scripts/test_docs_root.py": "19753e0316c0df63ed321d24b411a9ff36eea2058421fd69fc57e507d75566d0",
18
- "scripts/test_domain_rules.py": "33542b5dc2bb77c05ece55cf0446065cc4226c763ef5e040aa77364f226937bb",
19
- "scripts/test_drift.py": "c7b7121a8a308b0f3fe12c0c0c346444e632b7aaeff47dc8818b621e5c20cb38",
20
- "scripts/test_merge_safety.py": "8b9241077bf7ecd6dd335907c640044ab38968ff4c9fdc464450e732cb77adf4",
21
- "scripts/test_migrate.py": "c129823bf4feb0614acd975351632a6ae62d7896a0ef32724419a8e9335e3110",
22
- "scripts/test_plan.py": "4c011a63aa834b55e9c5d13fb4ea76b131b742356001364b0a508435ba013e27",
23
- "scripts/test_project_memory.py": "2cb85cef01161d881a11d84cfe9ebb72915104e8d1822e4de739f7d00ae6cd59",
24
- "scripts/test_session_start.py": "203fa72b87fb263663ce7fcd737460530b75fd5e76e883f25cd849e6cca98275",
25
- "scripts/test_skill_invariants.py": "4e1bb3c918415e2ef519ed993d5b8d6e453ba8d802d9fe537060c178ada58996",
26
- "vision.md": "191696a8283b2873fea6e57d16fbb3b4f24b82bf0c79bcfd77d52141a9ca2a5b"
27
- }
28
- }
1
+ {
2
+ "_comment": "Generated by shared_files.py --update. IDENTICAL in every distribution of the family: if two copies of this file differ, the spine has diverged. Never edit by hand.",
3
+ "files": {
4
+ "LICENSE": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30",
5
+ "NOTICE": "8414f424f7c1db19d89d74286fd2d6b1acdd9eedde910fa57a16d6835602e4bd",
6
+ "dispatch.md": "d127057198415f81b921c74e3234a47d5794a2af662eeadaf3dff3cc1739ebc8",
7
+ "docs_site/app.js": "e325179e34ded97fcff7ac0275c753e7aa1a64f34b206816d419872fae13364c",
8
+ "docs_site/index.html": "2b64167470f754e46fa4bb4e73a3d2c34ee632d91fe2f17705a58d18b5018af5",
9
+ "docs_site/strings.js": "6f8720c156396bc6553b41a706502d6cbb59b1417c0ba5e5fb6d0f55f480abbb",
10
+ "docs_site/style.css": "851c0ff7c75efdcc481add7dae225fb6f83f03dcb5449f446e0d61bbfe4cb7e7",
11
+ "guides.md": "651c150ad3014edbbbc1908dfdca2404db2a877e3d0cbf5cc7921d9be31c187f",
12
+ "memory.md": "5907be5f99b18eb66ffda2c25815f4fa266fff4b3767f4c142d601b146271167",
13
+ "review.md": "0b94b48b0ef3b407c3fe8b2a503e89fb30af4dfcf37519b5541ff017cfa83f00",
14
+ "routing.md": "2f90556cb8516599b9fd6ebf0b5f61dffc107ff186a4c14aed0e483b82cf91d2",
15
+ "scripts/docs_site.py": "c9407e344f2783f9286955829b78e1431ea20320e5b41c358b04f8bac8f8f6a2",
16
+ "scripts/entry_point.py": "4a560d4d41db989d3426182f1b24270cbb934b3db0f3246c700578a4ed93089b",
17
+ "scripts/knowledge.py": "ac50bffcbfd9c7d7c098e4a40995f66f18884202a5511d602961c9dcd9afa498",
18
+ "scripts/sdlc_core.py": "709bcfc98cf9d0a5941aeca3e109d8b74f2d441314a303ac38f07b5db30de1a8",
19
+ "scripts/shared_files.py": "bc3b311ca5c736070e9970428429226ca0a9186e010c265b556512b6df191e73",
20
+ "scripts/test_audit_refs.py": "a6f06e73f4c9469dd64bed283024b6b37294e6c26f171d8cbdbdfd03771a6884",
21
+ "scripts/test_chronology.py": "5cffc2711282452fe1148a95e46b0b31940809aed3a63950329d9b3e868d0cda",
22
+ "scripts/test_docs_root.py": "19753e0316c0df63ed321d24b411a9ff36eea2058421fd69fc57e507d75566d0",
23
+ "scripts/test_docs_site.py": "e0746f7b7745261c3f2557a0696181394811d7e0df34e36c065ca5cc573b1587",
24
+ "scripts/test_domain_rules.py": "33542b5dc2bb77c05ece55cf0446065cc4226c763ef5e040aa77364f226937bb",
25
+ "scripts/test_drift.py": "c7b7121a8a308b0f3fe12c0c0c346444e632b7aaeff47dc8818b621e5c20cb38",
26
+ "scripts/test_merge_safety.py": "8b9241077bf7ecd6dd335907c640044ab38968ff4c9fdc464450e732cb77adf4",
27
+ "scripts/test_migrate.py": "c129823bf4feb0614acd975351632a6ae62d7896a0ef32724419a8e9335e3110",
28
+ "scripts/test_plan.py": "4c011a63aa834b55e9c5d13fb4ea76b131b742356001364b0a508435ba013e27",
29
+ "scripts/test_project_memory.py": "2cb85cef01161d881a11d84cfe9ebb72915104e8d1822e4de739f7d00ae6cd59",
30
+ "scripts/test_session_start.py": "203fa72b87fb263663ce7fcd737460530b75fd5e76e883f25cd849e6cca98275",
31
+ "scripts/test_skill_invariants.py": "17dbccaac688b75e04c44eaaf0ee5b78e85ce2aa4697fc7a52041f3175fe0735",
32
+ "vision.md": "a19a7d7d5044215b726b66f74e422c9cdedcc856c0a53151f20a6d9840b8f6c4"
33
+ }
34
+ }
@@ -4,7 +4,7 @@ These are starting shapes, not substitute explanations. Keep one authority for e
4
4
 
5
5
  ## Course Vision — `vision/features/VISION_course_<slug>.md`
6
6
 
7
- Read `vision.md` and use its blind check before APPROVED. The person approves benefit and scope, not the agent.
7
+ Written only after the owner interview (`vision.md` §The owner interview), with its north star approved first. Read `vision.md` and use its blind check before APPROVED. The person approves benefit and scope, not the agent.
8
8
 
9
9
  ```markdown
10
10
  ---
@@ -15,16 +15,20 @@ domain: course
15
15
  # Course Vision: <title>
16
16
  Status: DRAFT
17
17
 
18
+ ## North Star
19
+ <One or two sentences in the person's words, approved before the rest: REQUEST_course_<slug>.md#R<n>.>
20
+ ## Problem
21
+ <One concrete case that today does not get the expected result, with its example.>
18
22
  ## Expected Benefit
19
23
  <Why the learner needs the knowledge and what becomes possible.>
20
24
  ## Learners and Starting Point
21
- <Who, context of use, what is known with evidence, what remains uncertain.>
25
+ <Who, context of use, what is known with evidence, what remains uncertain; who receives the benefit, who acts, who has the initiative.>
22
26
  ## Promised Understanding and Ability
23
27
  <Knowledge and usable capability, not a list of slides.>
24
28
  ## Success Signals
25
- <Observable understanding or use; distinguish simulated diagnosis from real evidence.>
29
+ <Observable understanding or use, each with its starting value; distinguish simulated diagnosis from real evidence.>
26
30
  ## Scope and Non-Goals
27
- <Boundaries, delivery constraints and facts outside this course.>
31
+ <Scope this course does not pursue (not a ban on existing behaviour); delivery constraints and facts outside this course, each with its provenance: owner REQUEST_course_<slug>.md#R<n>, a higher Vision quoted, or an inference the person confirmed.>
28
32
  ```
29
33
 
30
34
  Approval changes both `status:` and `Status:` to `APPROVED`.
@@ -47,14 +47,67 @@ Four consequences, each operational:
47
47
 
48
48
  Extracting the benefit from a discussion is real work: a discourse arrives with
49
49
  solutions, preferences and constraints tangled together, and the Vision is the
50
- distilled benefit only. The elicitation round (`elicitation.md`) asks for it first
51
- — and a mechanism ("a dashboard") is not an acceptable answer to a benefit
52
- question ("never lose the thread"); ask again until the answer names what the
53
- actor obtains.
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.
54
53
 
55
54
  The deletion test decides **which** rules exist. Everything below decides **how**
56
55
  to write a rule so it holds once you know it must exist.
57
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
+
58
111
  ## 0. The one-line test
59
112
 
60
113
  > Could a reader who has never seen this project rule ACCEPT or REJECT on a
@@ -138,7 +191,14 @@ rule that survived and the same rule leaking.
138
191
  This is the most common structural failure and it is invisible from the inside.
139
192
 
140
193
  - **A Goal cannot reject anything.** If the admission test says "advances a Goal
141
- and violates no Non-Goal", then rejection power lives *only* in the Non-Goals.
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.
142
202
  A Goal that says "scale cost to risk in both directions" cannot stop cost
143
203
  inflation — you need a prohibition for that.
144
204
  - **A prohibition scoped to one rung of your own scale protects only that rung.**
@@ -204,7 +264,10 @@ it.
204
264
  ## 6. The blind check (procedure)
205
265
 
206
266
  Run this **before promoting any Vision to APPROVED, and before any amendment of an
207
- approved one**. Not for DRAFT edits — promotion is when authority is granted, and
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
208
271
  it is rare, so the cost lands where it buys most.
209
272
 
210
273
  1. **Give the reviewer the document text and nothing else.** Not a path — the