Repository navigation
docs(skills, adr): objectstack-ui states the one-app-per-package rule for app and module packages alike; ADR-0019 and ADR-0130 record the landed defineStack check - #32846
Conversation
… for app and module packages alike; ADR-0019 and ADR-0130 record the landed defineStack check skills/objectstack-ui/SKILL.md § App Navigation names both package types defineStack holds to one app (ADR-0019 (app-as-consumer-unit) D3 as amended) and the remedy: each further app goes in a module of its own with the objects it shows. Paid in the same file by deleting the restated tail of Common Pitfalls 2; the token count stays 3814 at its ceiling. ADR-0019: the status line moves the module check from Pending to Landed (merge commit 9ae8291), and a dated note under "Enforced today, and not yet" records the enforcement and the two shapes still not judged. ADR-0130: the section 1.5 fact row on validateSingleApp is annotated as a reading of 2026-09-01 that the same merge made stale. Claude-Session: https://claude.ai/code/session_016WV4cw2gU3aMnFXsEekd3f Co-authored-by: Claude <noreply@anthropic.com>
…anded The Pending clause "HotCRM split into a suite that surfaces its sales, service and marketing apps, each in a package of its own" has landed in objectstack-ai/hotcrm as commit 41d301a7bd: the app package and the service and marketing modules each define one app, composed under manifest: 'preserve'. The clause moves out of Pending, in the same line the previous commit edits. Claude-Session: https://claude.ai/code/session_016WV4cw2gU3aMnFXsEekd3f Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#1 · os-elon-musk · session_016WV4cwTZvo7tAGwbbRW2b8 Contract reviewServed-tier: Inputs read: card #32809 body and its 3 comments (triage 6834927956, claim 6836140314, dev report 6836872807) and the record it cites (PR #32792 contract review, comment 6833950860, ③); PR #32846 body, its file list (4 files) and the net diff against Check-runs at 2026-11-12T21:55Z: 17 ① Derived judgments
② Semver level
Clause-②: no. The line is present and identical on the PR body and in the changeset, with ③ Boundary flags
④ Design judgment
Findings on this file:
Finding:
No must-fix. One should-fix (S1), carried by #32810 and not owed by this head. Two nits (N1, N2), left as accepted deviations: a fix moves the head and N1 has no token headroom to land in. Implemented-by: VERDICT: PASS |
|
domain:skills#1 · os-elon-musk · session_016WV4cwTZvo7tAGwbbRW2b8 维护者速读(席位终稿)
席位核对 — ACCEPT · domain:skills#1 · head
|
…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>
Requested by Elon · project thread
Fixes #32809
Clause-②: no
Metadata-protocol: none
维护者速读
type: 'app')和模块包(type: 'module')都至多放一个应用,多出的应用各自放进一个带着自己对象的模块包。ADR-0019 的状态行和 ADR-0130 的一行事实记录同步记下「模块包的检查已经落地」。defineStack也拒绝模块包里的第二个应用;技能文档原句只提应用包,读者会以为模块包可以放多个,写出来才在os validate被拒。skills/objectstack-ui/SKILL.md的「At most one App per package」一段;docs/adr/0019-app-as-consumer-unit.md的状态行和新增的「Enforced for modules since 2026-11-12」一段;docs/adr/0130-release-artifact-as-co-ownership-boundary.md§1.5 表里validateSingleApp那一行。node scripts/check-skills-token-ratchet.mjs | grep objectstack-ui/SKILL.md,预期第一行读「3814 tokens (ceiling 3814; headroom 0)」。skills/**和docs/adr/**都是受管面,Tier H)。What changes
skills/objectstack-ui/SKILL.md§ App Navigation. The rule paragraph said "defineStackrefuses a second in atype: 'app'package" and "atype: 'module'package may carry its own app". It now reads: "defineStackrefuses a second app in atype: 'app'and atype: 'module'package alike. A suite (an app package plus its modules) may surface more apps: each further app goes in a module of its own with the objects it shows, served under that module's package id and gone when it is disabled." The citation is "ADR-0019 (app-as-consumer-unit) D3 as amended". The last sentence (audiences sharing one product stayrequiredPermissions-gated groups inside one app) is unchanged.layoutis optional: omit it and the widget auto-flows"). This is the payment for the paragraph above.docs/adr/0019-app-as-consumer-unit.md, status line. "thedefineStackcheck that holds a module package to at most one app" moves from Pending to Landed, with the merge commit of feat(spec)!: defineStack holds a module package to at most one app, as it does an app package #32792,9ae829108c, and its date.mainat8bfbc4ed). A dated paragraph is added after it, "Enforced for modules since 2026-11-12.": whatvalidateSingleAppjudges now, what it still does not judge (other package types, no manifest,strict: false), and the two shapes the check does not reach, a flatcomposeStacksand a hand-builtpackages[]body (spec: a flat composeStacks (default manifest 'last') of packages with one app each yields one package id with several apps, and no door refuses it (the single-app rule of ADR-0019 D3 as amended) #32810).docs/adr/0130-release-artifact-as-co-ownership-boundary.md, §1.5 fact table. The row "validateSingleAppconstrains onlytype: 'app'" keeps its text and gains an in-row note: a reading of 2026-09-01, no longer true since 2026-11-12, with the merge commit and what the function does now..changeset/32809-ui-skill-one-app-per-package.md:@objectstack/skillspatch.skills/objectstack-ui/evals/views-apps-actions-pages.json. See Tests.Why
PR #32792 (card #32586) merged as
9ae829108c. Onmain,SINGLE_APP_PACKAGE_TYPESinpackages/spec/src/stack.zod.tsisappandmodule, andvalidateSingleApprefuses either package type with more than one app,STACK_SINGLE_APP_VIOLATION. The skill sentence was written when only an app package was judged. It was not false, but an agent could read it as "a module package may carry several apps", write one, and meet the refusal atos validateoros build. The contract review of #32792 (comment 6833950860, section ③) named the two ADR records the landing made stale: the ADR-0019 status line with its "Enforced today, and not yet" paragraph, and the ADR-0130 fact row.Skills budget
Read on
mainat2ca09de5(before) and on this head (after).skills/objectstack-ui/SKILL.md, linesskills/objectstack-ui/SKILL.md, tokens (check-skills-token-ratchet)skills/*/SKILL.md, linesThe App Navigation paragraph grows by 59 bytes and one line. The deletion in Common Pitfalls 2 removes 56 bytes and one line of restatement. No ceiling row moves and
scripts/check-skills-token-ratchet.mjsis not edited.Tests
views-apps-actions-pages.json, case 2 (the "second app for the support team" prompt), read against the new paragraph. Its expected output says "At most one app per package, so not a secondApp.createhere", that the support team is arequiredPermissions-gated group inside the app, and that a support product with objects of its own carries its app in its owntype: 'module'package of the suite. Each of the three is still taught by the paragraph, and eachmust_containtoken is still in the bundle. The eval grades the rule for both package types as written and needs no edit.Acceptance notes
claude/project-thread-i844yo; the claim (6836140314) names it.validateSingleAppdoes not judge, with spec: a flat composeStacks (default manifest 'last') of packages with one app each yields one package id with several apps, and no door refuses it (the single-app rule of ADR-0019 D3 as amended) #32810 as their card. The skill does not teachcomposeStacksfor suites, so it names no composition option; if spec: a flat composeStacks (default manifest 'last') of packages with one app each yields one package id with several apps, and no door refuses it (the single-app rule of ADR-0019 D3 as amended) #32810 changes what an author must write, that card owes its own skills follow-up.41d301a7bd; the same status line now records it under 'Landed in HotCRM', commitfe605fb6.content/docs/ui/audience-based-interfaces.mdxanddocs/design/marketplace-publishing.mdstate the rule for an app package only. Both stay true and neither is edited.Verification
Every line below was read on head
9e4c8483, cut frommainat2ca09de5. Headfe605fb6adds one commit that edits only the ADR-0019 status line (the fold above); the contract review (comment 6837025180) read that head.mainhas moved since, touching none of this PR's four paths, so the branch is not merged with it.pnpm --filter @objectstack/spec run check:skill-docs: exit 0, "Skill docs in sync" (afterpnpm --filter @objectstack/spec build).pnpm --filter @objectstack/spec run check:skill-refs: exit 0, "9 generated files in sync with packages/spec".node scripts/check-skills-token-ratchet.mjs: exit 0,skills/objectstack-ui/SKILL.md is 3814 tokens (ceiling 3814; headroom 0); 57 authored bundle files within their ceilings.node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack: 52 families derived from the four changed paths, among themcheck-adr-links,check:adr-anchors,check:adr-index,check:adr-symbol-anchors,check:doc-authoring,check:skill-links,check:skill-identifier-liveness,check:skill-frame-sync,check:skill-compatibility,check-empty-changesetandcheck-changeset-no-major. All 52 exit 0.--ranreconciliation: 52 derived, 52 run, 0 NOT-MEASURED, 0 UNRUN.turbo run build(119 of 119 tasks):check:doc-formula-expressions,check:dual-build-cjs-loads(123 require entry points across 72 packages load) andcheck:lean-entry-closure.pnpm lint(eslint over the whole tree,--no-inline-config): exit 0.fe605fb6: 29 success, 16 skipped, 0 failed.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses.main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_016WV4cw2gU3aMnFXsEekd3f