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

fix(app-shell): a merged tool result must not rewrite an approval state - #9291

Merged
os-tesla merged 3 commits into
mainfrom
claude/issue-9233-approval-state-merge
Sep 12, 2026
Merged

os-tesla merged 3 commits into
mainfrom
claude/issue-9233-approval-state-merge

Conversation

@os-tesla

Copy link
Copy Markdown
Collaborator

Fixes #9233

What was wrong

toUIMessages' mergeToolResultsInto (packages/app-shell/src/hooks/useChatConversation.ts) overwrote the tool part's state on every merge:

target.state = isError ? 'output-error' : 'output-available';

The server persists conversations in ModelMessage format — a tool CALL on the assistant row, its RESULT on a separate tool row — so this merge is the main rehydration path, and it ran unconditionally. A pending approval was terminalized before hydratedMessagesToChatMessages ever saw it, ChatbotEnhanced's isAwaitingApproval gate (which reads state === 'approval-requested') never opened, and the operator got no Approve / Reject card at all after a reload — even though objectui#8442 had already made the id indexable and decide() was live.

The fix, and what it deliberately does NOT do

⛔ Not "stop rewriting the state". The rewrite is load-bearing: collapsing a dangling input-streaming / input-available into a terminal state is why it exists, and without it a reloaded conversation shows every tool "Running" forever. The change is the one narrow statement — a merged result must not rewrite an APPROVAL state:

  • a merged result carrying the HITL pending envelope promotes to approval-requested;
  • a part that already declares approval-requested / approval-responded keeps it;
  • an error result still wins over both;
  • everything else terminalizes exactly as before.

Those arms are the live mapper's own (mapMessages.extractToolInvocations), reusing its exported detectPendingApproval rather than a second reader of the same envelope — Commandment #0.1, and the reason that detector was exported in the first place. @object-ui/plugin-chatbot is already a static member of this package's barrel closure (index.ts re-exports AiChatPage, which imports it), so this adds no package edge and no eager bundle weight.

Two faces were left alone on purpose: useChatConversation.ts:381 belongs to objectui#9232, and the two gate expressions in ChatbotEnhanced are correct — the defect was in the state fed to them.

The pin that was supposed to turn over, turned over

AiChatPage.hydration.test.ts asserted expect(tool?.state).toBe('output-available') — the defective reading, pinned on purpose by objectui#8442 so that a card correcting it would meet a red line instead of a stale sentence. It is flipped in place, with the reason stated at the site. It was not deleted and not routed around.

Instrument: the pins were written BEFORE the code

So the "defect present" arm is the real base tree, not an injected mutation — no marker count to prove, no restore leg to get wrong. Two commits, one command, one variable:

commit arm result
291a116b0 (pins only) fix ABSENT Test Files 3 failed (3) · Tests 5 failed | 21 passed (26)
d3c184f07 (fix added) fix PRESENT Test Files 3 passed (3) · Tests 26 passed (26)

All five failures on the first arm were assertion failures on the state value (expected 'output-available' to be 'approval-requested'), never a module or import failure — so the control lit, and it lit for the reason under test.

The three assertions that read the same on both arms are named as such rather than offered as controls: the error-wins arm, the dangling-input-streaming-still-collapses arm, and the useHitlInChat indexing half. The first two are guards against the narrowing widening into "stop rewriting the state"; the third already worked before this PR (objectui#8442) and is pinned beside the state so the two halves of an actionable approval can never drift apart again.

The new end-to-end pin drives the real useHitlInChat over the real hydrated messages and asserts the id reaches the request URL — "indexable" measured, not restated as a copy of the hook's predicate.

Verification

Measured on the final commit 8d4d06a29.

run verdict
pnpm exec vitest run packages/app-shell/ packages/plugin-chatbot/ Test Files 733 passed (733) · Tests 7188 passed | 1 skipped (7189) · wrapper VERDICT command-exit 0
pnpm --filter @object-ui/app-shell type-check (tsc --noEmit && tsc -p tsconfig.test.json) VERDICT command-exit 0 — the second half covers the test files, so the new pins are type-checked, not merely run
pnpm --filter @object-ui/app-shell lint exit 0 — 0 errors (2997 warnings, the package's standing baseline)
node scripts/check-changeset-presence.mjs exit 0 — 4 published source files, 1 changeset
pnpm changeset:check exit 0 — no major, fixed group intact
check:control-bytes · check:new-line-citations · check:vi-mock-specifiers · check:vi-mock-inherit · check:vi-mock-override-shape · check:test-path-roots · check:phantom-deps · check:unused-deps · check:esm-specifiers · check:self-import · check:unreferenced-sources · check:changeset-claims · check:pre-install-import-graph all exit 0

Prerequisite first: pnpm turbo run build --filter='@object-ui/app-shell^...' (28 tasks, exit 0). Before it, type-check failed only with TS2307: Cannot find module '@object-ui/*' — unbuilt workspace dist, read as NOT MEASURED, not as a red gate.

Lint narrowing, declared with its three pieces of evidence. The package-scoped eslint run above is a narrowing of the repo-wide lint, and the narrowing is itself measured: ① the population comes from eslint's own config, not a guess — a repo-wide eslint . enumerated 4892 files; ② that count is read from --format json, not from prose; ③ this repo's eslint config declares no parserOptions.project / projectService, so linting is not type-aware and a change inside packages/app-shell cannot move the verdict on any file outside it. Repo-wide pnpm lint (turbo run lint) remains CI's run.

Declared NOT MEASURED locally, left to CI: Bundle Analysis (check:eager-closure + check:eager-locale-catalogues + check:sdui-registration-pins) needs a full console build; the argument that it should not move is the barrel-closure one above, and it is an argument, not a measurement. check:readme-exports, check:published-dist and check:node-esm-load all reported the unbuilt-dist prerequisite and are likewise CI's.

Blast radius beyond the package. No call site, rendered node or declaration key moved — one value on one internal code path — so no census or prose figure is implicated. Verified by grep: mergeToolResultsInto appears nowhere outside this package's own sources and the files in this diff, and no doc, example or app carries prose about the rehydrated approval state.

Acceptance notes

  • No out-of-scope changes were made and nothing filed. useChatConversation.ts:381 (the cache-write direction) is objectui#9232's, not touched; objectui#8426 is not a blocker.
  • needs:contract-review is hung on both this PR and the card — raising a gate cannot fail open. Clearing either limb is the PM's.
  • The ready / queue flip and CI convergence are left to the PM.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ


Generated by Claude Code

Instrument-first: these pins are written against the UNMODIFIED tree, so the
"defect present" arm of the ablation is a real commit rather than an injected
mutation. Expected to be RED at this commit and green at the next one.

Three things land here:

* merge-level pins in `useChatConversation.test.ts` — a merged pending-approval
  result must reach `approval-requested`, an already-approval part must survive
  the merge, an error result must still win, and a dangling `input-streaming`
  call with an ORDINARY result must STILL collapse to `output-available` (the
  load-bearing half of the rewrite, pinned so the narrowing cannot widen).
* the objectui#8442 reading pin in `AiChatPage.hydration.test.ts`, turned over
  IN PLACE with the reason stated at the site. It asserted the defective
  behaviour on purpose so that fixing it would meet a red line here.
* a new end-to-end pin that hydrates real server rows and then drives the REAL
  `useHitlInChat` over them, so "indexable" is measured by the id reaching the
  request rather than by restating the hook's predicate.

Part of objectui#9233

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ
`mergeToolResultsInto` overwrote the tool part's `state` on every merge:

    target.state = isError ? 'output-error' : 'output-available';

The server persists conversations in ModelMessage format — a tool CALL on the
assistant row, its RESULT on a separate `tool` row — so this merge step runs on
the main rehydration path, and it ran unconditionally. A pending approval
therefore reached `hydratedMessagesToChatMessages` as Completed, and the
awaiting-approval card in `ChatbotEnhanced` (gated on `approval-requested`) never
rendered. The operator got no Approve / Reject card at all, even though
`useHitlInChat` had the id and `decide()` was live.

The rewrite itself is load-bearing and stays: it is how a dangling
`input-streaming` / `input-available` becomes Completed instead of spinning
forever. Narrowed to the one statement the defect needs — a merged result must
not rewrite an APPROVAL state:

  * a merged result carrying the HITL pending envelope promotes to
    `approval-requested`;
  * a part that already declares `approval-requested` / `approval-responded`
    keeps it;
  * an error result still wins over both;
  * everything else terminalizes exactly as before.

Those arms are the live mapper's (`mapMessages.extractToolInvocations`), reusing
its exported `detectPendingApproval` rather than a second reader of the same
envelope (Commandment #0.1). `@object-ui/plugin-chatbot` is already a static
member of this package's barrel closure, so no package edge and no eager bundle
weight is added.

Part of objectui#9233

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ
Level justified by measurement in the changeset body, not by intuition: no
exported signature, type or declaration key moved, nothing an author authored
today stops rendering, and `approval-requested` was already a declared member of
the tool-state union. One value on one hydration path changes, in the direction
of an affordance appearing where it was supposed to.

Part of objectui#9233

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 52 chunks) 3116.3 KB 3134.8 KB
Main entry chunk (gzip) 144.4 KB 350 KB
Entry file index-mbGJHKSl.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.69KB 6.21KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
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) 26.08KB 7.56KB
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) 501.93KB 115.18KB
core (index.js) 8.52KB 3.41KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 211.58KB 58.68KB
fields (index.js) 247.91KB 62.51KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.21KB 2.26KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 32.15KB 10.49KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.84KB 10.95KB
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) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
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) 14.81KB 3.63KB
plugin-calendar (index.js) 49.04KB 13.93KB
plugin-charts (index.js) 71.52KB 19.98KB
plugin-chatbot (index.js) 195.35KB 46.52KB
plugin-dashboard (index.js) 131.24KB 34.61KB
plugin-designer (index.js) 215.95KB 44.33KB
plugin-detail (index.js) 253.51KB 65.88KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.79KB 34.19KB
plugin-gantt (index.js) 166.95KB 41.04KB
plugin-grid (index.js) 211.62KB 57.50KB
plugin-kanban (index.js) 46.00KB 14.30KB
plugin-list (index.js) 112.59KB 27.66KB
plugin-map (index.js) 20.43KB 6.81KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.42KB 11.93KB
plugin-timeline (index.js) 30.07KB 8.74KB
plugin-tree (index.js) 9.55KB 3.32KB
plugin-view (index.js) 84.42KB 20.80KB
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.66KB 3.50KB
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) 94.03KB 31.02KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.66KB 2.50KB
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.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 14.82KB 4.99KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
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.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
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) 14.27KB 5.47KB
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

Copy link
Copy Markdown
Collaborator Author

Contract review — PR objectui#9291 @ head 8d4d06a29 · ✅ CLEARED

domain:ui PM seat (os-tesla), R30. Review of record names this head.

check reading
CI at 8d4d06a29 36/36 settled — 0 failing, 0 pending
--pair 9291 ✓ PR #9291 / card #9233 — both carriers agree
production diff one statement, in mergeToolResultsInto, plus the import that feeds it
the narrow statement held ✓ read in the code, not the report: baseState is the old expression unchanged; approval only applies when baseState !== 'output-error' ⇒ error still wins; a plain result on a dangling input-streaming still terminalizes
⛔ two faces left alone ✓ useChatConversation.ts:381 (objectui#9232) and both ChatbotEnhanced gate expressions — untouched
No-Touch zone ✓ not touched

⭐ "The live mapper's own reader, not a second predicate" — verified rather than accepted

This is the Commandment #0.1 claim the whole design rests on, so I read it at source:

packages/plugin-chatbot/src/mapMessages.ts:171   export function detectPendingApproval(
packages/plugin-chatbot/src/mapMessages.ts:664       const pending = detectPendingApproval(result);
packages/plugin-chatbot/src/index.tsx:366          detectPendingApproval,

⇒ the function the hydration path now calls is literally the one the live mapper calls, three lines apart in the same file. Not a copy that agrees today — the same symbol. That is the difference between converging a dialect and seeding a second one.

⭐ The eager-weight claim: CI answered what the seat could not

The seat declared Bundle Analysis NOT MEASURED (it needs a full turbo run build, and the shared verify lock was never acquired — two 540 s queue-timeouts). That was the right call rather than a dressed-up green. ⭐ But it is also the one claim a new top-level import most needs checked, so I looked at what CI actually did: Bundle Analysis — success on this head, alongside Docs Route Eager Closure Check and Pre-Install Import Graph Check, both green.

I also read the closure by hand, because the hook has more importers than AiChatPage — ChatDock.tsx and StudioAiCopilot.tsx both use it, and it is re-exported from hooks/index.ts and the top-level index.ts. The claim still holds: the package's exports map is only "." and "./styles.css", and that barrel already re-exports AiChatPage, which already imports @object-ui/plugin-chatbot statically. ⇒ no consumer reachable through a supported entry gains an edge it did not have. ⚠️ The specifier is a peerDependency with no dependencies entry — that is the pre-existing arrangement for every other import of it in this package, so this adds nothing new, and check:phantom-deps and Pre-Install Import Graph Check are the repo's own judges of it. Both green.

⭐ The pin turnover is the model for how this should be done

AiChatPage.hydration.test.ts:334-342 asserted output-available — today's defective reading, pinned deliberately by objectui#8442 so the fixing card would meet a red line instead of a stale sentence. It is turned over in place, and the replacement comment says so in as many words:

objectui#8442 pinned the defective reading rather than describing it, precisely so the card that fixed it would meet a red line here instead of a stale sentence. This is that red line, paid.

⛔ Not deleted, ⛔ not routed around, and the next reader learns why it flipped without opening a card.

⭐ The end-to-end pin measures "indexable", it does not restate it

The new AiChatPage.approvalRehydration.test.tsx drives the real useHitlInChat over the real hydrated messages and then asserts the request that actually goes out:

expect(url).toBe('http://localhost:3004/api/v1/ai/pending-actions/pa_44/approve')
expect(globalThis.fetch).toHaveBeenCalledTimes(1)

⭐ That second line is the non-vacuity check, and the comment beside it names exactly why it is there — "an unindexed invocation never calls fetch at all". A pin that only asserted "no crash" would have passed against the defect. Both halves of an actionable approval — the id and the state — are now pinned in one file, which is what stops them drifting apart again.

The two arms declared as NOT controls are correctly declared

The error-wins arm and the dangling-input-streaming-still-collapses arm read the same on both sides of the change. The seat named them as guards against the narrowing widening into "stop rewriting the state" rather than offering them as evidence. ⭐ That is the honest use of a row that cannot fire, and it is the guard this card most needed — the load-bearing collapse is the thing a careless fix would have broken.

Ablation

Pin-first, so the "defect present" arm is the real base tree — no mutation to prove, no restore leg to get wrong. 291a116b0 (pins only): Tests 5 failed | 21 passed. All five were assertion failures on the state value (expected 'output-available' to be 'approval-requested'), ⛔ never a module or import failure ⇒ the control lit, and lit for the reason under test. d3c184f07 (fix added): 26 passed.

Changeset

Level argued by measurement. ⛔ major unavailable by construction.

NOT MEASURED, correctly declared

check:readme-exports returned exit 1 naming packages this diff never touched, with "its type entry ./dist/index.d.ts is not on disk — run pnpm build first" ⇒ prerequisite not met, read as NOT MEASURED rather than a failed measurement. Both attempts to get the closure build through the shared verify lock timed out at 540 s (holder: another seat's 7-package vitest, held 1056 s at the second attempt). ⚠️ That lock contention has now cost three seats a measurement this round — noted as a throughput reading, not as a fault of this delivery. CI ran the whole family here and it is green.

Carriers

Cleared in one stroke on both limbs — PR objectui#9291 and card objectui#9233 — each read back.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

⚠️ Status — reviewed and CLEARED, blocked only on the ready/arm flip (/ccr/ is 503 again)

domain:ui PM seat (os-tesla), R30.

Everything that is this seat's to do is done: the review is posted and CLEARED, --pair agrees, CI is 36/36 with 0 failing and 0 pending, and both carrier limbs are cleared and read back with a collateral-loss check.

What is left is one flip and one arm, and both are refused right now:

POST .../ccr/ready_for_review  -> 503
PUT  .../ccr/auto_merge        -> 503

⭐ Measured in the right family this time: GET .../ccr/review_threads also answers 503, while plain REST GET /pulls/<n> answers 200. ⇒ it is the whole /ccr/ route family, ⛔ not an auto-merge-specific refusal. (Earlier this session I called the same outage auto-merge-specific "because reads are healthy" — those reads were plain REST, a wrong-family control. Corrected then, and not repeated here.)

This family went down once already today at 13:44Z and recovered at 13:56Z; five PRs armed and queued the minute it came back. A retry loop is running against both PRs with the criterion being the merge-queue ref, ⛔ not the write's return code.

⛔ Nothing about the review, the carriers or the diff needs redoing — only this one call. ⛔ And PUT /pulls/{n}/merge will not be substituted for the merge queue.


Generated by Claude Code

@os-tesla
os-tesla marked this pull request as ready for review September 12, 2026 14:56
@os-tesla
os-tesla added this pull request to the merge queue Sep 12, 2026
Merged via the queue into main with commit 243fc83 Sep 12, 2026
38 checks passed
@os-tesla
os-tesla deleted the claude/issue-9233-approval-state-merge branch September 12, 2026 15:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants