Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/32522-skills-automation-function-name-per-namespace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@objectstack/skills': patch
---

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

Clause-②: no
Metadata-protocol: none

Since engine `function` joined `NAMESPACE_SCOPED_BARE_NAME_TYPES` (ADR-0150 D2/D9), two packages declaring two different `namespace`s may each bind a function of one name, each flow's `script` node running its own package's, and the cold boot no longer warns for that pair. `objectstack-automation` still said every two-package pair makes the boot warn `Bare-name conflict at boot`. Item 3 of "Valid-but-silently-wrong" now says: packages of two namespaces each run their own; within one namespace, or where a package declares none, the later bind is refused at install, and a boot holding such a pair warns `Bare-name conflict at boot`. The guard refusal for a flow whose package holds none (two holders in reach, or one only outside its `dependencies` closure: `RESOURCE_CONFLICT`) is unchanged. No schema, accept set or behaviour changes.
8 changes: 4 additions & 4 deletions skills/objectstack-automation/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@ Most are caught by `objectstack build`:

**The name resolves from the flow's package, as `subflow`'s `flowName`
does**, the platform's function (registered under no package) in every
flow's reach; a `.custom` override reads as a package-less flow. `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
flow's reach; a `.custom` override reads as a package-less flow. 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`). If the
flow's package holds none, two holders in reach or one only outside its
`dependencies` closure fail the step as a guard (no `fault` edge;
`$error.code: 'RESOURCE_CONFLICT'` in a `try_catch`); a flow door answers
`400 FLOW_FAILED`, `error.details.innerRefusal` naming each holder. Fix:
Expand Down
Loading