Skip to content

docs(manifest-snippets): declare the elision in five defineStack manifest examples - #18838

Merged
os-try-charles merged 1 commit into
mainfrom
claude/issue-18777-definestack-manifest-elision
Sep 18, 2026
Merged

os-try-charles merged 1 commit into
mainfrom
claude/issue-18777-definestack-manifest-elision

Conversation

@os-try-charles

Copy link
Copy Markdown
Collaborator

Fixes #18777

What changed

Five defineStack({ manifest: … }) documentation snippets carried an incomplete manifest
literal with no elision marker
, so a reader copying the block is refused at
ObjectStackDefinitionSchema. Seven sibling snippets in the same corpora already declare
their elision; these five were silent. This PR makes the elision explicit at all five,
in a form that already exists in this tree.

site manifest keys (unchanged by this PR) elision marker: before / after
content/docs/kernel/services-checklist.mdx id, namespace none / present
content/docs/permissions/authorization.mdx namespace none / present
content/docs/permissions/capabilities.mdx name, namespace, version none / present
content/docs/permissions/record-view-auditing.mdx name, version none / present
docs/design/marketplace-publishing.md id, type, namespace, version none / present

The seven sites that already carry a marker are not touched — the card explicitly does
not assert that they need anything.

Which existing form, and why

Re-measured over the seven sibling sites on objectstack-ai/objectstack @ ad1f94e8e
(this branch's base). The dispatch's 3 / 3 / 1 count is confirmed exactly:

form spelling count sites
A inline, Unicode ellipsis — manifest: { /* … */ }, 3 protocol/kernel/http-protocol.mdx, data-modeling/object-extensions.mdx, data-modeling/import-mappings.mdx
B inline, ASCII three dots — manifest: { /* ... */ }, 3 deployment/cli.mdx, plugins/index.mdx, packages/mcp/README.md
C multi-line: real keys kept, elision comment on its own line 1 packages/services/service-package/README.md

Form C is used at all five sites. One reason, and it is the same at every site: Form C
is the only one of the three that is additive. Forms A and B replace the literal's
contents, which would delete the very keys each of these five snippets exists to
demonstrate — authorization.mdx is teaching namespace, capabilities.mdx is teaching
the name/namespace/version triple next to a capability declaration,
record-view-auditing.mdx is teaching a stack that names itself while opting into the
audit plugin, and marketplace-publishing.md's prose one paragraph above says
"Compose all internal plugins into a single type: 'app' package", which is the type key
in that literal. A snippet that loses its subject to gain a marker is worse at its job.

No fourth form was invented: the comment text is /* …full ObjectStackManifest… */, byte
for byte the one Form C's site already uses.

Proof the edit is purely additive — the post-change literal was extracted from each file by
brace matching, evaluated as JS, and its key list read back:

content/docs/kernel/services-checklist.mdx         keys after edit : ["id","namespace"]
content/docs/permissions/authorization.mdx         keys after edit : ["namespace"]
content/docs/permissions/capabilities.mdx          keys after edit : ["name","namespace","version"]
content/docs/permissions/record-view-auditing.mdx  keys after edit : ["name","version"]
docs/design/marketplace-publishing.md              keys after edit : ["id","type","namespace","version"]

Identical to the before-lists in the card's table. No key was added, removed or reworded.

Premise re-taken at the real door

Each literal driven through ObjectStackDefinitionSchema from the built
packages/spec/dist/index.mjs (spec built at this branch's base):

REFUSED  content/docs/kernel/services-checklist.mdx
         invalid_type[manifest,version] · invalid_value[manifest,type] · invalid_type[manifest,name]
REFUSED  content/docs/permissions/authorization.mdx
         invalid_type[manifest,id] · invalid_type[manifest,version] · invalid_value[manifest,type] · invalid_type[manifest,name]
REFUSED  content/docs/permissions/capabilities.mdx
         invalid_type[manifest,id] · invalid_value[manifest,type]
REFUSED  content/docs/permissions/record-view-auditing.mdx
         invalid_type[manifest,id] · invalid_value[manifest,type]
REFUSED  docs/design/marketplace-publishing.md
         invalid_type[manifest,name]
POSITIVE CONTROL (complete manifest): ACCEPTED

Row for row identical to the card's table, and the card's correction holds: the /* … */
on the same line as the fifth site's manifest sits in plugins:, not in manifest:.

Read this before reviewing: what this PR does NOT do

An elision marker is a comment. It does not make any of these five snippets parse. The
same door, driven against the post-change literals, returns the same refusal codes at all
five sites. What changes is the snippet's status: a silent omission becomes a declared
partial, which is the boundary #18776 drew when it judged content/docs/api/metadata-api.mdx
"incomplete, not an error" because its elision was written down.

That is the remedy the card's triage chose, of the two the card offered. If the intent was
instead that a reader can copy any of these five blocks and have it run, that is the card's
other arm — completing each manifest to id + name + type + version — and this PR is
not it. Reviewer's call; the measurement above is the same either way.

Corpus-wide closing measurement

Every manifest: { literal in the prose corpora (content/**, docs/**, every
README.md, skills/**, examples/**; CHANGELOGs excluded) was brace-matched, evaluated
and driven at the same door — 44 literals across 1224 files. After this change:

  • 24 accepted at the door;
  • 13 refused with a declared elision — the 7 siblings, the 5 in this PR, and
    content/docs/upgrading.mdx:156, which declares its elision with a // ... line comment;
  • 2 refused without one, both in .changeset/*.md release-note prose, which is a
    fragment describing a diff rather than a copyable stack config and is consumed at release.

So the class this card names is empty on the published docs surface after this PR. That
// ... line-comment spelling at upgrading.mdx:156 is a fourth elision spelling in the
corpus; it is reported, not changed — the site is a manifest fragment, not a defineStack
call, and the card asserts nothing about already-declared partials.

Verification

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derives
43 commands from this change set (5 paths, merge base ad1f94e8e). All 43 were run:

  • 39 exit 0.
  • 4 refused on an unmet prerequisite, then re-run green after building what they named
    (check:doc-formula-expressions, check:doc-security-posture, check:docs-transcript-drift,
    check:skill-examples).

pnpm lint is not implicated, and this is a measurement rather than a skipped step:
eslint's own population, read from eslint.config.mjs, is
**/*.{ts,tsx,mts,cts,js,jsx,mjs,cjs} and narrower subsets of it — the string mdx does
not occur in that file, and no block names .md. Running eslint over the five changed files
with --format json returns 5 results, every one of them
File ignored because no matching configuration was supplied, 0 errors, 0 warnings other
than that notice, exit 0. Type-aware linting is not enabled for this diff's file kinds, so
no untouched file's verdict can move.

Changeset

skip-changeset: nothing published moves. All five edited paths sit at the repository root
(content/docs/**, docs/design/**), outside every workspace package directory, and the
root package is private: true — an npm tarball can only contain files under its own
package directory, so no files[] entry in this repo can reach them. Positive control, same
method: packages/services/service-package/README.md (the untouched Form C sibling, the same
kind of prose) does ship, as a README of a published package, and
packages/spec/src/kernel/manifest.zod.ts ships too — npm pack --dry-run in
packages/spec lists 44.3kB src/kernel/manifest.zod.ts in the tarball contents.

Acceptance notes

Findings noted while working, none filed:

  • The corpus carries two inline spellings of the same inline elision — three sites with
    the Unicode ellipsis /* … */ and three with the ASCII /* ... */ — plus the multi-line
    Form C and the // ... line comment at upgrading.mdx:156. Four spellings of one idea.
    Noted, not filed: this is a consistency observation, not a reproducible defect, and the
    card explicitly does not assert that already-declared partials need anything.
  • packages/services/service-package/README.md's own manifest literal (Form C's site) is
    refused at the door too — invalid_value[manifest,type]. Noted, not filed: it is a
    declared partial, which is precisely the disposition this card adopts.

Generated by Claude Code

…fest examples

Five `defineStack({ manifest: … })` snippets carried an incomplete manifest
literal with no elision marker, so a reader copying the block is refused by
ManifestSchema (missing `id` / `name` / `type` / `version` depending on the
site). Seven sibling snippets in the same corpora already declare their
elision; these five were silent.

Adopts the existing multi-line elision form already used by
`packages/services/service-package/README.md` — keep the keys the snippet is
demonstrating, add `/* …full ObjectStackManifest… */` as the last member. The
two inline forms (`manifest: { /* … */ }` / `{ /* ... */ }`) would have erased
the demonstrative keys each of these five snippets exists to show.

Claude-Session: https://claude.ai/code/session_017ef78bLdybu3AffehKkhfk
Co-authored-by: Claude <noreply@anthropic.com>
@os-try-charles os-try-charles added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Sep 17, 2026 — with Claude
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation labels Sep 17, 2026
@os-try-charles
os-try-charles marked this pull request as ready for review September 17, 2026 23:55
@os-try-charles
os-try-charles added this pull request to the merge queue Sep 17, 2026
Merged via the queue into main with commit 631dcbd Sep 18, 2026
38 checks passed
@os-try-charles
os-try-charles deleted the claude/issue-18777-definestack-manifest-elision branch September 18, 2026 00:13
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…12 ADR-0019 D3 amendment; the marketplace design doc and the audience page drop the suite fold (objectstack-ai#33455)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XRDknyaA6oa7MrKZVWEcnFa)_

Fixes objectstack-ai#32664

domain:skills#1 · os-project-manager · session_01FEkQ5omJjY7zqYeR48ExxC

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:ADR-0130 D2(两处)、其 Non-goals 与备选 5、ADR-0141 的 Unchanged 行,各加一条带日期的
⚠️ 指向,点名 2026-11-12 对 ADR-0019 D3 的修订与 `958734cbac`,原裁决句一字不删;设计文档
`marketplace-publishing.md` 与公开文档页 `audience-based-interfaces.mdx`
的「套件折叠成一个应用」句改写为修订后的规则。
- 为什么改:ADR-0019 D3 已按「改成 Salesforce
模式」修订(一个套件可呈现多个应用,每个应用由不同包定义,应用包至多一个应用),但 ADR-0130/0141 仍写「D1–D3
原文不变」,设计文档与文档页仍教「一个应用、永不套件」;人或 AI 搜 D3 会落到旧读法。
- 风险与回滚:纯文档,4 个文件 +88/−20,不动代码、schema、技能;回滚即还原本 PR。
- 先看:`docs/adr/0130-release-artifact-as-co-ownership-boundary.md` D2
下两条指向(:211、:235);`docs/design/marketplace-publishing.md` §6 新增的 Shape C
与改写的「Not allowed」框;`content/docs/ui/audience-based-interfaces.mdx` 第 22
行。
- 两分钟验证:`git diff origin/main -- docs/adr/`,预期只见新增的 ⚠️ 指向行,无任何删除行。
- 需要你做的:受管面 Tier H(`docs/adr/**`):请批准或合并。

## What changes

Four files, +88 / −20. The amended rule is quoted, not paraphrased, from
ADR-0019 D3's amendment note on `main` (`ba35dfd7`): "A suite (one
install: an app package plus the module packages it composes) MAY
surface more than one app, provided each app is defined by a different
package of the suite, and an app package defines at most one app."

- **`docs/adr/0130-release-artifact-as-co-ownership-boundary.md`** (+26
/ −0, no ruled sentence touched).
- D2, after "D1–D3 stand verbatim and unamended": a dated pointer naming
the amendment, objectstack-ai#32585 and `958734cbac`, quoting the rule, and saying D1
and D2 are not amended; of "installs, opens, uninstalls" only "opens"
reads differently (ADR-0019's note under D1).
- D2, after the ⛔ line: a pointer quoting ADR-0019's own "Records that
restate D3" note: the line "stands as drawn", "What ADR-0130 calls a
suite is a container a consumer browses or installs, and that stays
removed", and the "exactly one consumer-visible consequence" "gains a
second: a module the app package brought may surface an app of its own."
- Non-goals, "Not a suite": a pointer saying which "suite" the line
excludes, since the amended D3 uses the word for one install of an app
package with its modules.
- Alternative 5, "ADR-0019 D3 by another name": a pointer saying the
fold is reversed and the rejection stands on what the amendment keeps:
D1, D2, and a suite "is no second consumer unit. It has no listing and
no package type of its own."
-
**`docs/adr/0141-inter-app-dependency-declared-checked-before-install.md`**
(+8 / −0): a pointer after the **Unchanged** line, whose consumer-model
item is kept as the reading of 2026-10-25.
- **`docs/design/marketplace-publishing.md`** (+53 / −19): a new dated
`Updated:` header line (the 2026-05-31 line kept); §1's HotCRM paragraph
rewritten from "being refolded into a single consumer App" to the suite
it ships as (hotcrm `main` at `ac4dd3d`: sales in the app package,
service and marketing in their module packages); §2.1's taxonomy line;
§6's lead rewritten to the amended rule, "(recommended for HotCRM)"
dropped from Shape A, a new **6.3 Shape C** (a suite through
`composeStacks(..., { manifest: 'preserve' })`), and the "Not allowed"
box rewritten to one package surfacing N apps plus a suite as a second
consumer unit, naming `STACK_SINGLE_APP_VIOLATION` for `type: app` and
`type: module`; Summary item 5.
- **`content/docs/ui/audience-based-interfaces.mdx`** (+1 / −1): "More
audiences therefore never mean more apps" becomes per package, a `type:
'module'` package is held to one app too
(`packages/spec/src/stack.zod.ts#SINGLE_APP_PACKAGE_TYPES`, `app` and
`module`), and a suite may surface more than one app, each defined by a
different package. The "See also" line ("one app per package") still
holds and is unchanged.

## Acceptance notes

- **Nothing already landed.** Commits on each file since `958734cbac`
(GitHub REST, `commits?path=`): ADR-0130's last is PR objectstack-ai#32846
(`2d52e297d3`), which dated only the §1.5 `validateSingleApp` row;
ADR-0141's last is objectstack-ai#31415 (2026-11-08); the design doc's last is objectstack-ai#18838
(2026-09-17); the docs page's last is objectstack-ai#29447 (2026-11-02). None carries
these pointers.
- **Left as written, still true:** ADR-0130's TL;DR "does not move a
single letter (D2)" (its D2 now carries the pointer) and References
"(unamended by this record)"; ADR-0141 D6 "ADR-0019 keeps its text
verbatim" and its Cross-references line (both describe ADR-0141's own
act); ADR-0141 Context's "the standalone module is therefore an App in
its own right" (the shelved cross-artifact consumer).
- **Same family, outside this card's surface, noted only:** the header
comment of `packages/spec/src/kernel/package-registry.zod.ts` says "a
consumer package defines at most one app — there is no 'suite contains
apps' aggregator", and the design doc's §2.2 quotes it. Read per package
it still holds (no package of a suite defines more than one app), so it
is not a defect; a wording pass is the spec lane's to pick up.
- The design doc's Shape A example still uses HotCRM-style ids as an
illustration; only its "recommended for HotCRM" heading was dropped.

## Verification

<details><summary>Derived gates on head 8bfdf6e (48 of 48 exit
0)</summary>

`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 48 commands; each ran with its exit
captured before any pipe. The nine package-filter gates were rerun after
`turbo run build --filter=@objectstack/lint...
--filter=@objectstack/client-react...` under the lock (VERDICT
command-exit 0); the first pass of `check:skill-examples`, taken before
that build, answered exit 3 (prerequisite not built) and is superseded
by the rerun below. `--ran`: "48 derived famil(ies) accounted for — 48
run, 0 NOT-MEASURED". Control-byte self-scan of the four files: no hit.

```
node scripts/check-adr-links.mjs :: exit 0
node scripts/check-adr-links.mjs --self-test :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-doc-route-spelling.mjs --advisory :: exit 0
node scripts/check-doc-route-spelling.mjs --self-test :: exit 0
node scripts/check-docs-section-name.mjs :: exit 0
node scripts/check-docs-section-name.mjs --self-test :: exit 0
node scripts/check-section-landing-index.mjs :: exit 0
node scripts/check-section-landing-index.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:adr-index :: exit 0
pnpm check:adr-symbol-anchors :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:corpus-claim-drift :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-anchors :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:doc-frontmatter :: exit 0
pnpm check:docs-audit-scope :: exit 0
pnpm check:docs-redirects :: exit 0
pnpm check:docs-single-h1 :: exit 0
pnpm check:docs-spec-enumerations :: exit 0
pnpm check:docs-transcript-drift :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-governed-merges :: exit 0
pnpm check:pm-prior-rulings :: exit 0
pnpm check:published-readme-links :: exit 0
pnpm check:react-page-adapter-contract :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:role-word :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:vendor-version-stamps :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm --filter @objectstack/lint run check:doc-security-posture :: exit 0
pnpm --filter @objectstack/spec run check:docs :: exit 0
pnpm --filter @objectstack/spec run check:empty-state :: exit 0
pnpm --filter @objectstack/spec run check:liveness :: exit 0
pnpm --filter @objectstack/spec run check:skill-examples :: exit 0
pnpm --filter @objectstack/spec run check:strictness-ledger :: exit 0
pnpm --filter @objectstack/spec run check:variant-docs :: exit 0
pnpm --filter @objectstack/spec run check:yaml-examples :: exit 0
```
</details>

<details><summary>Tier and governed-merge verdicts</summary>

- `dispatch-gates --tier`: MANDATORY contract-review tier for
`docs/adr/**` (no one-line exit). This card thread ran on the claim's
default tier; named as a deviation in the report, and the seat's in-seat
contract review at tier is the owed record.
- `check-governed-merges.mjs --branch claude/project-thread-58mkv4`:
exit 3, GOVERNED, landing tier H (人合), `docs/adr/** ×2`;
`content/docs/ui/audience-based-interfaces.mdx` and
`docs/design/marketplace-publishing.md` are not on the register; 108
changed lines, under the 3000 threshold.
- Changeset: `skip-changeset` (`docs/adr/**`, `docs/design/**` and
`content/docs/**` ship in no package's `files[]`).
</details>

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5omJjY7zqYeR48ExxC)_

<!-- signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5pjSPT7ui2EUcunaVb -->

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

2 participants