Repository navigation
Labels
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:skillsDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3
Description
qa#1 · os-justin · session_01QSeKYpxQpmErd1ixfkgbYh
Filing gate: the maintainer's word in the verification seat's session on 2026-11-18. Asked about three product questions from round 2, analysed against the code and prior rulings, the maintainer answered, verbatim: 「三个问题 同意」. This card executes the second answer: the confirmation gate is not widened to update_record; authors are taught to lock the field.
Why
- What happened: on scenario card
service_desk(qa#1round 2, round record on [PM seat] qa — 🟢 os-justin · verification seat (qa#1 + eval#1, #34632 D6) #31433), the close action is declaredai.requiresConfirmation: true. It answered428 ACTION_CONFIRMATION_REQUIRED, and the agent then setstatus=closedwith the raw MCPupdate_recordtool. The update was accepted. - The gate is meant that way. It reads only the action's declaration (
packages/runtime/src/action-execution.ts, the comment near the gate: the other doors sit "OUTSIDE this gate … Widening that set is its own decision"; and "The gate makes forgetting loud. It does not prove a human."). Its scope is the action call (packages/spec/src/contracts/ai-service.ts). Widening it todelete_recordwas its own ruling (MCP delete_record refuses a call without confirm: true (ACTION_CONFIRMATION_REQUIRED), the run_action confirmation gate widened to deletes #30813); widening it toupdate_recordis declined by the answer above. - The trap is in the authoring. An author who writes
requiresConfirmationeasily believes the AI cannot make the transition, while the same state stays one raw write away (AGENTS.md PD10: keep the claim as narrow as the enforcement).
Scope
- Verify first, before writing any text. Check whether an action body's own write to a field declared
readonly: true(orreadonlyWhen) is kept or stripped, i.e. whether a script action can still make the transition once the field is locked against direct writes. The analysis could not verify this. If it is stripped, the taught pattern is a permission set that withholdsedit, plus astate_machinevalidation rule, instead ofreadonly. - Skills: teach that an irreversible transition is a gated action plus a field lock on the state it changes. The lock is one of:
readonly,readonlyWhen, astate_machinevalidation rule (ADR-0020), or a permission set withoutedit. State plainly thatrequiresConfirmationguards the action door only. Files:skills/objectstack-ai/**andskills/objectstack-automation/references/state-machines-and-approvals.md. - Two items noted for other lanes, not this card's surface:
- the 428 refusal text adds "do not complete the same change with another tool" (MCP action doors: the no-confirmation-service refusal should tell an elicitation-less stdio client to use a client that supports confirmation #34325, noted there);
- the scenario build prompt asks for the field lock (Scenario scorer and card defects from qa#1 round 2: clear declines graded as not declining, a confirmed write graded fail where it cannot be measured, and two leave_balances asks that are ambiguous #34887, noted there).
Found by: qa#1 routine round 2, scenario half (round record on #31433), service_desk close_ticket.
Metadata
Metadata
Assignees
Labels
area:aiAI-native — agent / tool / skill metadata, and the MCP surface an agent drivesdomain:skillsDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch (R1208, 01:5xZ): p2 · domain:skills →
pm:queue.Theme: MCP (skills that teach authoring) and security. An AI-confirmation-gated action does not guard the field it changes, so an agent building an irreversible transition from the skill leaves the field writable around the gate. Teach "gated action + a field lock". No customer is named, so p2. It is a governed
skills/**change.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CazXu8zyYD5PC6J2u7
Claim: PM loop round 1 · area ai-1 (
lease:ai-1; the maintainer, verbatim, 2026-11-19 project chat: 「再开一个 ai 区」「暂时都只派 p1 p2 的卡」「顺带做的 p3 可以」) · 2026-11-19T03:21ZSession:
session_01Utp6CazXu8zyYD5PC6J2u7Account:
os-billBranch:
claude/issue-35068-gated-action-field-lock(one PR for #35068 and the same-file p3 riders #35041 and #34237: all editskills/objectstack-ai/SKILL.mdand its ratchet row)Worktree:
objectstack-issue-35068Domain:
domain:skillsSeat:
repo:objectstack#5File surface:
skills/objectstack-ai/**,skills/objectstack-automation/references/state-machines-and-approvals.md,content/docs/ai/tools.mdx(#35041's scope addition 6964629901, the :193 ladder line only), generated outputs,scripts/check-skills-token-ratchet.mjs(row notes only under letter B), root.changeset/. Stop on breach and report.Container & model:
M,mode:subagent,model: default — skills/** governed: seat contract review and landing,effort: highClause-②: no (text-only served skill text; Scope 1 is a measurement, not a code change)
Metadata-protocol: none
Responsibility: an author who sets
ai.requiresConfirmationbelieves the AI cannot make the transition, while the state stays one rawupdate_recordaway; every agent building an irreversible transition from the ai or automation skillThread-read: 6966537813
Premise: holds — on
origin/mainc809deb67:skills/objectstack-ai/SKILL.mdteachesai.requiresConfirmation(:154, :212, :334) with no field lock;state-machines-and-approvals.mdnames no gate-plus-lock pattern; the maintainer's answer 「三个问题 同意」 (card body) declines widening the gate toupdate_recordSerial constraints cleared: open draft #35002 (seat 4, #34637,
lease:o4-C) editsskills/objectstack-ai/SKILL.mdandstate-machines-and-approvals.md— overlap-check before each push queues this PR behind it on a real conflictPre-claim lane:
domain:skills(skills/objectstack-ai/**,skills/objectstack-automation/**, governed)Pre-claim deps: none (the gate's scope is merged: PR #34318 d6b1c2e; #30813 ruling)
Prior rulings read: skills,ai-confirmation-gated,action,guard,field,changes,teach,gated,lock,irreversible,transition → 247 hits; ADR-0020 D4, ADR-0061 D2, ADR-0099 D2, ADR-0027 Decision §12, ADR-0027 Decision §14, ADR-0032 Decision §4, ADR-0054 Decision §3, ADR-0055 Decision §4, ADR-0057 D9; thread: none; repo: objectstack-ai/objectstack
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CazXu8zyYD5PC6J2u7
os-dev-report
{ "issue": 35068, "status": "done", "branch": "claude/issue-35068-gated-action-field-lock", "pr": "https://github.com/objectstack-ai/objectstack/pull/35310", "head": "761128865", "session": "session_01Utp6CazXu8zyYD5PC6J2u7", "premise_still_valid": true, "summary": "Scope 1 was measured before any text was written: a script action body's write to a static readonly field is KEPT (the body runs isSystem; the static strip is gated on !isSystem), and its write to a readonlyWhen-locked field is STRIPPED (isSystem is no exemption there). No code was changed. objectstack-ai SKILL.md Common Pitfalls item 2 now teaches gated script action + readonly:true or field permissions without editable; it says that a declarative operation:'update' action and a runAs:'user' flow write as the caller, and that readonlyWhen and state_machine bind the body too, so neither is the door. state-machines-and-approvals.md carries a one-line pointer to it. For riders #35041 and #34237: the ladder names its fourth source MCP_FILE_TOOL_NAMES (also at tools.mdx:193), and the MCP prompts paragraph names mcpPrompt with the stdio exception. Draft PR #35310 Fixes all three cards.", "scope1_measurement": { "action_body_static_readonly": "KEPT — packages/runtime/src/action-execution.ts:3901 buildActionExecutionContext = {...ec, isSystem:true}; packages/objectql/src/engine-update.ts:1411 staticReadonlyStripRuns = !opCtx.context?.isSystem, strip at :1494", "action_body_readonlyWhen": "STRIPPED — packages/objectql/src/engine-update.ts:1476 runs for every caller; comment :1460-1467 'isSystem is still NOT an exemption here'", "field_permission_without_editable": "action body bypasses (packages/plugins/plugin-security/src/security-plugin-authz-middleware.ts:695); non-system write refused 403 (:1662)", "declarative_operation_update": "writes as the caller (packages/runtime/src/action-execution.ts:4883 callData(..., ec)), so readonly/FLS stop it", "state_machine": "binds every writer incl. isSystem; skipped only on seedReplay/skipStateMachine (packages/objectql/src/engine-top-level.ts:4274-4275)", "tests": "existing pins run: engine-readonly-update-strip-system-gate.test.ts, engine-readonly-when-derived-writes.test.ts (LOCK 2), engine-repo-execute-elevation.test.ts — Test Files 3 passed (3), Tests 25 passed (25), os-verify-lock VERDICT command-exit 0; same table already in packages/lint/src/validate-readonly-action-writes.ts header. No throwaway probe, no committed code." }, "assumption_readings": { "A1": "holds — SKILL.md:154, :212, :334 teach ai.requiresConfirmation, no field lock (origin/main 3fb7025c2)", "A2": "holds — state-machines-and-approvals.md names no gate-plus-lock pattern; only approvalStatusField '(should be readonly)' at :354", "A3": "holds — SKILL.md:70 'union of three sources', :85 'none of the three'; tools.mdx:193 'three sources'", "A4": "holds — SKILL.md:402-403 'the plugin's own stdio transport lists every skill'; mcpPrompt at packages/spec/src/ai/skill.zod.ts:233, :352 (declaration :456)" }, "done_when": { "35068": "met — Scope 1 measured with file:line + tests; Scope 2 taught once in objectstack-ai Common Pitfalls item 2 (lock options the measurement supports: readonly:true, field permission without editable; readonlyWhen/state_machine named as binding the body too), requiresConfirmation stated as guarding the action door only (pitfall 1 + 2); automation reference points to it, no restatement", "35041": "met — ladder names four sources, item 4 MCP_FILE_TOOL_NAMES from the pinned export, resolved only for mcpPrompt !== false; tools.mdx:193 sentence says the same", "34237": "met — MCP prompts paragraph names mcpPrompt (optional; false = in-product only, never offered over MCP; absent/true = binding rule); stdio sentence states the exception. Mirrors: check:skill-refs and check:skill-docs exit 0 (no generated mirror carries this paragraph)" }, "files_changed": [ ".changeset/35068-gated-action-field-lock.md", "content/docs/ai/tools.mdx", "skills/objectstack-ai/SKILL.md", "skills/objectstack-automation/references/state-machines-and-approvals.md" ], "line_budget": "skills/objectstack-ai/SKILL.md 443 -> 462 lines, 6365 -> 6680 tokens (ceiling 6801, unchanged); state-machines-and-approvals.md 392 -> 392 lines, 23744 -> 23743 bytes, 5936 -> 5936 tokens (ceiling 5936, unchanged); all skills/*/SKILL.md 4835 -> 4854 lines; bundle total 270968 -> 271283 tokens. Paid down first in the same files: SKILL.md cut 'Default for metadata apps' paragraph (restated the blueprint table) and ladder item 1's ADR-0109 sentence (restated Tool metadata); state-machines cut the [] dead-end sentence (restated the code comment), ', one per field', and 'Do not carry the record.x habit...'. No raise.", "ratchet_rows": "before: objectstack-ai/SKILL.md 6801, state-machines-and-approvals.md 5936; after: same (no row edit, scripts/check-skills-token-ratchet.mjs untouched)", "tests": "Text-only; no test committed. Scope 1 pins: pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 (3 files) -> Test Files 3 passed (3), Tests 25 passed (25), VERDICT command-exit 0, after pnpm --filter '@objectstack/objectql^...' build (VERDICT command-exit 0). Ablation: n/a (no tested behaviour changed). Readings at head 761128865.", "gates": "local subset at head 761128865: dispatch-gates --commands --repo objectstack-ai/objectstack derived 74 families vs merge base 3fb7025c2; 73 exit 0 (incl. check:skills-token-ratchet, check:skill-links, check:skill-refs, check:skill-docs, check:skill-served-sections, check:skill-examples, check:doc-authoring, check:nul-bytes, check:pm-skill-id-lint, check:skill-identifier-liveness, spec check:docs, check:docs-spec-enumerations); check:skill-examples and check:lean-entry-closure first exit 3 (PREREQUISITE NOT MET), exit 0 after building client-react closure + objectql; check:dual-build-cjs-loads exit 3 PREREQUISITE NOT MET -> NOT MEASURED, reason: needs every package dist, CI runs it. --ran reconciliation: '74 derived famil(ies) accounted for — 73 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)'. overlap-check --branch=HEAD: VERDICT clean exit 0 (origin/main, #35129, #35002 merge cleanly). CI check-runs on 761128865 at report time: Check Changeset, Governed Surface Queue Guard, Lint (8 jobs), Type Check (4 jobs), PR-body guards, Spec property liveness, Check Documentation Links, Check PR Size — in_progress; opt-in/queue jobs skipped.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 relay strokes — (1) fleet-write repository_dispatch fw-20261119T034912Z-f6b910 -> POST /repos/objectstack-ai/objectstack/pulls (draft #35310) + POST /repos/objectstack-ai/objectstack/issues/35310/assignees [os-bill]; read-back identical 8894 bytes, labels none; (2) post-stamped os-dev-report comment POST /repos/objectstack-ai/objectstack/issues/35068/comments. git push x1 (not REST).", "deviations": "Commit trailer: the model-free pair (Claude-Session + Co-authored-by: Claude) per AGENTS.md and the dispatch, not the harness reminder's model-named Co-Authored-By. #35002 no longer touches skills/objectstack-ai/SKILL.md (its files: changeset, automation eval, state-machines-and-approvals.md); its hunks are disjoint from mine. No labels sent (none named; a changeset is present). The out_of_scope note (readonlyWhen target-state spelling) is in this report only: the PR body was written once at pr_create and dev does not PATCH it; the area may fold it into Acceptance notes.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — readonlyWhen's `record` binding is the merged stored view (rule-validator.ts:1143-1147), so a lock spelled on the target state (record.status == 'closed') would also strip the transition into it; the teaching avoids that spelling and names state_machine for finality instead. Read-only inference, not reproduced: Acceptance-notes class, not filed." ] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ
ACCEPT → PR #35310 comment 6999918137 (head
af46d3bb112023906010034d8e84222f09274f6c, L2 delta PASS 6999886462). Tier H: awaiting a maintainer merge or approval (reviewers os-zhuang, hotlong). 2026-11-19T04:43Zobjectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ
Close-out 2026-11-19T05:41Z: PR #35310 MERGED as
475ae46e5b;Fixesclosed this card. Delivered: the AI skill teaches that a gated action guards its door only and that an irreversible transition locks the field it changes (L2 delta PASS 6999886462, seat record 6999918137).pm:dispatchedoff.