Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

fix(app-shell,plugin-detail): the record activity panel says "no permission to view activity" when its read is refused, instead of an empty list (objectui#11195) - #11217

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-11195-activity-refused-state
Sep 30, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-11195-activity-refused-state

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #11195
Clause-②: yes (widening)

What was wrong

An invited member of a hosted AI-built app opened a record (objectstack-ai/cloud#2485). The server refused the record's sys_activity read with a 403, and the activity panel showed an empty list with no message. The member could not tell "no activity" from "not allowed to see activity".

Every feed read ended in a catch that treated any failure as an empty answer:

  • RecordDetailView (the console record page): both feed reads, sys_activity and sys_comment, ended in an empty .catch handler, and Promise.allSettled then counted the failed read as answered. A 403 landed on "No comments yet".
  • record:activity (plugin-detail): the self-fetch's .catch set the feed to [] for every failure, so a 403 landed on "No activity recorded".

What changed

  • One verdict, reused. isRefusedFeedRead(err) in plugin-detail's recordActivityFeed.ts, exported from the package barrel beside activityRowToFeedItem. It is the forbidden and unauthorized kinds of the existing classifyLoadError read classifier (@object-ui/react), and it reads no status or code of its own. Both surfaces call it.
  • RecordDetailView keeps a verdict per source. Each read records "refused or not" under the same per-record key the rows use (feedRefusalByRecord), so a refusal on one record never reaches another. An answered read clears it. The host passes activityDenied / commentsDenied on its DiscussionContextProvider.
  • DiscussionContext (@object-ui/react) gains the two optional members activityDenied / commentsDenied, in the provider's memo list as primitives.
  • record:activity records its self-fetch's refusal in state beside fetched. With a host context it shows the host's two flags instead. Host items carry no refusal.
  • record:chatter / record:discussion pass the context's flags through RecordChatterPanel to the timeline.
  • RecordActivityTimeline takes activityDenied / commentsDenied. With no rows, a refusal replaces the empty state: a lock and a left-aligned sentence, not the centred inbox glyph. With rows on screen, the rows stay and the notice sits above them. Only the i18n sentence is rendered: no status, no server message, no object name.
  • Strings: detail.activityAccessDenied and detail.commentsAccessDenied, in all ten locale packs and in DETAIL_DEFAULT_TRANSLATIONS. No existing key fit: attachmentsAccessDenied names attachments.
  • Changeset: minor for plugin-detail and react, which gain published surface (plugin-detail's root export isRefusedFeedRead and the optional activityDenied / commentsDenied on RecordActivityTimelineProps / RecordChatterPanelProps; react's DiscussionContextValue gains the same two optional members); patch for app-shell and i18n. The record:activity section of the plugin-detail guide gains "When the read is refused".

Decisions the card left open, and what this PR does

  • A refused sys_comment beside an answered sys_activity. The comment half of the same panel gets the same treatment. The activity rows stay on screen, and the notice above them reads "You don't have permission to view comments on this record." Both refused, with no rows, shows both lines.
  • 401 counts as refused, per the triage on the card (any refused read: 401 / 403, or a permission envelope). This differs on purpose from RecordAttachmentsPanel, whose denied state does not claim a 401. The verdict's docblock records why.
  • Not refused, so the empty state stays: a 200 with zero rows; a 404 (the ObjectStack adapter already answers a bare 404 as zero rows; another adapter's 404 classifies as network); OBJECT_API_DISABLED / OBJECT_API_METHOD_NOT_ALLOWED (api-disabled: a property of the object, not of the caller); a 400; a 500. The panel has no error state, so a 500 still settles on the empty state. See Acceptance notes.
  • No retry. A refusal is written into state. No effect dependency moves with it, and nothing re-issues the read. Both surfaces pin this.

Verification (head df5a91cb4, after merging origin/main at 9419df198)

  • New pins, both surfaces: RecordDetailView.feedRefusal-11195.test.tsx (7 tests) and record-activity.refusedRead-11195.test.tsx (10 tests). They cover: a 403 envelope and a 401 show the no-permission state with no retry; the 200-zero-rows control shows the empty state; a 404 and a 500 do not show "no permission"; a refused comment read keeps the activity rows; the host-context path; and the verdict's refused and not-refused sets.
  • Merged tree, one run: all RecordDetailView* suites, the record-activity* / record-chatter* renderer suites, all-locales-key-parity, en-zh-key-parity and defaults-maps-mirror-en-pack: 49 files, 355 tests passed.
  • Before the merge (branch head 2fbe2df5f): packages/plugin-detail/ whole: 226 files passed (1 skipped), 2245 tests passed. The RecordDetailView* suites plus defaults-maps-mirror-en-pack, widget-dom-leak-sweep, palette-discussion-alias, apps/console record-block-record-reach and packages/react/src/context: 57 files, 653 tests passed. packages/i18n/ whole: 74 files passed, 1216 tests passed (13 skipped).
  • type-check: @object-ui/plugin-detail, @object-ui/app-shell, @object-ui/react and @object-ui/i18n all exit 0 (dependency closure built first, @object-ui/app-shell^...).
  • eslint on the 21 changed ts/tsx files: 0 errors.
  • Gates, exit 0: check-changeset-presence (1 changeset, 4 released packages), check:control-bytes, check:new-line-citations (0 new), check:i18n-keys, check:i18n-drift (2 keys added, 0 en values changed), check:i18n-dead-keys, check:changeset-claims, check:pending-changeset-literals, markdown-test-inputs --audit, check:doc-types, check:doc-fences, check:doc-example-ids, check:phantom-deps, check:self-import, check:test-path-roots, check:vi-mock-specifiers.
  • NOT MEASURED: check:doc-snippets / check:doc-examples (exit 2, precondition not met: packages outside this diff's closure are unbuilt; the docs edit adds prose and no code fence). The root scripts/__tests__/ suite was not run: the shared verify lock queued for over an hour. This diff edits no script and adds no test that reads markdown. CI runs it.

Ablation (one leg, at the shared verdict, head df5a91cb4)

isRefusedFeedRead was made to answer "not refused" for every rejection, which turns a refusal back into the empty list on both surfaces. The mutation went through ablation-replace.mjs: the anchor was hit 1 time and went to 0, the marker went from 0 to 1, and the blob changed. The subject reaches the tests through the vitest source alias for @object-ui/plugin-detail, so no build sat in between.

  • Mutated: 8 failed, 9 passed (17). The 8 red: the 403 and 401 pins and the no-retry pin on each surface, the refused-comment pin, and the verdict's refused set. The 9 green are the 200 / 404 / 500 controls on both surfaces, the two host-context pins, and the verdict's not-refused set. That is the expected direction.
  • Restored: the blob equals the HEAD blob and git diff HEAD is empty.

Acceptance notes (not filed; observations only)

  • A read that fails without a refusal (a 500, an unreachable server) still renders the empty state, "No comments yet" / "No activity recorded". That sentence is a claim about the record, made without evidence. The panel has no error state; RecordAttachmentsPanel's unavailable state is the house shape for one. The triage said this case "is reported"; it is out of this card's scope.
  • DiscussionContextValue.error is declared, but no host sets it and no renderer reads it.
  • When the sys_comment read is refused, the comment composer still renders. Whether the member may WRITE a comment they may not READ is a server question; this PR does not change the composer.

Generated by Claude Code

…on state, not an empty feed (objectui#11195)

The record page's feed reads (sys_activity, sys_comment) and the
record:activity block's self-fetch landed every failure on the empty
state, so a 401/403 read as "No activity recorded". Each read's refusal
is now judged by one shared verdict (isRefusedFeedRead, over the
existing classifyLoadError) and carried to the timeline, which renders
a localized no-permission notice instead of the empty state. A 404 or
any other failure keeps the empty state; a refusal is never retried.

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
…d surfaces (objectui#11195)

RecordDetailView's discussion panel and the record:activity block's
self-fetch: a 403 envelope and a 401 show the no-permission state and
are not retried; a 200 with zero rows, a 404 and a 500 do not. A refused
sys_comment beside answered activity keeps the rows and names the
withheld half.

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
… (objectui#11195)

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
…n spreading over them (objectui#11195)

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 6 pending changeset(s) describe a file this change touches

Their bodies publish verbatim into the CHANGELOG at the next release, so this is a request to re-read them against your diff — addressed here because you are the one seat that can answer it without re-deriving anything.

⛔ Nothing here blocks, and nothing here is a verdict on your change. This gate exits 0, is not a required context, and judges name resolution, never meaning: it asked whether a pending body names a file you touched. "Is this sentence still true?" is the one question it will not answer, and the one you are being asked to answer.

.changeset/6661-app-launcher-nav-menu-renderers.md

  • names en.ts → packages/i18n/src/locales/en.ts — edited by this change

    Three new strings — the launcher's and the menu's accessible names, and the menu's empty state — are declared under console.nav in en.ts and its nine sibling packs. An inline defaultValue alone is not a fix: it renders English at one call site and leaves the string untranslatable everywhere (objectui#3517).

.changeset/6726-find-envelope-records-arms.md

  • names plugin-detail/src/renderers/record-activity.tsx → packages/plugin-detail/src/renderers/record-activity.tsx — edited by this change

    | module | what it does | | --- | --- | | components/src/hooks/related-count-store.ts | related-list tab badge count | | components/src/renderers/basic/data-list.tsx | element:repeater rows | | components/src/renderers/basic/elements.tsx | element:number client-side aggregate | | components/src/renderers/basic/record-picker.tsx | element:record_picker options | | plugin-detail/src/renderers/record-activity.tsx | record:activity self-fetch | | plugin-detail/src/renderers/record-history.tsx | record:history self-fetch | | plugin-view/src/ObjectView.tsx | non-grid (kanban / calendar / gallery / timeline) fetch |

.changeset/7997-detail-view-related-retired.md

  • names RecordDetailView.tsx → packages/app-shell/src/views/RecordDetailView.tsx — edited by this change

    Why it retired. @objectstack/spec declares no DetailView schema at all — every DetailView occurrence in packages/spec/src is prose about this repo's own RecordDetailView.tsx — so this array mirrored no protocol schema and drifted freely: it declared columns as TableColumn[] while the renderer it fed also accepted bare field names, { field, label } and legacy { name, label } spellings. The axis that carried the ruling was measured zero pull: no application code authored the member, both internal producers of a detail-view node (RecordDetailDrawer, renderers/record-details.tsx) synthesize it without related, and the only in-tree authorings carrying real columns were two documents — both rewritten here.

.changeset/8934-chatter-feed-affordance-only.md

  • names renderers/record-activity.tsx → packages/plugin-detail/src/renderers/record-activity.tsx — edited by this change

    The gap. @objectstack/spec declares RecordChatterProps.feed: RecordActivityProps.optional() (component.zod.ts:1366), bound to both record:chatter (:2948) and record:discussion (:2962). So feed is the full record:activity shape, types / limit / showCompleted / unifiedTimeline included. RecordChatterRenderer handed DiscussionContext.items to the panel raw, and applyFeedConfig — the pipeline those four members are applied by — had exactly one call site, renderers/record-activity.tsx. An author who wrote a spec-legal feed: { types: ['comment'] } therefore got no filtering, no diagnostic and no way to tell.

  • names renderers/record-chatter.tsx → packages/plugin-detail/src/renderers/record-chatter.tsx — edited by this change

    The fix. renderers/record-chatter.tsx now runs applyFeedConfig before handing items to RecordChatterPanel, with record-activity.tsx:219's call shape — not a second convention — and reads limit as the page window that "Load more" grows by, the same way. The registration description is unchanged in substance: it still says feed is the same shape as record:activity, and now names the spec symbol it delegates to.

.changeset/9280-record-highlights-entry-icon-retired.md

  • names packages/plugin-detail/src/index.tsx → packages/plugin-detail/src/index.tsx — edited by this change

    • packages/types/src/record-components.ts — RecordHighlightsComponentProps.fields[]'s object arm: { name; label?; icon?; type?; readonly? } → { name; label?; type?; readonly? }. The key is removed, not tombstoned: the contract's arm is $strict, so the refusal an author needs already exists upstream and arrives named (invalid_union at the entry). A ?: never tombstone buys nothing here — it is the remedy for a non-strict mirror that would otherwise strip in silence, which is not this arm. - packages/plugin-detail/src/renderers/record-highlights.tsx — the entry normalizer stops copying icon: f?.icon into the normalized entry. That read was unreachable, not merely unused: no author could feed it past the $strict arm, and HeaderHighlight renders no .icon on the far side either, so the copy had no consumer in either direction. - packages/plugin-detail/src/index.tsx — the registry manifest's fields input description sketched the entry as {name,label?,icon?,type?,readonly?} → {name,label?,type?,readonly?}. The inputs ARE the published contract (gen-manifest.ts serializes them into sdui.manifest.json and sdui-intrinsics.d.ts), so leaving the sketch standing would have gone on teaching AI and human authors a key that gets the whole document refused at publish.

.changeset/record-alert-cta-label-i18n-4998.md

Read the paragraph, not the line: both false halves of the objectui#8617 claim sat in one paragraph, and correcting either alone would have left it asserting the same wrong thing.

If a claim did go false, correct the body. That is precedented and prose-only, frontmatter untouched; check-changeset-overwrite.mjs will report the correction as its own case 2 ("correcting a declaration on purpose … legitimate"), which is the intended shape — one gate asks for the read, the other records the write.

Not covered, stated so nobody reads this as more: a born-false claim that spells no line address at all (objectui#9495 coordinated one by ORDINAL — "a grep finds that member first" — and deciding that means reading what the sentence means), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Compared the checked-out tree with e6bc087a3 (merge-base with origin/main): 22 file(s) changed outside .changeset/, read against 1813 pending declaration(s) that publish a body (2423 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3575.7 KB 3607.4 KB
Main entry chunk (gzip) 149.8 KB 350 KB
Entry file index-eTlv9r-D.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.88KB 6.25KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.17KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.13KB 7.95KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 568.99KB 136.03KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 228.51KB 63.39KB
fields (index.js) 261.19KB 66.27KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.35KB 9.18KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 40.51KB 11.36KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.58KB 4.90KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.25KB 2.17KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.01KB 3.93KB
plugin-calendar (index.js) 52.17KB 15.06KB
plugin-charts (index.js) 84.09KB 22.93KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 138.73KB 37.05KB
plugin-designer (index.js) 215.78KB 44.42KB
plugin-detail (index.js) 242.01KB 63.55KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 172.30KB 44.19KB
plugin-gantt (index.js) 172.43KB 42.85KB
plugin-grid (index.js) 230.77KB 63.38KB
plugin-kanban (index.js) 48.44KB 15.11KB
plugin-list (index.js) 116.28KB 28.88KB
plugin-map (index.js) 22.90KB 7.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 32.26KB 9.42KB
plugin-tree (index.js) 11.20KB 3.89KB
plugin-view (index.js) 90.48KB 22.77KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.81KB 3.58KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 119.55KB 39.23KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.17KB 2.73KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 22.61KB 7.40KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 3.19KB 1.62KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.26KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.82KB 7.15KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: df5a91cb4fd7ded33900f16eae3b1876ae257f17
Local-runs: none

Inputs: card #11195 (body, triage 5909760254, claim 5909811652, dev report 5912522790), PR #11217 (body, 23-file list, net diff against main at the head), the head's check-runs (filter=latest, 43 runs once the last test shard landed: 40 success, 3 skipped — the coverage matrix and dependabot — 0 failure, 0 in progress). Context reads at the head via the contents API only; nothing built, run or re-run.

The head's merge. df5a91cb4 has parents 2fbe2df5f (the branch) and 9419df198 (main, the objectui#11206 fix). Its diff against the first parent is exactly main's own 14 files (the 11206-computed-strip-wording changeset, writeWarningToast, spec-symbol-batch6, and one added line in each of the ten locale packs); the compare 9419df198...df5a91cb4 is exactly this PR's 23 files. Both sides touched the ten packs in distinct hunks (main +1 line, this diff +2 lines each) and auto-merged: no conflict resolution, no residue. Spec Main Shape Gate is GREEN on this head.

① Derived judgments

  • Premise on the base — right. The diff's removed lines are the defect as the card states it: in RecordDetailView both feed reads ended in an empty .catch handler and Promise.allSettled(inFlight) counted the rejected read as answered, so a 403 settled on "No comments yet"; in record:activity the self-fetch's .catch set setFetched([]) for every failure, so a 403 settled on "No activity recorded". objectui#11206 touched neither file, so the premise holds on the merged head as on 846cec0ef.
  • One verdict — right. isRefusedFeedRead(err) in recordActivityFeed.ts is classifyLoadError(err) being forbidden or unauthorized, and nothing else. It is the ONLY refusal decision on both surfaces: RecordDetailView's two catches call recordRefusal(source, isRefusedFeedRead(err)), record:activity's catch calls setSelfDenied(isRefusedFeedRead(err)), and no other line of the diff reads a status or a code. The classifier (@object-ui/react error-message.ts) is the existing one ListView and RecordAttachmentsPanel share: api-disabled first on the code alone (isApiAccessDeniedError, OBJECT_API_DISABLED / OBJECT_API_METHOD_NOT_ALLOWED), then 403 / PERMISSION_DENIED / FORBIDDEN as forbidden, 401 / UNAUTHORIZED / UNAUTHENTICATED as unauthorized, 400 and the rejected-request codes as rejected, everything else network. So a permission envelope with no status is refused (pinned), a bare 404, a 500 and a TypeError('Failed to fetch') are network and not refused (pinned), a 404 carrying OBJECT_API_DISABLED is api-disabled and not refused (pinned). Nothing sniffs a status of its own.
  • 401 as refused — holds. Triage 5909760254 rules the refused state keys on the refusal, "any refused read (401/403, or a permission envelope)". RecordAttachmentsPanel keeps 401 out of denied on purpose (isPermissionError claims 403 only; a 401 lands on unavailable with a Retry). This panel differs by the card's own ruling, the verdict's docblock records the difference and its reason, and the cost — an expired session reads an authorization sentence rather than an authentication one — is the ruling's, not the diff's. No retry is offered either way, which is what the ruling asked.
  • Per-record, per-source state — right. feedRefusalByRecord is keyed by the same objectName:pureRecordId key as feedItemsByRecord; recordRefusal writes under the effect's closed-over threadId, returns prev when the verdict is unchanged, and an answered .then clears the source (recordRefusal(source, false) runs before the zero-rows early return). A late settle after navigation lands on the record it was read for, the same guarantee the rows have. The provider receives feedRefusal?.activity ?? false and feedRefusal?.comments ?? false as primitives, both added to the provider's memo list.
  • How it reaches the renderers — right. record:chatter and record:discussion are one component, which passes discussion?.activityDenied / discussion?.commentsDenied through RecordChatterPanel (both layouts) to RecordActivityTimeline. record:activity follows the rows' precedence: host items carry no refusal (false), a mounted DiscussionContext answers for both reads, the self-fetch answers for its one sys_activity read through selfDenied. The timeline renders the notice in place of DataEmptyState when there are no rows, and above the rows when there are some; the notice branch sits after loading and before collapseWhenEmpty, so a collapsing host shows a refusal rather than collapsing it — consistent with the loading branch's own rule that the flag is about the EMPTY state. Only the two i18n sentences render: no status, no server text, no object name (pinned on both surfaces).
  • Public surface — a widening, judged wrong in the claim and the PR body. @object-ui/plugin-detail's root entry (exports["."] to dist/index.d.ts) gains the value export isRefusedFeedRead; its exported RecordActivityTimelineProps and RecordChatterPanelProps gain the optional activityDenied / commentsDenied; @object-ui/react's exported DiscussionContextValue, and through it DiscussionContextProviderProps, gain the same two optional members. All four are reachable from the entry type graph and addressable through exports, so they are the published accept set, not shipped bytes. The claim's Why no: a UI state for a refused read. No schema, prop, type or accepted set moves. is contradicted by the diff on prop, type and export — the changeset body itself says "gains two optional members" and "take the same two optional props". A widening is judged by direction, not size. Finding 1 below; the level it owes is finding 2.
  • The mixed case — right. A refused sys_comment beside an answered sys_activity records comments: true, merges the activity rows, and the timeline keeps the rows with the notice above them carrying only the data-denied-source="comments" line. Pinned on the console page and, through the host-context path, on record:activity.
  • No retry — right. Neither effect depends on the refusal: RecordDetailView's feed effect keys on dataSource, objectName, pureRecordId, currentUser, feedsEnabled, activitiesEnabled, feedFetchKey; record:activity's on canSelfFetch, dataSource, objectName, recordId, pageSize, systemActorLabel. The pins assert find called exactly once on the self-fetch and, on the page, no more sys_activity reads than the answered baseline issues.
  • 404 / 400 / 500 / api-disabled — right, and today's empty state stays. Each classifies outside forbidden / unauthorized (above); both surfaces pin 404 and 500, the verdict pins 400 and OBJECT_API_DISABLED. The panel has no error state, so a 500 still settles on "No comments yet" — see ③.
  • i18n — right. detail.activityAccessDenied and detail.commentsAccessDenied in all ten packs; the eight non-en/zh packs are translations, none an English copy. DETAIL_DEFAULT_TRANSLATIONS carries both rows byte-identical to en, which is what the defaults-maps-mirror-en-pack byte-identity case requires. all-locales-key-parity requires every pack to define every en key and none en lacks, en-zh-key-parity the same for the pair, and check:i18n-en-drift that no en value changed: all satisfied by the diff and carried by the green shards.
  • Docs — true at this head. "When the read is refused" sits under "The record:activity block" after "Where the feed comes from". Every sentence matches the head: the lock and the sentence in place of "No activity recorded", rows kept with the notice naming the withheld half, the console page applying the rule to both reads, zero rows / 404 / 500 keeping the empty state, no retry, isRefusedFeedRead exported from the package.
  • Ablation — right. With the verdict never matching, the 17 new tests split as reported: RecordDetailView.feedRefusal-11195 4 red (403, no-retry, 401, mixed) / 3 green (200, 404, 500); record-activity.refusedRead-11195 4 red (403, no-retry, 401, the verdict's refused set) / 6 green (200, 404, 500, the two host-context pins, the not-refused set). 8 red, 9 green, the expected direction; the mutation went through the source alias, so no build sat between it and the run.

② Semver level

The diff publishes a new value export on @object-ui/plugin-detail's root entry and new optional members on exported types of @object-ui/plugin-detail and @object-ui/react. The changeset .changeset/11195-feed-refused-read-state.md declares patch for all four packages. Under this repo's rules a new export is minor: .changeset/README.md ("minor (new feature)" / "patch (bug fix)"), and the pending changesets at this head that add exports declare it so — .changeset/10657-fields-masked-cell-renderer-export.md ("New export MaskedCellRenderer", minor) and .changeset/10872-public-block-zod-arms.md ("Clause-②: yes", new exports, minor). The fleet's reader of the line (clause2-line.mjs) states the coupling: yes / yes (widening) "both take at least minor". The one older precedent for the identical shape (DiscussionContext gaining mentionSuggestions as a patch, released at 5.1.0) predates the directional ruling and does not govern. objectui's Changeset Bump Policy refuses major only, so its green says nothing about patch versus minor.

Clause-②: the line must read yes (widening) on both carriers. no (widening) would be malformed; no is a false declaration against the diff. The changeset's minor for @object-ui/plugin-detail and @object-ui/react follows from it; @object-ui/app-shell and @object-ui/i18n stay patch. The fixed group publishes at the highest level either way, so the release effect is the changelog section the two entries land in; the declaration is the record.

③ Boundary flags

open_questions: none declared. Deviations and out-of-scope notes, each answered:

  • Root scripts/__tests__/ not run locally; check:doc-snippets / check:doc-examples not measured. Answered by the head: all eight Test shards, Test (dist pins), Doc Snippet Type Check, Doc Component Type Check, Skill Example Check, Build Docs and Build & E2E are green. The narrowing declared (no script edited, no markdown-reading test added) also holds against the file list.
  • Whole-package runs pre-merge, targeted set post-merge. Accepted: the merge brought only main's 14 files, none a file this diff edits except the ten locale packs, where the hunks are distinct and the parity suites were in the re-run set; and the head's shards re-ran everything.
  • Merge commit without the trailer pair. Accepted as declared: a git merge default message on a commit a squash merge folds away; nothing lands from it.
  • Ablation as one leg at the shared verdict. Accepted: both surfaces route through the one function, and the 8 red span both files (4 + 4), which is what a per-surface leg would have shown.
  • Out-of-scope 1 — a read that fails without a refusal (500, unreachable) still renders "No comments yet" / "No activity recorded"; the panel has no error state. Acceptance notes, not a finding to file now. The triage's "or is reported" is satisfied by the report. The shape is class (a): a reproducible wrong claim about the record, with the two 500 pins as the failing-probe evidence; what it lacks is the reach: the filing gate demands (one measured wrong result at a public door — the console record page against a server answering 500 on sys_activity — or a named producer), and none of the three exceptions applies. If the seat wants it filed, that measurement is the missing step; RecordAttachmentsPanel's unavailable state is the house shape the fix would take.
  • Out-of-scope 2 — DiscussionContextValue.error is declared and never set or read. Acceptance notes: dormant, no pull, the class the filing gate names as not filed.
  • Out-of-scope 3 — under a refused sys_comment read the composer still renders. Acceptance notes: whether a member may write what they may not read is the server's answer, and a refused write already reaches the composer as a rejected write that keeps the draft (objectui#10899), so no wrong claim renders from it.

Findings

  1. Clause-②: no on claim 5909811652 (with Why no: a UI state for a refused read. No schema, prop, type or accepted set moves.) and Clause-②: no on PR fix(app-shell,plugin-detail): the record activity panel says "no permission to view activity" when its read is refused, instead of an empty list (objectui#11195) #11217's body (its second line) must read Clause-②: yes (widening). The diff widens the published surface: @object-ui/plugin-detail root entry gains isRefusedFeedRead; exported RecordActivityTimelineProps and RecordChatterPanelProps gain activityDenied / commentsDenied; @object-ui/react's exported DiscussionContextValue gains the same two optional members.
  2. .changeset/11195-feed-refused-read-state.md must declare minor for @object-ui/plugin-detail and @object-ui/react (a widening takes at least minor; the repo's own pending changesets for new exports declare minor). @object-ui/app-shell and @object-ui/i18n stay patch.

Everything else in ①–③ is right at this head; the code, tests, docs and i18n need no change.

Implemented-by: claude/issue-11195-activity-refused-state
Reviewed-by: session_011p7ikEivgXefNDaE5S5Uec

VERDICT: FAIL


Generated by Claude Code

…surfaces (objectui#11195)

The change adds the export isRefusedFeedRead to @object-ui/plugin-detail
and two optional members to @object-ui/react's DiscussionContextValue (and
to RecordActivityTimelineProps / RecordChatterPanelProps), so those two
packages declare minor; app-shell and i18n stay patch.

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3576.2 KB 3607.4 KB
Main entry chunk (gzip) 149.7 KB 350 KB
Entry file index-D3nlDcOK.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.88KB 6.25KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.17KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.13KB 7.95KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 568.99KB 136.03KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 228.91KB 63.54KB
fields (index.js) 261.19KB 66.27KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.35KB 9.18KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 40.88KB 11.46KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.86KB 5.00KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.52KB 2.26KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.01KB 3.93KB
plugin-calendar (index.js) 52.17KB 15.06KB
plugin-charts (index.js) 84.09KB 22.93KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 138.73KB 37.05KB
plugin-designer (index.js) 215.78KB 44.42KB
plugin-detail (index.js) 242.01KB 63.55KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 172.30KB 44.19KB
plugin-gantt (index.js) 172.43KB 42.85KB
plugin-grid (index.js) 230.77KB 63.38KB
plugin-kanban (index.js) 48.44KB 15.11KB
plugin-list (index.js) 116.28KB 28.88KB
plugin-map (index.js) 22.90KB 7.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 32.26KB 9.42KB
plugin-tree (index.js) 11.20KB 3.89KB
plugin-view (index.js) 90.32KB 22.76KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.81KB 3.58KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 119.55KB 39.23KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.17KB 2.73KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 22.61KB 7.40KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 3.19KB 1.62KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.26KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.82KB 7.15KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: bf69d30898dda89c167b8742aef8712e67878d7e
Local-runs: none

Re-record after 5912757969 (FAIL on df5a91cb4, two findings). Inputs: card #11195 (body, triage 5909760254, claim 5909811652, dev report 5912522790, claim amendment 5912793723), PR #11217 (its corrected body, 23-file list, net diff against main), the head's check-runs (filter=latest, 43 runs once the last test shard landed: 40 success, 3 skipped — the coverage matrix and dependabot — 0 failure, 0 in progress). Context reads at the head via the contents API only; nothing built, run or re-run.

The delta. bf69d3089 has one parent, df5a91cb4; no new merge. The compare df5a91cb4...bf69d3089 is one commit and one file, .changeset/11195-feed-refused-read-state.md, +4 −2: the frontmatter moves @object-ui/plugin-detail and @object-ui/react from patch to minor (@object-ui/app-shell and @object-ui/i18n stay patch), and one sentence is added after the title naming the export isRefusedFeedRead and the optional members activityDenied / commentsDenied on DiscussionContextValue, RecordActivityTimelineProps and RecordChatterPanelProps. The commit carries the model-free trailer pair. Every other file of the PR is byte-identical to the head 5912757969 reviewed, and the merge of main 9419df198 judged there is unchanged.

① Derived judgments

Unchanged from 5912757969: the delta touches no source, test, locale pack or doc, so every judgment there stands at this head — the premise on the base, isRefusedFeedRead as the one verdict on both surfaces built on classifyLoadError's forbidden / unauthorized kinds, 401 as refused under triage 5909760254, the per-record feedRefusalByRecord state and its path through DiscussionContext to the three renderers, the mixed case, no retry, 404 / 400 / 500 / api-disabled keeping the empty state, the ten-pack i18n with DETAIL_DEFAULT_TRANSLATIONS byte-identical to en, the docs section, the 8-red / 9-green ablation, and the public-surface reading: the diff widens the published surface of @object-ui/plugin-detail (root export isRefusedFeedRead; activityDenied / commentsDenied on RecordActivityTimelineProps and RecordChatterPanelProps) and of @object-ui/react (DiscussionContextValue, and through it DiscussionContextProviderProps). That widening is now declared, which is ② below.

② Semver level

  • Levels — right. minor for @object-ui/plugin-detail and @object-ui/react, the two packages whose published surface grows; patch for @object-ui/app-shell and @object-ui/i18n, which publish no new surface. This is what the diff publishes, and it is the repo's own convention for a new export (.changeset/10657-fields-masked-cell-renderer-export.md, .changeset/10872-public-block-zod-arms.md). Finding 2 of 5912757969 is closed. The added sentence is true at this head, and Changeset Claim Re-read, Changeset Bump Policy, Changeset Declaration and Changeset Fixed Group Check are green on it.
  • Clause-② line — right on the PR. The body's second line is Clause-②: yes (widening): key-initial, the fixed spelling, the value first after the colon and the arm in the closed pair, which is what the fleet's one reader (clause2-line.mjs, readClause2Line) reads as a declared widening. Its changeset bullet names the two minor packages, the two patch packages and the widened surfaces. The PR-body half of finding 1 is closed.
  • Clause-② line — corrected on the card, in prose. Claim amendment 5912793723 names the three widened surfaces and states the line as yes (widening), citing 5912757969. Read precisely: the amendment's spelling sits mid-sentence ("The line is …", bolded and backticked), which readClause2Line files as an inline-key near miss rather than a declaration, and its first line is not Claim:, so a reader that takes the card's newest Claim: comment still finds 5909811652's Clause-②: no — the auditable false declaration the landing rules name, now audited on the thread by the amendment and by the two records. Not a finding: the direction and the level are declared where the diff is judged (the PR body and the changeset), and enqueue reads this record. If the seat wants the card's carrier machine-readable as well, a key-initial Clause-②: yes (widening) line in a further comment on the card does it; the seat's call.

③ Boundary flags

Unchanged from 5912757969: the delta declares no deviation and opens no question, and the four deviations and three out-of-scope notes answered there (the CI-answered local gaps, the pre-merge whole-package runs, the trailer-less merge commit, the single ablation leg; the 500 empty state as Acceptance notes pending a reach: measurement at the console door, the dormant DiscussionContextValue.error, the composer under a refused comment read) keep their answers. Check-runs on this head: all 40 judging runs green — Spec Main Shape Gate, Type Check, Lint, Build & E2E, Test (dist pins), the eight Test shards, Build Docs, Doc Snippet Type Check, Doc Component Type Check, README Export Check, Bundle Analysis, Skill Example Check, Changeset Bump Policy, Changeset Declaration, Changeset Claim Re-read, Changeset Fixed Group Check, Changeset Overwrite Report, Governed Surface Queue Guard, Line Citation Gate, Control Byte Scan and the rest; 3 skipped (the coverage matrix and dependabot); no red.

Implemented-by: claude/issue-11195-activity-refused-state
Reviewed-by: session_011p7ikEivgXefNDaE5S5Uec

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review September 30, 2026 14:15
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Sep 30, 2026
Merged via the queue into main with commit 1263e40 Sep 30, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11195-activity-refused-state branch September 30, 2026 14:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants