You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cloud: service-ai pending-action approve/reject routes follow the AI-door confirmation rule (#33689 Q1 ruled B) #33809
domain:cloudTouches cloud: the whole card is the cloud PM's (repo:cloud seat); no objectstack lane claims itpriority:p2Medium: important, M3repo:cloudCard routed whole to the cloud PM: needs cloud code, a producer or a fact (cloud owns it to closure)
Cloud lane card, per 「需要转给 cloud的,应该立 cloud 车道卡」 (Leehom, 2026-10-26T12:40Z). Follow-up of #33689. Q1 was ruled B on 2026-11-15T11:10:57Z (record on #33689).
Change (cloud service-ai; this project cannot read cloud, so measure first)
POST /api/v1/ai/pending-actions/:id/approve|reject (today guarded by ai:approve):
Only the person the call ran as may decide. An administrator approving someone else's AI proposal goes to the existing held outcome (the approvals engine) instead.
Take a signed-in session only. Refuse an API key, token or AI identity, whoever it resolves to.
An approved action runs as that person with every gate re-checked, and is not asked again.
Contract: the spec card #33808 (and the merged contract in packages/spec/src/contracts/ai-service.ts, PR #33725).
Owed to this implementing card by the spec seat, from the contract review of PR #34001 (card #33808; records #34001 (comment) and #34001 (comment)). When #34001 merges, IAIService's "in-app assistant door" section binds the in-app pending-action queue. Each item is decided only by the person it was queued for (actorId must equal proposed_by), for every queued item regardless of which trigger queued it. An administrator who must also approve does so through held.
What the implementation here must also do, because the contract text alone does not make it happen:
Refuse to queue an in-app item without the person the call ran as.ProposePendingActionInput.proposedBy stays optional in the contract (review flag 1, option A). An item queued with no recorded person would be decidable by nobody, which fails closed but leaves dead items. The route or service must refuse that queue write.
Make the refusal of another user's decision a throw.approvePendingAction's failed already means an approved item whose execution failed. So a decision by someone other than proposed_by, on approve and on reject alike, has to throw, not return failed. Say so in the implementation's docblocks (review N1).
Decide how an unanswered item lapses. An in-app item whose person never answers, or has left, stays pending, because only that person may reject it. The hand-off text leaves lapse to the host; the in-app implementation should state its own lapse rule (review N2).
The changeset of #34001 marks this as BREAKING when the implementing change ships (ADR-0087 entry in-app-pending-action-decided-by-person). The release that carries this card's routes must say in its changelog that the door enforces it.
Cloud triage first touch · 2026-11-15T22:48Z · a repo:cloud card carries a live state, not status:parked (cross-repo-coordination). Now pm:queue, priority:p2 kept. The cloud lane builds it in objectstack-ai/cloudservice-ai against the merged contract (#33808, PR #33725), measuring the two routes first.
Claim: 2026-11-15T23:31Z · repo:cloud#1 · card thread opened by the coordinator · code in objectstack-ai/cloud, branch reported at first push
Container & model: M, mode:thread, default tier, effort high. p2. Scope: the card's three rules plus the spec seat's owed items 1–3 (comment above), against the contract in the cloud pin (PR #33725); PR #34001 cited as text.
Clause-②: yes
{
"issue": 33809,
"status": "done",
"branch": "claude/project-thread-dyd0kd",
"pr": "https://github.com/objectstack-ai/cloud/pull/4607",
"session": "session_01JQwxbW1kqbjrt8LMHvcr3M",
"premise_still_valid": true,
"summary": "Measured at cloud main 1ef3f85: the proposer-only rule already held (admin or another member: 404 thrown, row pending); the approve/reject routes accepted any credential (x-api-key, Bearer osk_, forward credential, action-forward mark all executed); approved actions ran as the proposer with confirm:true; proposePendingAction queued rows with no or synthetic proposer. Now: approve and reject admit a session cookie only and refuse 9 named paths 403 PERMISSION_DENIED (details.reason pending_action_session_required, details.credential) before the row is read, OAuth bearer included per the seat's widening; proposePendingAction throws UNAUTHENTICATED and writes nothing without a real proposer; docblocks state the three points, throw-not-failed and the lapse rule (no time lapse). Changeset service-ai minor with BREAKING FROM/TO, Clause-2 yes (narrowing), Metadata-protocol none. Pin unchanged; objectstack#34001 cited as text.",
"tests": "head b9b7f15. New pending-action-decision-door.test.ts 29/29. service-ai full vitest exit 0: 152/152 files, 2208/2208. Updated route tests send a session cookie; tests that queued proposer-less rows now assert the refusal and store such a row directly. Ablations (ablation-replace, mutation proved on disk, restored blob == HEAD): A drop person check in getPendingAction -> 11 red (2 new + 9 ownership); B drop credential refusal in both routes -> 19/29 red; C drop proposer refusal -> 5 red. Tests import src relatively, no dist leg.",
"gates": "head b9b7f15, exit captured before any pipe: service-ai typecheck exit 0; turbo run typecheck exit 0 (42/42); check:all --phase pre exit 0 (39/39); check:all --phase post exit 0 (5/5: route-envelope, worker-entry-typecheck, action-predicate-roots, lint, graph-snapshot); service-ai-studio test exit 0 (201/201 files); security-enterprise test exit 0 (93/93); apps/objectos ai-sys-user-scope + ai-ledger-owner + ai-conversation-data-api-access e2e exit 0 (24/24). NOT MEASURED: full turbo test tier (draft runs no CI; no ci:* labels per order). Record: pm-orders/cloud/seat1/gates-33809.txt.",
"dogfood_battery": "n/a: cloud repo, no framework dogfood package; the narrowing arm is covered by the package suites above",
"mcp_calls": "0",
"api_writes": "2: relay pr_create objectstack-ai/cloud#4607 (7808 bytes sent = stored, assignee os-warren); this os-dev-report comment via post-stamped. git push is not a REST write.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: b · reach: maintainer (seat direct) · an administrator impersonating the person holds a session cookie as that person, and the AI route cannot tell it from the person's own, so the contract's 'only the person' is not fully enforced against impersonation · named in the PR as a known gap · carrier: objectstack (seat files the framework card from the draft handed in the seat thread)",
"carrier: seat 1 · time-based lapse for an unanswered or orphaned in-app item: follow-up card draft handed in the seat thread · noted, not filed",
"carrier: objectstack-ai/objectstack#33689 implementing card · once the runtime/MCP switch drops host-set confirm, the approved re-dispatch (action-tools approved handler, confirm: true) needs that card's channel · noted, not filed"
]
}
LANDED · 2026-11-16T01:25Z · objectstack-ai/cloud PR #4607 merged as de73dec5d (2026-11-16T01:24Z), ACCEPT 6903898715, contract records 6903750789 and 6903873960. Deciding an in-app AI pending action now takes the proposer's own browser session; every other credential is refused before the row is read.
Follow-ups: #34184 (the AI route learns who is acting and by which credential), #34189 (skill and SDK docs), objectstack-ai/cloud#4608 (lapse, ruled A, next to build).
domain:cloudTouches cloud: the whole card is the cloud PM's (repo:cloud seat); no objectstack lane claims itpriority:p2Medium: important, M3repo:cloudCard routed whole to the cloud PM: needs cloud code, a producer or a fact (cloud owns it to closure)
Activity
objectstack-fleet commentedon Nov 15, 2026
domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC
Owed to this implementing card by the spec seat, from the contract review of PR #34001 (card #33808; records #34001 (comment) and #34001 (comment)). When #34001 merges,
IAIService's "in-app assistant door" section binds the in-app pending-action queue. Each item is decided only by the person it was queued for (actorIdmust equalproposed_by), for every queued item regardless of which trigger queued it. An administrator who must also approve does so throughheld.What the implementation here must also do, because the contract text alone does not make it happen:
ProposePendingActionInput.proposedBystays optional in the contract (review flag 1, option A). An item queued with no recorded person would be decidable by nobody, which fails closed but leaves dead items. The route or service must refuse that queue write.approvePendingAction'sfailedalready means an approved item whose execution failed. So a decision by someone other thanproposed_by, on approve and on reject alike, has to throw, not returnfailed. Say so in the implementation's docblocks (review N1).pending, because only that person may reject it. The hand-off text leaves lapse to the host; the in-app implementation should state its own lapse rule (review N2).The changeset of #34001 marks this as BREAKING when the implementing change ships (ADR-0087 entry
in-app-pending-action-decided-by-person). The release that carries this card's routes must say in its changelog that the door enforces it.objectstack-fleet commentedon Nov 15, 2026
repo:cloud#1 · os-warren · session_01JQwxbYK6SZCmyzbGnrvmkk
Cloud triage first touch · 2026-11-15T22:48Z · a
repo:cloudcard carries a live state, notstatus:parked(cross-repo-coordination). Nowpm:queue,priority:p2kept. The cloud lane builds it inobjectstack-ai/cloudservice-aiagainst the merged contract (#33808, PR #33725), measuring the two routes first.objectstack-fleet commentedon Nov 15, 2026
repo:cloud#1 · os-warren · session_01JQwxbYK6SZCmyzbGnrvmkk
Claim: 2026-11-15T23:31Z · repo:cloud#1 · card thread opened by the coordinator · code in objectstack-ai/cloud, branch reported at first push
Container & model: M,
mode:thread, default tier, effort high. p2. Scope: the card's three rules plus the spec seat's owed items 1–3 (comment above), against the contract in the cloud pin (PR #33725); PR #34001 cited as text.Clause-②: yes
objectstack-fleet commentedon Nov 16, 2026
repo:cloud#1 · os-warren · session_01JQwxbW1kqbjrt8LMHvcr3M
os-dev-report
{ "issue": 33809, "status": "done", "branch": "claude/project-thread-dyd0kd", "pr": "https://github.com/objectstack-ai/cloud/pull/4607", "session": "session_01JQwxbW1kqbjrt8LMHvcr3M", "premise_still_valid": true, "summary": "Measured at cloud main 1ef3f85: the proposer-only rule already held (admin or another member: 404 thrown, row pending); the approve/reject routes accepted any credential (x-api-key, Bearer osk_, forward credential, action-forward mark all executed); approved actions ran as the proposer with confirm:true; proposePendingAction queued rows with no or synthetic proposer. Now: approve and reject admit a session cookie only and refuse 9 named paths 403 PERMISSION_DENIED (details.reason pending_action_session_required, details.credential) before the row is read, OAuth bearer included per the seat's widening; proposePendingAction throws UNAUTHENTICATED and writes nothing without a real proposer; docblocks state the three points, throw-not-failed and the lapse rule (no time lapse). Changeset service-ai minor with BREAKING FROM/TO, Clause-2 yes (narrowing), Metadata-protocol none. Pin unchanged; objectstack#34001 cited as text.", "tests": "head b9b7f15. New pending-action-decision-door.test.ts 29/29. service-ai full vitest exit 0: 152/152 files, 2208/2208. Updated route tests send a session cookie; tests that queued proposer-less rows now assert the refusal and store such a row directly. Ablations (ablation-replace, mutation proved on disk, restored blob == HEAD): A drop person check in getPendingAction -> 11 red (2 new + 9 ownership); B drop credential refusal in both routes -> 19/29 red; C drop proposer refusal -> 5 red. Tests import src relatively, no dist leg.", "gates": "head b9b7f15, exit captured before any pipe: service-ai typecheck exit 0; turbo run typecheck exit 0 (42/42); check:all --phase pre exit 0 (39/39); check:all --phase post exit 0 (5/5: route-envelope, worker-entry-typecheck, action-predicate-roots, lint, graph-snapshot); service-ai-studio test exit 0 (201/201 files); security-enterprise test exit 0 (93/93); apps/objectos ai-sys-user-scope + ai-ledger-owner + ai-conversation-data-api-access e2e exit 0 (24/24). NOT MEASURED: full turbo test tier (draft runs no CI; no ci:* labels per order). Record: pm-orders/cloud/seat1/gates-33809.txt.", "dogfood_battery": "n/a: cloud repo, no framework dogfood package; the narrowing arm is covered by the package suites above", "mcp_calls": "0", "api_writes": "2: relay pr_create objectstack-ai/cloud#4607 (7808 bytes sent = stored, assignee os-warren); this os-dev-report comment via post-stamped. git push is not a REST write.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: b · reach: maintainer (seat direct) · an administrator impersonating the person holds a session cookie as that person, and the AI route cannot tell it from the person's own, so the contract's 'only the person' is not fully enforced against impersonation · named in the PR as a known gap · carrier: objectstack (seat files the framework card from the draft handed in the seat thread)", "carrier: seat 1 · time-based lapse for an unanswered or orphaned in-app item: follow-up card draft handed in the seat thread · noted, not filed", "carrier: objectstack-ai/objectstack#33689 implementing card · once the runtime/MCP switch drops host-set confirm, the approved re-dispatch (action-tools approved handler, confirm: true) needs that card's channel · noted, not filed" ] }Generated by Claude Code
objectstack-fleet commentedon Nov 16, 2026
repo:cloud#1 · os-warren · session_01JQwxbYK6SZCmyzbGnrvmkk
LANDED · 2026-11-16T01:25Z · objectstack-ai/cloud PR #4607 merged as
de73dec5d(2026-11-16T01:24Z), ACCEPT 6903898715, contract records 6903750789 and 6903873960. Deciding an in-app AI pending action now takes the proposer's own browser session; every other credential is refused before the row is read.Follow-ups: #34184 (the AI route learns who is acting and by which credential), #34189 (skill and SDK docs), objectstack-ai/cloud#4608 (lapse, ruled A, next to build).
docs(adr): ADR-0011 and ADR-0151 record who confirms a declared-gated…
feat(spec)!: the AI-door confirmation rule binds every AI door, the i…