@orkestrel/scaffold 0.0.118 → 0.0.119

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,8 @@ The commands an agent runs on a Windows host, and their quirks. `.claude/rules/p
4
4
 
5
5
  ## Processes
6
6
 
7
- - When a held native module interrupts an install, identify its holders with `tasklist /M`, terminate no process the session did not launch, and record the partial installation state. Rebuild from the unchanged lockfile, verify the manifest and lockfile identities, and report the clean-install criterion the recovery did not prove.
7
+ - Before `npm ci`, list the processes holding a file under the checkout's `node_modules`: `tasklist /M <file>.node` for a loaded native module, and the `ExecutablePath` of each `Get-CimInstance Win32_Process` row for an executable such as a language server. When one is held, skip `npm ci` and recover per the following bullet.
8
+ - When a held file under `node_modules` blocks or interrupts an install, identify its holders, terminate no process the session did not launch, and record the partial installation state. Rebuild from the unchanged lockfile with `npm install`, verify the manifest and lockfile identities and the tree with `npm ls --all`, and report the clean-install criterion the recovery did not prove.
8
9
  - Read liveness with `Get-Process -Id <pid>` in PowerShell, or under Git Bash from the output of `tasklist //FI "PID eq <pid>" //NH`: a row naming the pid means alive, and the `INFO:` line means gone. Never read liveness from `tasklist`'s exit code, `kill -0`, or `ps -eo`.
9
10
  - List descendants with `Get-CimInstance Win32_Process -Filter "ParentProcessId=<pid>"`, applied to each listed id in turn. Under Git Bash, run it through `powershell -NoProfile -Command`, and write every Windows slash option as `//`.
10
11
  - Kill a recorded tree with `taskkill /pid <pid> /T /F`. `launch.ts` kills the tree at its cap on this host.
@@ -35,6 +35,7 @@ When a consumer needs a dependency's unpublished source, to meet a defect that l
35
35
  ## The scaffold surface
36
36
 
37
37
  - After a package's first publish, run `scaffold catalog --all` in the scaffold checkout and release scaffold, so the `surface` rule reads the package's guide from that release.
38
+ - When a `@orkestrel/guide` release refuses a guide form its parser read before, push each catalog package's conforming guide to that package's `main`, the releasing package's own included, before the scaffold release that carries the catalog refresh; the `surface` rule parses every hosted guide, a target's own among them.
38
39
  - `scaffold` is a development dependency of every package, so it publishes on its own and propagates as files, never as a cascade. Each package builds against the published `scaffold`.
39
40
  - `scaffold` ships `dist/host`, the vendored file set every target receives through `repair`. Bump and publish `scaffold` when any vendored byte or the set of vendored paths changes.
40
41
  - After a vendored-only release, re-pin `@orkestrel/scaffold` in each target, run `repair` there, and prove that target's gates still green. A target bumps only when its own published surface moved.
@@ -167,7 +167,8 @@ registry copy over any staged tip, so every consumer stays red until that tip is
167
167
 
168
168
  ## Prepare a layer
169
169
 
170
- - After the re-pin and before `prepublishOnly`, run `scaffold surface` live over every candidate checkout of the layer, never with `--offline`. Stop the upload on any exit but `0`, and resolve every name it reports under `.claude/rules/names.md` § Fleet name ownership. In scaffold's own layer, run `scaffold catalog` and then `scaffold surface --from .`.
170
+ - After the re-pin and before `prepublishOnly`, run `scaffold surface` live over every candidate checkout of the layer, never with `--offline`. Stop the upload on any exit but `0`, and resolve every name it reports under `.claude/rules/names.md` § Fleet name ownership. In scaffold's own layer, run `scaffold catalog`, then `npm run build`, so `host.json` records the refreshed files' digests, and then `scaffold surface --from .`.
171
+ - In the scaffold release that opens a transfer under `.claude/rules/names.md` § Fleet name ownership rule 5, declare it in `SURFACE_TRANSFERS` before `npm run build`. In the scaffold visit that closes it, remove the declaration before the build and confirm `host.json` no longer records the name.
171
172
  - When `scaffold surface` prints an advisory, rule it under `.claude/rules/names.md` § Fleet name ownership before the upload; an advisory never stops the upload.
172
173
  - Begin each release chain plan with the clean reinstall and the clean, whether it runs in a clone or the checkout.
173
174
  - When a writer owns a script the preparation needs, run its installed built twin and record the executable's identity.
@@ -134,14 +134,15 @@ Export a bare name from one environment of its package. When two environments of
134
134
 
135
135
  Before adding a public name, check it against the fleet with `scaffold surface`. `.claude/rules/workspace.md` § Policy instruments owns the `surface` policy rule.
136
136
 
137
- The rule grandfathers a source name the target's own hosted guide claims, because that guide is the target's own claim to it. It grandfathers no root `tests/setup*.ts` export. A vendored `tests/setup*.ts` module a scaffold release stages sits outside the inspected population.
137
+ The rule grandfathers a source name the target's own hosted guide claims, because that guide is the target's own claim to it, and a source name whose installed collision record names the target as an owner: the hosted `manifest.json` in a target, and the committed `host.json` in the `@orkestrel/scaffold` checkout. It grandfathers no root `tests/setup*.ts` export. A vendored `tests/setup*.ts` module a scaffold release stages sits outside the inspected population.
138
138
 
139
139
  Resolve a reported collision with these rules, in order.
140
140
 
141
141
  1. **Reuse before renaming.** Where the colliding declarations carry the same contract, delete this one and import the owner's export. Declare the dependency that import needs, or stop and report that the dependency is not authorized.
142
142
  2. **The subject keeps the name.** Where the contracts differ, leave the name with the package whose domain the name describes, and rename the other declaration for the thing it is. Refuse a rename that makes the renamed declaration vaguer; name its own contract instead.
143
143
  3. **Qualify rather than extract.** Extract a shared package only where a proof shows the colliding declarations interchangeable and the dependency change is authorized. Otherwise qualify the name in place for the domain it serves, and route the extraction through a design round rather than renaming by fiat.
144
- 4. **Close the collision in the code.** Change a declaration; the rule reads no allowlist a target can add a name to, and it carries no suppression. Never suppress the violation, and never edit a vendored policy instrument to clear it. In the `@orkestrel/scaffold` checkout, shrink the committed `host.json` collision record by closing a collision, and never widen it to admit one.
144
+ 4. **Close the collision in the code.** Change a declaration; the rule reads no allowlist a target can add a name to, and it carries no suppression. Never suppress the violation, and never edit a vendored policy instrument to clear it. In the `@orkestrel/scaffold` checkout, shrink the committed `host.json` collision record by closing a collision, and widen it only by the keeper a transfer under rule 5 declares.
145
+ 5. **Transfer a name through a declared keeper.** When a `ROADMAP.md` item rules that one package gains a bare name other packages export, declare the transfer in `SURFACE_TRANSFERS` in `src/core/constants.ts` of the `@orkestrel/scaffold` checkout as the name, its keeper, and the item, one keeper per name, in the scaffold release that precedes the keeper's visit. A declared transfer admits exactly that keeper into that name's recorded owner set and admits nothing else: the stage still refuses any other added owner, and a collision no transfer names stays closed in the code under rule 4. The keeper exports the name under the transfer; each giver deletes its copy and imports the keeper's at its own visit under rule 1. Remove the transfer in the scaffold visit after the last giver publishes; the stage refuses a transfer whose keeper's mirrored guide alone claims the name.
145
146
 
146
147
  ## Acronyms
147
148
 
@@ -170,6 +170,8 @@ A test that spawns a process, packs, installs, or drives a real build is a proof
170
170
  `.claude/rules/workspace.md` fixes where each isolated project runs, and that placement
171
171
  differs between a publishing and a `private: true` workspace.
172
172
  - Use `distribution` and `service` as the fixed expensive-proof projects.
173
+ - When a change alters what a package ships, such as an export, its declaration text, or a packed
174
+ path, run its `distribution` project before accepting the change.
173
175
  - Put a study's proofs under `tests/studies/` in the `studies` project, which
174
176
  `.claude/rules/workspace.md` § Test project matrix places.
175
177
  - Put in `studies` only the proofs the `@orkestrel/study` engine drives. Place a slow end-to-end proof of
@@ -352,7 +352,8 @@ Build/check config alignment:
352
352
  comparison leaves out the setup modules scaffold owns in every target: each vendored `HOST_PATHS`
353
353
  member and the `tests/setupDistribution.ts` harness. `.claude/rules/names.md` § Fleet name
354
354
  ownership defines the bare name that comparison matches and decides which declaration gives a
355
- claimed name up.
355
+ claimed name up. The `surface` rule also grandfathers a name the installed record admits the
356
+ target to under `.claude/rules/names.md` § Fleet name ownership rule 5.
356
357
  - Keep every barrel statement in the form `.claude/rules/architecture.md` § Barrel exports fixes.
357
358
  The sweep refuses a barrel population it cannot read whole and reports that refusal as a `surface`
358
359
  violation rather than passing over the statements it did read. A catalog row with no hosted guide,
@@ -126,6 +126,7 @@ Exported from `@orkestrel/scaffold`, and reachable from
126
126
  | `SurfaceContract` | interface | `{ signatures }` | Represents one owner's claim with the guide `Signature` cell of each name a Surface row documents. |
127
127
  | `SurfaceFinding` | interface | `{ standing }` | Reports a collision's standing against the recorded owner set. |
128
128
  | `SurfaceSimilarity` | type | `'case' \| 'plural' \| 'edit' \| 'signature'` | Names how an added name resembles a name another owner claims. |
129
+ | `SurfaceTransfer` | interface | `{ name, keeper, item }` | Represents a declared transfer of one bare name to the package a roadmap item rules keeps it. |
129
130
 
130
131
  #### Constants
131
132
 
@@ -216,6 +217,7 @@ Exported from `@orkestrel/scaffold`, and reachable from
216
217
  | `STYLES_ENTRY_PATH` | const | `"src/styles/index.scss"` | Names the base stylesheet marker. |
217
218
  | `SURFACES` | const | `readonly Surface[]` | Lists the surfaces an extension may extend, frozen. |
218
219
  | `SURFACE_EDIT_LENGTH` | const | `6` | Sets the shortest name length at which a one-edit neighbor counts as a near name. |
220
+ | `SURFACE_TRANSFERS` | const | `readonly SurfaceTransfer[]` | Lists the declared transfers of bare names to their ruled keepers, frozen. |
219
221
  | `TAB_WIDTH` | const | `2` | Sets the columns one tab occupies when the formatter measures a line, matching `tabWidth`. |
220
222
  | `TARGET_SKILL_NAMES` | const | `readonly string[]` | Lists the package-facing skills a target receives pointers for, frozen and alphabetical. |
221
223
  | `THEMES_BARREL_PATH` | const | `"src/styles/themes/index.scss"` | Names the themes stylesheet marker. |
@@ -781,7 +783,9 @@ scaffold surface ../router ../server --from . --json
781
783
 
782
784
  The comparison uses the bare identifier, case included, across declaration keywords and
783
785
  environments. A name claimed by distinct owners is a collision. A collision absent from the record,
784
- or carrying an owner absent from its recorded owner set, has `error` standing. A collision with the
786
+ or carrying an owner absent from its recorded owner set, has `error` standing. When another guide
787
+ claims the name, the keeper a `SURFACE_TRANSFERS` entry declares is a recorded owner of it from the
788
+ first build after the declaration, so its claim reads `recorded` before its guide is mirrored. A collision with the
785
789
  same or fewer owners has `recorded` standing. A recorded name that no longer collides has `closed`
786
790
  standing, so a release can shrink the record.
787
791
 
@@ -2455,6 +2459,12 @@ committed inventory does not already record: `stageHost` reads the baseline thro
2455
2459
  `readSurfaceBaseline` before the build rewrites the inventory, and refuses a name whose staged
2456
2460
  owner set differs from the inventory — absent from the record, or not a subset of its recorded
2457
2461
  owners — which is what stops a release from widening the set of names more than one package claims.
2462
+ A `SURFACE_TRANSFERS` entry that another staged guide claims admits exactly its keeper beside the
2463
+ recorded owners, or beside the one owner of a name the record lacks, and the stage records that
2464
+ keeper whether or not its guide is mirrored; any other added owner is still refused. A transfer
2465
+ whose keeper alone claims the name is spent, and the stage refuses it with `TARGET`, naming the
2466
+ name, the keeper, and the item to remove from `SURFACE_TRANSFERS`. A transfer that no staged guide
2467
+ claims stays inert.
2458
2468
  A collision the baseline records and the stage no longer produces, or whose staged owners are a
2459
2469
  narrower subset of the recorded set, is accepted, so closing one needs no separate step. `HostStageOptions.inventory` selects the
2460
2470
  checkout-relative inventory path, defaulting to `HOST_INVENTORY_PATH` (`host.json`).
@@ -28,7 +28,7 @@
28
28
  "storage": "agents/platforms/windows.md",
29
29
  "destination": ".agents/platforms/windows.md",
30
30
  "executable": false,
31
- "digest": "74edc68f824ec46a7ffcc46ee6a3e654024fee646cd5441762e8c3a3b8929d6c"
31
+ "digest": "c97cc6fc884e8cb69af7799b0bab232e832f954bb98fcc4a28dbd3cac5dbe7b4"
32
32
  },
33
33
  {
34
34
  "storage": "agents/skills/enterprise-bootstrap/SKILL.md",
@@ -466,13 +466,13 @@
466
466
  "storage": "agents/skills/orkestrel-publish/references/release.md",
467
467
  "destination": ".agents/skills/orkestrel-publish/references/release.md",
468
468
  "executable": false,
469
- "digest": "c52e27bd27e011766514c3cf683362ed695c834d2aafc2e922bb4ac22a97b320"
469
+ "digest": "2f41dd3fcaec1fd79d68ece06701cc2752f90f399693dd99f1768ce5d47502fd"
470
470
  },
471
471
  {
472
472
  "storage": "agents/skills/orkestrel-publish/references/wave.md",
473
473
  "destination": ".agents/skills/orkestrel-publish/references/wave.md",
474
474
  "executable": false,
475
- "digest": "51f5303628eae0b7508955382ac4173d2e8245a93e424179dbeb6bd3a4311440"
475
+ "digest": "794a8a64a3a1ae0c6bef241271236c0ea2164b994260527e9fd170589a8d0306"
476
476
  },
477
477
  {
478
478
  "storage": "agents/skills/orkestrel-publish/references/window.md",
@@ -670,7 +670,7 @@
670
670
  "storage": "claude/rules/names.md",
671
671
  "destination": ".claude/rules/names.md",
672
672
  "executable": false,
673
- "digest": "c92326ad5ab3a786479205ebc9543f19f9b43909b0f4b86c196372768d4ca624"
673
+ "digest": "cfeccc30997f262fbe50413dc0d2c490a0942221300eb721d5687b3099a3474c"
674
674
  },
675
675
  {
676
676
  "storage": "claude/rules/patterns.md",
@@ -700,7 +700,7 @@
700
700
  "storage": "claude/rules/tests.md",
701
701
  "destination": ".claude/rules/tests.md",
702
702
  "executable": false,
703
- "digest": "f6bc1693ac9d9850eee36e70c2b95e26102738a52ff65a102b80a7f7601d97d7"
703
+ "digest": "18bac0bc31e70ba3dfca68b1519f747dff908b7023b80d11e44e6fdf3a2b8e7e"
704
704
  },
705
705
  {
706
706
  "storage": "claude/rules/typescript.md",
@@ -712,7 +712,7 @@
712
712
  "storage": "claude/rules/workspace.md",
713
713
  "destination": ".claude/rules/workspace.md",
714
714
  "executable": false,
715
- "digest": "a364813cdba3276deefa159eb2a4cb85f8acb2becb4f55ebff17a019c397c381"
715
+ "digest": "6ab0017c81925e493061fc991fe8afbf291f7fbd41fc6913be76b09ebdf07ade"
716
716
  },
717
717
  {
718
718
  "storage": "claude/rules/writing.md",
@@ -1168,7 +1168,7 @@
1168
1168
  "storage": "guides/scaffold.md",
1169
1169
  "destination": "guides/scaffold.md",
1170
1170
  "executable": false,
1171
- "digest": "ef9158ff72a362260dece3d5f1bacc37d6c9ceb6f75e4b8814e5b64dabc39a5b"
1171
+ "digest": "7939bba1c9cdc969900fa7db97eef1f9b837c03f02f9b4c835f06dee1a5ee8de"
1172
1172
  },
1173
1173
  {
1174
1174
  "storage": "guides/sea.md",
@@ -1318,7 +1318,7 @@
1318
1318
  "storage": "tests/setupPolicy.ts",
1319
1319
  "destination": "tests/setupPolicy.ts",
1320
1320
  "executable": false,
1321
- "digest": "66ae0b2a0905d69cb4c85d0eafce5994beb69c8f27e54afdfbe84a4bad528ca1"
1321
+ "digest": "de7149a4e2b47686d4509f5302993276b583a2c1c3c4800fabff9dde3132b9ec"
1322
1322
  }
1323
1323
  ],
1324
1324
  "roots": [
@@ -1397,6 +1397,7 @@
1397
1397
  {
1398
1398
  "name": "BOM",
1399
1399
  "owners": [
1400
+ "codec",
1400
1401
  "csv",
1401
1402
  "sse"
1402
1403
  ]
@@ -1404,6 +1405,7 @@
1404
1405
  {
1405
1406
  "name": "CHOICE_LIMIT",
1406
1407
  "owners": [
1408
+ "contract",
1407
1409
  "form",
1408
1410
  "table"
1409
1411
  ]
@@ -1467,6 +1469,7 @@
1467
1469
  {
1468
1470
  "name": "JSONRPCError",
1469
1471
  "owners": [
1472
+ "jsonrpc",
1470
1473
  "lsp",
1471
1474
  "mcp"
1472
1475
  ]
@@ -1474,6 +1477,7 @@
1474
1477
  {
1475
1478
  "name": "JSONRPCErrorResponse",
1476
1479
  "owners": [
1480
+ "jsonrpc",
1477
1481
  "lsp",
1478
1482
  "mcp"
1479
1483
  ]
@@ -1481,13 +1485,22 @@
1481
1485
  {
1482
1486
  "name": "JSONRPCId",
1483
1487
  "owners": [
1488
+ "jsonrpc",
1484
1489
  "lsp",
1485
1490
  "mcp"
1486
1491
  ]
1487
1492
  },
1493
+ {
1494
+ "name": "JSONRPCInvocation",
1495
+ "owners": [
1496
+ "jsonrpc",
1497
+ "mcp"
1498
+ ]
1499
+ },
1488
1500
  {
1489
1501
  "name": "JSONRPCMessage",
1490
1502
  "owners": [
1503
+ "jsonrpc",
1491
1504
  "lsp",
1492
1505
  "mcp"
1493
1506
  ]
@@ -1495,6 +1508,7 @@
1495
1508
  {
1496
1509
  "name": "JSONRPCNotification",
1497
1510
  "owners": [
1511
+ "jsonrpc",
1498
1512
  "lsp",
1499
1513
  "mcp"
1500
1514
  ]
@@ -1502,6 +1516,7 @@
1502
1516
  {
1503
1517
  "name": "JSONRPCRequest",
1504
1518
  "owners": [
1519
+ "jsonrpc",
1505
1520
  "lsp",
1506
1521
  "mcp"
1507
1522
  ]
@@ -1509,6 +1524,7 @@
1509
1524
  {
1510
1525
  "name": "JSONRPCResponse",
1511
1526
  "owners": [
1527
+ "jsonrpc",
1512
1528
  "lsp",
1513
1529
  "mcp"
1514
1530
  ]
@@ -1516,6 +1532,7 @@
1516
1532
  {
1517
1533
  "name": "JSONRPCResultResponse",
1518
1534
  "owners": [
1535
+ "jsonrpc",
1519
1536
  "lsp",
1520
1537
  "mcp"
1521
1538
  ]
@@ -1523,6 +1540,7 @@
1523
1540
  {
1524
1541
  "name": "JSONRPC_INTERNAL_ERROR",
1525
1542
  "owners": [
1543
+ "jsonrpc",
1526
1544
  "lsp",
1527
1545
  "mcp"
1528
1546
  ]
@@ -1530,6 +1548,7 @@
1530
1548
  {
1531
1549
  "name": "JSONRPC_INVALID_PARAMS",
1532
1550
  "owners": [
1551
+ "jsonrpc",
1533
1552
  "lsp",
1534
1553
  "mcp"
1535
1554
  ]
@@ -1537,6 +1556,7 @@
1537
1556
  {
1538
1557
  "name": "JSONRPC_INVALID_REQUEST",
1539
1558
  "owners": [
1559
+ "jsonrpc",
1540
1560
  "lsp",
1541
1561
  "mcp"
1542
1562
  ]
@@ -1544,6 +1564,7 @@
1544
1564
  {
1545
1565
  "name": "JSONRPC_METHOD_NOT_FOUND",
1546
1566
  "owners": [
1567
+ "jsonrpc",
1547
1568
  "lsp",
1548
1569
  "mcp"
1549
1570
  ]
@@ -1551,6 +1572,7 @@
1551
1572
  {
1552
1573
  "name": "JSONRPC_PARSE_ERROR",
1553
1574
  "owners": [
1575
+ "jsonrpc",
1554
1576
  "lsp",
1555
1577
  "mcp"
1556
1578
  ]
@@ -1579,6 +1601,7 @@
1579
1601
  {
1580
1602
  "name": "NAME_LIMIT",
1581
1603
  "owners": [
1604
+ "contract",
1582
1605
  "form",
1583
1606
  "table"
1584
1607
  ]
@@ -1586,6 +1609,7 @@
1586
1609
  {
1587
1610
  "name": "NODE_LIMIT",
1588
1611
  "owners": [
1612
+ "contract",
1589
1613
  "form",
1590
1614
  "table"
1591
1615
  ]
@@ -1608,6 +1632,7 @@
1608
1632
  {
1609
1633
  "name": "STRING_LIMIT",
1610
1634
  "owners": [
1635
+ "contract",
1611
1636
  "form",
1612
1637
  "table"
1613
1638
  ]
@@ -1685,6 +1710,7 @@
1685
1710
  {
1686
1711
  "name": "TEXT_LIMIT",
1687
1712
  "owners": [
1713
+ "contract",
1688
1714
  "form",
1689
1715
  "table"
1690
1716
  ]
@@ -1773,6 +1799,20 @@
1773
1799
  "template"
1774
1800
  ]
1775
1801
  },
1802
+ {
1803
+ "name": "buildJSONRPCError",
1804
+ "owners": [
1805
+ "jsonrpc",
1806
+ "mcp"
1807
+ ]
1808
+ },
1809
+ {
1810
+ "name": "buildJSONRPCResult",
1811
+ "owners": [
1812
+ "jsonrpc",
1813
+ "mcp"
1814
+ ]
1815
+ },
1776
1816
  {
1777
1817
  "name": "cloneSchema",
1778
1818
  "owners": [
@@ -1875,12 +1915,14 @@
1875
1915
  "name": "errorToMessage",
1876
1916
  "owners": [
1877
1917
  "brief",
1918
+ "contract",
1878
1919
  "workflow"
1879
1920
  ]
1880
1921
  },
1881
1922
  {
1882
1923
  "name": "escapeRegExp",
1883
1924
  "owners": [
1925
+ "contract",
1884
1926
  "guide",
1885
1927
  "interpret",
1886
1928
  "router",
@@ -1897,6 +1939,7 @@
1897
1939
  {
1898
1940
  "name": "failure",
1899
1941
  "owners": [
1942
+ "contract",
1900
1943
  "msg",
1901
1944
  "workflow"
1902
1945
  ]
@@ -1936,6 +1979,13 @@
1936
1979
  "reason"
1937
1980
  ]
1938
1981
  },
1982
+ {
1983
+ "name": "isFailure",
1984
+ "owners": [
1985
+ "contract",
1986
+ "msg"
1987
+ ]
1988
+ },
1939
1989
  {
1940
1990
  "name": "isFile",
1941
1991
  "owners": [
@@ -1960,13 +2010,43 @@
1960
2010
  {
1961
2011
  "name": "isJSONRPCError",
1962
2012
  "owners": [
2013
+ "jsonrpc",
1963
2014
  "lsp",
1964
2015
  "mcp"
1965
2016
  ]
1966
2017
  },
2018
+ {
2019
+ "name": "isJSONRPCErrorResponse",
2020
+ "owners": [
2021
+ "jsonrpc",
2022
+ "mcp"
2023
+ ]
2024
+ },
2025
+ {
2026
+ "name": "isJSONRPCId",
2027
+ "owners": [
2028
+ "jsonrpc",
2029
+ "mcp"
2030
+ ]
2031
+ },
2032
+ {
2033
+ "name": "isJSONRPCInvocation",
2034
+ "owners": [
2035
+ "jsonrpc",
2036
+ "mcp"
2037
+ ]
2038
+ },
2039
+ {
2040
+ "name": "isJSONRPCMessage",
2041
+ "owners": [
2042
+ "jsonrpc",
2043
+ "mcp"
2044
+ ]
2045
+ },
1967
2046
  {
1968
2047
  "name": "isJSONRPCNotification",
1969
2048
  "owners": [
2049
+ "jsonrpc",
1970
2050
  "lsp",
1971
2051
  "mcp"
1972
2052
  ]
@@ -1974,6 +2054,7 @@
1974
2054
  {
1975
2055
  "name": "isJSONRPCRequest",
1976
2056
  "owners": [
2057
+ "jsonrpc",
1977
2058
  "lsp",
1978
2059
  "mcp"
1979
2060
  ]
@@ -1981,10 +2062,18 @@
1981
2062
  {
1982
2063
  "name": "isJSONRPCResponse",
1983
2064
  "owners": [
2065
+ "jsonrpc",
1984
2066
  "lsp",
1985
2067
  "mcp"
1986
2068
  ]
1987
2069
  },
2070
+ {
2071
+ "name": "isJSONRPCResultResponse",
2072
+ "owners": [
2073
+ "jsonrpc",
2074
+ "mcp"
2075
+ ]
2076
+ },
1988
2077
  {
1989
2078
  "name": "isManifestEntry",
1990
2079
  "owners": [
@@ -1999,6 +2088,13 @@
1999
2088
  "rater"
2000
2089
  ]
2001
2090
  },
2091
+ {
2092
+ "name": "isSuccess",
2093
+ "owners": [
2094
+ "contract",
2095
+ "msg"
2096
+ ]
2097
+ },
2002
2098
  {
2003
2099
  "name": "isTableSchema",
2004
2100
  "owners": [
@@ -2107,6 +2203,7 @@
2107
2203
  {
2108
2204
  "name": "success",
2109
2205
  "owners": [
2206
+ "contract",
2110
2207
  "msg",
2111
2208
  "workflow"
2112
2209
  ]
@@ -2141,5 +2238,5 @@
2141
2238
  ]
2142
2239
  }
2143
2240
  ],
2144
- "digest": "461c2456d47acc1b510a19690530ee7ee12346677c6a2858210daeb0242f5488"
2241
+ "digest": "1513378f249a7b0a68febf63d5abdb8dfdbd70d19be420efadad6908d54654ea"
2145
2242
  }
@@ -12,7 +12,13 @@ import {
12
12
  hasCanonicalSegments,
13
13
  resolveLink,
14
14
  } from '@orkestrel/guide'
15
- import { BASE_DEV_DEPENDENCIES, DISTRIBUTION_SETUP_PATH, HOST_PATHS } from '@orkestrel/scaffold'
15
+ import {
16
+ BASE_DEV_DEPENDENCIES,
17
+ DISTRIBUTION_SETUP_PATH,
18
+ HOST_INVENTORY_PATH,
19
+ HOST_PATHS,
20
+ } from '@orkestrel/scaffold'
21
+ import { MANIFEST_NAME, readSurfaceBaseline } from '@orkestrel/scaffold/server'
16
22
  import { spawnSync } from 'node:child_process'
17
23
  import { createRequire } from 'node:module'
18
24
  import {
@@ -3737,8 +3743,10 @@ export function readPolicySurface(root: string): PolicySurfacePopulation {
3737
3743
  * Inspects source and target-owned setup names against the hosted fleet guides.
3738
3744
  *
3739
3745
  * @remarks
3740
- * Source names claimed by the target's own hosted guide are grandfathered. Setup names have no
3741
- * grandfather. Catalog rows come from beside the guides: when reading installed guides, from the
3746
+ * Source names claimed by the target's own hosted guide are grandfathered, and so are source names
3747
+ * whose collision record names the target as an owner: the installed host's `manifest.json` in a
3748
+ * target, and the committed `host.json` in the scaffold checkout. A malformed record throws. Setup
3749
+ * names have no grandfather. Catalog rows come from beside the guides: when reading installed guides, from the
3742
3750
  * staged catalog and never from the target's own table, which can list a package without a guide in
3743
3751
  * that host. An absent installed host falls back to checkout guides only with catalog coverage.
3744
3752
  * Missing comparison evidence and unread barrel statements produce surface violations.
@@ -3804,9 +3812,13 @@ export function inspectPolicySurface(root: string): readonly PolicyViolation[] {
3804
3812
  ]
3805
3813
  },
3806
3814
  )
3807
- const grandfather = new Set(
3808
- guides.filter((guide) => guide.owner === own).flatMap(({ symbols }) => symbols),
3809
- )
3815
+ const record = readSurfaceBaseline(host, hosted ? MANIFEST_NAME : HOST_INVENTORY_PATH) ?? []
3816
+ const grandfather = new Set([
3817
+ ...guides.filter((guide) => guide.owner === own).flatMap(({ symbols }) => symbols),
3818
+ ...record
3819
+ .filter(({ owners }) => own !== undefined && owners.includes(own))
3820
+ .map(({ name }) => name),
3821
+ ])
3810
3822
  const claimed = Map.groupBy(
3811
3823
  guides
3812
3824
  .filter((guide) => guide.owner !== own)
@@ -4,7 +4,7 @@ let _orkestrel_template = require("@orkestrel/template");
4
4
  let _orkestrel_emitter = require("@orkestrel/emitter");
5
5
  var package_default = {
6
6
  name: "@orkestrel/scaffold",
7
- version: "0.0.118",
7
+ version: "0.0.119",
8
8
  description: "Scaffold workspaces with commands: new, audit, surface, repair, catalog, and overwrite.",
9
9
  keywords: [
10
10
  "audit",
@@ -364,6 +364,69 @@ var SEED_GUIDE_PATHS = Object.freeze(["guides/guide.md", "guides/scaffold.md"]);
364
364
  /** Names the repository-relative path where the committed vendored-file inventory is served. */
365
365
  var HOST_INVENTORY_PATH = "host.json";
366
366
  /**
367
+ * Lists the declared transfers of bare names to their ruled keepers, frozen.
368
+ *
369
+ * @remarks
370
+ * `stageHost` admits each keeper into its name's recorded owner set and refuses a transfer
371
+ * whose keeper alone claims the name. `.claude/rules/names.md` § Fleet name ownership rule 5
372
+ * governs when a transfer is declared and removed.
373
+ */
374
+ var SURFACE_TRANSFERS = Object.freeze([
375
+ ...["BOM"].map((name) => ({
376
+ name,
377
+ keeper: "codec",
378
+ item: 80
379
+ })),
380
+ ...[
381
+ "CHOICE_LIMIT",
382
+ "NAME_LIMIT",
383
+ "NODE_LIMIT",
384
+ "STRING_LIMIT",
385
+ "TEXT_LIMIT",
386
+ "errorToMessage",
387
+ "escapeRegExp",
388
+ "failure",
389
+ "isFailure",
390
+ "isSuccess",
391
+ "success"
392
+ ].map((name) => ({
393
+ name,
394
+ keeper: "contract",
395
+ item: 79
396
+ })),
397
+ ...[
398
+ "JSONRPCError",
399
+ "JSONRPCErrorResponse",
400
+ "JSONRPCId",
401
+ "JSONRPCInvocation",
402
+ "JSONRPCMessage",
403
+ "JSONRPCNotification",
404
+ "JSONRPCRequest",
405
+ "JSONRPCResponse",
406
+ "JSONRPCResultResponse",
407
+ "JSONRPC_INTERNAL_ERROR",
408
+ "JSONRPC_INVALID_PARAMS",
409
+ "JSONRPC_INVALID_REQUEST",
410
+ "JSONRPC_METHOD_NOT_FOUND",
411
+ "JSONRPC_PARSE_ERROR",
412
+ "buildJSONRPCError",
413
+ "buildJSONRPCResult",
414
+ "isJSONRPCError",
415
+ "isJSONRPCErrorResponse",
416
+ "isJSONRPCId",
417
+ "isJSONRPCInvocation",
418
+ "isJSONRPCMessage",
419
+ "isJSONRPCNotification",
420
+ "isJSONRPCRequest",
421
+ "isJSONRPCResponse",
422
+ "isJSONRPCResultResponse"
423
+ ].map((name) => ({
424
+ name,
425
+ keeper: "jsonrpc",
426
+ item: 81
427
+ }))
428
+ ].map((transfer) => Object.freeze(transfer)));
429
+ /**
367
430
  * Lists the vendored paths whose present bytes belong to each workspace, frozen.
368
431
  *
369
432
  * @remarks
@@ -9912,6 +9975,7 @@ exports.STYLES_DEV_DEPENDENCIES = STYLES_DEV_DEPENDENCIES;
9912
9975
  exports.STYLES_ENTRY_PATH = STYLES_ENTRY_PATH;
9913
9976
  exports.SURFACES = SURFACES;
9914
9977
  exports.SURFACE_EDIT_LENGTH = SURFACE_EDIT_LENGTH;
9978
+ exports.SURFACE_TRANSFERS = SURFACE_TRANSFERS;
9915
9979
  exports.ScaffoldError = ScaffoldError;
9916
9980
  exports.TAB_WIDTH = TAB_WIDTH;
9917
9981
  exports.TARGET_SKILL_NAMES = TARGET_SKILL_NAMES;