Repository navigation
docs(skills): the objectstack-automation entry carries a save notice's translation key and names the gate that judges a grant made from a flow - #38971
Conversation
…s translation key and names the gate that judges a grant made from a flow
The save_notice row says where its message is translated
(flows.{flow}.notices.{node_id}.message, in the saver's locale). The
identity-elevation bullet names the delegated-administration gate, the
user it judges and granted_by, and limits the runAs: 'user' route to a
position or a permission set. Paid for in the same file by three
restatements; the file goes from 10703 to 10702 bytes and its ratchet
row stays at 2669.
Claude-Session: https://claude.ai/code/session_01WGufzeatqKfTRUzTJVa9jQ
Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzeatqKfTRUzTJVa9jQ Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ Final green head · 2026-12-01T16:00Z · zone osa-ai
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head a151600 · 2026-12-01T16:02Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract review of PR #38971 for card #38940, rendered 2026-12-01T16:07Z by an isolated read-only reviewer. Contract reviewServed-tier: The elevation bullet teaches who is authorised to make a grant from a flow, so the line reads ① Derived judgments
② Semver levelClause-②: no. Right: the diff changes no schema, no accepted input and no runtime behaviour. The narrowing in the elevation bullet narrows what the text says, to match what the platform already refuses; it takes no capability away. Metadata-protocol: none. Right.
The changeset, sentence by sentence:
③ Boundary flags
④ Design judgment
The
The elevation bullet: holds, with the narrowing true to the code.
The three cuts.
Findings. S1 (should-fix) — the cut row "Routing a new record to a queue or a person" was the entry's only task-keyed route to N1 (nit) — "(past an approval, the decider)" holds for a human decision. An SLA auto-decision names no decider, and the run keeps the triggering user's context ( N2 (nit) — "the user whose write fired the flow" is the card's wording and fits a record-change flow. A N3 (nit) — the bullet names four refused objects and gives a route for two. The route for an invitation or a membership (the organization endpoints) is in N4 (nit) — changeset: "the two the gate governs". The gate's Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 review · PR #38971 (#38940) · head a151600 · 2026-12-01T16:08ZVERDICT: should-fix, 1 item (S1, carried from L2). No must-fix.
Next: an S1 fix head, then a delta from the same L2 agent and an L1 delta. After that the PR goes to the seat as Tier H (governed |
…rules reference; the grant is judged as the user the run acts for The routing table's "Routing a new record to a queue or a person" row is back: it is the entry's one task-keyed route to the reference's assignment-rules section, not a restatement. The elevation bullet uses the code's phrase, "the user the run acts for". The entry is now 10810 bytes (10783 priced, 2696 tokens); its ratchet row moves 2669 -> 2696, the measured remainder after the two restatement cuts, under the standing raise ruling (record 6513306068, letter B). The changeset follows. Claude-Session: https://claude.ai/code/session_01WGufzeatqKfTRUzTJVa9jQ Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzeatqKfTRUzTJVa9jQ Final green head (fix round 1) · 2026-12-01T16:50Z · zone osa-ai
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Contract-review-claim: session_01WGufzhGA3zoCFquQgku4pm · head 385c974 · 2026-12-01T16:52Z |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm Delta contract review of PR #38971 for card #38940, rendered 2026-12-01T16:55Z by an isolated read-only reviewer. It follows record 7317085463 on head Contract reviewServed-tier: The elevation bullet still teaches who is authorised to make a grant from a flow, so the line reads S1: closed ① Derived judgments
② Semver levelClause-②: no. Right, as before: no schema, accepted input or runtime behaviour changes. Metadata-protocol: none. Right.
③ Boundary flags
④ Design judgment
N4, applied and true (changeset). "the two the gate judges for a delegate and stamps with Carried nits, unchanged and accepted as deviations: N1 (an SLA auto-decision names no decider, so the grant is judged as the triggering user) and N3 (the invitation and membership route is in the reference alone). No must-fix, no should-fix. Implemented-by: VERDICT: PASS |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm L1 delta · PR #38971 (#38940) · head 385c974 · 2026-12-01T16:57ZVERDICT: ACCEPT. S1 is closed. No must-fix and no should-fix.
Next: hand off to the seat as Tier H (governed |
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 席位核对ACCEPT — PR #38971 @
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 维护者速读
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 2026-12-01T23:43Z · Landing seat: taking this Tier H pull out of the merge queue and back to draft (Governed Surface Queue Guard, remedy 1).
|
|
repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS 落地Seat landing under ruling C (#17971): the maintainer approved this Tier H pull, os-zhuang review 6142545946. The approval survives the two merges of
The skills token ratchet for the automation entry stands at 2696, 26 over the ruled 2670, as the 速读 names. State change: |
Requested by Yibo Wang · project thread
Part of #38940
Claim for this branch: #38940 comment 7314944937
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
One published file,
skills/objectstack-automation/SKILL.md, its changeset, and that file's row inscripts/check-skills-token-ratchet.mjs. No schema, rule, eval fixture, reference file or runtime file is touched.The two facts the card names
save_noticerow (#### Data Operations). The row now says where the message is translated:flows.{flow}.notices.{node_id}.message, in the saver's locale. It keeps its pointer to objectstack-datarules/lifecycle.md§ Save Notice. The placeholders are spelled with braces, as the objectstack-i18n key map spells every other flow key.### Failure routing & runAs). After the refusal it had, the bullet now reads: "Grant a position or permission set from arunAs: 'user'flow: the delegated-administration gate judges it as the user the run acts for (past an approval, the decider) and records them asgranted_by, or refuses it."Three things in that bullet go one step past the card's wording, all read from code
runAs: 'user'flow. The gate governs two of them.ASSIGNMENT_OBJECTSinflow-system-identity-write-refusal.tsholdssys_user_positionandsys_user_permission_set; that file's own comment says a user context's write tosys_invitationorsys_memberis refused as well, and its prescription sends those to the organization endpoints. Naming the gate without this limit would have said the gate judges an invitation.screenorapiflow is fired by no write; the gate's own header says arunAs: 'user'run is judged "as the user it acts for", which is exact for every flow type.resolveDecisionSegmentContext,engine.ts), so a grant placed after an approval is judged as the decider.Paid down first inside the file: what the entry said twice
### Flow Node TypesFlowNode)" in §notifysave_noticerow, now "this save"The routing table is as on
main. Its "Routing a new record to a queue or a person" row was cut on the first head and is back: it is the entry's one task-keyed route to § Assignment rules ofreferences/examples-flows.md(orderedcriteria,least_loadedandload, ausertarget, a packaged rule's queue and itsdependenciesclosure), so it is a route and not a restatement.One link left the entry with the cut pointer:
references/examples-flows.md#flow-node-types. The heading is still in that file, which the routing table links whole. No section heading of the entry changed, so every heading the hosted door serves is where it was.Looked at and not cut, because each is the only home of a fact, a route, or text a ruling ordered back: the routing table's other rows and its state-introspection route (a
packages/resttest pins that spelling to this file), the pointer at the end of § Integrations, thescriptandconnector_actionrows' cross-references, and the opening of## Assignment rules.Size
skills/objectstack-automation/SKILL.md,mainat7b68db99bf385c9745e6skills/*/SKILL.mdsummed,mainat7b68db99bfscripts/check-skills-token-ratchet.mjscarries the arithmetic.Tests
Token read for eval flows #16 and #11 (occurrences in
SKILL.md,mainto this head; the eval file is read, not edited)must_containtokensave_noticetriggerTypenotices.type: 'approval'runAs: 'user'sys_user_permission_setPERMISSION_DENIEDdelegated-administrationgranted_byThe entry now carries every
must_containtoken of both cases.runAs: 'system'in the answer. The entry has to name that spelling to teach its refusal (4 occurrences, unchanged). Narrowing that assertion belongs to skills evals: eleven cases across five bundles fail a right answer, by forbidding a literal the bundle itself writes as the trap, matching a legitimate key, or demanding one spelling (GA test 3) #38941, which holds the eval files.Each added sentence against the code it describes
flows.{flow}.notices.{node_id}.messageflowNoticeMessageKeyinpackages/spec/src/system/i18n-resolver.tsreturns exactly that path; thenoticesgroup of the flow translation schema intranslation.zod.tsis keyed byFlowNode.idand holdsmessagesave-notice-node.ts: the engine picks the key "in the WRITER's locale"; with no translation the authored template rendersrunAs: 'user'grantdelegated-admin-gate.tsheader: "arunAs: 'user'run is judged here instead, as the user it acts for";flow-system-identity-write-refusal.ts, the flow prescriptiongranted_by"stampWriterindelegated-admin-gate.tsstamps the admitted writer on every insert into the two assignment tablesdelegated-admin-gate.tsheader, as above;runtime-identity.ts: "runAs:'user'(default) → the triggering user's identity"No behaviour is changed, so there is nothing to ablate.
Gates, local, at
385c9745e6.dispatch-gates.mjs --commandsderived 70 commands (the ratchet script is now in the diff); each exit code was captured before any pipe;--rananswered: "70 derived famil(ies) accounted for — 68 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)".The skill gates, each exit 0, with the line each printed
node scripts/check-skills-token-ratchet.mjs, exit 0: "skills/objectstack-automation/SKILL.md is 2696 tokens (ceiling 2696; headroom 0)"; "61 authored bundle file(s) within their ceilings"node scripts/check-skills-token-ratchet.mjs --self-test, exit 0: "self-test: 111 cases pass"pnpm check:ratchet-remedy-authority, exit 0pnpm --filter @objectstack/spec run check:skill-docs, exit 0: "Skill docs in sync"pnpm --filter @objectstack/spec run check:skill-served-sections, exit 0: "24 served section(s), each heading exactly once in its file"; "10 JSON fence(s) parse and pass their spec validators"pnpm check:skill-links, exit 0: "285 relative link(s) in 76 published skill file(s) resolve; 160 fragment(s) name a real heading"pnpm check:skill-identifier-liveness, exit 0: "Leg 1: 456 citation(s) over 76 published file(s) checked"pnpm check:skill-compatibility,pnpm check:skill-frame-sync,pnpm check:pm-skill-id-lint,pnpm check:pm-dispatch-gates, each exit 0pnpm --filter @objectstack/lint run check:doc-formula-expressionsandpnpm check:dts-closure, each exit 0 on a second run (the first answered exit 3, prerequisite not met, in a fresh worktree;@objectstack/formulaand@objectstack/lintwere then built under the verify lock)The other derived commands, and the two not measured
pnpm check:dual-build-cjs-loads:: exit 3, PREREQUISITE NOT MET: it reads built output and some package has nodist/.pnpm check:lean-entry-closure:: exit 3, PREREQUISITE NOT MET: it loads built entry points and some target is absent.test:repoand the whole-farm lint are CI's.node scripts/pm/overlap-check.mjsat385c9745e6: "VERDICT clean exit 0". Two open PRs share a file with this branch, #38857 (the entry) and #38915 (the ratchet script); both merge cleanly with it.Acceptance notes
noticestranslation key, and the identity-elevation bullet does not name the delegated-administration gate orgranted_by(eval flows #16, #11) #38940, so this PR isPart of: acceptance line 3, the with-skill re-run of flows [WIP] Update action workflow steps for better execution #16 and Migrate documentation site to Fumadocs with monorepo structure and shared content #11. Flows Migrate documentation site to Fumadocs with monorepo structure and shared content #11 also waits on skills evals: eleven cases across five bundles fail a right answer, by forbidding a literal the bundle itself writes as the trap, matching a legitimate key, or demanding one spelling (GA test 3) #38941 (PR fix(skills): ten eval cases no longer fail a right answer on a named trap, a legitimate key or a one-spelling literal #38973), which narrows its eval assertion. The card stays open withpm:dispatcheduntil that re-run passes after skills evals: eleven cases across five bundles fail a right answer, by forbidding a literal the bundle itself writes as the trap, matching a legitimate key, or demanding one spelling (GA test 3) #38941 lands.flows.{flow}:row listsapprovals,screens,nodesandrecords, and neithernotices.{node_id}.messagenor a refusing end node'srefusals.{node_id}.message. Both are keys of the flow translation schema. Read only, no eval measured on it; that file is outside this card's surface.objectstack build", while First check 4 says "Most traps below pass it". Wording only; not touched.packages/qa/scenarios/src/runner/door-rules-corpus.tscarries an older copy of the#### Data Operationstable. Its header says it was rendered at a fixed revision, and no gate holds it equal to the skill, so it is not regenerated here.Verification
Read first, by risk:
skills/objectstack-automation/SKILL.md, the identity-elevation bullet under### Failure routing & runAs: the one hunk that says something new about who is authorised.scripts/check-skills-token-ratchet.mjs, theobjectstack-automation/SKILL.mdrow: the raise and its record..changeset/38940-automation-notice-key-elevation-gate.md: the text that ships in the package changelog.Two-minute check:
node scripts/check-skills-token-ratchet.mjsprints "skills/objectstack-automation/SKILL.md is 2696 tokens (ceiling 2696; headroom 0)", andgit diff origin/main --statlists three files.Generated by Claude Code