@xemahq/xema 0.40.1 → 0.40.2

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.
@@ -2383,229 +2383,229 @@
2383
2383
  },
2384
2384
  {
2385
2385
  "package": "@xemahq/xema",
2386
- "version": "0.40.1",
2386
+ "version": "0.40.2",
2387
2387
  "path": "edition/adapter-host-versions.mjs",
2388
2388
  "sha256": "sha256:1b7ebd3592f4da1225fba74aaba912e7d85fbceeb1626f7dcdac83491cbb4d69"
2389
2389
  },
2390
2390
  {
2391
2391
  "package": "@xemahq/xema",
2392
- "version": "0.40.1",
2392
+ "version": "0.40.2",
2393
2393
  "path": "edition/authorization-base.mjs",
2394
2394
  "sha256": "sha256:bbeac7ff01376cb89ed2140526d4795d8e559b3f01612b404a701f19aaa24c6a"
2395
2395
  },
2396
2396
  {
2397
2397
  "package": "@xemahq/xema",
2398
- "version": "0.40.1",
2398
+ "version": "0.40.2",
2399
2399
  "path": "edition/build-ledger.mjs",
2400
2400
  "sha256": "sha256:05202cbdd606aee086c8e9c62d28be68c429653a8b1d73a289ed0fe4ff14da85"
2401
2401
  },
2402
2402
  {
2403
2403
  "package": "@xemahq/xema",
2404
- "version": "0.40.1",
2404
+ "version": "0.40.2",
2405
2405
  "path": "edition/connector-source-authority.mjs",
2406
2406
  "sha256": "sha256:ea94475f4324737673accd7de1303c44db1cbc4dac61a865a06cd83abe310164"
2407
2407
  },
2408
2408
  {
2409
2409
  "package": "@xemahq/xema",
2410
- "version": "0.40.1",
2410
+ "version": "0.40.2",
2411
2411
  "path": "edition/distribution-paths.mjs",
2412
2412
  "sha256": "sha256:d78a5c8405bc6c25d36fcec61b0030e1fdacac7d528e698adb96f906f4b70279"
2413
2413
  },
2414
2414
  {
2415
2415
  "package": "@xemahq/xema",
2416
- "version": "0.40.1",
2416
+ "version": "0.40.2",
2417
2417
  "path": "edition/edition-artifact.mjs",
2418
2418
  "sha256": "sha256:287e4cf042626963e07396c706350e9668adbcacd238a7ad4db1d68bba3858b2"
2419
2419
  },
2420
2420
  {
2421
2421
  "package": "@xemahq/xema",
2422
- "version": "0.40.1",
2422
+ "version": "0.40.2",
2423
2423
  "path": "edition/edition-channel.mjs",
2424
2424
  "sha256": "sha256:3c0c1564dc50be133cad500452d953353aa5beb703142c05a17bbce8175ba9f3"
2425
2425
  },
2426
2426
  {
2427
2427
  "package": "@xemahq/xema",
2428
- "version": "0.40.1",
2428
+ "version": "0.40.2",
2429
2429
  "path": "edition/edition-chart-set.mjs",
2430
2430
  "sha256": "sha256:f9f16b58279c8c2619a39c5cc92bdbc334543d1a324304cd5d3b120d66dc8f3a"
2431
2431
  },
2432
2432
  {
2433
2433
  "package": "@xemahq/xema",
2434
- "version": "0.40.1",
2434
+ "version": "0.40.2",
2435
2435
  "path": "edition/edition-config.mjs",
2436
2436
  "sha256": "sha256:e3997bd9a0082e02d01760868b2a4f41ed3081e904126b30fdf86e7938dc6137"
2437
2437
  },
2438
2438
  {
2439
2439
  "package": "@xemahq/xema",
2440
- "version": "0.40.1",
2440
+ "version": "0.40.2",
2441
2441
  "path": "edition/edition-constants.mjs",
2442
2442
  "sha256": "sha256:71ae51028847ab3430ffec9b229b0516a7705b75a6de1fcfa665f5e1abf8e9bb"
2443
2443
  },
2444
2444
  {
2445
2445
  "package": "@xemahq/xema",
2446
- "version": "0.40.1",
2446
+ "version": "0.40.2",
2447
2447
  "path": "edition/edition-contract-parse.mjs",
2448
2448
  "sha256": "sha256:c575e96b70bda82899931eb0b18567988e2e13e664fa498bcbef96b571dcabb4"
2449
2449
  },
2450
2450
  {
2451
2451
  "package": "@xemahq/xema",
2452
- "version": "0.40.1",
2452
+ "version": "0.40.2",
2453
2453
  "path": "edition/edition-contract.json",
2454
2454
  "sha256": "sha256:aa1a05f1728813a7bdb1e02d9305e9adf641d695e6767305210c67a1d81b38a7"
2455
2455
  },
2456
2456
  {
2457
2457
  "package": "@xemahq/xema",
2458
- "version": "0.40.1",
2458
+ "version": "0.40.2",
2459
2459
  "path": "edition/edition-protocol.mjs",
2460
2460
  "sha256": "sha256:c488ac72ff3f23c0f28f8db159bf84d2c86ec5cda3633db1fe91ca3f21b12214"
2461
2461
  },
2462
2462
  {
2463
2463
  "package": "@xemahq/xema",
2464
- "version": "0.40.1",
2464
+ "version": "0.40.2",
2465
2465
  "path": "edition/edition-source-pins.mjs",
2466
2466
  "sha256": "sha256:b141474fff33b06734fb62cd2552752b991c8267bb1c9bccb22a81dd80e91c6c"
2467
2467
  },
2468
2468
  {
2469
2469
  "package": "@xemahq/xema",
2470
- "version": "0.40.1",
2470
+ "version": "0.40.2",
2471
2471
  "path": "edition/edition-workspace.mjs",
2472
2472
  "sha256": "sha256:18ba727e6b13ca252def25cc6bd9adf894cbc2018198c41ce522637eeac7f871"
2473
2473
  },
2474
2474
  {
2475
2475
  "package": "@xemahq/xema",
2476
- "version": "0.40.1",
2476
+ "version": "0.40.2",
2477
2477
  "path": "edition/evidence-checkout.mjs",
2478
2478
  "sha256": "sha256:31fb669769b31de4c6f2b2501bb96959548172ef166e7568edbbfed7f5079a11"
2479
2479
  },
2480
2480
  {
2481
2481
  "package": "@xemahq/xema",
2482
- "version": "0.40.1",
2482
+ "version": "0.40.2",
2483
2483
  "path": "edition/evidence-grammars.mjs",
2484
2484
  "sha256": "sha256:4dae22b61ade99219a482b971c9780d68a3d37d021e39cdfe860b245364b8b9f"
2485
2485
  },
2486
2486
  {
2487
2487
  "package": "@xemahq/xema",
2488
- "version": "0.40.1",
2488
+ "version": "0.40.2",
2489
2489
  "path": "edition/evidence-trust-pin.mjs",
2490
2490
  "sha256": "sha256:b9dd5c01903394436530783614efb0cd357d982ed2befd844a39328479773cbc"
2491
2491
  },
2492
2492
  {
2493
2493
  "package": "@xemahq/xema",
2494
- "version": "0.40.1",
2494
+ "version": "0.40.2",
2495
2495
  "path": "edition/git-json.mjs",
2496
2496
  "sha256": "sha256:d0d25cda0c19007becabc9a2827c3dcf759b295cd0b41596eb4480c9549a1f21"
2497
2497
  },
2498
2498
  {
2499
2499
  "package": "@xemahq/xema",
2500
- "version": "0.40.1",
2500
+ "version": "0.40.2",
2501
2501
  "path": "edition/image-delivery-entitlement-descriptor.mjs",
2502
2502
  "sha256": "sha256:4726b66116f01bf2523fafe2b7a356591eca8fb5ca6bd8b154dd4821873e921b"
2503
2503
  },
2504
2504
  {
2505
2505
  "package": "@xemahq/xema",
2506
- "version": "0.40.1",
2506
+ "version": "0.40.2",
2507
2507
  "path": "edition/image-evidence-replay-state.mjs",
2508
2508
  "sha256": "sha256:eba0cf1d38af0ab2f00c5099fa8bc2edc543136ce92f895544d4d284b3d6af0f"
2509
2509
  },
2510
2510
  {
2511
2511
  "package": "@xemahq/xema",
2512
- "version": "0.40.1",
2512
+ "version": "0.40.2",
2513
2513
  "path": "edition/image-evidence.mjs",
2514
2514
  "sha256": "sha256:433202eb2db84510acd11de6fe5ede81c8d96b8bc72991444940f7f84a48897f"
2515
2515
  },
2516
2516
  {
2517
2517
  "package": "@xemahq/xema",
2518
- "version": "0.40.1",
2518
+ "version": "0.40.2",
2519
2519
  "path": "edition/kernel-capability-domain.mjs",
2520
2520
  "sha256": "sha256:3ecf887dd8d399e91a8285f6f115f6e418fb59bbf3f004539fe65ec667219356"
2521
2521
  },
2522
2522
  {
2523
2523
  "package": "@xemahq/xema",
2524
- "version": "0.40.1",
2524
+ "version": "0.40.2",
2525
2525
  "path": "edition/kernel-contract-authority.mjs",
2526
2526
  "sha256": "sha256:20abdde62a7b037c01ea9bbe1ff1e6094e6b0efd0add2f656f1938a04409bf82"
2527
2527
  },
2528
2528
  {
2529
2529
  "package": "@xemahq/xema",
2530
- "version": "0.40.1",
2530
+ "version": "0.40.2",
2531
2531
  "path": "edition/lib.mjs",
2532
2532
  "sha256": "sha256:862a21a357f5219dc6d549fe83209267a5010461f1f7889bf63d0baa6423de2e"
2533
2533
  },
2534
2534
  {
2535
2535
  "package": "@xemahq/xema",
2536
- "version": "0.40.1",
2536
+ "version": "0.40.2",
2537
2537
  "path": "edition/no-follow-file.mjs",
2538
2538
  "sha256": "sha256:c17bdf5e441f3c079aa06d4b48bbed05cad087855b9ad2a5e6dc43d5ee2b17c3"
2539
2539
  },
2540
2540
  {
2541
2541
  "package": "@xemahq/xema",
2542
- "version": "0.40.1",
2542
+ "version": "0.40.2",
2543
2543
  "path": "edition/operation-requirements.mjs",
2544
2544
  "sha256": "sha256:e7fed25747ee92be84cdc864ca35a723356df5b3d08923cf71f4bc66a791eb5d"
2545
2545
  },
2546
2546
  {
2547
2547
  "package": "@xemahq/xema",
2548
- "version": "0.40.1",
2548
+ "version": "0.40.2",
2549
2549
  "path": "edition/pin-source.mjs",
2550
2550
  "sha256": "sha256:a23fef4698ef66ba9de4a1aabe3eebe6487d1f105f3fc161bafc5a33b99a2440"
2551
2551
  },
2552
2552
  {
2553
2553
  "package": "@xemahq/xema",
2554
- "version": "0.40.1",
2554
+ "version": "0.40.2",
2555
2555
  "path": "edition/source-authority.mjs",
2556
2556
  "sha256": "sha256:858b607dde94e2abd00a341f569e18cfa567d4bff139c64a2d60abbb7de4c85e"
2557
2557
  },
2558
2558
  {
2559
2559
  "package": "@xemahq/xema",
2560
- "version": "0.40.1",
2560
+ "version": "0.40.2",
2561
2561
  "path": "edition/strict-json.mjs",
2562
2562
  "sha256": "sha256:f95778396df7f38b086f55d2ec4f3b6644a8aeff2b32282a62829145fb544562"
2563
2563
  },
2564
2564
  {
2565
2565
  "package": "@xemahq/xema",
2566
- "version": "0.40.1",
2566
+ "version": "0.40.2",
2567
2567
  "path": "edition/string-order.mjs",
2568
2568
  "sha256": "sha256:b3210cd273e4b2e01fb8b1a91e28734cd211d4010c080d0ce95f5e5ff631cffb"
2569
2569
  },
2570
2570
  {
2571
2571
  "package": "@xemahq/xema",
2572
- "version": "0.40.1",
2572
+ "version": "0.40.2",
2573
2573
  "path": "edition/trusted-executable.mjs",
2574
2574
  "sha256": "sha256:37d46cdbc999ddd55d4ea8aeed4850ddd1efde89ed7b532f5a2ddec87105d796"
2575
2575
  },
2576
2576
  {
2577
2577
  "package": "@xemahq/xema",
2578
- "version": "0.40.1",
2578
+ "version": "0.40.2",
2579
2579
  "path": "edition/verifier-binding.mjs",
2580
2580
  "sha256": "sha256:80732658617f5255258c538eeb2383331ec8553b44b58d552b567845a7b916aa"
2581
2581
  },
2582
2582
  {
2583
2583
  "package": "@xemahq/xema",
2584
- "version": "0.40.1",
2584
+ "version": "0.40.2",
2585
2585
  "path": "edition/verifier-files.mjs",
2586
2586
  "sha256": "sha256:cdd14a20a63f0f194a8abb55680a5a7e3ced1f09f8b210a90d349e655f6de0c0"
2587
2587
  },
2588
2588
  {
2589
2589
  "package": "@xemahq/xema",
2590
- "version": "0.40.1",
2590
+ "version": "0.40.2",
2591
2591
  "path": "edition/verifier-provenance.mjs",
2592
2592
  "sha256": "sha256:3e2fb8e07cf1f66b8ad6c7ac2555fe3af64ec7abeb07cecbaf1939a18c2b3663"
2593
2593
  },
2594
2594
  {
2595
2595
  "package": "@xemahq/xema",
2596
- "version": "0.40.1",
2596
+ "version": "0.40.2",
2597
2597
  "path": "edition/verify-image-evidence.mjs",
2598
2598
  "sha256": "sha256:62f83f8bb835f360535402d12657156d2c9d6e651b426c2b30a04a2dc2f8d3e8"
2599
2599
  },
2600
2600
  {
2601
2601
  "package": "@xemahq/xema",
2602
- "version": "0.40.1",
2602
+ "version": "0.40.2",
2603
2603
  "path": "edition/workspace-sections.mjs",
2604
2604
  "sha256": "sha256:383f37ce066ea5573c30cedf124022095bf94d050f0a266a5881f587cff0ced0"
2605
2605
  },
2606
2606
  {
2607
2607
  "package": "@xemahq/xema",
2608
- "version": "0.40.1",
2608
+ "version": "0.40.2",
2609
2609
  "path": "scripts/build-evidence-verifier.mjs",
2610
2610
  "sha256": "sha256:5a688d20c47dc88aff37aa0c6cc02daf2c370a5bc610fef8446ce7be222d4c0b"
2611
2611
  },
@@ -322,6 +322,11 @@ async function resolveContractAuthority(schemas, kernelRoot, kernelCommit) {
322
322
  *
323
323
  * A repository this index does not source is a REFUSAL, never a silent no-op —
324
324
  * a typo that quietly rewrote nothing would read in review as "the refresh ran".
325
+ *
326
+ * A declared source repository with NO committed pin JOINS the index through the
327
+ * same scope: every committed pin is preserved verbatim and only the named
328
+ * repository is resolved (at `--at`, which must be published). It needs no
329
+ * full `--trusted-write`, which would re-derive and drift every other pin.
325
330
  */
326
331
  export function preserveOtherRepositoryPins(
327
332
  repoScope,
@@ -343,12 +348,6 @@ export function preserveOtherRepositoryPins(
343
348
  'the committed runtime image source index declares no repositoryPins to preserve',
344
349
  );
345
350
  }
346
- if (!pins.some((pin) => pin.repo === repoScope)) {
347
- throw new Error(
348
- `--repo "${repoScope}" has no committed pin to refresh. A repository ` +
349
- `joining this index is a full --trusted-write, not a scoped refresh.`,
350
- );
351
- }
352
351
  return pins
353
352
  .filter((pin) => pin.repo !== repoScope)
354
353
  .map((pin) => ({
@@ -463,6 +462,13 @@ export async function buildTrustedIndex(
463
462
  const getRepositoryIdentity = (repo) => {
464
463
  let identity = repositoryIdentities.get(repo);
465
464
  if (!identity) {
465
+ if (repoScope !== undefined && repo !== repoScope) {
466
+ throw new Error(
467
+ `source repository "${repo}" has no committed pin and is not the --repo scope ` +
468
+ `"${repoScope}". A scoped write adds one repository; resolving "${repo}" live ` +
469
+ `would re-pin a repository nobody asked about. Add it with its own --repo ${repo} --at <sha>.`,
470
+ );
471
+ }
466
472
  identity = repositoryIdentity(repo, sourceAuthority);
467
473
  repositoryIdentities.set(repo, identity);
468
474
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xemahq/xema",
3
- "version": "0.40.1",
3
+ "version": "0.40.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/xema-dev/xema-cli.git",
@@ -92,6 +92,6 @@
92
92
  "typecheck": "tsc --noEmit"
93
93
  },
94
94
  "xemaRelease": {
95
- "sourceDigest": "sha256:7d0a83c0865bae61ba3862a0f1e1d73a90ee6cef5e13af81e1a0a9deb4b11c96"
95
+ "sourceDigest": "sha256:7354d3fd083104ce7289eb00634ebdd7dea0aefb38bd527bce4ab63dd52114aa"
96
96
  }
97
97
  }