Commit f6e182d
docs(agents): drop the retired "gen:schema wipes gen:openapi" trap from three agent-facing surfaces (#11744)
`build-schemas.ts` stopped removing the output directory itself: its clean now
routes through `clearOwnedOutputs()`, which skips every entry declared in
`FOREIGN_JSON_SCHEMA_ARTIFACTS` — and `openapi.json` is the one entry there. So
`gen:schema` has not deleted `gen:openapi`'s artifact for some time, and the run
prints `↳ kept openapi.json — owned by gen:openapi (...)` when it spares it.
Three agent-facing surfaces still taught the pre-fix trap and prescribed a
`gen:openapi` rerun that is now a no-op:
- .claude/agents/os-dev.md — the dispatch prompt itself
- .claude/skills/pm-dispatch/references/landing-operations.md
- scripts/pm/os-regen-merge.sh — both the header comment and the step-4 text
the script PRINTS to the operator at run time
The last of these is not named in the card; a repo-wide grep for the claim is
what turned it up, and it is the copy an agent reads live.
A doc naming a fixed trap does not fail loudly — it converts every reader into a
false-positive reporter. The measured cost so far is one full card, filed and
closed premise-false on the strength of this claim.
The clauses are deleted rather than restated: the guarantee and its reasoning
already live at the source, in packages/spec/scripts/lib/json-schema-out-dir.ts,
pinned by scripts/json-schema-out-dir.test.ts and
scripts/build-schemas-check-mode.test.ts. The MERGE-state anchor trap sitting
beside each deleted clause is untouched and still true — in
landing-operations.md the surrounding "顺序防两个陷阱" became "顺序防的陷阱",
since only one of the two was ever an ordering trap.
Co-authored-by: Claude <noreply@anthropic.com>1 parent 2a6122b commit f6e182d
3 files changed
Lines changed: 4 additions & 12 deletions
File tree
- .claude
- agents
- skills/pm-dispatch/references
- scripts/pm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
192 | | - | |
| 190 | + | |
193 | 191 | | |
194 | 192 | | |
195 | 193 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 27 | + | |
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
| |||
102 | 99 | | |
103 | 100 | | |
104 | 101 | | |
105 | | - | |
106 | | - | |
| 102 | + | |
107 | 103 | | |
108 | 104 | | |
109 | 105 | | |
| |||
0 commit comments