Commit 5368996
committed
purpose: fix vacuous matching, name the sections, guard the doc hand-copies
Audit of this round's purpose-registry work, on the three axes asked for.
EFFECTIVENESS — three checks were VACUOUS. Naive substring matching satisfied
`ct` inside "a-CT-ion", `fit` inside "bene-FIT", `is a` inside "this IS A
summary". On an adversarial deck carrying only those three phrases,
product_pitch reported NOTHING missing at all. `_names()` now anchors at a word
START for Latin (a start anchor, not a full boundary, because `feasib` and
`demo` are deliberate prefixes), plain substring for CJK (no word boundaries),
substring for a term with no alphanumerics (`%`). Non-indicative terms removed.
before tumour board missing=['presentation','outcome']
job talk missing=['track record','research plan']
product pitch missing=[]
after tumour board missing=['presentation','investigations','outcome']
job talk missing=['track record','research plan','fit']
product pitch missing=['positioning']
…and five sections did not list their OWN NAME as a term, so `job_talk/track
record` reported MISSING on a slide reading "My track record".
GENERALISATION — the two reference files are hand-copies of the registry, and a
hand-copy drifts. Writing one out got 1 of 12 wrong within minutes: the runbook
said "lab meeting" (a trigger word) where every gate message prints
`research_meeting`, so an agent grepping the doc for the name in its own error
found nothing. `check_purpose --selftest` now checks both files for every genre
name, every section name, the delivery-mode note, and the stated count. Each arm
is mutation-tested in the suite — including a duplicate of an already-documented
genre, which only the count can catch, proving that arm is not dead code.
NON-CLAUDE AGENTS — `codex-runtime.md` still said "Four genres" and never
mentioned `purposes.py`; a capability absent from that runbook is one the next
Codex run rediscovers by failing a gate, or never uses. It now states 12 of 13
with every section, why the thirteenth (webinar) has no list, and how matching
works. The medium-vs-genre message was also duplicating a clause on that path.
Verified: test_purpose_sections 176 passed · test_schema_reach 27 passed ·
gate_parity, codex_delivery_gate, codex_scaffold_complete, step1_artifacts,
smoke_deckkit ok · inventory/tests-wired/parity/reference-code/repo-integrity/
secrets clean · lossless 2719/2719. Synced to ~/.agents/skills/slide-maker and
re-run there.1 parent db06dd0 commit 5368996
4 files changed
Lines changed: 192 additions & 16 deletions
File tree
- skills/slide-maker
- references
- scripts
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
220 | 228 | | |
221 | 229 | | |
222 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
117 | 143 | | |
118 | 144 | | |
119 | 145 | | |
| |||
147 | 173 | | |
148 | 174 | | |
149 | 175 | | |
150 | | - | |
| 176 | + | |
151 | 177 | | |
152 | 178 | | |
153 | 179 | | |
| |||
196 | 222 | | |
197 | 223 | | |
198 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
199 | 271 | | |
200 | 272 | | |
201 | 273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | | - | |
105 | | - | |
| 105 | + | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| |||
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
164 | | - | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
180 | | - | |
| 181 | + | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
| |||
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
200 | | - | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| |||
247 | 248 | | |
248 | 249 | | |
249 | 250 | | |
| 251 | + | |
| 252 | + | |
250 | 253 | | |
251 | | - | |
| 254 | + | |
252 | 255 | | |
253 | 256 | | |
254 | 257 | | |
| |||
268 | 271 | | |
269 | 272 | | |
270 | 273 | | |
271 | | - | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
272 | 277 | | |
273 | 278 | | |
274 | 279 | | |
| |||
279 | 284 | | |
280 | 285 | | |
281 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
282 | 291 | | |
283 | 292 | | |
284 | 293 | | |
| |||
292 | 301 | | |
293 | 302 | | |
294 | 303 | | |
295 | | - | |
296 | | - | |
| 304 | + | |
| 305 | + | |
297 | 306 | | |
298 | 307 | | |
299 | 308 | | |
| |||
0 commit comments