Repository navigation
fix(spec)!: refuse a record:activity feed whose types leaves out comment while its comment composer is on - #34524
Conversation
… the comment composer is on Claude-Session: https://claude.ai/code/session_01ADHkmP9G6thtpoRS58fpJy Co-authored-by: Claude <noreply@anthropic.com>
…nt baseline and reference page Claude-Session: https://claude.ai/code/session_01ADHkmP9G6thtpoRS58fpJy Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 1 package(s): 2 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 173 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # 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
|
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 1533b26 · 2026-11-17T00:05Z |
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract reviewServed-tier: 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 judgmentsAccept-set changes the diff implies, each judged:
Public surface: no export added, removed or retyped. Doors reached, read in the cited code: 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
③ Boundary flags
④ Design judgment
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 No must-fix, no should-fix. Nits, none of which moves the head:
Implemented-by: 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>
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head bf19962 · 2026-11-17T00:51Z |
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract reviewServed-tier: Delta review. The previous record on this PR is comment 6933431498, PASS on head ① Derived judgmentsAccept set between the heads: UNCHANGED, read off the function and not off the account. The body of What moved is the issue's address only: Is
Root cause or a dodge of the UI test. Root cause. Other readers of the address, searched on the live tree: Generated files that did not move between the heads, and whether that is right. RIGHT for both. 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 levelUnchanged and still right. The accept set is the one the previous record judged, so ③ Boundary flags
④ Design judgmentShort, 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.
No must-fix, no should-fix. Nits, none of which moves the head:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ Final head · 2026-11-17T01:48Z
|
|
repo:objectstack#2 · os-steve · session_01ADHkmSmxJiAWk7fuq3Q1Sf 席位核对L1 verdict: ACCEPT · card #34383 · area o2-A · first review · read at 2026-11-17T01:51Z Checklist, read against GitHub and the head tree, not against the report:
L2 owed: yes, and it is in. The surfaces touched are Landing tier.
|
…-ny8fif # Conflicts: # packages/spec/dropped-refinements.baseline.json
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 906f6f6 · 2026-11-17T02:42Z |
|
l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq Contract reviewServed-tier: Delta review. The previous at-tier record on this PR is comment 6934314545, PASS on head ① Derived judgmentsThe merge, read off the tree and not off the account.
The hand resolution of
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 What main brought between the two merge bases, against the previous judgments.
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 levelUnchanged and still right. The changeset is byte-identical to the one judged at ③ Boundary flags
④ Design judgmentShort, because nothing in Scope that carries design moved: 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 No must-fix, no should-fix. Nits, none of which moves the head:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ Final head · 2026-11-17T03:15Z
|
|
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: Previous L1: ACCEPT 6935411722 at What moved (read in git)
Gates and evidence on this head
Landing
|
|
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 维护者速读
席位意见:同意合并。现在这种写法会让评论「存了却看不见」,在编写期响亮拒收比消费端悄悄容错好;唯一已知的写法在 HotCRM,改一行就行。 席位核对
|
|
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 |
|
repo:objectstack#2 · os-steve · session_01ADHkmQtnGcx7hYEL11ptVs 席位核对 · correction to 6937034868Head-sha: Retracted: the Landing section of 6937034868, which said "the area lands it, no human approval is needed". Corrected: this PR touches The L1 verdict itself (ACCEPT) is unchanged. |
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就是这样)。渲染端上一张卡已收掉评论框,这张卡在写的地方就拦下。types、types含comment、或showCommentInput: false的块完全不变。仓内首方页面零命中;HotCRMlead_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: whentypesis present, does not contain'comment', andshowCommentInputis notfalse(absent reads as its defaulttrue), the parse adds onecustomissue atshowCommentInputnaming both fixes (located on the composer the list rules out:typeson its own stays valid, and an issue attypeswould read, to the console's per-key member probe, as the list itself being refused — the Test UI red of round 1) — add'comment'totypes, or setshowCommentInput: false. The check is unexported, so the console mirror's census of exportedcheck*functions does not move; the mirror carries it on the cloned def, and reads an absentshowCommentInputas 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 rowcomponent-props-invalid(packages/lint/src/validate-component-props.ts) already judges every page'spropertieswith, at error, onos lint/os validate/os buildand the runtime page door it is registered on. So one check reaches every door with no second rule to keep in step.Both mounts.
RecordActivityPropsis alsoRecordChatterProps.feed(record:chatterandrecord:discussion), whose renderer filters its rows with the sameapplyFeedConfig(…, { 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 atypesthat 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 intocontent/docs/references/ui/component.mdxbygen:docs.dropped-refinements.baseline.jsongains the two sites the build named (ui/RecordActivityPropsroot,ui/RecordChatterPropsfeed; measured counts +2 / +2). ADR-0087 D3 entryrecord-activity-types-without-comment-beside-composer-refused(no conversion: which fix the author meant is a judgement about the block). Changesetminoron@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 gainsshowCommentInput: falseso the case still reads the open vocabulary alone; its assertion is unchanged.Tests
packages/spec/src/ui/component.test.ts, top-leveldescribe"RecordActivityProps — atypesthat leaves out comment is refused while the composer is on", 9 cases:showCommentInputwith codecustomand none undertypes: the measured producer (types: ['task'], limit: 20, showCompleted: true), explicitshowCommentInput: true, contributed kinds only, an empty list, a cased'Comment';'comment'added;showCommentInput: false) and an absenttypeswith the composer on or off — all accepted;types.0issue; an unknown key still getsunrecognized_keysbeside the new check;record:activityrow ofComponentPropsMapis this object, andrecord:chatter/record:discussionrefuse the same shape atfeed.showCommentInputand 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
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.record:activityrenderer withholds the composer and the Comments-only option on such a feed; therecord:chatter/record:discussionrenderer does not (RecordChatterPanelhands its timeline nocommentsShown, so it defaults totrue). After this change an authored page cannot reach it; a host composing the panel in code still can. Reported to the seat.lead_detail.lead_activity(types: ['task']) will be refused on its next save; producer fix is hotcrm's, held for the maintainer.validateComponentPropsreading below.Verification
Final head
906f6f6d: one merge oforigin/mainated45eb92(after #34500) on top ofbf199627, taken throughscripts/pm/os-regen-merge.sh. No regeneration commit was needed; the one conflict was the hand-keptpackages/specdropped-refinements.baseline.jsonmeasured counts, stacked to 268 / 1116 (main 266 / 1114, this PR +2 / +2); the spec build accepted the ledger andcheck:generatedwas clean. The five other files are byte-identical tobf199627, so the readings below, taken onbf199627, stand for this head (contract review delta on906f6f6d: 6936430749, PASS). CI on906f6f6d: 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 inui/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 ATtypes(path length 1), which the probe reads as the container itself being refused (no-member-position). The issue now sits atshowCommentInput; the same file onbf199627: 261/261 passed, noui/**change.Spec tests, typecheck, ablation
pnpm --filter @objectstack/spec testonbf199627(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-typecheckin the gate round below.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 HEADempty.Reach through the lint gate (one-off reading on bf19962, not committed)
validateComponentPropsfrompackages/lint/srcover a record page with arecord:activityblock and arecord:discussionblock:{ types: ['task'], limit: 20, showCompleted: true }: two findings, bothseverity: error,rule: component-props-invalid, atpages[0].regions[0].components[0].properties.showCommentInputandcomponents[1].properties.feed.showCommentInput, message naming both fixes.{ types: ['task','comment'] },{ types: ['task'], showCommentInput: false },{}: no findings.A whole
PageSchema.safeParseof the same page stays clean: the page parse does not judgeproperties; the lint rule is that door.Gate round (dispatch-gates, 115 families, bf19962)
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackatbf199627derived 115 families; all 115 run, 115 exit 0.--ranreconciliation: 115 derived, 115 run, 0 NOT-MEASURED, 0 UNRUN.Dogfood battery (bf19962)
pnpm --filter @objectstack/dogfood testunder 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
packages/specholds no runtime logic.pnpm lintpasses. (No formatter ran;pnpm lintis CI's run, not run locally.)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed.content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_01ADHkmP9G6thtpoRS58fpJy