Skip to content

feat(spec, runtime, lint): an action body refuses in the caller's language through a declared refusal catalogue - #34719

Merged
os-zhuang merged 17 commits into
mainfrom
claude/project-thread-wk8dv2
Nov 17, 2026
Merged

os-zhuang merged 17 commits into
mainfrom
claude/project-thread-wk8dv2

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #34273

Clause-②: yes (widening) — an action may now declare refusals (ActionRefusalSchema); translation bundles accept objects.<object>._actions.<action>.refusals.<CODE>.message and globalActions.<action>.refusals.<CODE>.message (with ….reasons.<REASON>.message); @objectstack/spec exports ActionRefusalSchema and the ActionRefusal type (ui), actionRefusalMessageKey (system), and ACTION_REFUSAL_MESSAGE_HOLE_REFUSED, actionRefusalsWithoutSandboxedBody, undeclaredActionRefusalCodeAtSave, undeclaredActionRefusalReasonAtSave, undeclaredActionRefusalAtRun and undeclaredActionRefusalReasonAtRun (data); @objectstack/runtime adds no export: the action body runner answers through resolveActionRefusal internally. Nothing that was accepted before is refused
Metadata-protocol: added
Skills-docs: follow-up #34824 — skills/objectstack-i18n/SKILL.md lists the hook refusal key only and skills/objectstack-ui/rules/actions.md teaches no action refusals; content/docs/ui/actions.mdx and content/docs/ui/translations.mdx gain the section and the key row here

维护者速读

What changes

  • Spec — ActionSchema.refusals (packages/spec/src/ui/action.zod.ts): the hook catalogue's twin, keyed by SCREAMING_SNAKE code: { message, status?, reasons?, params? }. Save-time checks: a catalogue on an action that runs no js body of its own (another type, an expression body, no body) is refused at refusals; a code, or a reason under a code that declares reasons, that the body throws literally and the catalogue does not declare is refused at body.source (comments and strings masked, a computed code left to the run). ActionRefusalSchema is exported beside the action schema.
  • Spec — one declared-entry factory (packages/spec/src/data/declared-entry.zod.ts, new, not on a barrel): declaredRefusalEntrySchema(subject) builds HookRefusalSchema and ActionRefusalSchema; declaredTextEntrySchema(subject) builds HookTextSchema (hooks and actions: a sentence a hook or action writes into a record is picked in the organization's language, as a declared hook refusal is (sibling of #34062, ruling B parameter 7) #34374 PR1). One core (message, params, the plain-text / closed-scope hole rule, the duplicate-param check); the words per subject are table rows. Every hook sentence is byte-identical to before, so the published hook JSON Schemas and reference pages do not move. The action half of hooks and actions: a sentence a hook or action writes into a record is picked in the organization's language, as a declared hook refusal is (sibling of #34062, ruling B parameter 7) #34374 adds its texts row to the text table.
  • Spec — sentences and keys (hook-refusal-codes.ts, i18n-resolver.ts, translation.zod.ts): the save-time and run-time refusal sentences are one subject-parameterised core with the hook exports unchanged and action twins added; actionRefusalMessageKey(objectName, action, code, reason?); the action translation node accepts refusals (alias refusal), one factory shared with hooks.<hook>.refusals.
  • Runtime — resolveActionRefusal (hook-refusal-catalogue.ts, body-runner.ts, app-plugin.ts, app-artifact-handlers.ts): the action body runner hands every body throw to it; one answer for a hook's and an action's catalogue (resolveSandboxedRefusal): a declared code is answered with the entry's sentence in the caller's executionContext.locale (negotiated as a hook's is), its holes filled through the same template renderer, its status and the code on the wire; any other deliberate throw is a fault naming the action and the code. The action's own object is read by the one owner-key ladder (standaloneActionOwnerKey / isObjectLessActionKey, @objectstack/objectql), so a bound action never reads globalActions and an object-less one never reads an object's group. Both default action-runner bindings now pass the i18n reader.
  • Lint: objectstack validate refuses an action refusal translation over a code or reason the action does not declare (checkActionRefusals, nearest code offered); os i18n extract scaffolds the keys (pushActionRefusals); the compile half of a sentence with params judges action catalogues too (actionRefusalTemplateIssues, on the collections the action copy pass reads) — logic, an unknown formatter, an empty hole and currency with no code are errors at validate, compile and the publish gate's action write.
  • Docs: ui/actions.mdx (new subsection under Path A), ui/translations.mdx (key row).
  • Generated: dropped-refinements baseline (ui/ActionRefusal and the ….refusals.valueType sites; header recomputed 270 / 1135), liveness row action.refusals (drilled to its four keys) and the hook.refusals.params producer re-anchored at the factory, a strictness-ledger row for declared-entry.zod.ts, and the check:generated --fix outputs (api-surface, export-origins, declaration-map, reference docs, liveness counts, ledger counts, and the two generator-owned skills/*/references/_index.md lines).

Tests

  • packages/runtime/src/sandbox/action-refusal-catalogue.test.ts (new, 16): the real actionBodyRunnerFactory + QuickJSScriptRunner, read off mapDataError and the real /actions door (HttpDispatcher.handleActions): declared message/status/code with the body's own text withheld; 400 default and the body's status not read; zh-CN at the bound key; zh negotiated to zh-CN; an object-less action at globalActions; CONTROL fallbacks (no translation, no locale, no service); reason + params filled, reason translation filled after; undeclared reason / code / no code → 500 fault naming the action; CONTROL: no refusals answered as before, a crash stays a crash, a host error passes through; the door answers 409 with the translated userMessage (CONTROL: no catalogue keeps the body's 400 and no userMessage).
  • packages/spec/src/ui/action-refusals.test.ts (new, 29): acceptance, code pattern, empty message, 5xx refused, refused on no body / expression body / url / flow, omitted type accepted, httpStatus rename; literal undeclared code and reason at body.source with CONTROLs (declared, computed, no catalogue); reasons/params hole rules in the action's words; the hook and action entries accept and refuse the same documents; each subject keeps its own sentences; the text entry has no status/reasons; run-time sentences; both translation addresses, bundle acceptance and the refusal rename.
  • Lint: validate-hook-refusal-templates.test.ts (+12: CONTROLs, three refusals, currency in the action's words, reasons at their own path, one judgement for an action met twice, the stack pass, the publish gate's action write with CONTROL); validate-translation-references.test.ts (+4: CONTROL, undeclared code with suggestion, a key on an action with no refusals, undeclared reason and a reason under a code with none); i18n-walk.test.ts (+3: bound key, reason key, globalActions key).
  • Forced test changes: packages/spec/src/type-alias-convention.pin.test.ts pins ActionRefusalSchema as an isomorphic alias (857 → 858, with its history line); packages/spec/src/system/metadata-form-zod-reconciliation.test.ts (a root omit row for action.refusals — the Studio form row is a follow-up, as hook.texts's was); packages/metadata-protocol/src/protocol.meta-types-degenerate-derivation.test.ts (action serves 54 top-level properties, was 53; the sample names refusals); packages/lint/src/validate-translation-references.test.ts (the action-translation coverage table gains a refusals row and the real-instance leg a declared catalogue); packages/lint/src/authored-site-expression.test.ts (the new walk pass actionRefusalTemplateIssues classified). No other existing test was changed.

Acceptance notes

Verification

Every heavy run went under os-verify-lock.

  • @objectstack/spec: 940 files, 28752 passed (the one red case on the first run was the reconciliation row added in this PR, green on its rerun with the pin test, 79/79). check:generated 14/14 (check:test-typecheck needs NODE_OPTIONS=--max-old-space-size=8192 on this box; the default heap OOMs in tsc, nothing measured).
  • @objectstack/lint: 214 files, 9126 passed after the walk classification; tsc --noEmit exit 0.
  • @objectstack/runtime sandbox + app-artifact-handlers: 53 files, 665 passed; tsc --noEmit exit 0. @objectstack/metadata-protocol derivation test 18/18.
  • Ablation (scripts/ablation-replace.mjs, restored, blob == HEAD, git diff HEAD empty): the action runner's resolveActionRefusal(…) replaced by the raw throw ⇒ 12 of 16 runtime cases red; the 4 that stay green are the pass-through CONTROLs (no catalogue, a crash, a host error) and the door CONTROL.
  • The spec test caught one wording slip during the work ("A action refusal"), fixed with a per-subject article; the hook sentences are unchanged.
  • Gates: dispatch-gates --commands derived 128 families; all ran at the merge of main (116 exit 0; 12 exit 3/1 on the first pass: a stale spec dist, an unbuilt workspace, a shallow clone, and two findings fixed in the head commit — packages/spec/llms.txt counts the new module, and the new runtime test pays the @objectstack/metadata load at collection). After a full turbo run build (119/119) and the fixes, the 12 reran exit 0. The per-command ledger at head is on the card's os-dev report.

Taken over by repo:objectstack#3 area o3-J (claim 6948521290 on #34273, seat 2 hand-off 6948316290); L1 delta ACCEPT 6948575381 at 0169fc10.


🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzfr1xZSFZzCR8HnqXX

…e's twin

ActionSchema.refusals keys by code the entry a hook's catalogue holds
(one factory builds both), refuses a catalogue on an action that runs no
js body, and refuses at save a code or reason the body throws literally
that the catalogue does not declare. Translations sit beside the action's
other copy: objects.OBJECT._actions.ACTION.refusals.CODE.message, or
globalActions.ACTION.refusals.CODE.message for an object-less action.

Claude-Session: https://claude.ai/code/session_01ADHkmP879Ku8wbNev27oyN
Co-authored-by: Claude <noreply@anthropic.com>
…ide the hook texts (#34545)

The declared-entry factory now builds both kinds of declared sentence: a
refusal entry (hook, action) and a text entry (hook), so HookTextSchema is
made by it too and the action half of #34374 adds one row.

Claude-Session: https://claude.ai/code/session_01ADHkmP879Ku8wbNev27oyN
…tests, liveness, docs

objectstack validate refuses an action refusal translation over a code or
reason the action does not declare; the shared declared-entry factory says
"An action" where the subject is an action; tests on the real action body
runner, the /actions door, the lint passes and the walk; the
action.refusals liveness row; the actions and translations docs; the
changeset.

Claude-Session: https://claude.ai/code/session_01ADHkmP879Ku8wbNev27oyN
Co-authored-by: Claude <noreply@anthropic.com>
… the forced pins for action.refusals

check:generated --fix outputs (api-surface, export-origins,
declaration-map, reference docs, liveness counts, strictness-ledger
counts and the generator-owned skills reference index lines); a
strictness-ledger row for declared-entry.zod.ts; the hook.refusals.params
producer re-anchored at the shared factory; ActionRefusalSchema pinned as
an isomorphic alias (858); the form-reconciliation omit row for
action.refusals; the action top-level property count 53 -> 54.

Claude-Session: https://claude.ai/code/session_01ADHkmP879Ku8wbNev27oyN
Co-authored-by: Claude <noreply@anthropic.com>
…tion refusal test pays the metadata load at collection

Claude-Session: https://claude.ai/code/session_01ADHkmP879Ku8wbNev27oyN
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation protocol:data protocol:system protocol:ui tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/lint, @objectstack/runtime, @objectstack/spec, touching 91 documentable anchor(s). ⚠️ 14 changed file(s) yielded no anchor (packages/spec/api-surface/data.json, packages/spec/api-surface/system.json, packages/spec/api-surface/ui.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/automation/hook-bodies.mdx (via body.source (literal, a string literal in undeclaredActionRefusalCodeAtSave; a string literal in undeclaredActionRefusalReasonAtSave))
  • content/docs/deployment/troubleshooting.mdx (via ActionSchema (symbol, a top-level const))
  • content/docs/frontend/architecture-overview.mdx (via ActionSchema (symbol, a top-level const))
  • content/docs/frontend/troubleshooting.mdx (via ActionSchema (symbol, a top-level const))
  • content/docs/protocol/objectui/actions.mdx (via ActionRefusal (symbol, a top-level type), ActionSchema (symbol, a top-level const))

⛔ 7 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-1.mdx (via ActionSchema (symbol, a top-level const))
  • content/docs/releases/v17/17-3.mdx (via ActionSchema (symbol, a top-level const))
  • content/docs/releases/v17/17-7.mdx (via bindAppArtifactHandlers (symbol, a top-level function))
  • content/docs/releases/v17/index.mdx (via ActionSchema (symbol, a top-level const))
  • content/docs/releases/v18/18-2.mdx (via ActionSchema (symbol, a top-level const))
  • content/docs/releases/v18/18-3.mdx (via ActionSchema (symbol, a top-level const))
  • content/docs/releases/v18/18-4.mdx (via ActionSchema (symbol, a top-level const))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 14 changed file(s) yielded no anchor (packages/spec/api-surface/data.json, packages/spec/api-surface/system.json, packages/spec/api-surface/ui.json, …) — pages documenting those are invisible to this run
  • 1 anchor(s) matched too much of the corpus to be a work list: objectName (symbol, 59 pages)
  • 13 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 178 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json c81f498b5f0614157864d9586da718dbe02121b1 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 5df69e7da67a7f7cd5c2921868c15f1880a7b93a — the merge of head 5a05e4f2f4d6f82ef610591d393c3ca509d1935c into base c81f498b5f0614157864d9586da718dbe02121b1, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 5df69e7da67a7f7cd5c2921868c15f1880a7b93a && git checkout 5df69e7da67a7f7cd5c2921868c15f1880a7b93a
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin c81f498b5f0614157864d9586da718dbe02121b1 5a05e4f2f4d6f82ef610591d393c3ca509d1935c && git checkout -B drift-repro c81f498b5f0614157864d9586da718dbe02121b1 && git merge --no-ff 5a05e4f2f4d6f82ef610591d393c3ca509d1935c

node scripts/docs-audit/affected-docs.mjs --json c81f498b5f0614157864d9586da718dbe02121b1

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs c81f498b5f0614157864d9586da718dbe02121b1 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmP879Ku8wbNev27oyN

Test Core (3/8) red on 2a25dade9108013cd07d1c2a6428e1acae5762ef: @objectstack/mcp#test exited 1; not reproduced here, a rerun of the failed job is asked. Read at 2026-11-17T09:47Z.

  • The failing case is NOT MEASURED: the shard's mcp output precedes the last 5000 log lines that the read tool returns, and the signed log/artifact URLs are refused by this container's proxy (403). The rest of the shard is green (77/78 tasks; runtime 612 files, 11354 passed).
  • Local reproduction at the same head, under os-verify-lock: pnpm --filter @objectstack/mcp test alone, 66 files / 1226 passed; turbo run test --filter=@objectstack/mcp --filter=@objectstack/runtime --concurrency=4 --force (the two packages side by side as in the shard), mcp 1226 passed and runtime 11354 passed / 19 skipped, exit 0.
  • This PR does not touch packages/mcp, and none of the 7 main commits since the merge base does; ci.yml on main is green on its last five pushes.
  • The three reds on the earlier head 2b11c5b9 (TypeScript Type Check, Lint & Repo Gates, Test UI) were cancelled lanes, superseded by the push of 2a25dade91.

Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRXuRn93HphKp7kXEz

Re-run reading (area o2-D) — run 44050539596 @ 2a25dade9

Read the job log of Test Core (3/8) (job 133928381234). The one failure:

  • packages/mcp/src/mcp-file-tools.test.ts:950 — read_file extracts PDF and Word text on a worker pool, off the request thread > out of CPU budget on the worker: the pages read so far, truncated, with the budget note, as in-process — received content: "none" instead of "text" (truncated). 1 failed | 65 files passed in @objectstack/mcp.

Judgement: flake. It is the same case, same line and same received value that failed on PR #34545 (run 44001704215, job 133767960037) and passed on its re-run: it races a CPU budget on a worker thread, so whether any page finishes before the budget runs out depends on runner load. This PR touches no file under packages/mcp/; the card thread's local runs pass 1226/1226. Re-running the failed jobs once via scripts/pm/rerun-failed.mjs; a second failure is treated as real.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmRXuRn93HphKp7kXEz

Final head for review: ff1ba6635716487e6d8b5a54f4834c9dce7bbc4a (card #34273, branch claude/project-thread-wk8dv2), after a merge of main at 6dd571632 whose only text conflict was the generated packages/spec/liveness/state-counts/action.md (regenerated with gen:liveness-counts in its own commit; no other change). CI on this head, latest run per check (after the body-only footer edit): 70 green (59 success, 11 skipped; Auto Label and Check PR Size skip on an edit event and were green on the push), 0 failed; mergeable state clean. Derived gates 131/131 exit 0 (--ran: 0 NOT-MEASURED, 0 UNRUN). check-governed-merges.mjs --pr 34719: GOVERNED, 2 of 51 paths (the generated skills/objectstack-data/references/_index.md and skills/objectstack-ui/references/_index.md); +2037 / -316. Declarations: Clause-②: yes (widening) (an action may declare refusals; new exports ActionRefusalSchema, actionRefusalMessageKey, resolveActionRefusal; the shared factory packages/spec/src/data/declared-entry.zod.ts now builds the hook and action refusal schemas), Metadata-protocol: added, Skills-docs: follow-up. Dev report 6944561600. Owed: L1 review and the contract-tier L2 review, both on this head; then the seat's governed step (Tier H). The PR stays a draft and unarmed. A push after this comment restarts both.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head ff1ba66 · 2026-11-17T11:44Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmTHGRTjPqZAcBuo9WH

席位核对

L1 first review · ACCEPT · head ff1ba6635716487e6d8b5a54f4834c9dce7bbc4a (final head 6947051003) · card #34273 · read 2026-11-17T11:45Z

Checklist (read on GitHub at this head, not from the report)

  • Shape:
    • Draft PR against main, mergeable_state: clean.
    • The only closing-keyword hit is Fixes #34273.
    • The footer is in AGENTS.md's form.
    • The claim (6931334915, 2026-11-16) predates the wind-down.
  • Declarations:
    • Clause-②: yes (widening) holds, read from the diff:
      • ActionSchema.refusals is a new optional key.
      • The translation node gains refusals.
      • The save-time refusals (a catalogue on an action with no js body; a literal undeclared code or reason) apply only to an action that declares refusals, with CONTROLs for "no catalogue".
      • The runtime: resolveActionRefusal returns err unchanged when catalogueOf(action) is empty, so an action without refusals answers as before (CONTROL pinned). A crash and a host-relayed error pass through resolveSandboxedRefusal untouched.
    • Metadata-protocol: added is right: a new key.
    • Skills-docs: follow-up is acceptable for an added kind. The follow-up is named: objectstack-i18n and the action refusals.
  • Shared factory: declared-entry.zod.ts builds HookRefusalSchema, ActionRefusalSchema and HookTextSchema from one core. The body claims the published hook schemas are byte-identical, and the generated set agrees: no json-schema or reference page for hooks moves, and check:generated and CI are green.
  • Wiring: body-runner.ts hands every action-body throw to resolveActionRefusal before logging. Both default action-runner bindings (app-plugin.ts, app-artifact-handlers.ts) now pass the i18n reader.
  • Tests: 16 runtime cases over the real actionBodyRunnerFactory + QuickJS and the real /actions door, including 409 + zh-CN userMessage and its CONTROL. There are 29 spec cases, plus lint +12/+4/+3. Each of the 5 forced test changes is named with its reason. The ablation turned 12 of 16 red; the 4 that stayed green are the pass-through CONTROLs.
  • Gates at this head:
    • Check-runs on ff1ba663…: 74 runs, all completed: 63 success, 11 skipped, 0 failed.
    • git merge-tree --write-tree against today's origin/main is clean.
    • check-governed-merges.mjs --pr 34719, read here: GOVERNED, 2 of 51 paths. The two are skills/objectstack-data|ui/references/_index.md, and the generated-surface exception did not lift them. Size is 2353 lines.

Before landing (no head move)

  • Card surface amendment. The claim's surface is stop-on-breach. These paths lie outside it, and the card has no amendment for them:

    • packages/spec/src/data/declared-entry.zod.ts (new);
    • ui/packages/core/src/actions/actionKeys.ts, which adds refusals to the key roster so the console does not report it unknown;
    • packages/lint/src/validate-expressions.ts and authored-site-expression.test.ts;
    • packages/metadata-protocol/src/protocol.meta-types-degenerate-derivation.test.ts;
    • docs/audits/2026-07-unknown-key-strictness-ledger.*;
    • the two generator-owned skills/*/references/_index.md lines.

    The dev report lists them, and each looks forced, either by the factory or by a gate. Please post one claim amendment on actions: an action body has no refusal catalogue — a person-facing throw from an action stays in the author's language #34273 that names them with that reason.

Residuals (no change asked)

  • dropped-refinements.baseline.json grows by 21 sites for ActionRefusal (header 270 / 1135). It is generated and gate-accepted, and recorded here for the contract tier.
  • The Studio action form gets no refusals row (ledgered omission), and the skills teaching is a follow-up.

Owed after this

  • L2: owed, CONTRACT_REVIEW_TIER. The faces are non-test packages/spec/src, Clause-②: yes with Metadata-protocol: added, and governed skills/**.
  • Landing tier: governed (skills/**) and the spec face, Tier H. It stays a draft until GOVERNED_APPROVERS approve.

…-wk8dv2

# Conflicts:
#	packages/spec/src/type-alias-convention.pin.test.ts
Regenerated content/docs/references/index.mdx from the merged tree
(gen:migration-registry, gen:schema, gen:docs). Main's +1 AI schema and
this branch's +1 UI schema now both count: 1671 total.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfr1xZSFZzCR8HnqXX
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzi8zDwpH6wX7ZPUcHR

席位核对

L1 delta review (main merge + regen) · ACCEPT; landing waits on gates · Head-sha: b7d720db01d5c4450afd1f6977e42294bc578a02 · card #34273 · read 2026-11-17T16:38Z

This reviews the delta from L1 6948575381 (delta ACCEPT at 0169fc10). The delta is the main merge e8d6c739 plus the regeneration commit b7d720db. I compared the PR's net diff over its 51 files, from merge-base to 0169fc10, against main..e8d6c739. They are line-identical except for two places, and both are expected:

  • packages/spec/src/type-alias-convention.pin.test.ts (the one textual conflict). Main took 857 → 858 for DatasetTermCandidateSchema, so this PR's Iso_ui_action__ActionRefusalSchema pin now counts 858 → 859. The comment, the it title and toHaveLength(859) agree. Against main, the file differs only by this PR's pin and the +1.
  • content/docs/references/index.mdx (generated). At the merge it carried a stale AI-module count. After the regeneration in b7d720db, the file differs from main by exactly this PR's one new UI schema: ActionRefusal in the action.zod.ts row, UI 177 → 178, total 1670 → 1671.

The auto-merged packages/lint/src/validate-expressions.ts and content/docs/ui/actions.mdx fall inside the line-identical comparison, so their merges moved no hunk of this PR. There is no behaviour change and nothing new to review.

Gates at this head: CI had just started when this was read (24 checks in progress). This ACCEPT does not stand in for green.

Owed, unchanged from 6948575381: the seat's contract-review delta at CONTRACT_REVIEW_TIER, and, because the PR is governed, a Tier H record with os-zhuang's approval before anything readies it. This comment readies, queues and arms nothing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX

Red read · PR #34719 · head b7d720db · CI run 44127860680 · 2026-11-17T17:08Z

Test Core (8/10) never reached its tests. The step "Fetch this commit's history and the base branch" (scripts/ci/fetch-history.sh, git fetch --unshallow) timed out after 20 minutes on its first attempt, and the runner reaped the orphaned git-remote-https process. No test log exists, so the Test Core aggregate is red only because of that shard. This is a runner fetch timeout, not this PR: the head is a clean main merge plus a regenerated index (L1-e delta ACCEPT 6954399189). The failed jobs are re-run once. A second failure gets read again, not re-run.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: b7d720db01d5c4450afd1f6977e42294bc578a02
Local-runs: none
Scope: packages/spec/src/data/declared-entry.zod.ts, packages/spec/src/data/hook-refusal-codes.ts, packages/spec/src/data/hook.zod.ts, packages/spec/src/system/i18n-resolver.ts, packages/spec/src/system/translation.zod.ts, packages/spec/src/ui/action.zod.ts, skills/objectstack-data/references/_index.md, skills/objectstack-ui/references/_index.md + packages/runtime/src/sandbox/hook-refusal-catalogue.ts, packages/runtime/src/sandbox/body-runner.ts, packages/runtime/src/app-plugin.ts, packages/runtime/src/app-artifact-handlers.ts, packages/lint/src/validate-hook-refusal-templates.ts, packages/lint/src/validate-expressions.ts, packages/lint/src/i18n-walk.ts, packages/lint/src/validate-translation-references.ts, ui/packages/core/src/actions/actionKeys.ts
Security-touching: yes
Reason for the line above: unchanged from records 6947246959 and 6948667660. The spec text in packages/spec/src/ui/action.zod.ts teaches an action body answering an unauthenticated caller with a declared 401 (SIGN_IN_REQUIRED), and the runtime hunks change what a caller is shown of a body's throw. The hop to this head teaches no security behaviour of its own, and the two skills rows are generator pointer rows; the yes is meant for the PR as a whole, so it does not land on the low-risk skills arm.

This is a DELTA record over contract review 6948667660 (PASS at 0169fc10be77711968755536013f9d09d48868a4). The hop is two commits: the merge e8d6c7397a (parents 0169fc10be77 and main 189358f212fd, merge-base 6dd57163295f, 64 commits of main carried in) and b7d720db01d5 (regenerates content/docs/references/index.mdx, +5 / -5). Every judgment of 6948667660, and of 6947246959 under it, stands unless named below.

Inputs read: card #34273 body and its seven comments (triage 6906711719, ruling 6919184064, claim 6931334915, dev report 6944561600, surface amendment 6947130200, hand-off 6948316290, takeover claim 6948521290); PR #34719 body, its 51-file list, its comments (record 6948667660, L1 delta ACCEPT 6954399189 and the red read 6955189876 included), the net diff against main 189358f212fd at the head; the check-runs on the head.

① Derived judgments

The merge, re-derived (git merge-tree --write-tree of the two parents, compared with the committed tree of e8d6c7397a; a tree computation, nothing checked out or run):

  • The automatic merge conflicts in TWO files, not one: packages/spec/src/type-alias-convention.pin.test.ts and content/docs/references/index.mdx. Two more files both sides touched merge without conflict: content/docs/ui/actions.mdx and packages/lint/src/validate-expressions.ts.
  • The committed merge tree differs from the automatic one in exactly those two conflicted files and nowhere else. No other path carries a hand edit.
  • type-alias-convention.pin.test.ts: the hand resolution keeps main's 857 to 858 history line for DatasetTermCandidateSchema, restates this PR's line as 858 to 859, and sets the section header, the it title and toHaveLength to 859. Against main the file differs by this PR's one pin (Iso_ui_action__ActionRefusalSchema), its history line and the +1 in the three counts. Right: base 857, one pin from each side.
  • content/docs/references/index.mdx: the conflict (the UI row, 178 against 177) was resolved to this PR's side, and the merge commit left the file stale for main's AI change (AI 81, no DatasetTermCandidate). b7d720db regenerates it. At the head the file differs from main in four hunks, all this PR's one schema: ActionRefusal in the action.zod.ts row, UI 177 to 178 (table row and section header), total 1670 to 1671 (description and total row). The AI rows equal main's. Right.
  • N6 (nit) — the hop's account (L1 delta 6954399189, "the one textual conflict") undercounts: the generated index conflicted too and was resolved by side, then regenerated. The tree at the head is right and Lint & Repo Gates is green on it; the account alone is short. No change to the head is asked.

The PR's own diff across the hop: the 51-file list is the same before and after. Per file, the patch of merge-base to 0169fc10 equals the patch of main to the head for 49 files; the two that differ are the two above. Every hits file and every implementing file in Scope is byte-identical between 0169fc10 and the head, except packages/lint/src/validate-expressions.ts, where the difference is main's own hunks (#34451, the flow value-envelope typing) and this PR's two hunks are unmoved.

Main's carried-in changes (6dd57163..189358f2) against this PR's contract:

Accept-set and public-surface changes the hop implies: none beyond those judged right in 6947246959 and 6948667660. packages/spec/api-surface, export-origins, authorable-surface, json-schema.manifest, declaration-map and the dropped-refinements baseline carry the same patches as at 0169fc10.

Check-runs on the head, read 2026-11-17T17:35Z (latest attempt of each): 70 runs, 61 success, 9 skipped, none failed, cancelled or in progress.

  • success: Lint & Repo Gates and its seven lint families, Check Changeset, Governed Surface Queue Guard, Spec property liveness, PR-body guards, TypeScript Type Check with source gates, consumer gates, debt ledger, workspace, Type Check UI, Build Core, Build Docs, Build UI Deps, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Test Core and all of 1 to 10 of 10, Test UI and all of 1 to 16 of 16, Lint UI, Check Documentation Links, Check PR Size, Flag docs affected by code changes, Auto Label, the two shard planners and filter.
  • Test Core (8/10): the latest attempt (started 17:10:08Z, completed 17:20:26Z) is success; the first attempt timed out fetching history before any test ran (red read 6955189876). The Test Core aggregate is success at 17:21:03Z.
  • skipped (path-skipped or opt-in, none a gate this diff derives red): Temporal Conformance (live PG + MySQL), Borrowed queue verdict, Queue verdict, UI Published Artifacts, Dogfood Verify CLI, one unexpanded Dogfood Regression Gate matrix row, Schedule gate, Packed-tarball smoke (opt-in), 18.x upgrade harness (opt-in).
  • The families record 6948667660 left NOT CONCLUDED (the test shards and the workspace type-check) are answered green on this head, the pin test's 859 among them.

② Semver level

Unchanged by the hop. .changeset/34273-action-refusals.md is byte-identical to 0169fc10: @objectstack/spec minor, @objectstack/runtime minor, @objectstack/lint minor, @object-ui/core patch, which match what the diff publishes. Check Changeset is success on the head.

Clause-②: yes (widening) is the right arm; the line in the PR body and in the changeset is the same text, and still says what the tree publishes (nine @objectstack/spec names, no @objectstack/runtime export). Metadata-protocol: added stands.

③ Boundary flags

④ Design judgment

No must-fix, no should-fix.

hits files — declared-entry.zod.ts, hook-refusal-codes.ts, hook.zod.ts, i18n-resolver.ts, translation.zod.ts, action.zod.ts: byte-identical to 0169fc10, and none of the code they cite moved on main in the range (the hook catalogue, the owner-key ladder, the template renderer, the /actions door's error mapping). The judgments of 6947246959 and 6948667660 stand. Tried to break across the merge: a route that gates on one declaration and runs another's handler (now excluded by #34734, and the catalogue travels with the handler either way); a second key added to ActionSchema on main that the count pins would mis-state (none); a new importer on main of a name hook.zod.ts no longer declares after the factory move (none; Type Check · workspace and consumer gates are green).

skills/objectstack-data/references/_index.md, skills/objectstack-ui/references/_index.md: the same two generator rows each as at 0169fc10 (the declared-entry.zod.ts row added, the action.zod.ts row's fifth export now ActionRefusalSchema); main changed neither file. Lint & Repo Gates (which runs check:generated) is green on the head.

Implementing files — hook-refusal-catalogue.ts, body-runner.ts, app-plugin.ts, app-artifact-handlers.ts, validate-hook-refusal-templates.ts, i18n-walk.ts, validate-translation-references.ts, actionKeys.ts: byte-identical to 0169fc10; the earlier sentence-by-sentence agreement stands. validate-expressions.ts: the PR's import line and its one actionRefusalTemplateIssues call sit where they did, after actionCopyTemplateIssues on the same collections; main's hunks in the file are elsewhere in runStackExpressionPasses and read nothing of an action's refusals.

Open at this head: nits only. N4 (the action.zod.ts index row no longer names ActionSchema) is carried by #34824; N5 (the jsdoc above actionRefusalsWithoutSandboxedBody still words the third case the old way) is left for #34824 or a later touch; N6 is on the hop's account, not the tree. No S item is open.

Implemented-by: claude/project-thread-wk8dv2
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

席位记录 · 2026-11-17T17:38Z

Head-sha: b7d720db01d5c4450afd1f6977e42294bc578a02

本记录替代 13:13Z 的席位记录 6949081755。那条记录对应的 head 0169fc10 后来和 main 冲突,o3-J 合入 main 并解了冲突。内容没有变,只是换了 head。

维护者速读(终稿)

席位意见:建议批准。这次换 head 只是合 main,有两处冲突:

  • 钉子测试里的计数:main 的 857→858 保留,本 PR 的这一行改成 858→859,总数改为 859。
  • 生成的 content/docs/references/index.mdx:随后重新生成了一遍。

delta L2 重新推导了这次合并:除了这两个文件,提交的树和自动合并的结果完全一致。PR 的 51 个文件里有 49 个补丁和换 head 前逐字相同。main 带进来的 64 个提交和动作拒绝语这份契约之间没有语义交叉。新增的 N6 只是说解冲突的说明少写了一个文件,树本身是对的。

席位核对

…-wk8dv2

# Conflicts:
#	packages/lint/src/i18n-walk.test.ts
#	packages/lint/src/validate-translation-references.test.ts
#	packages/spec/src/system/translation.zod.ts
Regenerated content/docs/references/system/translation.mdx from the merged
tree (gen:migration-registry, gen:schema, gen:docs) after #34915 landed.
The references differ from main by this branch's own five pages, as before.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfr1xZSFZzCR8HnqXX
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head 5a05e4f · 2026-11-17T18:28Z

Delta over 6955907084 (hand-resolved merge of main after #34915). The Tier H record 6955946669 no longer covers this head; a refreshed seat record follows the delta PASS.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzi8zDwpH6wX7ZPUcHR

席位核对

L1 delta review (main merge + regen) · ACCEPT; landing waits on gates and Tier H · Head-sha: 5a05e4f2f4d6f82ef610591d393c3ca509d1935c · card #34273 · read 2026-11-17T18:28Z

This reviews the delta from L1 6954399189 (ACCEPT at b7d720db). The delta is the main merge b992507b, which takes #34915 and #34652, and the regeneration 5a05e4f2.

  • The merge is byte-neutral, including the three hand-resolved conflicts. The PR's net diff over its files, from merge-base to b7d720db, is line-identical to main..5a05e4f2. That covers:

    • translation.zod.ts, where the two docblock address lists keep main's preflight.columns line and this PR's two refusals.<CODE> lines;
    • i18n-walk.test.ts, where both describes are kept;
    • validate-translation-references.test.ts, where both table rows are kept.

    The regenerated references/system/translation.mdx carries this PR's diff against main and nothing else. The auto-merged files moved no hunk of this PR.

There is nothing new to review.

Gates at this head: CI was still running when this was read. This ACCEPT does not stand in for green.

Owed, unchanged:

  • the seat's contract-review delta at CONTRACT_REVIEW_TIER;
  • because the PR is governed, the Tier H record with os-zhuang's approval before anything readies it.

This comment readies, queues and arms nothing.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 5a05e4f2f4d6f82ef610591d393c3ca509d1935c
Local-runs: none
Scope: packages/spec/src/data/declared-entry.zod.ts, packages/spec/src/data/hook-refusal-codes.ts, packages/spec/src/data/hook.zod.ts, packages/spec/src/system/i18n-resolver.ts, packages/spec/src/system/translation.zod.ts, packages/spec/src/ui/action.zod.ts, skills/objectstack-data/references/_index.md, skills/objectstack-ui/references/_index.md + packages/runtime/src/sandbox/hook-refusal-catalogue.ts, packages/runtime/src/sandbox/body-runner.ts, packages/runtime/src/app-plugin.ts, packages/runtime/src/app-artifact-handlers.ts, packages/lint/src/validate-hook-refusal-templates.ts, packages/lint/src/validate-expressions.ts, packages/lint/src/i18n-walk.ts, packages/lint/src/validate-translation-references.ts, ui/packages/core/src/actions/actionKeys.ts
Security-touching: yes
Reason for the line above: unchanged from records 6947246959, 6948667660 and 6955907084. The spec text in packages/spec/src/ui/action.zod.ts teaches an action body answering an unauthenticated caller with a declared 401, and the runtime hunks change what a caller is shown of a body's throw. The hop to this head teaches no security behaviour of its own; the yes is meant for the PR as a whole, so it does not land on the low-risk skills arm.

This is a DELTA record over contract review 6955907084 (PASS at b7d720db01d5c4450afd1f6977e42294bc578a02). The hop is two commits: the merge b992507ba9 (parents b7d720db01d5 and main c81f498b5f06, merge-base 189358f212fd, 15 commits of main carried in, #34915 at 758bbe75bc among them) and 5a05e4f2f4d6 (regenerates content/docs/references/system/translation.mdx, +11 / -10). Every judgment of 6955907084, and of 6948667660 and 6947246959 under it, stands unless named below.

Inputs read: card #34273 body and its seven comments (triage 6906711719, ruling 6919184064, claim 6931334915, dev report 6944561600, surface amendment 6947130200, hand-off 6948316290, takeover claim 6948521290); PR #34719 body, its 51-file list, record 6955907084 and the seat record 6955946669; the net diff against main c81f498b5f06 at the head; the check-runs on the head, and the job steps and planner log of the one red run.

① Derived judgments

The merge, re-derived (git merge-tree --write-tree of the two parents, compared with the committed tree of b992507ba9; a tree computation, nothing checked out or run):

  • The automatic merge conflicts in FOUR files, not three: packages/spec/src/system/translation.zod.ts, packages/lint/src/i18n-walk.test.ts, packages/lint/src/validate-translation-references.test.ts and the generated content/docs/references/system/translation.mdx. Four more files both sides touched merge without conflict: packages/spec/src/system/i18n-resolver.ts, packages/lint/src/i18n-walk.ts, packages/lint/src/validate-translation-references.ts, content/docs/ui/translations.mdx.
  • The committed merge tree differs from the automatic one in exactly those four conflicted files and nowhere else. No other path carries a hand edit, and no conflict marker is left in the tree.
  • translation.zod.ts: the two conflicts are both docblock address lists (_actions on the object node, globalActions on the app node). Each is resolved to main's …preflight.columns.PATH.COLUMN_PATH line first, then this PR's two …refusals.CODE.message / …refusals.CODE.reasons.REASON.message lines. No schema line was hand-edited: the code merged automatically. Right.
  • The strict action translation node at the head, read whole (actionTranslationSchema): label, description, confirmText, successMessage, disabledReason, submitText, cancelText, outcomeMessages, params, resultDialog, preflight, refusals — twelve keys, each once. resultDialog is main's ActionResultDialogTranslationSchema with columns beside fields; preflight is main's ActionPreflightTranslationSchema with fields and columns; refusals is this PR's refusalTranslationsSchema('action'). The alias table carries main's rows and this PR's refusal: 'refusals', no key twice. Both slots present, none dropped, none duplicated. Against main the file differs by this PR's hunks alone: the refusalTranslationsSchema factory, the alias row, the refusals key, the four docblock lines, and the hook node now built by the same factory (refusalTranslationsSchema('hook'), the sentences it emits for the hook unchanged).
  • i18n-walk.test.ts: main's describe (answer table column labels, An action answer's table column labels have no translation bundle key, so their headers stay English in every locale #34652) is kept whole, then this PR's describe (an action's refusal catalogue, three cases) whole. The hand edit closes main's block with its own }); pair before this PR's block opens; no case is lost or merged into the other.
  • validate-translation-references.test.ts: the coverage table keeps main's 'preflight.columns' row and this PR's refusals row, each with its own rule: TRANSLATION_TARGET_UNKNOWN (the conflict had left one shared rule line; the resolution gives each row one). The table is the one the test compares, key for key, with the schema's own key list at both addresses, so a dropped or doubled row is a red test; Test Core (5/10), which runs @objectstack/lint, is green.
  • content/docs/references/system/translation.mdx: the merge commit resolved all five conflicts to this PR's side, which left the page stale for main's columns (the ActionResultDialogTranslation row gone, resultDialog and preflight typed without it). 5a05e4f2f4 regenerates it. At the head the file differs from main by exactly five added lines, the refusals row in each of the five action-node tables (Record of { message?, reasons? }, "Refusal translations keyed by the code the action's refusals declares", the schema's own describe text); main's columns row and its resultDialog / preflight type strings equal main's. The page matches the schema. Right.
  • N7 (nit) — the hop's account names three hand-resolved files and a regeneration; the generated reference page conflicted too and was resolved by side in the merge commit, then regenerated. The same shape as N6. The tree at the head is right; the account alone is short. No change to the head is asked.

The PR's own diff across the hop: the 51-file list is the same before and after, and the totals are the same (+2037 / -316). The added and removed lines of each of the eight files main also touched are this PR's lines at b7d720db, with main's lines as context around them. Every hits file and every implementing file in Scope is byte-identical between b7d720db and the head except translation.zod.ts, i18n-resolver.ts, i18n-walk.ts and validate-translation-references.ts, where the difference is main's #34915 hunks.

Main's #34915 against this PR's refusal-text keys, read in the merged tree:

  • Schema: the two additions are siblings in the strict node (….resultDialog.columns, ….preflight.columns under their own child nodes; ….refusals at the node's top level). Neither shape reads the other's key.
  • Walk (i18n-walk.ts): both call sites (an object's inline actions, and the top-level actions) call pushActionResultDialog, pushActionPreflight (main's column keys) and then pushActionRefusals. The walk emits both families under the same action root, and the header's address list carries both.
  • Lint references (validate-translation-references.ts): checkActionEntry runs main's checkActionAnswerTableColumns for resultDialog and preflight, then this PR's checkActionRefusals. Each reads its own subtree of the raw action entry and the two share no state; the rule table in the function's docblock has a row for each.
  • Resolver (i18n-resolver.ts): main's change is the CLIENT overlay (resolveActionResultDialog, resolveActionPreflight, overlayAnswerColumnLabels), which reads resultDialog and preflight of the action node. This PR's actionRefusalMessageKey builds a dot key the SERVER's body runner reads; it is a separate function, and resolveBundleLocale, which the runtime catalogue imports, is untouched by feat(spec,lint,i18n): translation bundle key for an action answer table's column headers #34915. The comment on the refusals key ("server-rendered like a hook refusal, so no client overlay reads it") still describes the tree: main's overlay reads no refusals.
  • Generated surfaces: feat(spec,lint,i18n): translation bundle key for an action answer table's column headers #34915 added one row to packages/spec/authorable-surface/system.json (ActionResultDialogTranslation:columns, a named export). This PR's refusals sits on the module-local action node and adds no row there, as main's preflight.columns adds none. api-surface/system.json and export-origins/system.json still differ from main by actionRefusalMessageKey alone.

The other 14 carried-in commits: none touches a hits file, an implementing file in Scope, packages/objectql/src/action-governance.ts (the owner-key ladder), the template renderer, or the /actions door's error mapping. ActionSchema gained no key on main in the range, so the served-property count 54 and the SPEC_ACTION_KEYS row are still this PR's one addition; type-alias-convention.pin.test.ts and the dropped-refinements baseline were not touched by main in the range.

Accept-set and public-surface changes the hop implies: none beyond those judged right in the earlier records. A bundle may now carry preflight.columns / resultDialog.columns (main) and refusals (this PR) on one action entry; both are accepted, which is the union the two changes each declared.

Check-runs on the head, read 2026-11-17T19:06Z (latest attempt of each; the run was at attempt 1): 70 runs, 59 success, 9 skipped, 2 failure, none in progress.

  • failure: Test Core (6/10) and, from it, the Test Core aggregate. The shard never reached its tests: step 3, "Fetch this commit's history and the base branch", timed out after 20 minutes (18:31:02Z to 18:51:14Z), and every later step through "Run this shard's tests" is skipped. It is the same runner fetch timeout that took Test Core (8/10) on b7d720db (red read 6955189876). It is not a red test, and it is not a green one: on this head the shard's packages are NOT MEASURED. The planner assigned it @objectstack/metadata-protocol, @objectstack/platform-objects, @objectstack/hono, @objectstack/http-conformance, @objectstack/organizations, @objectstack/cloud-connection, @objectstack/service-messaging, @objectstack/downstream-contract and @objectstack/service-cluster-redis. One file of this PR is among them: packages/metadata-protocol/src/protocol.meta-types-degenerate-derivation.test.ts (the action type serves 54 properties), byte-identical to b7d720db, where it was green.
  • success: Lint & Repo Gates and its eight lint families (check:generated among them, so the regenerated page and every generated baseline agree with the schema), Check Changeset, Governed Surface Queue Guard, Spec property liveness, PR-body guards, TypeScript Type Check with source gates, consumer gates, debt ledger and workspace, Type Check UI, Build Core, Build Docs, Build UI Deps, Build & E2E UI, Live E2E UI, Dogfood Regression Gate, Test Core 1, 2, 3, 4, 5, 7, 8, 9 and 10 of 10, Test UI and all of 1 to 16 of 16, Lint UI, Check Documentation Links, Check PR Size, Flag docs affected by code changes, Auto Label, the two shard planners and filter.
  • The shards that carry the hop's own evidence are green: Test Core (2/10) runs @objectstack/spec (the strict node, the pin tests, the resolver tests of both changes), Test Core (5/10) runs @objectstack/lint (both hand-resolved test files), Test Core (3/10) runs @objectstack/runtime (the action refusal catalogue).
  • skipped (path-skipped or opt-in, the same nine as on b7d720db): Temporal Conformance (live PG + MySQL), Borrowed queue verdict, Queue verdict, UI Published Artifacts, Dogfood Verify CLI, one unexpanded Dogfood Regression Gate matrix row, Schedule gate, Packed-tarball smoke (opt-in), 18.x upgrade harness (opt-in).

Not every check-run on this head is green. The verdict below is the contract verdict on the tree; it does not stand in for Test Core (6/10). A re-run of the failed job moves no head, so this record still covers it; landing waits on that shard and the aggregate reading success, and a red TEST in the re-run reopens this record.

② Semver level

Unchanged by the hop. .changeset/34273-action-refusals.md is byte-identical to b7d720db: @objectstack/spec minor, @objectstack/runtime minor, @objectstack/lint minor, @object-ui/core patch, which match what the diff publishes. Main's own changeset for #34915 (.changeset/34652-action-table-column-labels.md) rides in from main and is not this PR's. Check Changeset is success on the head.

Clause-②: yes (widening) is the right arm; the line in the PR body and in the changeset is the same text and still says what the tree publishes (nine @objectstack/spec names, no @objectstack/runtime export). Metadata-protocol: added stands.

③ Boundary flags

  • Skills-docs: follow-up #34824: skills: teach the action refusals catalogue and its translation keys (after #34273); fix the action.zod.ts index row #34824 is open. Studio form row: Studio action form: no row for the new action refusals catalogue (after #34273) #34823 is open and named in the PR body. Both as in 6955907084.
  • Dev flag security_findings: withheld: as in the earlier records, the seat's account (hand-off 6948316290) is that it was read privately and closed with no finding; its content is not among this review's inputs and is not judged here.
  • The dev report's one open_questions entry (send to the contract-tier review): answered by 6947246959, 6948667660, 6955907084 and this record.
  • No new dev flag and no new open_questions entry arrived with the hop.
  • SQL push-down: no finding. The hop adds no query, no id materialisation and no in-app join to this PR's diff.
  • Main has moved past c81f498b5f06 since the merge (fff0ad0c18 at the read); GitHub reports the PR mergeable against the base, blocked on the red check and the owed approval. This record covers 5a05e4f2f4d6 and no later head.

④ Design judgment

No must-fix, no should-fix.

packages/spec/src/system/translation.zod.ts — the one hits file with a hand edit. Held against its two contracts at once: #34915's (a bundle may carry column header keys under resultDialog and preflight) and this PR's (a bundle may carry refusals under the action node, one factory shared with hooks.HOOK.refusals). The merged node satisfies both, and the two docblocks list exactly the addresses the code accepts, in the order the keys are declared. Tried to break it: a key one side declared and the merge dropped (none: twelve keys, the union of main's eleven and this PR's one); a key declared twice, which a later object-literal key would silently win (none); an alias both sides claimed for different targets (none: main added no alias row, this PR one); the hook node's sentences shifting when the factory took noun (the hook arm emits the strings main has, and the reference page's hook tables do not differ from main); refusals leaking into the client overlay main rewrote (the overlay picks resultDialog and preflight only).

packages/spec/src/system/i18n-resolver.ts — auto-merged; this PR's one hunk (actionRefusalMessageKey, 33 lines after hookTextMessageKey) is unmoved and its jsdoc still names the address actionTranslationNode reads, which main's change kept.

declared-entry.zod.ts, hook-refusal-codes.ts, hook.zod.ts, action.zod.ts: byte-identical to b7d720db, and nothing they cite moved on main in the range. The earlier judgments stand.

skills/objectstack-data/references/_index.md, skills/objectstack-ui/references/_index.md: the same two generator rows each as at b7d720db. #34915 kept ActionPreflightTranslationSchema module-local precisely so these indexes would not move, and they did not; check:generated is green on the head.

Implementing files — i18n-walk.ts and validate-translation-references.ts: auto-merged, this PR's functions and call sites unmoved, each called after main's column pass on the same action entry, sentence by sentence as the docblocks say. hook-refusal-catalogue.ts, body-runner.ts, app-plugin.ts, app-artifact-handlers.ts, validate-hook-refusal-templates.ts, validate-expressions.ts, actionKeys.ts: byte-identical to b7d720db; the earlier agreement stands.

No judgment of 6955907084 changes, except its check-run reading, which was for b7d720db and is replaced by the one above.

Open at this head: nits only. N4 (the action.zod.ts index row no longer names ActionSchema) is carried by #34824; N5 (the jsdoc above actionRefusalsWithoutSandboxedBody) is left for #34824 or a later touch; N6 and N7 are on the hop's accounts, not the tree. An observation outside the diff, not graded: the lint rule table in content/docs/protocol/kernel/i18n-standard.mdx has rows for hooks.HOOK.refusals.CODE and, since #34915, the answer table columns, and none for an action's refusals.CODE; it belongs with the teaching owed to #34824. No S item is open.

Implemented-by: claude/project-thread-wk8dv2
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfr1xZSFZzCR8HnqXX

Red read · PR #34719 · head 5a05e4f2 · CI run 44148128880 · 2026-11-17T19:10Z

Test Core (6/10) never ran a test. The history fetch step (scripts/ci/fetch-history.sh) timed out after 20 minutes, which is the same runner failure this PR hit at b7d720db (red read above; that rerun went green). The seat read it the same way. The Test Core aggregate is red only because of that shard. The failed jobs are re-run once.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

席位记录 · 2026-11-17T19:41Z

Head-sha: 5a05e4f2f4d6f82ef610591d393c3ca509d1935c

本记录替代 6955946669(head b7d720db)。#34915 合入后本 PR 和 main 冲突,o3-J 合入 main 并手解冲突。内容没有变,只是换了 head。

维护者速读(终稿)

席位意见:建议批准。这次换 head 只是合 main(带进 #34915,动作结果表列标签的翻译键),手解了四个文件:

  • translation.zod.ts:只改了两处文档注释的地址列表(main 的 preflight.columns 一行,加本 PR 的 refusals 两行)。严格的动作翻译节点有 12 个键,各出现一次:main 的 11 个(resultDialog 和 preflight 下都有 columns)加 refusals,没有丢也没有重复;
  • i18n-walk.test.ts 两个新 describe 块都保留;validate-translation-references.test.ts 两行新表格都保留;
  • 生成的 references/system/translation.mdx 随后重新生成,相对 main 只多五行 refusals。

delta L2 用 merge-tree 重推导:提交的合并和自动合并只在这四个文件上不同,没有残留冲突标记。#34915 和本 PR 没有行为交叉:lint 先跑 main 的列检查再跑 checkActionRefusals,互不共享状态;main 的解析器改动是 resultDialog / preflight 的客户端覆盖,actionRefusalMessageKey 是另一个服务端键。新增 N7 只是说说明里少写了一个冲突文件(生成页),树本身是对的。

席位核对

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue protocol:data protocol:system protocol:ui security size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

actions: an action body has no refusal catalogue — a person-facing throw from an action stays in the author's language

3 participants