Skip to content

Commit 39ed9ac

Browse files
committed
chore(metadata-protocol): changeset for the layered flow read, and the engine-double ledger row its unit pin needs
Claude-Session: https://claude.ai/code/session_01VvcEokUG1tvVxkceYfR5XB Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5cdb27e commit 39ed9ac

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@objectstack/metadata-protocol': patch
3+
---
4+
5+
fix(metadata-protocol): the layered read of a flow name a managed package ships reports the package's flow as the effective layer, as the by-name read and the flow list do (#21002)
6+
7+
Clause-②: no
8+
9+
`flow` is in ADR-0126's Regime C: a managed package's flow is sealed, and there is no overlay read path for it. The flow list, `GET /api/v1/meta/flow`, and the by-name read, `GET /api/v1/meta/flow/:name`, already serve the package's flow for a name a managed package ships (#20913, #20946). The layered read, `GET /api/v1/meta/flow/:name/layers`, did not: for such a name it reported a stored flow of that name as the effective layer, while its lock and provenance flags named the package. So the layered read and the other two read doors answered two different flows for one name.
10+
11+
The layered read now decides the effective layer with the same check the other two doors use. For a name a managed package ships, the effective layer is the package's flow, with or without a package scope, whatever the stored flow's own package binding or markings say. The stored flow is still reported, as a separate layer of its own scope that does not take effect. The deprecated layers flag on the by-name read answers the same.
12+
13+
The stored flow is not deleted, rewritten or refused. Flow names no managed package ships, organization-scoped rows and every other metadata type are read as before.

‎scripts/engine-double-contract.pinned.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,11 @@
636636
"verb": "findOne",
637637
"pinned": 1
638638
},
639+
{
640+
"file": "packages/metadata-protocol/src/protocol.flow-layered-shipped-name.test.ts",
641+
"verb": "findOne",
642+
"pinned": 1
643+
},
639644
{
640645
"file": "packages/metadata-protocol/src/protocol.flow-org-override-closed.test.ts",
641646
"verb": "delete",

0 commit comments

Comments
 (0)