Skip to content

runtime: the confirmation-gated flow-start refusal of an AI service account carries no details.reason service_account, while every action door now does #34212

Closed

Description

@objectstack-fleet

domain:server#5 · zhuangjianguo · session_01QsR2jTEivi2wogPpeo3xd5

Found by area S3 while delivering #33690 (PR #34202, out-of-scope finding class b).

PR #34202 makes every action door's refusal of an AI service account carry details.reason: service_account (from ACTION_CONFIRMATION_REFUSAL_REASONS in spec). The gated flow-start refusal in packages/runtime/src/flow-start-admission.ts (confirmationGatedStartRefusal) does not carry it, so a client that branches on the reason cannot treat a flow start like an action.

Reach: not measured at a public door; this was found by reading the source only. The fix first measures whether the refusal reaches a door (REST or MCP flow start), then adds the reason and a parity pin.

Blocked-by: #34202

Prior rulings read: the #33690 ruling.

Dedupe: an open-issue search for confirmationGatedStartRefusal found only #33690.


Generated by Claude Code

Activity

  1. added
    finding
    pm:blocked
    domain:server
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: unlock → pm:queue · 2026-11-16T09:50Z

    ⛔ Not a claim.

    Its blocker, PR #34202, merged at 02:56Z. Back to the queue for the server seat.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY

    Ruling-ref: maintainer 14:43Z 「立一张专题卡,开始执行」 and 15:56Z 「domain 和优先级 不是已经定了吗?为什么现在不能改卡」 · regrade v3 under epic #35205

    Grade: p2 (was p3) · area:ux · UX · UX × not every user every time · 「runtime: the confirmation-gated flow-start refusal of an AI service account carries no details.reason servi…」; UX has no p3 (15:07Z 「和 cloud 对齐」)

  5. added
    priority:p2
    and removed on Nov 18, 2026
  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

    Claim: PM loop round 3 (area-lease ux-3 of repo:objectstack#5; the maintainer, verbatim, 2026-11-19T00:07Z: 「接手 area:ux」「优先 p1 p2」) · 2026-11-19T02:58Z
    Session: session_01Utp6CZiaBg6rk7dpy1s9Me
    Account: os-bill
    Branch: claude/issue-34212-flow-start-refusal-reason
    Worktree: objectstack-issue-34212 (os-dev worktree in the ux-3 container)
    Domain: domain:server
    Seat: repo:objectstack#5
    File surface: packages/runtime/src/flow-start-admission.ts (confirmationGatedStartRefusal), a new test file named for this card under packages/runtime/src/ (and, only if the measured door needs a parity pin there, a new test file in that door's package), changeset. ⛔ packages/spec/**. Stop on breach and report.
    Container & model: S, mode:subagent, model: default — no path-derived mandate, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform — packages/runtime/src/flow-start-admission.ts confirmationGatedStartRefusal builds details without reason (objectstack); every action door already carries details.reason: service_account since PR #34202; a client that branches on the reason when an AI service account starts a confirmation-gated flow.
    Thread-read: 6984752764
    Premise: holds — on main confirmationGatedStartRefusal (~:279) builds ActionConfirmationRequiredDetails with actionName, objectName, confirmationMember and no reason. Seat read: reason is already an optional member of the published ActionConfirmationRequiredDetails (spec CHANGELOG, @objectstack/spec/contracts), so filling it widens no accept set or public type; the dev measures which door the refusal reaches, as the card asks.
    Serial constraints cleared: none — no open PR touches flow-start-admission.ts at claim time.
    Pre-claim lane: server — packages/runtime/src/** (domain:server).
    Pre-claim deps: Blocked-by: #34202 → merged 2026-11-16T02:56Z.
    Prior rulings read: the #33690 ruling (named by the card); PR #34202 (every action door's refusal carries details.reason from ACTION_CONFIRMATION_REFUSAL_REASONS); action-confirmation-contract.pin.test.ts (the reasons list).
    Lease: lease:ux-3

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  8. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
    os-dev-report

    {
     "issue": 34212,
     "status": "done",
     "branch": "claude/issue-34212-flow-start-refusal-reason",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/35305",
     "head": "e2b465ed4e3ad8ec4d1a2d43e577dc2060476ebd",
     "session": "session_01Utp6CZiaBg6rk7dpy1s9Me",
     "premise_still_valid": true,
     "summary": "confirmationGatedStartRefusal (packages/runtime/src/flow-start-admission.ts) now puts reason: 'service_account' in the 428 ACTION_CONFIRMATION_REQUIRED refusal's details, the reason every action door gives an AI service account. The value is typed by the imported ActionConfirmationRequiredDetails (reason?: ActionConfirmationRefusalReason, the closed set ACTION_CONFIRMATION_REFUSAL_REASONS), so no spec change. Door reading (measured): the refusal reaches the two REST trigger routes POST /api/v1/automation/:name/trigger and POST /api/v1/automation/trigger/:name (respondToFlowTrigger, the only caller stating actionDeclarations); on the real HttpDispatcher both answered details.reason undefined before the fix. MCP has no flow-start-by-name tool: MCP run_action goes through the action door, whose own gate already carried the reason; the declared-endpoint door states no declarations. Pins: per route code+status+details.reason and nothing ran; per-route parity that the action door and the trigger route give the same status, code and full details (reason included) to the same account; object-less refusal; membership in the imported closed set.",
     "tests": "Red leg at e9498dd304 (test before fix): `pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/flow-start-confirmation-gated-target.test.ts` -> Tests 5 failed | 50 passed (55), 'expected undefined to be service_account', VERDICT command-exit 1. Green at e2b465ed4e: Tests 55 passed (55), VERDICT command-exit 0. Full package at e2b465ed4e: `vitest run --project local --maxWorkers=2` -> Test Files 624 passed (624), Tests 11567 passed | 25 skipped (11592), VERDICT command-exit 0. `pnpm --filter @objectstack/runtime typecheck` exit 0. Reverse verification (scripts/ablation-replace.mjs, anchor x1->x0, blob 2c66b47c->3bfe8a8f): reason 'service_acount' -> tsc TS2820 not assignable to the five-member union; restored blob == HEAD, git diff HEAD empty. No separate behaviour ablation: the committed red leg is that reading, and the test imports flow-start-admission from src (no dist path).",
     "gates": "Closure build `pnpm --workspace-concurrency=2 --filter '@objectstack/runtime^...' build` VERDICT command-exit 0. Derived `dispatch-gates.mjs --commands` (65 families, tree e2b465ed4e): 64 exit 0; `pnpm check:dual-build-cjs-loads` exit 3 PREREQUISITE NOT MET (reads whole-workspace dist) = NOT MEASURED: dual-build-cjs-loads, reason: whole-workspace build not run locally, CI Lint & Repo Gates runs it. `--ran` with exit codes: 65 derived, 64 run, 1 NOT-MEASURED (derived from exit 3), 0 UNRUN; runtime typecheck recorded outside derivation. overlap-check: VERDICT clean exit 0 (origin/main 068a0f9051, 0 PR heads). check-platform-checklist not owed (no export renamed or removed). PR check-runs: in_progress at report time, not awaited.",
     "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
     "line_budget": "69 changed lines (+67/-2) over 3 files; skills/** untouched",
     "files_changed": [
      ".changeset/34212-flow-start-refusal-reason.md",
      "packages/runtime/src/flow-start-admission.ts",
      "packages/runtime/src/flow-start-confirmation-gated-target.test.ts"
     ],
     "assumptions": {
      "A1": "holds — packages/spec/src/contracts/ai-service.ts:438 declares reason?: ActionConfirmationRefusalReason on ActionConfirmationRequiredDetails; no spec change, Clause-② no.",
      "A2": "done — red leg committed first (e9498dd304, 5 failed), then fix (e2b465ed4e, 55 passed)."
     },
     "deviations": [
      "File surface: the pins went into the existing rule 2b harness packages/runtime/src/flow-start-confirmation-gated-target.test.ts as a new top-level describe, not a new card-named test file as the claim lists. AGENTS.md (ruling record 6583487846) puts a new pin for a component with a shared harness into that file; the parity pin needs that harness's action door and trigger routes on one setup. Binding text over claim text; named here, not chosen silently.",
      "'Imported, not a string literal': the spec exports no per-member constant for service_account and packages/spec/** is fenced. Used the action door's own form (a literal typed by the imported details type, held to the closed set by tsc — reverse verification TS2820) and imported ACTION_CONFIRMATION_REFUSAL_REASONS in the test for a membership pin."
     ],
     "mcp_calls": "0",
     "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/35305/assignees, one stroke, run 44452722183); post-stamped os-dev-report comment on issue 34212. git push is not a REST write.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": []
    }
  9. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

    Close-out 2026-11-19T04:30Z: PR #35305 MERGED as a998964db2; Fixes closed this card. Delivered: the 428 ACTION_CONFIRMATION_REQUIRED refusal of an AI service account starting a confirmation-gated flow carries details.reason: 'service_account', the same details the action door gives (parity pinned). Reach measured: both REST trigger routes (POST /api/v1/automation/:name/trigger, POST /api/v1/automation/trigger/:name); MCP has no start-by-name tool. pm:dispatched off.

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

Metadata

Metadata

Assignees

Labels

area:uxdomain:serverfindingpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions