Skip to content

docs(skills): the automation skill says what two packages shipping one flow function name get, now that function names are held per namespace - #33396

Merged
os-zhuang merged 1 commit into
mainfrom
claude/project-thread-r071bm
Nov 14, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/project-thread-r071bm

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

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.

维护者速读

What changes

  • skills/objectstack-automation/SKILL.md lines 268–271 (item 3 of "Valid-but-silently-wrong", the paragraph on how a script node's config.function resolves). FROM:

    acme.crm and acme.sales both shipping normalize_phone each run their own (the boot warns Bare-name conflict at boot). If the flow's package holds none, two holders in reach (the platform's counts) or one only outside its dependencies closure fail the step …

    TO:

    Packages of two namespaces each run their own normalize_phone (one namespace, or none: refused at install; a boot warns Bare-name conflict at boot). If the flow's package holds none, two holders in reach or one only outside its dependencies closure fail the step …

    The guard refusal that follows (no fault edge, $error.code: 'RESOURCE_CONFLICT', a flow door's 400 FLOW_FAILED with error.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 grep over skills/ for Bare-name conflict, normalize_phone and acme.sales on origin/main 6538ba4 hits only this paragraph; no eval asserts the old sentence.

Why

The card's premise holds on origin/main 6538ba4: 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:

  • The switch. packages/core/src/package-scoped-resolution.ts:156 NAMESPACE_SCOPED_BARE_NAME_TYPES lists 'function' (line 169).
  • Who meets whom. packages/objectql/src/bare-name-one-holder.ts:424 bareNameHoldersMeet delegates a narrowed type to packages/spec/src/kernel/namespace-prefix.ts:220 namespacedHoldersMeet: two holders meet unless both declare a namespace and the two differ. A holder's namespace is its manifest.namespace (packages/objectql/src/registry.ts:5205 bareNameHolderNamespace). So "one namespace, or none" is exactly the meeting set.
  • The install (bind) door. registry.ts:5415 claimBareNameFunctions: after the seal, a bind bringing a function a meeting package holds throws BareNameConflictError (422 NAMESPACE_CONFLICT); a holder of another namespace is skipped.
  • The boot. registry.ts:5496 sealBareNameHolders reports a later holder only against an earlier one it meets, and packages/objectql/src/plugin.ts:1383 hands that to sealBareNameHoldersAtColdBoot under BARE_NAME_COLD_BOOT_MODE = 'warn' (bare-name-one-holder.ts:466), whose text is bareNameColdBootWarning (registry.ts:2933, "Bare-name conflict at boot: …"). Two namespaces' holders: no warning.
  • The flow's bare reference. packages/services/service-automation/src/engine.ts:4620 AutomationEngine.resolveFunction resolves for the calling flow's package and throws the resolver's 409 RESOURCE_CONFLICT refusal where the name means no single function for that caller; the skill already teaches this, unchanged.
  • The two-holder bare engine read (ruling R2-C, 6812862622, quoted): "When two namespaces hold a function name, resolveFunction / resolveFunctionEntry refuse it as ambiguous, naming both holders; a one-holder name resolves as before." That is packages/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.sales named 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

  • The premise re-check the card names (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.md has 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, base origin/main 6538ba4.

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.
  • Whole package, all 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/objectstack derived 46 families for the two paths. Each was run with its exit code captured before any pipe, after building the @objectstack/lint closure under the verify lock (VERDICT command-exit 0, 94s):

  • 44 exit 0, among them 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.
  • NOT MEASURED, exit 3 PREREQUISITE NOT MET (they read every package's 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)".
  • Extra, not derived: the objectql pins above. pnpm --filter "@objectstack/objectql^..." build then pnpm --filter @objectstack/objectql exec vitest run --maxWorkers=2 src/registry-bare-name-one-holder-request-family.test.ts under the verify lock: Test Files 1 passed, Tests 68 passed (VERDICT command-exit 0, 125s).
  • Record: /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.md under 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

…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>
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 14, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c40b6e10091fa528d6c7ff6f6fe1d020848d6eee
Local-runs: none
Scope: skills/objectstack-automation/SKILL.md + none (the diff carries no file that implements or enforces the sentence; the cited code was READ on main b63c894, never reviewed: packages/core/src/package-scoped-resolution.ts, packages/spec/src/kernel/namespace-prefix.ts, packages/objectql/src/bare-name-one-holder.ts, packages/objectql/src/registry.ts, packages/objectql/src/hook-binder.ts, packages/objectql/src/engine.ts, packages/objectql/src/package-scoped-resolver.ts, packages/runtime/src/app-artifact-handlers.ts, packages/services/service-automation/src/engine.ts, packages/services/service-automation/src/function-package-scope.ts, packages/services/service-automation/src/builtin/screen-nodes.ts). The changeset is the lane seat's ACCEPT at TIER_DEFAULT.

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

  • open_questions: none.
  • Dev deviations, each answered:
    • Signature as a plain line, not an HTML-comment marker; no assignees. Process only, nothing in the tree. Accepted.
    • Ran below the mandated tier; the contract review at tier is owed before landing. This record is that review.
    • The card's premise re-check (zero hits for Bare-name conflict at boot means close) does not apply as written. Agreed: on main the warning still fires for a pair that meets (one namespace, or a package with none), so the string stays, scoped to that pair. The premise held: the old line said every two-package pair warns.
    • Branch not merged with main (14 behind). No conflict, no overlapping path, and the cited code still holds on main b63c894 (④). Accepted.
  • Card Fix paragraph, third item ("what a two-holder bare engine read answers (ruling R2-C)"): not written into the skill. Graded N2 below and accepted as a deviation.

④ Design judgment

skills/objectstack-automation/SKILL.md, lines 268 to 271, new sentence: "Packages of two namespaces each run their own normalize_phone (one namespace, or none: refused at install; a boot warns Bare-name conflict at boot). If the flow's package holds none, two holders in reach or one only outside its dependencies closure fail the step as a guard ..."

Checked clause by clause against main b63c894:

  1. "Packages of two namespaces": NAMESPACE_SCOPED_BARE_NAME_TYPES (packages/core/src/package-scoped-resolution.ts:156) lists 'function' (the picklist family, objectql: narrow the phase-1 one-holder refusal from environment to namespace for picklist, mapping, dataset, api and function (ADR-0150 child B, picklist family) #31700). objectql bareNameHoldersMeet (bare-name-one-holder.ts:424) returns true for any type not on that list, else namespacedHoldersMeet (spec namespace-prefix.ts:220): two holders meet unless both declare a namespace and the two differ. The namespace is the installed record's manifest.namespace (registry.ts bareNameHolderNamespace). function has no built-in name (BUILT_IN_BARE_NAMES.function is empty) and is not package-scoped, so the platform-requested-name exception never applies. The skill's partition (two namespaces apart; one namespace, or none, together) is exactly the meeting set. The mixed pair (one declares, one does not) lands in "refused" under either reading of "one namespace, or none", as the code has it. Holds.
  2. "each run their own": a flow script node resolves through AutomationEngine.resolveFunction(name, context) (service-automation engine.ts:4663), with the calling flow's armed package as the caller, into functionResolverOf and objectql resolvePackageScopedFunction (package-scoped-resolver.ts:200) over functionHoldersOf, which keeps every holder per package. A packaged flow runs its own package's function first (function-package-scope.ts module doc; screen-nodes.ts:653). Holds.
  3. "refused at install": claimBareNameFunctions (registry.ts:5444) throws BareNameConflictError (422 NAMESPACE_CONFLICT) once sealed, for a bind bringing a function a meeting package holds, ahead of any registration; a holder of another namespace is skipped (bareNameHoldersOtherThan, bareNameHoldersMeet). Holds; see N1 on the word "install".
  4. "a boot warns Bare-name conflict at boot": sealBareNameHolders (registry.ts:5525) reports each later holder only against an earlier one it meets, and sealBareNameHoldersAtColdBoot (registry.ts:3014) under BARE_NAME_COLD_BOOT_MODE = 'warn' (bare-name-one-holder.ts:466) logs bareNameColdBootWarning (registry.ts:2933), whose text opens "Bare-name conflict at boot:". Two namespaces' holders produce no conflict and no warning. Holds.
  5. "If the flow's package holds none, two holders in reach or one only outside its dependencies closure fail the step as a guard": unchanged except that "(the platform's counts)" is dropped. The sentence before still puts the platform's owner-less function "in every flow's reach", and resolvePackageScopedFunction's doc says a package caller holding none "counts it beside its closure's holders", so "two holders in reach" still covers the platform. The guard (code: 'RESOURCE_CONFLICT', no fault edge, innerRefusal) matches screen-nodes.ts:651 to 660. Holds.

Ruling R2-C (epic seat ruling 6812862622, posted on #31700 for epic #31527), quoted: "When two namespaces hold a function name, resolveFunction / resolveFunctionEntry refuse it as ambiguous, naming both holders; a one-holder name resolves as before." On main that is objectql engine.ts:772 and :787 (PackageScopedNameRefusedError, 409 RESOURCE_CONFLICT). It governs the BARE engine read, the call that names no package. No flow path reaches it: the script node always passes the flow's context. The only other caller on main, the runtime binder (app-artifact-handlers.ts:595), reads it only when one package holds the name. So R2-C does not govern the skill's sentence, and the sentence does not contradict it.

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:

  • N1, nit: "refused at install". For a function the refusing door is the hook binder's bind (bindHooksToEngine, hook-binder.ts:221), not the package's install. On the runtime binder that throw is caught and logged at error ("Failed to bind declarative hooks", app-artifact-handlers.ts, which never throws), so that owner group's hooks and functions stay unbound while the package itself installs. The wording matches the platform's own warning text ("a further package declaring the name is refused at install"), and the remedy an author needs (rename, or declare another namespace) is the same. No effect on correctness. Accepted deviation; no fix.
  • N2, nit: the card's Fix asks the rewrite to say "what a two-holder bare engine read answers (ruling R2-C)". The skill leaves this out on purpose: its reader writes script nodes, which never reach the bare read (above). The tree is right to leave it out. The PR body's line that the flow guard refusal "is already the flow-level face of ruling R2-C" is not accurate: that refusal comes from the package-scoped resolver (automation: flow script node and action target call the function by package (ADR-0150 D3; reader before #31700) #32073) and only shares the 409 RESOURCE_CONFLICT shape. That is PR-body prose, not the tree. Accepted deviation from the card's Fix paragraph.
  • N3, nit: dropping "(the platform's counts)" makes the reader infer from the sentence before that the platform's function is one of the "two holders in reach". The inference is correct and stated one clause earlier. Accepted.

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 claimBareNameFunctions already narrows it through bareNameHoldersMeet. That is a stale code comment.

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: claude/project-thread-r071bm
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

维护者速读

席位核对

Verdict: ACCEPT, held for the maintainer · head c40b6e10091fa528d6c7ff6f6fe1d020848d6eee · card #32522 (Part of #31527) · report 6882192431 · contract review 6882471862 (PASS on this head, CONTRACT_REVIEW_TIER; Ruling-ref for the in-seat review: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb option A).

  • Shape: draft → main, Part of #31527, references skills(automation): the function-name paragraph of objectstack-automation SKILL.md is stale once function names are namespace-scoped (ADR-0150, #31700) #32522. skills/objectstack-automation/SKILL.md (+4 / -4) and one '@objectstack/skills': patch changeset. No eval asserted the old sentence. GOVERNED, Tier H (skills/**). Clause-②: no; Metadata-protocol: none.
  • Ruling R2-C (6812862622): governs the engine's bare function read that names no package; no flow path reaches it, so the skill sentence neither teaches nor contradicts it.
  • Changeset (TIER_DEFAULT): correct level, same shape as the sibling skills changesets.
  • Gates: 46 derived, 44 exit 0, 2 NOT MEASURED (dual-build-cjs-loads, lean-entry-closure; no package touched). Token ratchet 6861 of 6861, ceiling unmoved. Check-runs on the head: 48, 30 success, 18 skipped, none failing. Mergeable clean; main moved after branching with no overlapping path, and the review re-read the code on current main.
  • Accepted deviations (review nits): N1, "refused at install" is precisely refused when the package's functions are bound (the package installs, that group's hooks and functions stay unbound), matching the platform's own warning text; N2, the card's Fix paragraph asked to teach the two-holder bare engine read (R2-C), left out because the skill's reader never reaches it, and the PR body's "flow-level face of ruling R2-C" is loose prose (the flow refusal comes from the package-scoped resolver); N3, "(the platform's counts)" dropped, still covered by the preceding clause. Process: the thread ran on the session model and the tier was met by this in-seat review.
  • Follow-up candidate: packages/objectql/src/hook-binder.ts:215-216 still says the function-bind refusal "stays until the trailing backstop child (ADR-0150 D9) narrows it"; claimBareNameFunctions already narrows it.
  • Landing: Tier H. The seat does not flip this PR ready or enqueue it. It needs the maintainer's merge, or an authorised APPROVED review after which the seat lands it. The card stays open on merge; the seat closes it.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 14, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 14, 2026 21:26
@os-zhuang
os-zhuang enabled auto-merge November 14, 2026 21:27
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 14, 2026
Merged via the queue into main with commit 7e61983 Nov 14, 2026
54 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-r071bm branch November 14, 2026 21:53
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Correction: contract-review tier

The contract-review record(s) 6882471862 on this PR say Served-tier: CONTRACT_REVIEW_TIER, and the seat adopted them as "isolated sub-agent at CONTRACT_REVIEW_TIER". That is wrong. The seat launched the reviewing sub-agent without the tier, so it ran at the seat's own default tier, not at CONTRACT_REVIEW_TIER. The seat found this on its own audit. The review was still isolated and adversarial, and its findings stand as an off-tier review. They are not the at-tier record AGENTS.md and the in-seat review ruling require.

This PR has already merged. The seat re-runs the review at CONTRACT_REVIEW_TIER against the merged tree and files a card for any finding it turns up.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: c40b6e10091fa528d6c7ff6f6fe1d020848d6eee
Local-runs: none
Scope: skills/objectstack-automation/SKILL.md + none (no file in the diff implements or enforces the sentence). Code READ on main 8e63ed8, never reviewed: packages/core/src/package-scoped-resolution.ts, packages/spec/src/kernel/namespace-prefix.ts, packages/objectql/src/bare-name-one-holder.ts, packages/objectql/src/registry.ts, packages/objectql/src/hook-binder.ts, packages/objectql/src/package-scoped-resolver.ts, packages/objectql/src/registry-bare-name-one-holder-request-family.test.ts, packages/runtime/src/app-artifact-handlers.ts, packages/runtime/src/app-plugin.ts, packages/services/service-automation/src/function-package-scope.ts. The changeset is the lane seat's ACCEPT at TIER_DEFAULT.

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

  • Accept set: no change. The diff holds no schema, no runtime code and no gate. Right.
  • Public surface: one paragraph of the published @objectstack/skills catalog, item 3 of "Valid-but-silently-wrong" in objectstack-automation (lines 268 to 271). Right: it is the line the card names, and the old text (every two-package pair makes the boot warn) is false on main since function joined NAMESPACE_SCOPED_BARE_NAME_TYPES.
  • Evals: the two eval files of the skill assert nothing about a function name two packages hold (the one script eval, pricing.recalc, is untouched and still true). On main, Bare-name conflict and normalize_phone appear under skills/ only in this paragraph. Right: no eval was owed.
  • Token ceiling: not moved; the head's gate check-runs are green.

② Semver level

③ Boundary flags

  • open_questions: none in the dev report 6882192431.
  • Dev deviations, each answered:
    • Plain-line signature and no assignees: process only, nothing in the tree. Accepted.
    • The dev thread ran below the mandated tier and said the at-tier review was owed. The record 6882471862 did not pay it (correction 6886588421); this record does.
    • The card's premise re-check (zero hits for Bare-name conflict at boot means close) does not apply as written. Agreed: on main the cold boot still warns for a pair that meets, so the string stays, scoped to that pair.
    • Branch not merged with main before landing: no overlapping path, and the code holds on today's main.
  • Card Fix, third item (what a two-holder bare engine read answers, ruling R2-C): not written into the skill. See N2 of the earlier record below; accepted.
  • Earlier record 6882471862 (off-tier), finding by finding:
    • Its five clause checks: confirmed independently on main 8e63ed8 (④).
    • N1 ("refused at install" is really the bind): the fact is confirmed; the grade is not. This review grades it should-fix (F1).
    • N2 (R2-C bare engine read left out; the PR body's "flow-level face of R2-C" is loose): confirmed, nit. The bare read (resolveFunction / resolveFunctionEntry, pinned by the test "[epic seat ruling R2-C]") is never reached by a script node, which always resolves through the package-scoped resolver with the flow's package. The tree is right to omit it.
    • N3 (dropping "(the platform's counts)"): confirmed, nit (F2).
    • Its out-of-scope note on packages/objectql/src/hook-binder.ts: confirmed on main 8e63ed8, lines 214 to 216 still say the function bind refusal "stays until the trailing backstop child (ADR-0150 D9) narrows it", and it has narrowed. Stale code comment, outside this diff.
    • It carried no should-fix item, so there is none to check as fixed.

④ Design judgment

skills/objectstack-automation/SKILL.md, the new sentence: "Packages of two namespaces each run their own normalize_phone (one namespace, or none: refused at install; a boot warns Bare-name conflict at boot). If the flow's package holds none, two holders in reach or one only outside its dependencies closure fail the step as a guard ..."

Clause by clause, against main 8e63ed8:

  1. "Packages of two namespaces": NAMESPACE_SCOPED_BARE_NAME_TYPES (core package-scoped-resolution.ts) lists 'function'. bareNameHoldersMeet (objectql bare-name-one-holder.ts) answers true for a type off that list, else namespacedHoldersMeet (spec namespace-prefix.ts): two holders meet unless both declare a namespace and the two differ. The platform-requested-name exception is gated on isPackageScopedType, which the engine's function type is not, so it never applies. A holder's namespace is its installed record's manifest.namespace, the key an author writes. Holds.
  2. "each run their own": resolvePackageScopedHolders step 1 returns the caller package's own item whenever it holds the name, before the closure or the platform is read; the script node reaches it through functionResolverOf and resolvePackageScopedFunction with the calling flow's package. The engine keeps every holder per package (test: "after the seal, two packages of two namespaces each bind a function of one name, and each keeps its own holder"). Holds.
  3. "one namespace, or none": the meeting set exactly. Two packages of one namespace meet; a package with no namespace meets every holder; the mixed pair (one declares, one does not) meets and reads as refused under either reading of the phrase. Holds.
  4. "refused at install": after the seal, claimBareNameFunctions (registry.ts) throws BareNameConflictError for a bind bringing a function a meeting package holds, ahead of any registration, and skips a holder of another namespace. Before the seal it only records. Holds for the bind; see F1 for "install".
  5. "a boot warns Bare-name conflict at boot": sealBareNameHolders reports a later holder only against an earlier one it meets; sealBareNameHoldersAtColdBoot under BARE_NAME_COLD_BOOT_MODE = 'warn' logs bareNameColdBootWarning, whose text opens with that string. Two namespaces' holders give no conflict and no warning (test: "the cold boot of two namespaces' API and function holders boots with no bare-name warning"). Holds.
  6. "If the flow's package holds none, two holders in reach or one only outside its dependencies closure": unchanged but for the dropped parenthesis. Step 2 of the resolver counts the platform's owner-less function beside the closure's holders and refuses ambiguous-in-closure; step 3 refuses outside-closure. Holds.

Tried to break it:

  • One-namespace pair that both came through the boot: the warning changes nothing, each flow still runs its own function. The sentence claims only the warning there. No break.
  • Two namespaces, the flow's package holding none and both holders in its closure: refused as the next sentence says. No break.
  • A flow's own package and the platform both holding the name: step 1 runs the package's own. Consistent with "each run their own". No break.
  • The post-seal bind of a one-namespace second holder: this is where the sentence is loose (F1).

Findings:

  • F1, should-fix (follow-up card; the PR is merged): "refused at install" is not what happens to a function. The only door that judges a function is the hook binder's bind (bindHooksToEngine calls claimBareNameFunctions); the package door and the item seam judge registry types only, and function is not one (BARE_NAME_REGISTRY_TYPES filters it out). The runtime's one binder, bindAppArtifactHandlers (called from AppPlugin.start), catches that throw per owner group and logs it at error as "Failed to bind declarative hooks". So the second package INSTALLS; what is refused is the bind, and with it every function and every hook of that owner group, the non-clashing ones included (test: "registers nothing", beta_only_fn stays unregistered). The author then sees no install refusal at all. Its script node fails as unregistered, or, if the package declares the first holder as a dependency, resolves step 2 and silently runs the OTHER package's function. That is the opposite of the loud stop the words promise, in the skill's own "Valid-but-silently-wrong" list. It is graded should-fix and not must-fix because the sentence is a newly added claim that mis-states the symptom, while what the author is told to write (rename, or another namespace) stays right, the platform's own boot warning uses the same words, and a post-seal function bind is rare (functions are code, so only a code bundle bound after the boot reaches it). Suggested wording within the budget: say the later package's functions and hooks are not bound, logged as an error, in place of "refused at install". The file sits at its token ceiling (6861 of 6861), so the fix must pay for itself.
  • F2, nit: dropping "(the platform's counts)" leaves the reader to infer from the clause before ("in every flow's reach") that the platform's function is one of the "two holders in reach". The inference is correct. Accepted deviation.
  • F3, nit: the parenthesis "(one namespace, or none: refused at install; a boot warns ...)" compresses two different moments (a new holder after the boot; a pair already held at the boot) into one clause, and a reader can take both to happen together. Accepted deviation; fold into the F1 card if that sentence is rewritten.

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 bareNameColdBootWarning in packages/objectql/src/registry.ts, whose generic "refused at install" text is the source of F1's wording and is equally loose for a function.

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: claude/project-thread-r071bm
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

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

scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…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>
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 size/s 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.

3 participants