Repository navigation
docs(skills): the automation skill says what two packages shipping one flow function name get, now that function names are held per namespace - #33396
Conversation
…ow function name get now that function names are held per namespace Packages of two namespaces each run their own; within one namespace, or with none declared, the later bind is refused at install and a boot holding both warns. Paid by cutting "(the platform's counts)", which the sentence before already says (the platform's function is in every flow's reach). Claude-Session: https://claude.ai/code/session_01FEkQ5pCBxBzsVQVGq52JDt Co-Authored-By: Claude <noreply@anthropic.com>
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: Card #32522 (Part of epic #31527). Net diff against main: 2 files, +14 / -4, head 1 ahead and 14 behind main; no main commit since the merge base 6538ba4 touches either path. The cited code moved on main since 6538ba4 (registry.ts, service-automation engine.ts), so every line below was read on main b63c894, not on the base. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Checked clause by clause against main b63c894:
Ruling R2-C (epic seat ruling 6812862622, posted on #31700 for epic #31527), quoted: "When two namespaces hold a function name, Trying to break it: (a) the one-namespace pair at boot. The warning changes nothing about which holder each caller is served, and the engine keeps both holders, so each flow still runs its own function. The new sentence says only "a boot warns", which is true; it claims no refusal at boot. (b) A no-namespace package beside a namespaced holder: both meet, so the bind is refused, as the parenthetical says. (c) Two namespaces where the flow's package holds none and both are in its closure: two holders in reach, guard refusal, as the next sentence says. No break found. Findings:
Out of scope (read, not reviewed; follow-up candidate, no effect on this verdict): packages/objectql/src/hook-binder.ts:215 to 216 on main still says the function bind refusal "stays until the trailing backstop child (ADR-0150 D9) narrows it", but Gates: the check-runs on the head are the gate verdicts. 48 check-runs, all completed: 30 success, 18 skipped, 0 failure, 0 cancelled, 0 pending. Nothing red. Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-14T18:46Z · isolated sub-agent at CONTRACT_REVIEW_TIER · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb 维护者速读
席位核对Verdict: ACCEPT, held for the maintainer · head
|
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Correction: contract-review tierThe contract-review record(s) 6882471862 on this PR say This PR has already merged. The seat re-runs the review at |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: At-tier re-review of a merged PR (merge commit 7e61983, an ancestor of main 8e63ed8). Card #32522, Part of epic #31527. Net diff against the merge base 6538ba4: 2 files, +14 / -4. Since the merge, main has changed neither file this PR touched: both are byte-identical between the head and main 8e63ed8. Of the code read, only packages/objectql/src/registry.ts moved after the merge (#33463, a permission-set refusal text); everything below was read on main 8e63ed8. The earlier record 6882471862 is not used as evidence; ③ says which of its findings this review confirms. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Clause by clause, against main 8e63ed8:
Tried to break it:
Findings:
Outside the diff, read and not reviewed, follow-up candidates with no effect on this verdict: the stale comment at packages/objectql/src/hook-binder.ts lines 214 to 216; and Gates: the check-runs on the head are the gate verdicts. 55 check-runs, all completed: 33 success, 22 skipped, none failing, cancelled or pending. Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-15T00:46Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
…s functions and hooks unbound, not refused at install (objectstack-ai#33668) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XVyJcsmnrrm8h24VEcqmdWB)_ Fixes objectstack-ai#33569 Clause-②: no Metadata-protocol: none Signed: domain:skills#1 · os-project-manager · session_01FEkQ5mpzgKr4dbZVjCqjSv ## 维护者速读 - 改了什么:`objectstack-automation` 技能「Valid-but-silently-wrong」第 3 条里,把「同一命名空间(或无命名空间)的第二个包声明同名流程函数会在安装时被拒」改成实际行为:启动时两包都已持有则告警 `Bare-name conflict at boot`;启动后再装的包照样装上,但它的绑定整体失败(`error` 日志 `Failed to bind declarative hooks`),它的所有函数和钩子都不生效,不冲突的那些也一样。补救办法不变:改名,或换一个命名空间。 - 为什么改:旧说法让作者以为会被响亮拒绝;实际是装上了却静默不工作,流程的 `script` 步骤要么因找不到函数而失败,要么(依赖了先持有的包时)悄悄跑了别人的函数。 - 风险与回滚:只改技能文字与一个 patch changeset,不碰 schema、运行时与 eval;回滚即还原本 PR。文件 token 仍在上限内(6861 / 6861),靠在同文件里缩短两处重复说明付账,未抬上限。 - 先看:`skills/objectstack-automation/SKILL.md` 第 263–279 行。 - 两分钟验证:`git diff origin/main -- skills/objectstack-automation/SKILL.md`,应只见第 3 条这一段与其后 `outputVariable` 一句的改动。 - 需要你做的:受管面 Tier H(`skills/**`),席位的达档契约复审 PASS 记录在案后,请合并。 ## What changes Item 3 of "Valid-but-silently-wrong" in `skills/objectstack-automation/SKILL.md`. Old text: "Packages of two `namespace`s each run their own `normalize_phone` (one namespace, or none: refused at install; a boot warns `Bare-name conflict at boot`)." New text: > Packages of two `namespace`s each run their own `normalize_phone`. One namespace (or none): both held at boot warn `Bare-name conflict at boot`; a later one installs but binds NONE of its functions or hooks (error `Failed to bind declarative hooks`): rename, or another namespace. This is should-fix F1 of the at-tier retro review of merged PR objectstack-ai#33396 (record 6886826237), with nit F3 folded in: the old parenthesis merged two moments, a pair both held at the boot and a new holder bound after it. The new sentence gives each its own clause. ### Each claim, read on `main` @ 7f0e38a | Claim | Code | |:--|:--| | Two namespaces each run their own (unchanged) | `packages/objectql/src/registry.ts:5520-5523` (`bareNameHoldersOtherThan` with `incomingNamespace`: a holder of another namespace is no conflict); `packages/core/src/package-scoped-resolution.ts:753` (step 1, the caller package's own item) | | Both held at boot: the boot warns `Bare-name conflict at boot` | Before the seal `claimBareNameFunctions` only records (`registry.ts:5517`, the throw is inside `if (this.bareNameHoldersSealed)`); the AppPlugin binds in `start()` (`packages/runtime/src/app-plugin.ts:1413`, call at `:1865`) and the seal runs later at `kernel:bootstrapped` (`packages/objectql/src/plugin.ts:1372-1383`), where `sealBareNameHoldersAtColdBoot` logs `bareNameColdBootWarning` (`registry.ts:3044`, text opens "Bare-name conflict at boot" at `:2957`) | | A later one installs | The bind after the seal throws `BareNameConflictError` (`registry.ts:5530`) from `bindHooksToEngine` (`packages/objectql/src/hook-binder.ts:221`); `bindAppArtifactHandlers` catches it per owner group and logs it (`packages/runtime/src/app-artifact-handlers.ts:415-443`, "Never throws" at `:89`), so neither caller sees a throw: AppPlugin `start()` (`app-plugin.ts:1865`) and the install-local plugin, which binds an installed package on install (`packages/cloud-connection/src/marketplace-install-local-plugin.ts:6611-6615`) | | ...but binds NONE of its functions or hooks | The claim runs ahead of every `registerFunction` (`hook-binder.ts:221` before `:236`) and ahead of the hook half (`:249` onward), so the throw leaves both empty for that owner group, the non-clashing names included. Pinned by `packages/objectql/src/registry-bare-name-one-holder-request-family.test.ts:586-602` (`beta_only_fn` stays unregistered) | | (error `Failed to bind declarative hooks`) | `app-artifact-handlers.ts:442`, `logger.error` | | What the author then sees (not written into the sentence; it follows from it and the next sentence) | Its flows read the clashing name as a package holding none: one holder only outside the `dependencies` closure refuses `outside-closure` as a guard (`package-scoped-resolution.ts:769-774`), a holder inside the closure runs that package's function (step 2, `:756-767`). A non-clashing name has no holder at all and fails as unregistered (`packages/services/service-automation/src/builtin/screen-nodes.ts:663-668`) | | Remedy: rename, or another namespace | Rename: the boot warning's own remedy (`registry.ts:2960-2961`) and the card. Another namespace: two holders of different declared namespaces never meet, so the bind is not refused (`registry.ts:5520-5523`) | ### Token budget, paid in place The file sat at 6859 of 6861 (priced bytes 27435). The rewrite costs +129 bytes, paid in the same file: - The flow door clause "a flow door answers `400 FLOW_FAILED`, `error.details.innerRefusal` naming each holder" becomes "a flow door's `innerRefusal` names each holder". Home: `skills/objectstack-api/SKILL.md:356-365` teaches the flow door's `400 FLOW_FAILED` and `error.details.innerRefusal`, naming a `script` node's function-name refusal. - "(registered under no package)" becomes "ownerless", the word the file already uses for the same idea (§ Assignment rules). - "(below)" after `defineStack({ functions })` is cut; the example sits right under it. - The pure-compute paragraph's "`config.outputVariable` exposes that value as a flow variable, and a later declarative node persists it" becomes "a later declarative node persists its `outputVariable`"; the example under it shows `outputVariable: 'ai'` read as `ai.ai_category`. The eval that expects `outputVariable` (flows-triggers-approvals) is still served by that example. Result: 27444 priced bytes, 6861 of 6861, headroom 0. Ceiling not moved. Lines: 463 before, 463 after. Package total of all SKILL.md files: unchanged in lines; tokens +2 (the file's headroom). ## Tests Skill wording only: no package is touched, so no package test or typecheck is owed and no ablation applies. The claims are read against the code and the pinning test named above. ## Acceptance notes - Code-side texts that use the same loose wording belong to the objectql owner and are NOT edited here (order ruling): `packages/objectql/src/hook-binder.ts:214-216` still says the function bind refusal "stays until the trailing backstop child (ADR-0150 D9) narrows it", which has narrowed (`bareNameHoldersOtherThan` with the namespace); `bareNameColdBootWarning` (`packages/objectql/src/registry.ts:2959-2960`) says "a further package declaring the name is refused at install", which for a function is the bind failure above. The seat files a card. - `.changeset/32522-skills-automation-function-name-per-namespace.md`, still unreleased, carries the old "refused at install" sentence. It is not edited here (outside this card's surface); this PR's changeset states the correction, so both entries ship in the same release notes. ## Verification - `dispatch-gates --tier`: MANDATORY claude-fable-5-2 (`skills/**`, clause ①, no one-line exit). This thread ran on an opus-tier model; the at-tier review is the seat's. - `check-governed-merges.mjs --branch claude/project-thread-vmehq6`: exit 3, GOVERNED, landing tier H, `skills/**` ×1; +23 / -13 over 2 files, under the human-merge threshold. - Ratchets on head 08401f6: `check-skills-token-ratchet` exit 0 (6861 / 6861); `check-skill-line-ratchet` exit 0. - Derived gates (`dispatch-gates --commands`), run on head 08401f6 after `turbo run build --filter=@objectstack/formula --filter=@objectstack/lint` under the verify lock (VERDICT command-exit 0): **46 derived, 44 exit 0, 2 exit 3 NOT MEASURED** (`check:dual-build-cjs-loads`, `check:lean-entry-closure`: they read every package's `dist`; no package is touched, CI runs them). `dispatch-gates --ran`: 46 accounted for, 44 run, 2 NOT-MEASURED, 0 UNRUN. <details><summary>46 gates, each with its exit code</summary> ```text node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0 node scripts/check-adr-0087-registration.mjs --self-test :: exit 0 node scripts/check-changeset-no-major.mjs --base origin/main :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/check-doc-route-spelling.mjs --advisory :: exit 0 node scripts/check-doc-route-spelling.mjs --self-test :: exit 0 node scripts/check-dts-emitted.mjs --self-test :: exit 0 node scripts/check-empty-changeset.mjs --base origin/main :: exit 0 node scripts/check-empty-changeset.mjs --self-test :: exit 0 node scripts/check-skills-token-ratchet.mjs :: exit 0 node scripts/check-skills-token-ratchet.mjs --self-test :: exit 0 node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0 node scripts/ci/snapshot-next.mjs --self-test :: exit 0 node scripts/pm/release-rehearsal-clone.mjs --self-test :: exit 0 node scripts/release-pending-publish.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm --filter @objectstack/spec run check:skill-docs :: exit 0 pnpm check:agent-test-spelling :: exit 0 pnpm check:changeset-gate-self-tests :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:closed-ceremony-text :: exit 0 pnpm check:corpus-claim-drift :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:dts-closure :: exit 0 pnpm check:dual-build-cjs-loads :: exit 3 pnpm check:gitlink-declared :: exit 0 pnpm check:lean-entry-closure :: exit 3 pnpm check:merge-driver :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:pm-governed-merges :: exit 0 pnpm check:pm-skill-id-lint :: exit 0 pnpm check:published-files :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:role-word :: exit 0 pnpm check:skill-compatibility :: exit 0 pnpm check:skill-frame-sync :: exit 0 pnpm check:skill-identifier-liveness :: exit 0 pnpm check:skill-links :: exit 0 pnpm check:sourcemap-no-sources-content :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` </details> - Every family CI runs beyond the derived list: read off this PR's check-runs. --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5mpzgKr4dbZVjCqjSv)_ Co-authored-by: Claude <noreply@anthropic.com>
Requested by Leehom · project thread
domain:skills#1 · os-project-manager · session_01FEkQ5pCBxBzsVQVGq52JDt
Part of #31527
Clause-②: no
Metadata-protocol: none
Card #32522 stays open when this merges, because the card is
Part of #31527; the skills seat ends it after the merge.维护者速读
objectstack-automation技能「Valid-but-silently-wrong」第 3 条里讲两个包发同名 flow function 的那一句,从「启动时告警Bare-name conflict at boot」改成现在main的行为:两个不同命名空间的包各跑各的(启动不告警);同一命名空间或没声明命名空间时,后来的安装被拒,启动时若两者都在则告警Bare-name conflict at boot。function加进了NAMESPACE_SCOPED_BARE_NAME_TYPES,不同命名空间的同名 function 不再算冲突,旧句子对这种情况已经不成立,那张 PR 的Skills-docs:行点名欠这一处。@objectstack/skillspatch changeset;不动 schema、不动运行时;token 棘轮用删掉一处同段重复付清,上限不动;回滚即还原本 PR。skills/objectstack-automation/SKILL.md第 268–271 行。git diff origin/main -- skills/,预期只见acme.crm/acme.sales那句换成按命名空间区分的说法,并删去「(the platform's counts)」。skills/**):请批准或合并。What changes
skills/objectstack-automation/SKILL.mdlines 268–271 (item 3 of "Valid-but-silently-wrong", the paragraph on how ascriptnode'sconfig.functionresolves). FROM:TO:
The guard refusal that follows (no
faultedge,$error.code: 'RESOURCE_CONFLICT', a flow door's400 FLOW_FAILEDwitherror.details.innerRefusal) is unchanged: it is already the flow-level face of ruling R2-C..changeset/32522-skills-automation-function-name-per-namespace.md:'@objectstack/skills': patch, carrying both declaration lines (skills/**ships in@objectstack/skills).No eval touched:
git grepoverskills/forBare-name conflict,normalize_phoneandacme.salesonorigin/main6538ba4 hits only this paragraph; no eval asserts the old sentence.Why
The card's premise holds on
origin/main6538ba4: line 270 said every two-package pair makes the boot warn. PR #32513 (card #31700, merged 2026-11-12) moved that, per its FROM → TO rows 2, 10 and 19. Checked against the code on 6538ba4:packages/core/src/package-scoped-resolution.ts:156NAMESPACE_SCOPED_BARE_NAME_TYPESlists'function'(line 169).packages/objectql/src/bare-name-one-holder.ts:424bareNameHoldersMeetdelegates a narrowed type topackages/spec/src/kernel/namespace-prefix.ts:220namespacedHoldersMeet: two holders meet unless both declare a namespace and the two differ. A holder's namespace is itsmanifest.namespace(packages/objectql/src/registry.ts:5205bareNameHolderNamespace). So "one namespace, or none" is exactly the meeting set.registry.ts:5415claimBareNameFunctions: after the seal, a bind bringing a function a meeting package holds throwsBareNameConflictError(422 NAMESPACE_CONFLICT); a holder of another namespace is skipped.registry.ts:5496sealBareNameHoldersreports a later holder only against an earlier one it meets, andpackages/objectql/src/plugin.ts:1383hands that tosealBareNameHoldersAtColdBootunderBARE_NAME_COLD_BOOT_MODE = 'warn'(bare-name-one-holder.ts:466), whose text isbareNameColdBootWarning(registry.ts:2933, "Bare-name conflict at boot: …"). Two namespaces' holders: no warning.packages/services/service-automation/src/engine.ts:4620AutomationEngine.resolveFunctionresolves for the calling flow's package and throws the resolver's409 RESOURCE_CONFLICTrefusal where the name means no single function for that caller; the skill already teaches this, unchanged.resolveFunction/resolveFunctionEntryrefuse it as ambiguous, naming both holders; a one-holder name resolves as before." That ispackages/objectql/src/engine.ts:772/:787. A flow author meets it only through the flow's guard refusal above, so the skill names no engine method.Pins that hold each sentence, run here (below):
packages/objectql/src/registry-bare-name-one-holder-request-family.test.ts"after the seal, two packages of two namespaces each bind a function of one name, and each keeps its own holder", "the cold boot of two namespaces' API and function holders boots with no bare-name warning", "a function co-owner of the holder's namespace is still refused at the bind", "a package with no namespace is still refused …", and "the cold boot of a deployment whose packages already bind one function name" → "boots, and warns once naming both packages … and the rename" (which also reads the R2-C 409 on the bare read).Paying the token ratchet. The file sat at 6860 of 6861 tokens (7 priced bytes of headroom). The rewrite drops the two package ids (
acme.crm/acme.salesnamed packages, while the rule now turns on namespaces) and cuts one restatement in the same paragraph: "(the platform's counts)", which the sentence before already says (the platform's function is "in every flow's reach", so it is one of the "holders in reach"). Net +5 priced bytes; the file lands at 6861 of 6861. No ceiling moved, so no ruling is cited.Acceptance notes
grep -n "Bare-name conflict at boot"→ zero hits) does not apply as written: the warning still fires for a pair in one namespace (or without one), so the rewritten sentence keeps the string, scoped to the pair it now covers. The card's "Fix" paragraph asks for exactly that.skills/objectstack-automation/SKILL.mdhas another open p3 card on it, skills(automation): teach that an after-record-change flow may not retry an inline outbound call #32525, not dispatched this round (order's serial constraint).Verification
Head
c40b6e10, baseorigin/main6538ba4.Line and token budget (skills/**)
skills/objectstack-automation/SKILL.md: 474 to 474 lines, 27457 to 27462 bytes; token ratchet 6860 to 6861 (ceiling 6861, headroom 0). A first wording measured 6864 (over by 3) and was shortened; no ceiling moved.skills/*/SKILL.md: 4602 to 4602 lines, 235787 to 235792 bytes. Bundle total (whole shipped tree): 244310 to 244311 tokens.node scripts/check-skills-token-ratchet.mjs: exit 0.node scripts/pm/check-skill-line-ratchet.mjs: exit 0.Derived gates: 46 derived, 44 run green, 2 NOT MEASURED
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 46 families for the two paths. Each was run with its exit code captured before any pipe, after building the@objectstack/lintclosure under the verify lock (VERDICT command-exit 0, 94s):check-adr-0087-registration(scan and--self-test),check-changeset-no-major,check-empty-changeset(scan and--self-test),check-closing-keyword-parity(scan and--self-test),check-skills-token-ratchet(scan and--self-test),@objectstack/lint check:doc-formula-expressions,@objectstack/spec check:skill-docs,check:doc-authoring,check:nul-bytes,check:pm-governed-merges,check:published-files,check:skill-compatibility,check:skill-frame-sync,check:skill-identifier-liveness,check:skill-links,check:dts-closure,check:sourcemap-no-sources-content.dist/):check:dual-build-cjs-loads,check:lean-entry-closure. No package source is touched; CI builds and runs them.--ran: "46 derived famil(ies) accounted for — 44 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)".pnpm --filter "@objectstack/objectql^..." buildthenpnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/registry-bare-name-one-holder-request-family.test.tsunder the verify lock: Test Files 1 passed, Tests 68 passed (VERDICT command-exit 0, 125s)./mnt/project-files/pm-orders/skills/32522-gates-ran.txt(project file). CI families are read from this PR's check-runs, not re-run here.Tier and governed readings
dispatch-gates --tier: MANDATORY contract-review tier,skills/objectstack-automation/SKILL.mdunder clause ① (the published catalog); no one-line exit for this surface.node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-r071bm: GOVERNED, landing tier H (人合). 1 of 2 paths hits the register (skills/**); the changeset is not on it. Size +14 / -4, under the 3000 threshold.🤖 Generated with Claude Code
https://claude.ai/code/session_01FEkQ5pCBxBzsVQVGq52JDt