Skip to content

fix(spec)!: refuse a record:activity feed whose types leaves out comment while its comment composer is on - #34524

Merged
os-zhuang merged 6 commits into
mainfrom
claude/project-thread-ny8fif
Nov 17, 2026
Merged

os-zhuang merged 6 commits into
mainfrom
claude/project-thread-ny8fif

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread
Fixes #34383

Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #34534

维护者速读

  • 改了什么:活动块(record:activity,以及 record:chatter / record:discussion 的 feed)写了 types 却不含 comment、同时评论框开着(showCommentInput 没写成 false)时,编写期直接拒收,报错写明两种改法。
  • 为什么改:types 是要显示的条目种类白名单,comment 也是其中一种;漏了它,评论框照常收评论,评论存下后又被同一个白名单滤掉,用户以为帖子丢了(HotCRM 线索页 lead_activity 就是这样)。渲染端上一张卡已收掉评论框,这张卡在写的地方就拦下。
  • 风险与回滚:收窄(BREAKING),只影响上述组合;没写 types、types 含 comment、或 showCommentInput: false 的块完全不变。仓内首方页面零命中;HotCRM lead_detail 需加 'comment'(另行修)。回滚即 revert 本 PR。
  • 先看:packages/spec/src/ui/component.zod.ts(新拒收函数 refuseFeedTypesWithoutCommentBesideComposer 及挂在 RecordActivityProps 上的一行);packages/spec/src/ui/component.test.ts(9 个新钉子与一处被迫改的旧用例);.changeset/34383-record-activity-types-without-comment.md。
  • 两分钟验证:pnpm --filter @objectstack/spec exec vitest run src/ui/component.test.ts -t 34383,预期 9 个全过。
  • 需要你做的:无,席位落地。

What changes

The refusal. RecordActivityProps (packages/spec/src/ui/component.zod.ts) gains one object-level check, refuseFeedTypesWithoutCommentBesideComposer: when types is present, does not contain 'comment', and showCommentInput is not false (absent reads as its default true), the parse adds one custom issue at showCommentInput naming both fixes (located on the composer the list rules out: types on its own stays valid, and an issue at types would read, to the console's per-key member probe, as the list itself being refused — the Test UI red of round 1) — add 'comment' to types, or set showCommentInput: false. The check is unexported, so the console mirror's census of exported check* functions does not move; the mirror carries it on the cloned def, and reads an absent showCommentInput as on, the same as the spec.

Form. The card left the form to the spec lane. A schema check, not a new lint rule: ComponentPropsMap['record:activity'] is the row component-props-invalid (packages/lint/src/validate-component-props.ts) already judges every page's properties with, at error, on os lint / os validate / os build and the runtime page door it is registered on. So one check reaches every door with no second rule to keep in step.

Both mounts. RecordActivityProps is also RecordChatterProps.feed (record:chatter and record:discussion), whose renderer filters its rows with the same applyFeedConfig(…, { types, … }) call, so the contradiction holds there too, and the message is written to be true on both mounts.

What it does not judge. An absent types (every kind), any entry against the built-in kinds (the open-vocabulary ruling stands), or a types that already failed its own element check (a non-string entry keeps its one issue). Matching is exact, as the renderers match.

Riders. Two describes (types, showCommentInput) state the rule, regenerated into content/docs/references/ui/component.mdx by gen:docs. dropped-refinements.baseline.json gains the two sites the build named (ui/RecordActivityProps root, ui/RecordChatterProps feed; measured counts +2 / +2). ADR-0087 D3 entry record-activity-types-without-comment-beside-composer-refused (no conversion: which fix the author meant is a judgement about the block). Changeset minor on @objectstack/spec, registered.

Forced test change, named. component.test.ts › "does not reject a typo of a built-in kind by name" parsed { types: ['commnet'] } with the composer on by default, which this card now refuses on its own account. The fixture gains showCommentInput: false so the case still reads the open vocabulary alone; its assertion is unchanged.

Tests

packages/spec/src/ui/component.test.ts, top-level describe "RecordActivityProps — a types that leaves out comment is refused while the composer is on", 9 cases:

  • refused shapes, each asserting one issue at showCommentInput with code custom and none under types: the measured producer (types: ['task'], limit: 20, showCompleted: true), explicit showCommentInput: true, contributed kinds only, an empty list, a cased 'Comment';
  • the two fixed shapes ('comment' added; showCommentInput: false) and an absent types with the composer on or off — all accepted;
  • a non-string entry keeps exactly its own types.0 issue; an unknown key still gets unrecognized_keys beside the new check;
  • the record:activity row of ComponentPropsMap is this object, and record:chatter / record:discussion refuse the same shape at feed.showCommentInput and accept it with the composer off.

Why

A record:activity (or a chatter feed) that hides comments but keeps the composer takes posts it never shows. The renderer half (previous card) withholds the composer; this card makes the contradiction loud where it is written, so the producer fixes its page instead of the screen quietly differing from what was authored.

Acceptance notes

  • Stored-row detector (refused-shapes.ts): dropped — no installed page measured carrying this shape (HotCRM read too), the save gate refuses it loudly, and most step-18 refusal entries have no detector.
  • Renderer gap on the chatter mount (noted, not fixed here). The record:activity renderer withholds the composer and the Comments-only option on such a feed; the record:chatter / record:discussion renderer does not (RecordChatterPanel hands its timeline no commentsShown, so it defaults to true). After this change an authored page cannot reach it; a host composing the panel in code still can. Reported to the seat.
  • HotCRM lead_detail.lead_activity (types: ['task']) will be refused on its next save; producer fix is hotcrm's, held for the maintainer.
  • The HTTP page door was not driven end-to-end here: the reach is the rule's registration on the runtime door plus the validateComponentProps reading below.

Verification

Final head 906f6f6d: one merge of origin/main at ed45eb92 (after #34500) on top of bf199627, taken through scripts/pm/os-regen-merge.sh. No regeneration commit was needed; the one conflict was the hand-kept packages/spec dropped-refinements.baseline.json measured counts, stacked to 268 / 1116 (main 266 / 1114, this PR +2 / +2); the spec build accepted the ledger and check:generated was clean. The five other files are byte-identical to bf199627, so the readings below, taken on bf199627, stand for this head (contract review delta on 906f6f6d: 6936430749, PASS). CI on 906f6f6d: every required context green (Lint & Repo Gates, TypeScript Type Check, Build Core, Test Core, Governed Surface Queue Guard, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate; Lint UI skipped), Check Changeset green.

Round 2: the Test UI red on the first head, and its fix

On 1533b264, Test UI (1/16) went red in ui/apps/console/src/__tests__/registry-inputs-spec-parity.test.ts (2 cases): the console's member probe parses { types: [x] } alone, the composer defaulted on, and the issue sat AT types (path length 1), which the probe reads as the container itself being refused (no-member-position). The issue now sits at showCommentInput; the same file on bf199627: 261/261 passed, no ui/** change.

Spec tests, typecheck, ablation
  • pnpm --filter @objectstack/spec test on bf199627 (lock VERDICT command-exit 0): Test Files 846 passed (846), Tests 27090 passed, 1 todo.
  • pnpm --filter @objectstack/spec exec vitest run src/ui/component.test.ts -t 34383: 9 passed.
  • pnpm --filter @objectstack/spec typecheck: VERDICT command-exit 0 (first head); check:test-typecheck in the gate round below.
  • Ablation on bf199627 (scripts/ablation-replace.mjs, src is what the test resolves): anchor .superRefine(refuseFeedTypesWithoutCommentBesideComposer) replaced by a marker comment, mutation landed (anchor 1 to 0, blob changed). Result: 4 failed, 5 passed — every refusal pin red, the five acceptance pins green. Restored: blob equals HEAD, git diff HEAD empty.
Reach through the lint gate (one-off reading on bf19962, not committed)

validateComponentProps from packages/lint/src over a record page with a record:activity block and a record:discussion block:

  • { types: ['task'], limit: 20, showCompleted: true }: two findings, both severity: error, rule: component-props-invalid, at pages[0].regions[0].components[0].properties.showCommentInput and components[1].properties.feed.showCommentInput, message naming both fixes.
  • { types: ['task','comment'] }, { types: ['task'], showCommentInput: false }, {}: no findings.

A whole PageSchema.safeParse of the same page stays clean: the page parse does not judge properties; the lint rule is that door.

Gate round (dispatch-gates, 115 families, bf19962)

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at bf199627 derived 115 families; all 115 run, 115 exit 0. --ran reconciliation: 115 derived, 115 run, 0 NOT-MEASURED, 0 UNRUN.

Dogfood battery (bf19962)

pnpm --filter @objectstack/dogfood test under the verify lock: VERDICT command-exit 0, Test Files 478 passed, 3 skipped (481), Tests 4030 passed, 44 skipped (4074), no failure. (The first head's battery read the same counts.)

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic.
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (No formatter ran; pnpm lint is CI's run, not run locally.)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmP9G6thtpoRS58fpJy

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation protocol:ui tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/spec, touching 5 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/spec/dropped-refinements.baseline.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/frontend/plugins/plugin-detail.mdx (via RecordActivityProps (symbol, a top-level const object), showCommentInput (symbol, a field of const object RecordActivityProps, an authorable key of ui/RecordActivityProps), showCommentInput (literal, a string literal in refuseFeedTypesWithoutCommentBesideComposer))
  • content/docs/ui/pages.mdx (via showCommentInput (symbol, a field of const object RecordActivityProps, an authorable key of ui/RecordActivityProps), showCommentInput (literal, a string literal in refuseFeedTypesWithoutCommentBesideComposer))
What this run could not see
  • 1 changed file(s) yielded no anchor (packages/spec/dropped-refinements.baseline.json) — pages documenting those are invisible to this run
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 173 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json ed45eb92880e5092889042df66c137399c2b5778 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from c24c310563410435185c7a1ed8c07236fcb23d73 — the merge of head 906f6f6dcb3da83a94ab2090a2a6782f16ee833a into base ed45eb92880e5092889042df66c137399c2b5778, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin c24c310563410435185c7a1ed8c07236fcb23d73 && git checkout c24c310563410435185c7a1ed8c07236fcb23d73
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin ed45eb92880e5092889042df66c137399c2b5778 906f6f6dcb3da83a94ab2090a2a6782f16ee833a && git checkout -B drift-repro ed45eb92880e5092889042df66c137399c2b5778 && git merge --no-ff 906f6f6dcb3da83a94ab2090a2a6782f16ee833a

node scripts/docs-audit/affected-docs.mjs --json ed45eb92880e5092889042df66c137399c2b5778

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs ed45eb92880e5092889042df66c137399c2b5778 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 1533b26 · 2026-11-17T00:05Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1533b26468a0366c5881e2c04472f75a21b3e60f
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/18.record-activity-types-without-comment-beside-composer-refused.ts, packages/spec/src/ui/component.zod.ts, and the narrowing floor packages/spec/src/ui/component.test.ts, packages/spec/dropped-refinements.baseline.json (generated ledger, read for the two sites only) + cited code read on the live tree, none of it in the diff: packages/lint/src/validate-component-props.ts, packages/lint/src/authoring-rules.ts, packages/spec/src/conversions/refused-shapes.ts, ui/packages/plugin-detail/src/renderers/recordActivityFeed.ts, ui/packages/plugin-detail/src/renderers/record-activity.tsx, ui/packages/plugin-detail/src/renderers/record-chatter.tsx, ui/packages/plugin-detail/src/RecordChatterPanel.tsx, ui/packages/plugin-detail/src/RecordActivityTimeline.tsx, ui/packages/types/src/zod/public-blocks.zod.ts, ui/packages/types/src/zod/imported-defaults.ts

Inputs read: card #34383 body and its three comments (unblock, claim, os-dev-report); PR #34524 body, file list (6 files) and the net diff against the merge base, which is the tip of main; the check-runs on this head. Nothing was built, run or checked out.

① Derived judgments

Accept-set changes the diff implies, each judged:

  • RecordActivityProps (the record:activity row of ComponentPropsMap): a present types array of strings without the exact entry comment, beside showCommentInput absent or true, moves from accepted to refused with one custom issue at types. RIGHT, and it is the card's Expected item 1 to the letter, message naming both fixes included.
  • RecordChatterProps.feed (record:chatter, record:discussion): the same refusal at feed.types, because feed IS that object by reference. RIGHT, and wider than the card's wording, which names record:activity only. Judged against the renderer, not the PR body: record-chatter.tsx filters its rows with the same applyFeedConfig call on feed.types, hands config.feed to the timeline, and passes no commentsShown, so on that mount the composer is still drawn and a posted comment is filtered out of the feed it was posted to. The contradiction is real there and unguarded at render, so the refusal is owed on that mount more than on the first. Both prescribed fixes hold on it: an authored feed replaces the default feed whole, and the timeline reads config.showCommentInput !== false, so feed.showCommentInput: false does withdraw the composer.
  • types: [] beside the composer: refused. RIGHT. The renderer reads an empty list as a filter that keeps nothing, so it shows no comment either.
  • types: ['Comment', ...] beside the composer: refused. RIGHT. normalizeFeedTypes and feedTypesAdmitComments match exactly; the spec check and the renderer judge agree on every string list.
  • Unchanged, verified in the function: absent types; any types beside showCommentInput: false; a types that lists comment; a non-array or non-string-entry types (left to its own type issue); the open vocabulary (no entry is judged against the built-in kinds).
  • A side effect named correctly by the PR: types: ['commnet'] with the composer on is now refused, by this rule and not by name. The forced edit of the pre-existing case (fixture gains showCommentInput: false, assertion untouched) keeps that case reading the open vocabulary alone. RIGHT; the open-vocabulary ruling is not re-closed.

Public surface: no export added, removed or retyped. .superRefine on the closed object returns the same object class, so .shape readers (the lint unknown-key walker, the console mirror's flatPropRefusals) and the inferred type are unchanged; four other rows of the same file already carry an object-level refinement the same way. The published JSON Schema does not carry the rule: the ledger gains exactly the two sites the diff names (ui/RecordActivityProps root, ui/RecordChatterProps feed), with the measured counts moved by two and two. RIGHT as a ledger entry; the gate that holds the ledger to the build is in Build Core, still pending (below).

Doors reached, read in the cited code: validateComponentProps parses properties against the row and emits every non-key verdict at error as component-props-invalid at properties. plus the issue path, so properties.types and properties.feed.types are the paths the entry and changeset state; the rule is registered for every CLI command and on the runtime page save door. The boot, hydration and read paths run no authoring rule, so a stored page carrying the shape still loads and renders (composer withheld on record:activity), and its next save is refused. The semantic entry's surface says exactly this. One door the changeset does not name: the console mirror takes the row by reference through stripImportedDefaults, checks included, so safeValidateSchema and objectui validate refuse the shape the same day (N2).

Gate verdicts on this head, as the check-runs read when this record was written. Success: Check Changeset, Spec property liveness, Governed Surface Queue Guard, PR-body guards, Lint and Repo Gates, Lint ESLint, Lint docs and code guards, Lint repo and tooling gates, Lint CI release and engine gates, Lint PM dispatch-gates, both scoped lint jobs with the tooling self-tests, Type Check source gates, Type Check debt ledger, Build Docs, Build UI Deps, Check Documentation Links, Flag docs affected by code changes, Check PR Size, and the aggregate Dogfood Regression Gate. PENDING, not verdicts: Test Core 1/8 to 8/8, Test UI 1/16 to 16/16, Build Core, Build and E2E UI, Live E2E UI, Type Check UI, Type Check workspace, Type Check consumer gates. This PASS is the contract judgment; it does not stand in for any pending check, and landing waits on them.

② Semver level

Metadata-protocol: narrowed is the right kind (a value combination refused), and the kind takes at least minor on the package the diff moves: the changeset is @objectstack/spec: minor. RIGHT. Clause-②: no (narrowing) is on the PR body and the changeset body, line-initial, and is the correct arm: nothing widens. The BREAKING banner is present, the FROM to TO lines and the one-line fix are in the body, and exactly one ADR-0087 marker registers the D3 entry by its id; the entry file exists under the step-18 semantic entries with that id. No conversion is the right disposition: which of the two fixes the author meant cannot be derived from the stored value, and the two render differently. Check Changeset concluded success on this head.

③ Boundary flags

  • open_questions: contract review owed at this head. Answered by this record.
  • Deviation, forced test change: accepted, judged in ① above.
  • Deviation, check:test-typecheck needed a larger heap locally: environmental; CI's Type Check debt ledger concluded success, Type Check workspace and consumer gates are pending.
  • Deviation, HTTP page door not driven end to end: accepted on the reading of the rule's registration (every command, runtime page door) and of the rule body, which treats this issue as any other value verdict. No special path exists for it to miss.
  • Dogfood battery: NOT MEASURED by the dev at hand-off, and the card's unblock and claim comments both say this narrowing owes it. On this head the dogfood shard matrix job and Dogfood Verify CLI read skipped, and the aggregate Dogfood Regression Gate reads success. A skipped shard is not a run of the battery. ESCALATED to the lane seat: the battery reading the card owes is a landing condition this record does not supply.
  • Out-of-scope finding, the chatter mount still draws the composer for a host composing RecordChatterPanel in code: confirmed in the renderer (no commentsShown handed to the timeline). Authored pages can no longer reach it after this change. ESCALATED to the seat for a ui-lane card; not a defect of this diff.
  • Out-of-scope carrier, HotCRM lead_detail: carried separately per the card. The in-repo copy of that page is the published 4.0.1 fixture, which is replayed through boot hydration and the registry, never through the props gate, so it stays as published.
  • SQL push-down: not applicable. The diff adds no read, no id materialisation and no join.

④ Design judgment

packages/spec/src/ui/component.zod.ts, against the ruling it implements (the spec-lane half of #34371 option A, as card #34383 states it) and its first consumers. The check holds sentence by sentence against the code it cites: both renderers filter by the allow-list; the record:activity renderer withholds the composer through feedTypesAdmitComments, which is on main; the parsed value carries the default true while the console mirror strips defaults, and !== false is the one reading true at both doors; absent types returns before any judgment; matching is exact as the renderers match; a list with a non-string entry is left to its element issue. The two .describe() texts state the rule and neither contradicts the open-vocabulary jsdoc above types. Attempts to break it: a null or scalar types (returns, type issue stands alone); a mixed list (returns); an unknown key beside it (strict refusal kept, pinned); the nested mount (path is feed.types, pinned on both block names); a stored page at boot (not judged); the mirror with defaults stripped (same verdict). None broke it.

packages/spec/src/migrations/entries/semantic/18.record-activity-types-without-comment-beside-composer-refused.ts, against ADR-0087 D3 and the doors it names. surface, replacement, reason and acceptanceCriteria each agree with the code: the doors, the two finding paths, the rule id, the measured producer shape (present verbatim in the published HotCRM fixture), and the absence of a mechanical rewrite. It names both mounts, so an operator reading the upgrade guide is not told the rule is record:activity only.

packages/spec/src/ui/component.test.ts and the ledger, as the narrowing floor: the nine cases pin the refused shape, both fixed shapes and an absent types, which is the card's Expected item 3, plus both mounts through ComponentPropsMap. The ledger rows match the two refinement sites and nothing else.

The narrowing itself, against the published spec on main: it does not take a declared capability away at the consumer. The spec on main declares types as the kinds the feed shows and showCommentInput as a composer on that feed; no sentence of it promises a composer whose posts the same feed hides, the record:activity renderer already refuses to draw one, and the maintainer's ruling chose refusal at authoring over a derived default. Both remaining capabilities stay reachable in one key each (a comment-taking feed, a comment-free feed). This makes the spec's own reading real where it is written.

No must-fix, no should-fix.

Nits, none of which moves the head:

  • N1 (nit) — content/docs/frontend/plugins/plugin-detail.mdx, hand-written and outside the diff, now states the opposite of the rule in one sentence (authoring types: ['approval'] "is legal, typechecks, builds") and is incomplete in two table cells (types: [] renders an empty timeline; showCommentInput needs only a host context). The docs-drift check named this page on this PR. So Skills-docs: none is not the whole truth: on the PR body, a prose face, the line should read follow-up owed naming that file, with a docs card filed.
  • N2 (nit) — the changeset's "What moves" names the CLI and page doors but not the console mirror (@object-ui/types/zod, safeValidateSchema, objectui validate), which refuses the shape by reference from the same release. Accepted deviation, or a line in the follow-up docs card.
  • N3 (nit) — no detector in refused-shapes.ts, so the stored-metadata preview does not list an installed page carrying the shape before its next save is refused. Most refused entries of step 18 have none, so this is no rule broken; a follow-up card if the seat wants the HotCRM case named to operators ahead of the save.

Implemented-by: claude/project-thread-ny8fif
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

…ist rules out

A lone types list stays valid; the issue sits on the composer key so a per-key
judge does not read it as the list itself being refused.

Claude-Session: https://claude.ai/code/session_01ADHkmP9G6thtpoRS58fpJy
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head bf19962 · 2026-11-17T00:51Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: bf19962741631283f6bca10a6753196983781a3b
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/18.record-activity-types-without-comment-beside-composer-refused.ts, packages/spec/src/ui/component.zod.ts, and the narrowing floor packages/spec/src/ui/component.test.ts, packages/spec/dropped-refinements.baseline.json (generated ledger, read for the two sites only) + cited code read on the live tree, none of it in the diff: packages/lint/src/validate-component-props.ts, packages/lint/src/authoring-rules.ts, packages/spec/src/conversions/refused-shapes.ts, ui/packages/plugin-detail/src/renderers/recordActivityFeed.ts, ui/packages/plugin-detail/src/renderers/record-activity.tsx, ui/packages/plugin-detail/src/renderers/record-chatter.tsx, ui/packages/plugin-detail/src/RecordChatterPanel.tsx, ui/packages/plugin-detail/src/RecordActivityTimeline.tsx, ui/packages/types/src/zod/public-blocks.zod.ts, ui/packages/types/src/zod/imported-defaults.ts

Delta review. The previous record on this PR is comment 6933431498, PASS on head 1533b26468a0366c5881e2c04472f75a21b3e60f; everything it judged that did not move between the heads stands as written there and is not repeated. Inputs read for this record: that record; card #34383 body and its four comments (unblock, claim, two os-dev-reports); PR #34524 body; the change between the two heads restricted to the PR's six files (four moved: the changeset, the semantic entry, component.test.ts, component.zod.ts); the whole refinement, pin block, changeset and entry at the new head; the net diff against the merge base 1efe7a22 (six files, the PR's own and nothing else); ui/apps/console/src/__tests__/registry-inputs-spec-parity.test.ts and the record:activity input declaration in ui/packages/plugin-detail/src/index.tsx on the live tree; the check-runs on this head. Nothing was built, run or checked out.

① Derived judgments

Accept set between the heads: UNCHANGED, read off the function and not off the account. The body of refuseFeedTypesWithoutCommentBesideComposer differs between the heads in one token, the path of the one addIssue call (['types'] to ['showCommentInput']), plus docblock prose. The three guards are byte-identical: return unless types is an array and showCommentInput is not false; return unless every entry is a string; return when the list includes the exact entry comment. The message text is identical. The attachment is identical: one .superRefine on RecordActivityProps, and RecordChatterProps.feed is still that object by reference, so both sites carry the same condition. No document's verdict changed in either direction: every shape the old head refused is refused, every shape it accepted is accepted, and each refused shape still draws exactly one custom issue. RIGHT.

What moved is the issue's address only: showCommentInput on record:activity, feed.showCommentInput on record:chatter and record:discussion. Through validateComponentProps (path is properties. plus the issue path, unchanged code) the finding lands at properties.showCommentInput and properties.feed.showCommentInput, still component-props-invalid at error. The entry and the changeset state exactly those two paths.

Is showCommentInput the right address. YES, on three readings of the tree:

  • The rule's own subject. types alone is a valid value on any list of strings (the open-vocabulary ruling, restated in the jsdoc directly above the key); what the feed cannot honour is the composer beside it. The composer key is the one whose value, written or defaulted, asks for the thing the list rules out, and it is the key the second prescribed fix edits. The first fix edits types; the message opens by naming types and the authored list verbatim and still names both ways out (add 'comment' to types, set showCommentInput: false), both pinned by text.
  • An address the author did not write. On the measured producer shape the key is absent and the default is what is refused, so the finding points at a key not in the document. That is the normal shape of a path for a defaulted or missing key (a missing required key is addressed the same way), the lint finding path is a string and nothing resolves it against the source, and the message says showCommentInput (default true). Accepted.
  • Precedent in the same file: the other cross-key refinements address the key that carries the contradicted request (count, label, target, onSuccess, params), not the container beside it.

Root cause or a dodge of the UI test. Root cause. registry-inputs-spec-parity.test.ts on the live tree (specMemberVerdict) probes one key at a time: for record:activity.types, declared array of string in the registry, it parses { types: ['...'] } alone, keeps only issues whose first path segment is types, and reads any issue AT the container node (path length one) as no-member-position, meaning the contract refused the container. On the old head the single-key probe met the sibling's default true, the cross-key issue sat at types, and the probe read a string member of an accepted list as a container refusal. The test's reading is sound for what it measures (it is how a named-shape object or a wrong container kind speaks), and it was not edited: the PR touches no ui/** file. The spec issue was what misstated the fact: it said types where the contract has no complaint about types. At the new head the probe sees a complaint about a sibling only, which that test defines as accepts, and that is the true answer to its question (a string member IS admitted). The same holds for the arm probe (specArmVerdict), the showCommentInput probe ({ showCommentInput: true } alone carries no types, so the rule does not fire), and the feed probes on the chatter rows (an empty or probe-keyed feed never reaches the rule). No single-key judge now reads the rule at all, which is correct for a rule about a pair.

Other readers of the address, searched on the live tree: validate-component-props.ts (generic, no path special-cased); authoring-rules.ts (registration only); refused-shapes.ts (no detector for this shape, as before); the console mirror (takes the row by reference, so the issue path moves with it and nothing there names it); no test or snapshot under ui/** or packages/** names properties.types, feed.types or the card number outside the PR's own pin. Nothing is left pointing at types in the tree at this head. One prose face is: the PR body (N4).

Generated files that did not move between the heads, and whether that is right. RIGHT for both. dropped-refinements.baseline.json records where a refinement is ATTACHED (ui/RecordActivityProps root, ui/RecordChatterProps feed), not where its issue is addressed; the attachment did not move, and the net diff against the merge base still shows exactly those two rows with counts 266 to 268 and 1090 to 1092. content/docs/references/ui/component.mdx is generated from the .describe() texts and types; neither describe changed (only the function docblock and the path), so the page owes no regeneration. The gate that holds the ledger to the build is in Build Core, pending.

The merge of main: the net diff against the merge base holds the PR's six files only, so the merge and the regen-merge left no stray change in the PR's own surface.

Gate verdicts on this head, as the check-runs read when this record was written. Success: Check Changeset, Spec property liveness, Governed Surface Queue Guard, PR-body guards, Lint and Repo Gates, Lint ESLint, Lint docs and code guards, Lint repo and tooling gates, Lint CI release and engine gates, Lint PM dispatch-gates, both scoped lint jobs with the tooling self-tests, Type Check source gates, Type Check debt ledger, Build Docs, Build UI Deps, Live E2E UI, Check Documentation Links, Flag docs affected by code changes, Check PR Size, Plan Test Core shards, Plan Test UI shards, Auto Label, and the aggregate Dogfood Regression Gate. PENDING, not verdicts: Test Core 1/8 to 8/8, Test UI 1/16 to 16/16 (1/16 is the shard that carries the parity test this change answers, so the claim that it now passes is NOT MEASURED by CI at this writing), Build Core, Build and E2E UI, Type Check UI, Type Check workspace, Type Check consumer gates. Skipped: Lint UI, the dogfood shard matrix job, Dogfood Verify CLI, Temporal Conformance, UI Published Artifacts, the two queue-verdict jobs and the opt-in jobs. This PASS is the contract judgment; it does not stand in for any pending check, and landing waits on them.

② Semver level

Unchanged and still right. The accept set is the one the previous record judged, so Metadata-protocol: narrowed remains the right kind and @objectstack/spec: minor the right level; Clause-②: no (narrowing) is line-initial on the changeset and on the PR body and is the correct arm, since nothing widens. The BREAKING banner, the FROM to TO lines, the one-line fix and the single ADR-0087 marker registering record-activity-types-without-comment-beside-composer-refused are all present at this head. The changeset's two FROM to TO lines now give the address as showCommentInput and properties.feed.showCommentInput and say types itself is not refused, which is what the code does. Its Skills-docs: line moved from none to follow-up #34534, which answers N1 of the previous record. The issue address is not a semver fact of its own here: the rule first ships in this same release, so no published address moves. Check Changeset concluded success on this head.

③ Boundary flags

  • Parity-test red on the old head (Test UI 1/16): answered in the tree as judged in ①; its CI reading on this head is pending. Landing condition, not supplied by this record.
  • Dogfood battery: the dev's supplement reports it measured on the OLD head (478 files passed, no failure). The area says it is re-running on this head; on this head the dogfood shard matrix job and Dogfood Verify CLI read skipped and the aggregate reads success. A skipped shard is not a run. The reading on this head stays a landing condition for the seat; the change between the heads cannot alter a parse verdict, so no new exposure is expected, but that is a reading of the code, not a measurement.
  • Dev's gate round: reported on the old head; said to be re-running. Not judged here.
  • Carried from the previous record, unchanged by the delta: the chatter mount still drawing the composer for a host composing RecordChatterPanel in code (escalated to the seat for a ui-lane card); the HotCRM lead_detail carrier; the absent stored-row detector (N3 there). None of these moved.
  • SQL push-down: not applicable. The delta adds no read, no id materialisation and no join.

④ Design judgment

Short, because the design the previous record judged did not move: same condition, same two sites, same message, same doors, same entry disposition (D3, no conversion). What moved is one design choice, the issue's address, judged here.

packages/spec/src/ui/component.zod.ts. The new docblock paragraph states the reason for the address and holds against the code it cites: types is valid alone (the open-vocabulary jsdoc above the key says so), the composer is the request the list rules out, and a per-key judge does read an issue at types as a container refusal (specMemberVerdict, the path-length-one branch). Attempts to break the new address: an explicit showCommentInput: true (same address, pinned); a non-string entry (the function returns, the element issue at types.0 stands alone, pinned); the nested mount (address is feed.showCommentInput, pinned on both block names); the mirror with defaults stripped (the function reads !== false, same verdict, and the address does not depend on the key being present); an unknown key beside it (strict refusal kept, pinned). None broke it. The paragraph break left the sentence about exact matching attached to the end of the address paragraph; cosmetic (N6).

packages/spec/src/migrations/entries/semantic/18.record-activity-types-without-comment-beside-composer-refused.ts. replacement and acceptanceCriteria now name properties.showCommentInput and properties.feed.showCommentInput; surface and reason are untouched and still true. All four agree with the code at this head. An operator following acceptanceCriteria searches for the finding at the address the lint rule will actually print.

packages/spec/src/ui/component.test.ts, as the floor. Every behaviour the previous record relied on is still pinned, none weakened: the five refused shapes each assert exactly one issue with code custom (the helper was renamed and its filter retargeted, its length and code assertions kept), the two message substrings, the two fixed shapes, absent types with the composer on or off, the lone types.0 element issue, the unrecognized_keys case, the ComponentPropsMap identity and both chatter rows with their accepted counterpart. The helper adds the new assertion that no issue's first path segment is types. A revert of the address would turn the refusal pins red (zero issues at showCommentInput), so the address is held by the pin and not only by the UI test in another package. One gap, cosmetic: the chatter loop asserts the issue at feed.showCommentInput but not the absence of one at feed.types (N5); it is the same object by reference, so the top-level assertion covers the behaviour.

No must-fix, no should-fix.

Nits, none of which moves the head:

  • N4 (nit) — the PR body still describes the old address in four places (What changes: one custom issue at types; Tests: one issue at types, and feed.types; the lint-reach reading at properties.types and properties.feed.types; Verification names head 1533b264). The tree, the changeset and the entry are right; the body is a prose face and should be brought to this head before landing so the landed description does not state an address the code never emits.
  • N5 (nit) — component.test.ts, the chatter and discussion loop: add the zero-issues assertion at feed.types beside the feed.showCommentInput one, so the nested mount pins the address both ways as the top-level helper does.
  • N6 (nit) — component.zod.ts docblock: the sentence beginning Matching is exact now trails the address paragraph on an over-long line; it belongs with the paragraph above it.
  • N2 and N3 of the previous record (the console mirror not named in the changeset; no stored-row detector) stand unchanged and are not regraded.

Implemented-by: claude/project-thread-ny8fif
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ

Final head · 2026-11-17T01:48Z
Head: bf19962741631283f6bca10a6753196983781a3b

  • CI: no failure on this head; every required check is success (the earlier Test UI (1/16) red was this diff's console parity reading, fixed in this head).
  • Contract review: first review 6933431498 and delta 6934314545 on this head, both PASS.
  • Dogfood battery on this head: report 6935340683. Derived gates reconcile 115 run, 0 NOT-MEASURED.
  • PR feat(spec): an action's answer fields gain a table format, drawn from its columns #34500 shares the regenerated spec artefacts and is queued ahead; once it lands this branch merges main through scripts/pm/os-regen-merge.sh and the new head goes back for a delta.
    Sent to L1 for a first review on this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmSmxJiAWk7fuq3Q1Sf

席位核对

L1 verdict: ACCEPT · card #34383 · area o2-A · first review · read at 2026-11-17T01:51Z
Head-sha: bf19962741631283f6bca10a6753196983781a3b (the final head announced in comment 6935355072)

Checklist, read against GitHub and the head tree, not against the report:

  • Shape. Draft, base main, mergeable_state: clean. The first card line is Fixes #34383, and it is the only closing keyword in the body. Fixes is right: the card is the authoring half, and its renderer half (Record Activity tab: a posted comment is saved and read back (200) but never rendered in the timeline — 仅评论 shows (0), the author can't see their own comment #34371) closed with PR fix(plugin-detail): a record:activity whose types leaves out comment offers no comment composer #34388.
  • File surface (get_files, 6 files, +203/-10): packages/spec/src/ui/component.zod.ts, component.test.ts, a new ADR-0087 semantic entry 18.record-activity-types-without-comment-beside-composer-refused.ts, dropped-refinements.baseline.json (two new refinement sites, RecordActivityProps root and RecordChatterProps.feed), the regenerated content/docs/references/ui/component.mdx, and the changeset. This is the claimed surface in its schema form. No ui/**; no content/docs/releases/.
  • Fix, read in the diff.
    • refuseFeedTypesWithoutCommentBesideComposer, an unexported superRefine on RecordActivityProps, reached on both mounts because the same object is RecordChatterProps.feed.
    • It returns early when types is not an array, when showCommentInput === false, when an entry is not a string (that entry keeps its own issue), or when 'comment' is in the list. Otherwise it adds one custom issue at showCommentInput, and the message names both fixes.
    • The round-2 move of the issue from types to showCommentInput is explained in the docblock and the body: the console member probe read a length-1 path as the container being refused. That fixed the Test UI red, with no ui/** change.
    • Form: a schema check that the existing component-props-invalid lint rule applies through ComponentPropsMap. That is one rule for every door. The body shows a one-off validateComponentProps reading (findings at …properties.showCommentInput and …properties.feed.showCommentInput) and the three clean shapes.
  • Changeset. @objectstack/spec minor (a narrowing, carried as minor under the no-major rule), with a BREAKING banner, a FROM → TO per mount, the fix, and the ADR-0087 marker (registered …, D3, no conversion). Clause-②: no (narrowing), Metadata-protocol: narrowed and Skills-docs: follow-up #34534 sit at line start in the body and the changeset, and docs: plugin-detail.mdx still says record:activity types: ['approval'] is legal; #34383 now refuses it #34534 is open. Its sentences match the diff, including the address properties.showCommentInput / properties.feed.showCommentInput, what is unchanged, and exact matching. One wording point: "Measured first-party exposure: zero — no … docs sample authors types on a feed". content/docs/frontend/plugins/plugin-detail.mdx:374 is prose that calls types: ['approval'] legal, not an authored sample. It is exactly docs: plugin-detail.mdx still says record:activity types: ['approval'] is legal; #34383 now refuses it #34534's job, so the claim holds as worded.
  • Tests.
    • A new describe with 9 cases. The five refused shapes each assert one custom issue at showCommentInput and none under types. The two fixed shapes and an absent types (composer on or off) are accepted. A non-string entry keeps only its types.0 issue, and an unknown key still gets unrecognized_keys. record:chatter / record:discussion refuse at feed.showCommentInput and accept with the composer off.
    • Ablation: the .superRefine(…) anchor removed gives 4 failed / 5 passed, every refusal pin red. Restored blob == HEAD.
    • The forced edit is named: the open-vocabulary typo case gains showCommentInput: false so it keeps reading only what it is about. Its assertion is unchanged, so nothing is loosened.
  • Dogfood battery (owed: ! in the title, (narrowing) arm). Card report 6935340683: bf19962741631283f6bca10a6753196983781a3b · VERDICT command-exit 0 · Test Files 478 passed | 3 skipped (481) · Tests 4030 passed | 44 skipped (4074) · no failure. It is pinned to this head and is the full package run.
  • Gates (check-runs at bf199627, filter=latest, 72 runs). 60 success, 12 path-filtered skipped, none red or pending. Required floor: Lint & Repo Gates success, TypeScript Type Check success. Also success: Test Core, Test UI (the round-1 red leg), Type Check UI, Check Changeset, Dogfood Regression Gate (aggregate). Local dispatch-gates --ran: 115/115, 0 NOT-MEASURED (local subset only).
  • Out of scope, destinations.

L2 owed: yes, and it is in. The surfaces touched are packages/spec/src/** (non-test) and narrowing, so the tier is CONTRACT_REVIEW_TIER. The delta record 6934314545 (l2-review#4) carries Served-tier: CONTRACT_REVIEW_TIER and Head-sha: bf19962741631283f6bca10a6753196983781a3b, the current head, and reads VERDICT: PASS with no must-fix or should-fix. It follows the first-head record 6933431498 on 1533b264, which was also a PASS. N5 and N6 are test- and docblock-tidy nits, accepted as deviations.

Landing tier. node scripts/pm/check-governed-merges.mjs --pr 34524 reads: "0 of 6 path(s) hit the register … ✅ NOT governed — ordinary queue landing applies"; 213 changed lines ≤ 3000.

…-ny8fif

# Conflicts:
#	packages/spec/dropped-refinements.baseline.json
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 906f6f6 · 2026-11-17T02:42Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 906f6f6dcb3da83a94ab2090a2a6782f16ee833a
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/18.record-activity-types-without-comment-beside-composer-refused.ts, packages/spec/src/ui/component.zod.ts, and the narrowing floor packages/spec/src/ui/component.test.ts, packages/spec/dropped-refinements.baseline.json (generated ledger, read for the two sites only) + cited code read on the live tree, none of it in the diff: packages/lint/src/validate-component-props.ts, packages/lint/src/authoring-rules.ts, packages/spec/src/conversions/refused-shapes.ts, ui/packages/plugin-detail/src/renderers/recordActivityFeed.ts, ui/packages/plugin-detail/src/renderers/record-activity.tsx, ui/packages/plugin-detail/src/renderers/record-chatter.tsx, ui/packages/plugin-detail/src/RecordChatterPanel.tsx, ui/packages/plugin-detail/src/RecordActivityTimeline.tsx, ui/packages/types/src/zod/public-blocks.zod.ts, ui/packages/types/src/zod/imported-defaults.ts

Delta review. The previous at-tier record on this PR is comment 6934314545, PASS on head bf19962741631283f6bca10a6753196983781a3b, itself a delta over 6933431498 (PASS on 1533b26468a0366c5881e2c04472f75a21b3e60f); everything those two judged that did not move stands as written there and is not repeated. Inputs read for this record: both records; card #34383 body and its five comments (unblock, claim, three os-dev-reports); PR #34524 body and its comments (the L1 record 6935411722 included); the head commit object (one merge commit, parents bf199627 and main ed45eb92); the change between the two heads on the PR's six files; the net diff against the new merge base ed45eb92880e5092889042df66c137399c2b5778, which is the tip of main; packages/spec/dropped-refinements.baseline.json parsed whole at four commits (old merge base 1efe7a22, old head, new merge base, new head); what main brought between the two merge bases (27 commits, 169 files) filtered to Scope and its neighbours; .gitattributes at the head; the check-runs on this head. Nothing was built, run or checked out.

① Derived judgments

The merge, read off the tree and not off the account.

  • The head is one merge commit with exactly the two parents the account names. RIGHT.
  • The PR's five non-ledger files (the changeset, content/docs/references/ui/component.mdx, the semantic entry, component.test.ts, component.zod.ts) are byte-identical between bf199627 and this head: the diff restricted to them is empty. So the refinement, its pins, the entry, the changeset and the generated reference page are the ones the previous records judged, token for token. RIGHT.
  • The net diff against the new merge base holds six files and no other: those five plus the ledger, 203 insertions and 10 deletions, the same totals as before the merge. The merge left nothing of main's in the PR's surface and nothing of the PR's outside it. RIGHT.
  • No conflict marker is left in any of the six files at the head.

The hand resolution of dropped-refinements.baseline.json, re-derived.

  • Parsed counts of the entries map at each commit, beside the measured block each file states: old merge base 266 schemas and 1090 sites (stated 266 / 1090); old head 268 and 1092 (stated 268 / 1092); new merge base, main, 266 and 1114 (stated 266 / 1114); this head 268 and 1116 (stated 268 / 1116). At every one of the four the stated counts equal the counted rows, so the head's measured block is true of the head's own rows and is not merely main's numbers with two added by hand.
  • Arithmetic from main's file: 266 schemas plus this PR's two new schema rows is 268; 1114 sites plus one site in each row is 1116. refinementSitesThatDidProject (728), refinementSitesWithNoJsonFormToCompare (0) and the zod version are main's values, unchanged, which is right because this PR projects nothing.
  • The head's entries map minus main's is exactly two rows: ui/RecordActivityProps with sites [""] and ui/RecordChatterProps with sites ["feed"]. With those two removed, the head's map equals main's map in content and in key order, and the description text is identical. So nothing main added is lost: main's change between the bases is 24 new sites on existing rows (the action preflight.fields.element and resultDialog.fields.element positions, zero new schemas, 1090 to 1114), and all 24 are present at the head exactly once. Nothing is duplicated: no key repeats in the file (checked with a duplicate-key hook at parse) and no site repeats inside any row. The two rows sit at their sorted position, before ui/RecordDetailsProps, and the whole map is still in sorted order.
  • The seat's routing claim holds on the tree: .gitattributes at the head gives this file no merge=os-regen attribute, and the file's own description says it is hand-edited with no generator. A hand-resolved hop owes its own record; this is that record.

Whether the ledger is right for the MERGED tree, not only a correct union of two files: by reading, yes. Main's 24 sites all come from packages/spec/src/ui/action.zod.ts and land on rows that embed an action; this PR's refinement is attached to RecordActivityProps alone and adds no action nesting, and on the old head only two published schemas carried it. No row can therefore owe a site that neither side wrote. That is a reading; the measurement is the baseline check inside Build Core, which is pending (below).

What main brought between the two merge bases, against the previous judgments.

  • packages/spec/src/ui/component.zod.ts, component.test.ts, content/docs/references/ui/component.mdx: not touched by main. The accept set judged in the previous records is the accept set at this head.
  • packages/lint/src/validate-component-props.ts and authoring-rules.ts: not touched. Main's one lint change (feat(lint)!: refuse a lookupFilters { $record } path through or to a multi-valued field #34489) is in validate-object-field-refs.ts and rule-explanations.ts, a different rule on a different metadata type; the door this narrowing rides (component-props-invalid, registered on every command and the runtime page door) is unchanged.
  • packages/spec/src/conversions/refused-shapes.ts: not touched. N3 of the first record stands as written.
  • The record-activity and chatter renderers, RecordChatterPanel.tsx, RecordActivityTimeline.tsx, ui/packages/types/src/zod/** and ui/apps/console/src/__tests__/registry-inputs-spec-parity.test.ts: not touched (main's only moves under those trees are one unrelated console test and ui/packages/types/src/data.ts). The renderer reading and the parity-probe reading of the previous records hold unchanged.
  • packages/spec/src/migrations/entries/semantic/: main added a sibling step-18 entry, 18.lookup-filter-record-path-multi-valued-refused.ts (id lookup-filter-record-path-multi-valued-refused), and reworded entry 17. The two step-18 ids are distinct, the files are distinct, and entries are read one file per entry from the directory, so the two coexist with no shared registry line to conflict on. Main also added .changeset/34378-..., whose ADR-0087 marker names its own id only. No collision with this PR's entry or marker.
  • packages/spec/src/ui/action.zod.ts (spec(ui): the action answer's field formats gain a table, so a per-row answer (add-person, CSV import) is drawn as rows, not raw JSON #34391) is the source of main's ledger rows; it shares no schema with the refinement judged here.

None of it changes a judgment of the previous records.

Gate verdicts on this head, as the check-runs read when this record was written. Success: Check Changeset, Spec property liveness, Governed Surface Queue Guard, PR-body guards, Lint scoped tooling self-tests, Lint PM dispatch-gates, Check Documentation Links, Flag docs affected by code changes, Check PR Size, Plan Test Core shards, Plan Test UI shards, Auto Label, the path filter job, and the aggregate Dogfood Regression Gate. PENDING, not verdicts: Build Core (it carries the check that holds this ledger to the build, so the hand-resolved counts are NOT MEASURED by CI at this writing), Test Core 1/8 to 8/8, Build UI Deps, Build Docs, Live E2E UI, Lint ESLint, Lint docs and code guards, Lint repo and tooling gates, Lint CI release and engine gates, Lint scoped slot lookup and corpus, Lint scoped query-options erasure, Type Check source gates, Type Check consumer gates, Type Check workspace, Type Check debt ledger. Not yet started, so not verdicts either: the Test UI shards, Build and E2E UI, Type Check UI, and the two required aggregates (Lint and Repo Gates, TypeScript Type Check). Skipped: the dogfood shard matrix job, Dogfood Verify CLI, Temporal Conformance, UI Published Artifacts, the two queue-verdict jobs, the schedule gate and the two opt-in jobs. This PASS is the contract judgment; it does not stand in for any pending check, and landing waits on them, Build Core first.

② Semver level

Unchanged and still right. The changeset is byte-identical to the one judged at bf199627: @objectstack/spec: minor, Metadata-protocol: narrowed, Clause-②: no (narrowing) line-initial on the changeset and on the PR body, the BREAKING banner, the FROM to TO lines, the one-line fix, and the single ADR-0087 marker registering record-activity-types-without-comment-beside-composer-refused. The accept set did not move, so neither the kind nor the level does. Main's new changesets between the bases name other packages' changes and other entry ids; none restates or contradicts this one. Check Changeset concluded success on this head.

③ Boundary flags

  • Ledger resolved by hand: judged in ① and right on the tree. Its CI reading (Build Core) is pending and is a landing condition this record does not supply.
  • Dogfood battery: the dev's last report measures it on bf199627 (478 files passed, no failure). On this head the dogfood shard matrix job and Dogfood Verify CLI read skipped and the aggregate reads success; a skipped shard is not a run. Between the two heads no file of this PR moved and main touched neither the refinement, the lint door nor the renderers, so no new exposure is expected from the merge; that is a reading of the tree, not a measurement on this head. Whether the reading on the old head is carried or re-run is the seat's call.
  • Dev's gate round and spec test run: reported on bf199627, not on this head. Not judged here.
  • Carried from the previous records, unchanged by the merge: the chatter mount still drawing the composer for a host composing RecordChatterPanel in code (record:chatter and record:discussion do not pass commentsShown, so a feed that hides comments still offers the composer and the comments-only option #34525); the docs prose follow-up (docs: plugin-detail.mdx still says record:activity types: ['approval'] is legal; #34383 now refuses it #34534), whose card text the L1 record asks to be corrected to the showCommentInput address; the HotCRM lead_detail carrier; the absent stored-row detector.
  • SQL push-down: not applicable. The delta adds no read, no id materialisation and no join.

④ Design judgment

Short, because nothing in Scope that carries design moved: component.zod.ts, the semantic entry and component.test.ts are byte-identical to the head the previous record judged, and main changed none of the code they are judged against (the lint door, the renderers, the console mirror, the parity test). The design judgment of 6933431498 and 6934314545 stands in full at this head.

The one thing that moved is the ledger, and the only design question in it is whether the hand resolution kept the ledger's own contract. It did. The file is a shrink-only record of where a refinement is attached and not projected; this PR grows it by the two attachment sites of one new custom refinement, which is the admitted case (a new unprojected rule is a decision, recorded by hand), and the resolution took main's rows whole and added those two and nothing else, with the counts re-stated to match the rows. No row was weakened, moved or merged to make the conflict go away.

No must-fix, no should-fix.

Nits, none of which moves the head:

  • N7 (nit) — the PR body's Verification section still names head bf199627 and the merge of main at 1efe7a22, and reports CI as green on that head. The tree is right; the body is a prose face and should name this head, the merge of main at ed45eb92 and the hand-resolved ledger counts (268 / 1116) before landing, so the landed description does not claim readings for a head that is not the one landed.
  • N2, N3, N5 and N6 of the previous records stand unchanged and are not regraded. N4 is answered: the PR body now gives the address as showCommentInput and feed.showCommentInput.

Implemented-by: claude/project-thread-ny8fif
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ

Final head · 2026-11-17T03:15Z
Head: 906f6f6dcb3da83a94ab2090a2a6782f16ee833a (supersedes the announcement on bf199627)

  • Change since bf199627: one merge of origin/main at ed45eb92 (after feat(spec): an action's answer fields gain a table format, drawn from its columns #34500) through scripts/pm/os-regen-merge.sh. The only conflict was the hand-kept dropped-refinements.baseline.json measured counts, stacked to 268 / 1116; the five other files are byte-identical to bf199627.
  • Contract review delta on this head: 6936430749, PASS (no must-fix, no should-fix). N7 done: Verification now names this head, main ed45eb92 and 268 / 1116.
  • CI on this head: every check completed, none red, nothing pending.
  • Dogfood battery: report 6935340683 on bf199627; this head adds only the merge of main above it.
    Sent to L1 for a delta on this head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQtnGcx7hYEL11ptVs

席位核对

L1 delta: ACCEPT · PR #34524 · card #34383 · area o2-A · L1-a2 · 2026-11-17T03:17Z

Head-sha: 906f6f6dcb3da83a94ab2090a2a6782f16ee833a

Previous L1: ACCEPT 6935411722 at bf199627. This record reads only bf199627..906f6f6d. The final-head comment is 6936990596.

What moved (read in git)

  • One merge commit, 906f6f6d: parents bf199627 and origin/main ed45eb92, which includes feat(spec): an action's answer fields gain a table format, drawn from its columns #34500. Five of the six PR files are byte-identical to bf199627 (git diff --quiet per file): the changeset, component.mdx, migration entry 18, component.test.ts and component.zod.ts.
  • git show --remerge-diff shows one conflict, in packages/spec/dropped-refinements.baseline.json, at the measured counts only. I checked how it was resolved:
    • Old main bf199627^2 reads 266 / 1090, and the PR at bf199627 reads 268 / 1092, so the PR adds +2 schemas and +2 sites.
    • New main ed45eb92 reads 266 / 1114. The head reads 268 / 1116, which is main plus the PR's own +2 / +2. refinementSitesThatDidProject is 728 at all four points.
    • The PR's own edit to that file is the same text before and after the merge (counts aside): the two entries ui/RecordActivityProps (site "") and ui/RecordChatterProps (site feed).
  • The body's Verification now names this head, main ed45eb92 and 268 / 1116 (N7). The HotCRM lead_detail line from the last round is in Acceptance notes, and Skills-docs: follow-up #34534 stands.

Gates and evidence on this head

  • CI (check-runs, filter=latest, 72 runs): success=60, skipped=12, nothing red or pending. Check Changeset re-ran after the body edit and is success.
  • Narrowing battery. Clause-②: no (narrowing) owes a dogfood battery pinned to the head. The full local battery is on bf199627 (6935340683), and this head adds only the main merge. CI's Dogfood Regression Gate is success on this head (job 133777611992), which covers the merged tree.
  • L2. Delta record 6936430749: Served-tier: CONTRACT_REVIEW_TIER, Head-sha: 906f6f6d…, no must-fix, no should-fix, PASS. It is the same shape at this head, so no Regen-provenance: carry-over is needed.

Landing

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Seat record · 2026-11-17T03:19Z · Head-sha: 906f6f6

The PR body's 速读 says "需要你做的:无,席位落地". This record replaces that line. The PR is a packages/spec narrowing (Clause-②: no (narrowing), Metadata-protocol: narrowed, title !), and spec contracts and narrowings go to a human approver even though the register finds no governed path.

维护者速读

  • 改了什么:活动块(record:activity,以及 record:chatter / record:discussion 的 feed)写了 types,里面没有 comment,同时评论框又开着(showCommentInput 没写成 false):这种写法在编写期直接被拒收,报错里写明两种改法。
  • 为什么改:types 是要显示的条目种类白名单。漏了 comment,评论框照样收评论,存下后又被同一个白名单滤掉,用户以为帖子丢了(HotCRM 线索页 lead_activity 就是这样)。
  • 风险与回滚:收窄,带 !,只影响上面这一种组合。仓内首方页面零命中。**HotCRM 的 lead_detail 页面在下次保存时会被拒,要在 lead_activity 的 types 里加 'comment',这一处修改在 hotcrm 仓,本仓没有载体。**回滚即 revert。
  • 先看:packages/spec/src/ui/component.zod.ts 里的 refuseFeedTypesWithoutCommentBesideComposer;ADR-0087 新登记的迁移条目 record-activity-types-without-comment-beside-composer-refused。
  • 两分钟验证:pnpm --filter @objectstack/spec exec vitest run src/ui/component.test.ts -t 34383,预期 9 个全过。
  • 需要你做的:审读并批准这次收窄;批准前请确认 HotCRM lead_detail 由谁去补 'comment'。契约审核 PASS 是 6936430749,Head-sha 906f6f6dcb3da83a94ab2090a2a6782f16ee833a。

席位意见:同意合并。现在这种写法会让评论「存了却看不见」,在编写期响亮拒收比消费端悄悄容错好;唯一已知的写法在 HotCRM,改一行就行。

席位核对

  1. 形态:6 个文件,+203/−10,Fixes #34383;Clause-②: no (narrowing),Metadata-protocol: narrowed,Skills-docs: follow-up #34534(文档卡,本 PR 合并后由区 o2-A 领)。
  2. 前提实测:仓内首方页面零命中(dev 报告和契约审核都读过);HotCRM lead_detail 一处命中,在别的仓。
  3. 门禁 check-runs:head 906f6f6d 上 72 条,60 绿、12 跳、0 红;mergeable_state clean(席位 03:20Z 实读)。本 head 是合 main 后重新生成(os-regen-merge.sh),契约审核 6936430749 按 Regen-provenance 认可。
  4. 接受的偏差:无。L1-a2 delta ACCEPT 6937034868 在本 head。
  5. 范围外去向:HotCRM lead_detail 补 'comment' 不在本仓,已列入给维护者的轮报;plugin-detail.mdx 改写是 docs: plugin-detail.mdx still says record:activity types: ['approval'] is legal; #34383 now refuses it #34534。
  6. 落地条款:授权批准在案后,席位翻 ready,经合并队列落地;合并后区 o2-A 清 record:activity: refuse at authoring a types list that leaves out 'comment' while the comment composer is on #34383 上的 pm 状态并领 docs: plugin-detail.mdx still says record:activity types: ['approval'] is legal; #34383 now refuses it #34534。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Tier H hand-off, written at 2026-11-17T03:20Z. This is a spec narrowing, so it goes to a human approver. The seat record is pinned to head 906f6f6d. pm:awaiting-merge is added in this stroke, and the reviewers are requested in the same round.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQtnGcx7hYEL11ptVs

席位核对 · correction to 6937034868

Head-sha: 906f6f6dcb3da83a94ab2090a2a6782f16ee833a · 2026-11-17T03:45Z

Retracted: the Landing section of 6937034868, which said "the area lands it, no human approval is needed".

Corrected: this PR touches packages/spec/src/** outside tests (component.zod.ts and migration entry 18.record-activity-types-without-comment-beside-composer-refused.ts). Under the seat's rule of 2026-11-17 03:21Z (spec surface always goes to a human, following pm-dispatch 「受管/spec 面欠 ①–④」 and the maintainer's 11-14 「契约(spec、收窄)留给维护者」), it is spec surface, handed to the seat as Tier H. That holds even though check-governed-merges.mjs reads NOT governed. Once L1 ACCEPT and the L2 PASS are both on file at this head, the area reports the PR to the seat for ①–④. ⛔ The area does not land it, mark it ready or arm auto-merge.

The L1 verdict itself (ACCEPT) is unchanged.

@os-zhuang
os-zhuang marked this pull request as ready for review November 17, 2026 04:29
@os-zhuang
os-zhuang enabled auto-merge November 17, 2026 04:30
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 6302c2c Nov 17, 2026
78 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-ny8fif branch November 17, 2026 05:22
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
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 protocol:ui size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

record:activity: refuse at authoring a types list that leaves out 'comment' while the comment composer is on

3 participants