Skip to content

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

Closed

Description

@objectstack-fleet

domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

Priority p2. Spec-lane half of #34371's ruling (option A in the dev's report, comment 6915007777 on #34371).

What happens

A record:activity block can author types without 'comment' while showCommentInput stays at its default true. The block offers a comment composer, and the feed then filters out every comment, including the one the user just posted (applyFeedConfig keeps only the types allow-list).

  • Measured producer: HotCRM lead_detail block lead_activity, types: ['task']. Posted comments never show.
  • Why it happens: the authored list reads types as "activity kinds", but the spec says types = feed item kinds to show, and comment is one of them.

#34371 (ui lane) makes the renderer consistent now: no composer and no 仅评论 option on a feed that hides comments, plus a dev warning. This card makes the contradiction loud where it is written.

Expected

  1. Authoring refuses (or the linter flags; the spec lane picks the form) a record:activity whose types is present, leaves out 'comment', and has showCommentInput not false. The message names both fixes: add 'comment' to types, or set showCommentInput: false.
  2. This narrows the accept set. Declare Metadata-protocol and Clause-② per the lane's rules, with a migration line in the changeset. It owes a contract review (review seat).
  3. Pins: the refused shape, the two fixed shapes, and an absent types (unaffected).

Producer fix carried separately: hotcrm lead_detail adds 'comment' to types (or drops types).

Blocked-by #34371.

Activity

  1. added
    enhancement
    priority:p2
    domain:spec
    pm:blocked
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

    Unblock · 2026-11-16T22:35Z · blocked-card scan of seat repo:objectstack#2.
    The upstream this card names in its body ("Blocked-by #34371", without the colon the index reads) is closed as completed by PR #34388 (merged). pm:blocked → pm:queue.
    Re-check before claim: the renderer half is on main (git log --oneline -1 --grep '#34388' origin/main). This card narrows the accept set, so it owes the dogfood battery and a contract review at CONTRACT_REVIEW_TIER.

  3. added
    pm:queue
    and removed
    pm:blocked
    on Nov 16, 2026
  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmPJxG4vBVaLCBWLcWJ

    Claim: PM loop round 1 · 2026-11-16T22:40Z
    Session: session_01ADHkmPJxG4vBVaLCBWLcWJ (area o2-A of seat repo:objectstack#2); the card thread is the dev
    Thread session: session_01ADHkmP9G6thtpoRS58fpJy
    Account: os-steve
    Branch: claude/project-thread-ny8fif
    Worktree: objectstack-issue-34383
    Domain: domain:spec
    Seat: repo:objectstack#2
    File surface: packages/spec/src/ui/component.zod.ts (the record:activity props: the refusal of a types list without 'comment' while showCommentInput is not false) and its tests, OR, if the spec lane's rules pick the linter form, one rule in packages/lint/src/** (then serial behind #34378 on rule-explanations.ts); the regenerated JSON schema / authorable surface / api-surface / liveness / reference page; one ADR-0087 semantic entry; root .changeset/. No ui/** change (#34388 carried the renderer half)
    Container & model: M, mode:thread, model: default tier, effort: high
    Clause-②: no (narrowing)
    Metadata-protocol: narrowed
    Responsibility: objectstack: a record:activity block may author types without 'comment' while the composer stays on, so posted comments vanish from the feed | #34388 hides the composer at render time, nothing refuses the authored shape | metadata authors writing record:activity, today (HotCRM lead_detail lead_activity)
    Thread-read: 6931464681
    Premise: holds (on origin/main component.zod.ts declares showCommentInput with no refusal beside types, and packages/lint names no showCommentInput rule)
    Serial constraints cleared: #34388 merged (046c224, the renderer half this card follows). In flight: no open PR touches packages/spec/src/ui/component.zod.ts; #34391 (claude/project-thread-hcenby) and #34378 (claude/project-thread-th73j6) share the regenerated spec artefacts, so landing is serial and the later one runs scripts/pm/os-regen-merge.sh; a linter form would also share packages/lint/src/rule-explanations.ts with #34378
    Pre-claim lane: domain:spec — the fix lives in packages/spec/src/ui/component.zod.ts (or packages/lint/src/**), both on seat repo:objectstack#2 area o2-A
    Pre-claim deps: Blocked-by #34371 closed by PR #34388 (merged 046c224); hot file component.zod.ts idle across open PRs; shared generated artefacts serial with #34391 and #34378
    Prior rulings read: types,record,activity,refuse,authoring,list,leaves,comment,composer → 238 hits; ADR-0061 D2, ADR-0109 Decision §5, ADR-0139 D4, ADR-0018 Decision §4; thread: #34371 option A (comment 6915007777); repo: objectstack-ai/objectstack — none answers this card's question otherwise
    Owes: dogfood battery (narrowing arm) and a contract review at CONTRACT_REVIEW_TIER (routed by the seat)

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 16, 2026
  6. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmP9G6thtpoRS58fpJy
    os-dev-report

    {
      "issue": 34383,
      "status": "done",
      "branch": "claude/project-thread-ny8fif",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34524",
      "session": "session_01ADHkmP9G6thtpoRS58fpJy",
      "premise_still_valid": true,
      "summary": "RecordActivityProps gains one unexported object-level check: a present `types` without 'comment' while `showCommentInput` is not false is refused with one custom issue at `types` naming both fixes. The same object is RecordChatterProps.feed, so record:chatter / record:discussion refuse it at feed.types. Form chosen: schema check, which the existing component-props-invalid lint rule (error, os lint/validate/build and the runtime page door) already applies through ComponentPropsMap. Riders: two describes, regenerated reference page, two dropped-refinement baseline sites, ADR-0087 D3 entry, minor changeset registered.",
      "tests": "head 1533b264. spec test 846/846 files, 27078 passed (at 3f150b76; main merge touched no spec file). component.test.ts -t 34383: 9 passed. spec typecheck VERDICT exit 0. Ablation: anchor .superRefine(refuseFeedTypesWithoutCommentBesideComposer) -> marker, landed (anchor 1->0, blob d3235f08->f5a657ed): 4 failed / 5 passed (refusal pins red, acceptance pins green); restored blob == HEAD, git diff HEAD empty. Lint reach (one-off): validateComponentProps gives component-props-invalid severity error at properties.types and properties.feed.types for the refused shape, none for the fixed shapes.",
      "gates": "dispatch-gates --commands at 1533b264: 115 families, 115 exit 0 (check:type-check-debt first exit 3 = lock queue timeout behind dogfood, re-run exit 0). --ran: 115 derived, 115 run, 0 NOT-MEASURED, 0 UNRUN. File /mnt/project-files/objectstack-seat2/34383-gates-ran.txt. CI check-runs: in_progress at report time.",
      "dogfood_battery": "NOT MEASURED at report time: two full runs on this head were cut by container restarts before reporting; a third run is in progress on 1533b264 and its reading goes to the area thread.",
      "line_budget": "n/a — no skills/** file touched",
      "files_changed": [".changeset/34383-record-activity-types-without-comment.md", "content/docs/references/ui/component.mdx", "packages/spec/dropped-refinements.baseline.json", "packages/spec/src/migrations/entries/semantic/18.record-activity-types-without-comment-beside-composer-refused.ts", "packages/spec/src/ui/component.test.ts", "packages/spec/src/ui/component.zod.ts"],
      "deviations": ["Forced test change: component.test.ts 'does not reject a typo of a built-in kind by name' fixture gains showCommentInput: false (named in PR body).", "check:test-typecheck needed NODE_OPTIONS=--max-old-space-size=6144 (OOM at the default 2 GB heap; 4096 not tried).", "HTTP page door not driven end-to-end; reach = lint rule registration + validateComponentProps reading."],
      "mcp_calls": "2 — mcp__github__issue_read (get, get_comments); no write tool",
      "api_writes": "2 — relay pr_create (objectstack#34524, draft, assignee os-steve); this os-dev-report comment via post-stamped",
      "open_questions": [
        { "question": "Contract review owed (narrowing) at head 1533b26468a0366c5881e2c04472f75a21b3e60f", "options": ["A the seat routes it to the review seat"], "recommendation": "A" }
      ],
      "security_findings": "none",
      "out_of_scope_findings": ["class: a · reach: a host composing RecordChatterPanel in code with feed.types lacking 'comment' (authored pages are now refused) · evidence: record-chatter.tsx / RecordChatterPanel.tsx pass no commentsShown to RecordActivityTimeline, which defaults it to true (RecordActivityTimeline.tsx line 357, composer gate line 497), so the chatter mount still offers the composer and Comments-only option the record:activity renderer withholds · dedupe words: commentsShown, record:chatter composer, feed types comment, RecordChatterPanel", "carrier: HotCRM lead_detail lead_activity adds 'comment' to types (or drops types) — named in the card, carried separately"]
    }

    Stamped 2026-11-17T00:03Z.


    Generated by Claude Code

  7. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmP9G6thtpoRS58fpJy
    os-dev-report

    {
      "issue": 34383,
      "status": "done",
      "branch": "claude/project-thread-ny8fif",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34524",
      "session": "session_01ADHkmP9G6thtpoRS58fpJy",
      "premise_still_valid": true,
      "summary": "RecordActivityProps gains one unexported object-level check: a present `types` without 'comment' while `showCommentInput` is not false is refused with one custom issue at `types` naming both fixes. The same object is RecordChatterProps.feed, so record:chatter / record:discussion refuse it at feed.types. Form chosen: schema check, which the existing component-props-invalid lint rule (error, os lint/validate/build and the runtime page door) already applies through ComponentPropsMap. Riders: two describes, regenerated reference page, two dropped-refinement baseline sites, ADR-0087 D3 entry, minor changeset registered. Supplement: dogfood battery measured on the same head; PR body edited twice at the seat's request, code head unchanged.",
      "tests": "head 1533b264. spec test 846/846 files, 27078 passed (at 3f150b76; main merge touched no spec file). component.test.ts -t 34383: 9 passed. spec typecheck VERDICT exit 0. Ablation: anchor .superRefine(refuseFeedTypesWithoutCommentBesideComposer) -> marker, landed (anchor 1->0, blob d3235f08->f5a657ed): 4 failed / 5 passed (refusal pins red, acceptance pins green); restored blob == HEAD, git diff HEAD empty. Lint reach (one-off): validateComponentProps gives component-props-invalid severity error at properties.types and properties.feed.types for the refused shape, none for the fixed shapes.",
      "gates": "dispatch-gates --commands at 1533b264: 115 families, 115 exit 0 (check:type-check-debt first exit 3 = lock queue timeout behind dogfood, re-run exit 0). --ran: 115 derived, 115 run, 0 NOT-MEASURED, 0 UNRUN. File /mnt/project-files/objectstack-seat2/34383-gates-ran.txt. CI check-runs: in_progress at report time.",
      "dogfood_battery": "1533b26468a0366c5881e2c04472f75a21b3e60f · os-verify-lock: VERDICT command-exit 0 (held 34m48s, shared box) · Test Files 478 passed | 3 skipped (481) · Tests 4030 passed | 44 skipped (4074) · no failure",
      "line_budget": "n/a — no skills/** file touched",
      "files_changed": [
        ".changeset/34383-record-activity-types-without-comment.md",
        "content/docs/references/ui/component.mdx",
        "packages/spec/dropped-refinements.baseline.json",
        "packages/spec/src/migrations/entries/semantic/18.record-activity-types-without-comment-beside-composer-refused.ts",
        "packages/spec/src/ui/component.test.ts",
        "packages/spec/src/ui/component.zod.ts"
      ],
      "deviations": [
        "Forced test change: component.test.ts 'does not reject a typo of a built-in kind by name' fixture gains showCommentInput: false (named in PR body).",
        "check:test-typecheck needed NODE_OPTIONS=--max-old-space-size=6144 (OOM at the default 2 GB heap; 4096 not tried).",
        "HTTP page door not driven end-to-end; reach = lint rule registration + validateComponentProps reading."
      ],
      "mcp_calls": "2 — mcp__github__issue_read (get, get_comments); no write tool",
      "api_writes": "5 — relay pr_create (#34524); os-dev-report comment 6933253328; two relay issue_patch on #34524 (seat-asked body edits: Skills-docs follow-up #34534, acceptance-note line); this supplementary os-dev-report comment",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: a host composing RecordChatterPanel in code with feed.types lacking 'comment' (authored pages are now refused) · evidence: record-chatter.tsx / RecordChatterPanel.tsx pass no commentsShown to RecordActivityTimeline, which defaults it to true (RecordActivityTimeline.tsx line 357, composer gate line 497), so the chatter mount still offers the composer and Comments-only option the record:activity renderer withholds · dedupe words: commentsShown, record:chatter composer, feed types comment, RecordChatterPanel",
        "carrier: HotCRM lead_detail lead_activity adds 'comment' to types (or drops types) — named in the card, carried separately"
      ]
    }

    Stamped 2026-11-17T00:38Z.


    Generated by Claude Code

  8. objectstack-fleet commented on Nov 17, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmP9G6thtpoRS58fpJy
    os-dev-report

    {
      "issue": 34383,
      "status": "done",
      "branch": "claude/project-thread-ny8fif",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34524",
      "session": "session_01ADHkmP9G6thtpoRS58fpJy",
      "premise_still_valid": true,
      "summary": "RecordActivityProps gains one unexported object-level check: a present `types` without 'comment' while `showCommentInput` is not false is refused with one custom issue at `showCommentInput` naming both fixes (moved from `types` in round 2: the console parity member probe read an issue at the container key as the list itself refused, Test UI red on 1533b264). The same object is RecordChatterProps.feed, so record:chatter / record:discussion refuse it at feed.showCommentInput. Form: schema check applied by the existing component-props-invalid lint rule through ComponentPropsMap. Riders: two describes, regenerated reference page, two dropped-refinement baseline sites, ADR-0087 D3 entry, minor changeset registered. This supplement: readings on the new head bf199627 (after os-regen-merge.sh over main 1efe7a22) and the PR body fixed at the seat's request (N4); no code change since the delta L2 PASS.",
      "tests": "head bf19962741631283f6bca10a6753196983781a3b. spec test 846/846 files, 27090 passed, 1 todo (lock VERDICT exit 0). component.test.ts -t 34383: 9 passed. Console parity registry-inputs-spec-parity.test.ts: 261/261. Ablation on bf199627: anchor .superRefine(refuseFeedTypesWithoutCommentBesideComposer) -> marker, landed (anchor 1->0, blob f4d64ba0835c->a44a0f099d47): 4 failed / 5 passed (refusal pins red, acceptance pins green); restored blob == HEAD, git diff HEAD empty. Lint reach (one-off): validateComponentProps gives component-props-invalid severity error at properties.showCommentInput and properties.feed.showCommentInput for the refused shape, none for the fixed shapes or an absent types.",
      "gates": "Full build OK. dispatch-gates --commands at bf199627: 115 families, 115 exit 0. --ran: 115 derived, 115 run, 0 NOT-MEASURED, 0 UNRUN. File /mnt/project-files/objectstack-seat2/34383-gates-ran.txt. CI on bf199627: 68 check-runs, 58 success, 10 skipped, 0 failure; required contexts all success (Lint UI skipped).",
      "dogfood_battery": "bf19962741631283f6bca10a6753196983781a3b · os-verify-lock: VERDICT command-exit 0 (held 39m41s, shared box) · Test Files 478 passed | 3 skipped (481) · Tests 4030 passed | 44 skipped (4074) · no failure",
      "line_budget": "n/a — no skills/** file touched",
      "files_changed": [
        ".changeset/34383-record-activity-types-without-comment.md",
        "content/docs/references/ui/component.mdx",
        "packages/spec/dropped-refinements.baseline.json",
        "packages/spec/src/migrations/entries/semantic/18.record-activity-types-without-comment-beside-composer-refused.ts",
        "packages/spec/src/ui/component.test.ts",
        "packages/spec/src/ui/component.zod.ts"
      ],
      "deviations": [
        "Forced test change: component.test.ts 'does not reject a typo of a built-in kind by name' fixture gains showCommentInput: false (named in PR body).",
        "check:test-typecheck needed NODE_OPTIONS=--max-old-space-size=6144 (OOM at the default heap).",
        "HTTP page door not driven end-to-end; reach = lint rule registration + validateComponentProps reading.",
        "Delta L2 nits N5/N6 left unchanged, accepted by the seat as deviations."
      ],
      "mcp_calls": "3 — mcp__github__issue_read (get, get_comments), mcp__github__get_job_logs (Test UI red); no write tool",
      "api_writes": "7 — relay pr_create (#34524); os-dev-report comments 6933253328 and 6933957503; three relay issue_patch on #34524 (seat-asked body edits: Skills-docs follow-up #34534 + acceptance-note line; round-2 refresh; N4 paths + Verification on bf199627); this supplementary os-dev-report comment",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: a host composing RecordChatterPanel in code with feed.types lacking 'comment' (authored pages are now refused) · evidence: record-chatter.tsx / RecordChatterPanel.tsx pass no commentsShown to RecordActivityTimeline, which defaults it to true (RecordActivityTimeline.tsx line 357, composer gate line 497), so the chatter mount still offers the composer and Comments-only option the record:activity renderer withholds · dedupe words: commentsShown, record:chatter composer, feed types comment, RecordChatterPanel",
        "carrier: HotCRM lead_detail lead_activity adds 'comment' to types (or drops types) — named in the card, carried separately"
      ]
    }
    ```json
    {
      "issue": 34383,
      "status": "done",
      "branch": "claude/project-thread-ny8fif",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34524",
      "session": "session_01ADHkmP9G6thtpoRS58fpJy",
      "premise_still_valid": true,
      "summary": "RecordActivityProps gains one unexported object-level check: a present `types` without 'comment' while `showCommentInput` is not false is refused with one custom issue at `types` naming both fixes. The same object is RecordChatterProps.feed, so record:chatter / record:discussion refuse it at feed.types. Form chosen: schema check, which the existing component-props-invalid lint rule (error, os lint/validate/build and the runtime page door) already applies through ComponentPropsMap. Riders: two describes, regenerated reference page, two dropped-refinement baseline sites, ADR-0087 D3 entry, minor changeset registered. Supplement: dogfood battery measured on the same head; PR body edited twice at the seat's request, code head unchanged.",
      "tests": "head 1533b264. spec test 846/846 files, 27078 passed (at 3f150b76; main merge touched no spec file). component.test.ts -t 34383: 9 passed. spec typecheck VERDICT exit 0. Ablation: anchor .superRefine(refuseFeedTypesWithoutCommentBesideComposer) -> marker, landed (anchor 1->0, blob d3235f08->f5a657ed): 4 failed / 5 passed (refusal pins red, acceptance pins green); restored blob == HEAD, git diff HEAD empty. Lint reach (one-off): validateComponentProps gives component-props-invalid severity error at properties.types and properties.feed.types for the refused shape, none for the fixed shapes.",
      "gates": "dispatch-gates --commands at 1533b264: 115 families, 115 exit 0 (check:type-check-debt first exit 3 = lock queue timeout behind dogfood, re-run exit 0). --ran: 115 derived, 115 run, 0 NOT-MEASURED, 0 UNRUN. File /mnt/project-files/objectstack-seat2/34383-gates-ran.txt. CI check-runs: in_progress at report time.",
      "dogfood_battery": "1533b26468a0366c5881e2c04472f75a21b3e60f · os-verify-lock: VERDICT command-exit 0 (held 34m48s, shared box) · Test Files 478 passed | 3 skipped (481) · Tests 4030 passed | 44 skipped (4074) · no failure",
      "line_budget": "n/a — no skills/** file touched",
      "files_changed": [
        ".changeset/34383-record-activity-types-without-comment.md",
        "content/docs/references/ui/component.mdx",
        "packages/spec/dropped-refinements.baseline.json",
        "packages/spec/src/migrations/entries/semantic/18.record-activity-types-without-comment-beside-composer-refused.ts",
        "packages/spec/src/ui/component.test.ts",
        "packages/spec/src/ui/component.zod.ts"
      ],
      "deviations": [
        "Forced test change: component.test.ts 'does not reject a typo of a built-in kind by name' fixture gains showCommentInput: false (named in PR body).",
        "check:test-typecheck needed NODE_OPTIONS=--max-old-space-size=6144 (OOM at the default 2 GB heap; 4096 not tried).",
        "HTTP page door not driven end-to-end; reach = lint rule registration + validateComponentProps reading."
      ],
      "mcp_calls": "2 — mcp__github__issue_read (get, get_comments); no write tool",
      "api_writes": "5 — relay pr_create (#34524); os-dev-report comment 6933253328; two relay issue_patch on #34524 (seat-asked body edits: Skills-docs follow-up #34534, acceptance-note line); this supplementary os-dev-report comment",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a · reach: a host composing RecordChatterPanel in code with feed.types lacking 'comment' (authored pages are now refused) · evidence: record-chatter.tsx / RecordChatterPanel.tsx pass no commentsShown to RecordActivityTimeline, which defaults it to true (RecordActivityTimeline.tsx line 357, composer gate line 497), so the chatter mount still offers the composer and Comments-only option the record:activity renderer withholds · dedupe words: commentsShown, record:chatter composer, feed types comment, RecordChatterPanel",
        "carrier: HotCRM lead_detail lead_activity adds 'comment' to types (or drops types) — named in the card, carried separately"
      ]
    }

    Stamped 2026-11-17T01:47Z.


    Generated by Claude Code

  9. removed
    pm:dispatched
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:specenhancementpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions