Commit 4edb6c5
fix(cli): meta init switched off two docs surfaces for every scaffolded project
`resolveDocsConfig` defaults `surfaces` to all four — model, api, requirements,
agent — and its comment states the reason for the last one: "Turning it on by default
is what makes the always-on agent-context pointer able to name the files: a pointer
to a page an adopter has to opt into is a pointer at nothing."
`meta init` then scaffolded `surfaces: ["model", "api"]`, switching `requirements`
and `agent` OFF for every project it creates — defeating precisely that, on the exact
projects the pointer is scaffolded into.
The scaffold now says nothing about `surfaces` and takes the default, which is also
what lets a project pick up a new surface without editing config. Safe for the same
reason the default is: both surfaces emit ZERO files for a project with nothing for
them to describe, so a scaffolded project sees no new output until it has something
to document.
The comment left in its place also names the distinction the estate loop found people
reaching for `surfaces` to express: it says what your docs ARE, not which of them you
COMMIT — a page you do not commit is exempt from `verify --docs` once it is
git-ignored.
The existing test asserted `surfaces:` was present, incidentally, while proving a
different point (docs intent goes in the `docs:` block, not the generators array).
That assertion is now the ABSENCE, with the reason attached, since the correct
scaffold says nothing there.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01At3v6M6uqECZ2Sb5eUv6YY1 parent 177751c commit 4edb6c5
2 files changed
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
144 | 150 | | |
145 | 151 | | |
146 | 152 | | |
| |||
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| |||
0 commit comments