@tiangong-lca/foundry 0.1.6 → 0.1.8

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.
Files changed (64) hide show
  1. package/README.md +7 -5
  2. package/docs/architecture.md +7 -5
  3. package/docs/foundry-task-contracts.md +4 -4
  4. package/docs/import-profiles/worldsteel/constraints.md +3 -3
  5. package/docs/import-profiles/worldsteel/import-coverage.md +3 -3
  6. package/docs/import-profiles/worldsteel/import-plan.md +1 -1
  7. package/docs/import-profiles/worldsteel/profile.md +3 -3
  8. package/docs/package-distribution-contract.md +11 -7
  9. package/docs/public-runtime-contract.md +23 -7
  10. package/docs/runtime-context-contract.md +11 -5
  11. package/docs/task-authorization-contract.md +8 -4
  12. package/package-dist/assets/foundry-package-descriptor.json +166 -90
  13. package/package-dist/scripts/foundry-facade.d.ts +1 -0
  14. package/package-dist/scripts/foundry-facade.js +35 -4
  15. package/package-dist/scripts/lib/finalize-owners/commit-handoff.js +65 -10
  16. package/package-dist/scripts/lib/finalize-owners/finalize-reference-inputs.d.ts +12 -0
  17. package/package-dist/scripts/lib/finalize-owners/finalize-reference-inputs.js +57 -0
  18. package/package-dist/scripts/lib/finalize-owners/handoff-reference-intent.d.ts +28 -0
  19. package/package-dist/scripts/lib/finalize-owners/handoff-reference-intent.js +115 -0
  20. package/package-dist/scripts/lib/finalize-owners/native-insert-closeout.d.ts +13 -0
  21. package/package-dist/scripts/lib/finalize-owners/native-insert-closeout.js +99 -0
  22. package/package-dist/scripts/lib/finalize-owners/native-insert-handoff.d.ts +47 -0
  23. package/package-dist/scripts/lib/finalize-owners/native-insert-handoff.js +146 -0
  24. package/package-dist/scripts/lib/finalize-owners/post-authoring.js +13 -0
  25. package/package-dist/scripts/lib/finalize-owners/post-write-closeout.d.ts +8 -2
  26. package/package-dist/scripts/lib/finalize-owners/post-write-closeout.js +48 -2
  27. package/package-dist/scripts/lib/finalize-owners/reference-intent-closeout.d.ts +12 -0
  28. package/package-dist/scripts/lib/finalize-owners/reference-intent-closeout.js +77 -0
  29. package/package-dist/scripts/lib/foundry-authorization-input.d.ts +8 -0
  30. package/package-dist/scripts/lib/foundry-authorization-input.js +68 -1
  31. package/package-dist/scripts/lib/foundry-command-metadata.js +15 -1
  32. package/package-dist/scripts/lib/foundry-execution-admission.js +82 -5
  33. package/package-dist/scripts/lib/foundry-managed-actions.d.ts +4 -0
  34. package/package-dist/scripts/lib/foundry-managed-actions.js +56 -0
  35. package/package-dist/scripts/lib/foundry-managed-host.d.ts +2 -2
  36. package/package-dist/scripts/lib/foundry-managed-host.js +2 -0
  37. package/package-dist/scripts/lib/foundry-owner-execution-store.js +25 -2
  38. package/package-dist/scripts/lib/foundry-owner-readback.d.ts +2 -0
  39. package/package-dist/scripts/lib/foundry-owner-readback.js +65 -14
  40. package/package-dist/scripts/lib/foundry-package-contract.d.ts +4 -4
  41. package/package-dist/scripts/lib/foundry-package-contract.js +4 -2
  42. package/package-dist/scripts/lib/foundry-reference-input.d.ts +28 -0
  43. package/package-dist/scripts/lib/foundry-reference-input.js +235 -0
  44. package/package-dist/scripts/lib/foundry-runtime-qualification.js +2 -2
  45. package/package-dist/scripts/lib/foundry-runtime-utils.js +1 -1
  46. package/package-dist/scripts/lib/foundry-task-store.d.ts +1 -1
  47. package/package-dist/scripts/lib/foundry-workflow-authorization.d.ts +2 -1
  48. package/package-dist/scripts/lib/foundry-workflow-authorization.js +38 -2
  49. package/package-dist/scripts/lib/foundry-workflow-execution.js +7 -1
  50. package/package-dist/scripts/lib/foundry-workflow-finalize.js +43 -1
  51. package/package-dist/scripts/lib/foundry-workflow-state.d.ts +2 -0
  52. package/package-dist/scripts/lib/foundry-workflow-state.js +31 -2
  53. package/package-dist/scripts/lib/import-curation/internal/context-inputs.js +1 -1
  54. package/package-dist/scripts/public-api.d.ts +1 -0
  55. package/package-dist/scripts/runtime-entry.d.ts +5 -1
  56. package/package-dist/scripts/runtime-entry.js +4 -1
  57. package/package.json +3 -2
  58. package/specs/import-profiles.json +1 -1
  59. package/specs/prewrite-content-policy.json +1 -1
  60. package/specs/schemas/foundry-authorization-input.schema.json +38 -1
  61. package/specs/schemas/foundry-managed-runtime.schema.json +1 -1
  62. package/specs/schemas/foundry-package-descriptor.schema.json +3 -2
  63. package/specs/schemas/foundry-reference-input.schema.json +137 -0
  64. package/specs/schemas/runtime-qualification.schema.json +1 -1
@@ -2,10 +2,10 @@
2
2
  "schema": "tiangong-foundry.package-descriptor.v1",
3
3
  "package": {
4
4
  "name": "@tiangong-lca/foundry",
5
- "version": "0.1.6",
5
+ "version": "0.1.8",
6
6
  "cli_dependency": {
7
7
  "name": "@tiangong-lca/cli",
8
- "version": "0.1.13"
8
+ "version": "0.1.14"
9
9
  },
10
10
  "bin": "package-dist/scripts/package-entry.js",
11
11
  "public_api": "package-dist/scripts/public-api.js",
@@ -33,6 +33,7 @@
33
33
  "tiangong-foundry.task-start.v1",
34
34
  "tiangong-foundry.semantic-input.v1",
35
35
  "tiangong-foundry.authorization-input.v1",
36
+ "tiangong-foundry.reference-input.v1",
36
37
  "tiangong-foundry.facade-request-index.v1",
37
38
  "tiangong-foundry.workspace-migration-plan.v1",
38
39
  "tiangong-foundry.workspace-migration-transfer-plan.v2",
@@ -58,18 +59,18 @@
58
59
  },
59
60
  {
60
61
  "path": "README.md",
61
- "bytes": 66212,
62
- "sha256": "2070232f782bec8c84b605b134e09ede503cd58b2284bf94954fc4403740d677"
62
+ "bytes": 66725,
63
+ "sha256": "ce570557972b3f0d9c6425c8cfe1a7cbf5083552cbacd8992ebcb938c40c8225"
63
64
  },
64
65
  {
65
66
  "path": "docs/architecture.md",
66
- "bytes": 57052,
67
- "sha256": "ba3695242f653ea3512f194267434077f85129163f6bc67ac91ad38435f28fac"
67
+ "bytes": 57485,
68
+ "sha256": "2365914a5b92306eb8b29a9b93f8675caf596922645bcece7308e7d1ce235574"
68
69
  },
69
70
  {
70
71
  "path": "docs/foundry-task-contracts.md",
71
- "bytes": 19995,
72
- "sha256": "33ad2d0e2d7aa15346ffdf83d1240afc0559b3f635308319ca50412d5e93efcc"
72
+ "bytes": 19933,
73
+ "sha256": "94c46405110e7ac291062ef8ad2f085cab08b23a646ac374bd764c3db55c6f30"
73
74
  },
74
75
  {
75
76
  "path": "docs/import-profiles/bafu/constraints.md",
@@ -98,38 +99,38 @@
98
99
  },
99
100
  {
100
101
  "path": "docs/import-profiles/worldsteel/constraints.md",
101
- "bytes": 7842,
102
- "sha256": "a5a0a3c8d6a38b8050b60c8c88054da73c7a335211990f84047165d000d6f2d4"
102
+ "bytes": 7770,
103
+ "sha256": "883b32beaf14dbcea10eaa4513a09587dfd36fcb6140d7075419dadee38daa20"
103
104
  },
104
105
  {
105
106
  "path": "docs/import-profiles/worldsteel/import-coverage.md",
106
- "bytes": 6702,
107
- "sha256": "cfb3879fafa662f8ea2f36108f8fe8148045b930629bee8a3250567104ebcf9c"
107
+ "bytes": 6630,
108
+ "sha256": "387d610ccffea673c0715a8d6ba99929aa9230b303ad2b63960e31c02c67c678"
108
109
  },
109
110
  {
110
111
  "path": "docs/import-profiles/worldsteel/import-plan.md",
111
112
  "bytes": 46797,
112
- "sha256": "f1b46092a6eeb653fd95adfc781536354f516982c4af160be92d657bca159270"
113
+ "sha256": "6482f574df61f7a9789b6c2ac8751fa8b7001ce4418566510928e755babf18a4"
113
114
  },
114
115
  {
115
116
  "path": "docs/import-profiles/worldsteel/profile.md",
116
- "bytes": 8158,
117
- "sha256": "5d7f119a729930d4a745abe2d171d78bddd78872b141c46fa154ba2fb2b51a1f"
117
+ "bytes": 8086,
118
+ "sha256": "e87b87384eb9349c6ff5190eddbcd1a38347ea0d725d77f0d60e96ac6d04fc23"
118
119
  },
119
120
  {
120
121
  "path": "docs/package-distribution-contract.md",
121
- "bytes": 67700,
122
- "sha256": "eb2f9004baa71b5b5447464b69c4a698634c394e2a42ae2d492374332cc649c3"
122
+ "bytes": 68982,
123
+ "sha256": "bb2503b64cb0ac2a9677f7a3db0fb5500d606bcf56438f7e7221cfd69d8d9928"
123
124
  },
124
125
  {
125
126
  "path": "docs/public-runtime-contract.md",
126
- "bytes": 36871,
127
- "sha256": "181a4ecd13909e1752faec75587391de17bab915be3af2698c911b51fa100279"
127
+ "bytes": 42361,
128
+ "sha256": "0f1b55c56ae2a7bfc4046bf456eca05e467b8a07af3984ad5053ff0f6ada4fd9"
128
129
  },
129
130
  {
130
131
  "path": "docs/runtime-context-contract.md",
131
- "bytes": 18757,
132
- "sha256": "abb4ae4b930e267106b6df41b4fb716462a39ec35838687a6a81cea975f181c6"
132
+ "bytes": 21033,
133
+ "sha256": "71bd7902ee62b1d7a6879e1d1bd8a36f17d3a9774d4bb97f15ea62eae6aef691"
133
134
  },
134
135
  {
135
136
  "path": "docs/safety-policy.md",
@@ -138,8 +139,8 @@
138
139
  },
139
140
  {
140
141
  "path": "docs/task-authorization-contract.md",
141
- "bytes": 17347,
142
- "sha256": "a578d89b5dcbee8d06aa378c59dbbd29fa697fcef636ba0b99c251f52873af8c"
142
+ "bytes": 18937,
143
+ "sha256": "a97cb760785ed96a6da4aefa969db9054bebb3f3c34bb39a4c6a7924ef79b75a"
143
144
  },
144
145
  {
145
146
  "path": "docs/uslci-import-runbook.md",
@@ -153,13 +154,13 @@
153
154
  },
154
155
  {
155
156
  "path": "package-dist/scripts/foundry-facade.d.ts",
156
- "bytes": 2952,
157
- "sha256": "ca8e18ff6a69f19aad954c746b65677b2835c6f9e98b370b9b50e64a3b7e9350"
157
+ "bytes": 2989,
158
+ "sha256": "2b2c93bd00c26213bb37dd558950f5eebd8162ac49bb275ba60c91bf8347a922"
158
159
  },
159
160
  {
160
161
  "path": "package-dist/scripts/foundry-facade.js",
161
- "bytes": 69045,
162
- "sha256": "3df766049f82f44652e6e0557fecc7aad835c05042d9e45dbce7fe1461d466a1"
162
+ "bytes": 71816,
163
+ "sha256": "50080329efaefdbf77771ac8a4554a173b15efeab55493083d54983d7b52d04a"
163
164
  },
164
165
  {
165
166
  "path": "package-dist/scripts/foundry-runtime.d.ts",
@@ -318,8 +319,48 @@
318
319
  },
319
320
  {
320
321
  "path": "package-dist/scripts/lib/finalize-owners/commit-handoff.js",
321
- "bytes": 25236,
322
- "sha256": "bc9e8eefa3d855d5ca6770487e3bce062661a95cf27227a2b492a701e043a9b6"
322
+ "bytes": 28375,
323
+ "sha256": "221780e2c50fee298b9786f622c35dd4251fb1f95fa84939e42f7a69dacf5813"
324
+ },
325
+ {
326
+ "path": "package-dist/scripts/lib/finalize-owners/finalize-reference-inputs.d.ts",
327
+ "bytes": 393,
328
+ "sha256": "de9b7e21a74e596103d68d63ddd8d1a86c2628920f45ab97692323b99a7af2bc"
329
+ },
330
+ {
331
+ "path": "package-dist/scripts/lib/finalize-owners/finalize-reference-inputs.js",
332
+ "bytes": 2760,
333
+ "sha256": "4a2afb03c4caf5102af686a439136c8dc819f49f0fcc0f395e17beab62f7b17e"
334
+ },
335
+ {
336
+ "path": "package-dist/scripts/lib/finalize-owners/handoff-reference-intent.d.ts",
337
+ "bytes": 970,
338
+ "sha256": "164e4607f39fd692b7f4799af72b89e7396f88d53b4e19db9245194153fbcaff"
339
+ },
340
+ {
341
+ "path": "package-dist/scripts/lib/finalize-owners/handoff-reference-intent.js",
342
+ "bytes": 5667,
343
+ "sha256": "837bef440fc71d55ff7f836b1e94783ea2799d5001f9141fec817b1e2a02a375"
344
+ },
345
+ {
346
+ "path": "package-dist/scripts/lib/finalize-owners/native-insert-closeout.d.ts",
347
+ "bytes": 396,
348
+ "sha256": "3bcb2779f770bfdc11ff12d772c90e099b5614c6a58c0bdfaff122e0582469f3"
349
+ },
350
+ {
351
+ "path": "package-dist/scripts/lib/finalize-owners/native-insert-closeout.js",
352
+ "bytes": 4746,
353
+ "sha256": "ef50492678eb048f7ef27041849d413db481aea5b1140623aefb7af0e563b7c8"
354
+ },
355
+ {
356
+ "path": "package-dist/scripts/lib/finalize-owners/native-insert-handoff.d.ts",
357
+ "bytes": 1648,
358
+ "sha256": "cefb623261d7086457aa6a2e09bcb1367651b08e0e2894dcfeef8168b4014c72"
359
+ },
360
+ {
361
+ "path": "package-dist/scripts/lib/finalize-owners/native-insert-handoff.js",
362
+ "bytes": 6577,
363
+ "sha256": "eab5ed40fe5c89b5b412e0aafa64782209ede8a513753157b216e686da583d37"
323
364
  },
324
365
  {
325
366
  "path": "package-dist/scripts/lib/finalize-owners/post-authoring.d.ts",
@@ -328,18 +369,28 @@
328
369
  },
329
370
  {
330
371
  "path": "package-dist/scripts/lib/finalize-owners/post-authoring.js",
331
- "bytes": 99487,
332
- "sha256": "ebea3b45c7c7fa932c1ef76846095f1cff67420f7df83d87f7c7bba8df09b593"
372
+ "bytes": 100214,
373
+ "sha256": "35696d127bbb27a2acbe48469626e5212f1a1320de4f800f6b88991f19ef1521"
333
374
  },
334
375
  {
335
376
  "path": "package-dist/scripts/lib/finalize-owners/post-write-closeout.d.ts",
336
- "bytes": 5332,
337
- "sha256": "8eb3e879f7e27d129f35450c583b80f66f1548e3448efc689396f38ca237991d"
377
+ "bytes": 5658,
378
+ "sha256": "5f21c7d5e63b5bf5d8080e9e08daaa4030c9ff72a7ffc1f324389786bc415a18"
338
379
  },
339
380
  {
340
381
  "path": "package-dist/scripts/lib/finalize-owners/post-write-closeout.js",
341
- "bytes": 35516,
342
- "sha256": "df2d0ee69335ba38171925f3577d04118f7770291649ae236124d65d80f5c737"
382
+ "bytes": 37534,
383
+ "sha256": "0da8c7221b72b1e69c33f71cde5e1d7b0da6d206f3fab97d3ccde9a29effa014"
384
+ },
385
+ {
386
+ "path": "package-dist/scripts/lib/finalize-owners/reference-intent-closeout.d.ts",
387
+ "bytes": 438,
388
+ "sha256": "21328617be7f72d65390aa2ce5c4de25d9386f385f71581d63b699346a8e048c"
389
+ },
390
+ {
391
+ "path": "package-dist/scripts/lib/finalize-owners/reference-intent-closeout.js",
392
+ "bytes": 4252,
393
+ "sha256": "0de228ebc3cb3bedfe539b5a2024564d62e04af82ffd5851f0c13528edb763e3"
343
394
  },
344
395
  {
345
396
  "path": "package-dist/scripts/lib/foundry-args.d.ts",
@@ -363,13 +414,13 @@
363
414
  },
364
415
  {
365
416
  "path": "package-dist/scripts/lib/foundry-authorization-input.d.ts",
366
- "bytes": 1290,
367
- "sha256": "0596838fd3f2f345f89d77213c00c5c09d20a42ed504792fe26fd86547fdbbe4"
417
+ "bytes": 1744,
418
+ "sha256": "22216f4177f8e48eb58271223024f884790658d1a81054c8501cc1db9a8d94e2"
368
419
  },
369
420
  {
370
421
  "path": "package-dist/scripts/lib/foundry-authorization-input.js",
371
- "bytes": 6539,
372
- "sha256": "64a1b8106d7273319665cb89b3663b394a752328740027f18d6bb7f43bb3a8fe"
422
+ "bytes": 9963,
423
+ "sha256": "72b41b6e692462d9e04a7cc28da24c1be02c6ddf92b2e7176d862eb56e7f179a"
373
424
  },
374
425
  {
375
426
  "path": "package-dist/scripts/lib/foundry-command-metadata.d.ts",
@@ -378,8 +429,8 @@
378
429
  },
379
430
  {
380
431
  "path": "package-dist/scripts/lib/foundry-command-metadata.js",
381
- "bytes": 51859,
382
- "sha256": "27272f657711ed8dd2bba54686d671a65edbb8a2715f46800ff556ff18eab211"
432
+ "bytes": 53028,
433
+ "sha256": "86cdbcbb3a83a822e3b0bc547188db56345e936543dc85bc06bf15f3cbbdee48"
383
434
  },
384
435
  {
385
436
  "path": "package-dist/scripts/lib/foundry-command-registry.d.ts",
@@ -428,8 +479,8 @@
428
479
  },
429
480
  {
430
481
  "path": "package-dist/scripts/lib/foundry-execution-admission.js",
431
- "bytes": 13779,
432
- "sha256": "b1e2691d0aaba9f4ff3cbe3aaeae3ce6b8a0d37bc1de4ecd5aa603bb3860d018"
482
+ "bytes": 18511,
483
+ "sha256": "35b775bd9b1534dcfedab886c44013e066248e108080d97f95d2d0e1949931f3"
433
484
  },
434
485
  {
435
486
  "path": "package-dist/scripts/lib/foundry-execution-attempt.d.ts",
@@ -481,15 +532,25 @@
481
532
  "bytes": 2842,
482
533
  "sha256": "b366f1c3e17ab96de097734a12d44f36ececb8587ea5ab911c78e50b6c0a93cc"
483
534
  },
535
+ {
536
+ "path": "package-dist/scripts/lib/foundry-managed-actions.d.ts",
537
+ "bytes": 462,
538
+ "sha256": "ec04b6fbd3884126689769262ffdb3b2fc1cd89144ffdd539e01cdaa823602e6"
539
+ },
540
+ {
541
+ "path": "package-dist/scripts/lib/foundry-managed-actions.js",
542
+ "bytes": 2699,
543
+ "sha256": "d7df041dee8a5ff5ec08a1ef269413a9184c257348979f30283b3e8425dd76a9"
544
+ },
484
545
  {
485
546
  "path": "package-dist/scripts/lib/foundry-managed-host.d.ts",
486
- "bytes": 536,
487
- "sha256": "5b58054438e3203bf25fe0ba08a8e035a736b18734c168b04f5b742d733ce9ca"
547
+ "bytes": 490,
548
+ "sha256": "caf56f4926bdb77205bd84b13c4f0e090dd5104c288bc064657bb6d6f1ec73ae"
488
549
  },
489
550
  {
490
551
  "path": "package-dist/scripts/lib/foundry-managed-host.js",
491
- "bytes": 9723,
492
- "sha256": "d9e0be1ef67b5f01286a213732e2e36d30382eab5ab5702647f4ada01580d259"
552
+ "bytes": 9913,
553
+ "sha256": "9b7b35e6a6d56d407e66b8ed8aaba56c8d4c8d7af4a85daace0bf2888bb8886f"
493
554
  },
494
555
  {
495
556
  "path": "package-dist/scripts/lib/foundry-migration-adoption-plan.d.ts",
@@ -598,18 +659,18 @@
598
659
  },
599
660
  {
600
661
  "path": "package-dist/scripts/lib/foundry-owner-execution-store.js",
601
- "bytes": 16976,
602
- "sha256": "69e14b5bb1814436b0b46e1a304a10d00388aee0c530a55521e8250a3b3ed4de"
662
+ "bytes": 18605,
663
+ "sha256": "01acf96d94cd6be344623e8d9c103ffd02c2ed78f05576438e1a2ea4aa353183"
603
664
  },
604
665
  {
605
666
  "path": "package-dist/scripts/lib/foundry-owner-readback.d.ts",
606
- "bytes": 1344,
607
- "sha256": "640a9249d7c594dbd6ab56eb1cae297cf8d531c8c9b843d3d5cc1a11371e6675"
667
+ "bytes": 1556,
668
+ "sha256": "493a94b9a45c63a23745a6f37358a63fd034ed7b3a3a771f1e456e255e607d37"
608
669
  },
609
670
  {
610
671
  "path": "package-dist/scripts/lib/foundry-owner-readback.js",
611
- "bytes": 10411,
612
- "sha256": "0589f8d1b6170aded35c169d2d24406d89cfa371858ae9fe5f455ddbf8240178"
672
+ "bytes": 13161,
673
+ "sha256": "8fd916b449851129936e18d3464d1ea92814c5d71ce778cdf398d651c81c334f"
613
674
  },
614
675
  {
615
676
  "path": "package-dist/scripts/lib/foundry-owner-trace-acceptance.d.ts",
@@ -623,13 +684,13 @@
623
684
  },
624
685
  {
625
686
  "path": "package-dist/scripts/lib/foundry-package-contract.d.ts",
626
- "bytes": 5556,
627
- "sha256": "92a979b0685b100f55cbf9e82804564cc09c1464122d3c45d52ca823765c9c57"
687
+ "bytes": 5648,
688
+ "sha256": "a4d85444ae5d8d2b59bee87d99f282b78f3effcabda2c425ea275bb23bf21d1a"
628
689
  },
629
690
  {
630
691
  "path": "package-dist/scripts/lib/foundry-package-contract.js",
631
- "bytes": 18452,
632
- "sha256": "fe7be0eaa6dff854f78c585f8e5cf0b790c027a5b76bb07247500d33aca57c16"
692
+ "bytes": 18552,
693
+ "sha256": "1816d3f1fc7b66016cf3c692260ec35f0dd5850b4f0d01a5ed47543b8177279c"
633
694
  },
634
695
  {
635
696
  "path": "package-dist/scripts/lib/foundry-private-path.d.ts",
@@ -641,6 +702,16 @@
641
702
  "bytes": 1041,
642
703
  "sha256": "7d0d00f8a2e0f98f5871974aadaeb8161746219b6a28135644086fa8ffa245f5"
643
704
  },
705
+ {
706
+ "path": "package-dist/scripts/lib/foundry-reference-input.d.ts",
707
+ "bytes": 1304,
708
+ "sha256": "607186a7cfc80d1d516a3eb0833ffd55a8bfec228ba0d712e7a0c5dda58420f1"
709
+ },
710
+ {
711
+ "path": "package-dist/scripts/lib/foundry-reference-input.js",
712
+ "bytes": 11389,
713
+ "sha256": "e2403362fe28b14020e70ee3b3b47c3f0583014241e0a0500bdbadb23d826382"
714
+ },
644
715
  {
645
716
  "path": "package-dist/scripts/lib/foundry-runtime-cache.d.ts",
646
717
  "bytes": 262,
@@ -729,7 +800,7 @@
729
800
  {
730
801
  "path": "package-dist/scripts/lib/foundry-runtime-qualification.js",
731
802
  "bytes": 12065,
732
- "sha256": "1e3542fe176cc82d4e8c2ab0c7e1fbe804b3ce96ca24172d4ce657fe3e456144"
803
+ "sha256": "a547dd641cb1229b9621976f47a0de721c409c847a308f168480bc7995f66d90"
733
804
  },
734
805
  {
735
806
  "path": "package-dist/scripts/lib/foundry-runtime-selection-record.d.ts",
@@ -759,7 +830,7 @@
759
830
  {
760
831
  "path": "package-dist/scripts/lib/foundry-runtime-utils.js",
761
832
  "bytes": 23278,
762
- "sha256": "5ed9a1dbd07eb374c88dc5a66913b3b4c3ee7923a5f133b3b413b4f5551217f0"
833
+ "sha256": "d92c04f7f2867cfd9f9e16285f1f6318292ed6ba3d408f03adcb375caca88a86"
763
834
  },
764
835
  {
765
836
  "path": "package-dist/scripts/lib/foundry-semantic-input.d.ts",
@@ -813,8 +884,8 @@
813
884
  },
814
885
  {
815
886
  "path": "package-dist/scripts/lib/foundry-task-store.d.ts",
816
- "bytes": 1745,
817
- "sha256": "15f80dd8e32fdea87abe1fc7f12762c4f531d10ef9ac96811dc5651eac1ff598"
887
+ "bytes": 1819,
888
+ "sha256": "f25032dddc6da78060be481c92334cd8e04a88e973e2d8da090fd2d0b0cdd1b5"
818
889
  },
819
890
  {
820
891
  "path": "package-dist/scripts/lib/foundry-task-store.js",
@@ -853,13 +924,13 @@
853
924
  },
854
925
  {
855
926
  "path": "package-dist/scripts/lib/foundry-workflow-authorization.d.ts",
856
- "bytes": 1516,
857
- "sha256": "5f634f7f08d55521fe1ec2ffd58f41e2326b5e357e2d0faa7f62e4f97ff5f1a2"
927
+ "bytes": 1581,
928
+ "sha256": "f3f22f1ac91b134e39d6e39be7db68382cc327959afe757c9490bb7033026ff6"
858
929
  },
859
930
  {
860
931
  "path": "package-dist/scripts/lib/foundry-workflow-authorization.js",
861
- "bytes": 9885,
862
- "sha256": "384c1d4c818d608e07b2cfccc80bf40cec22e40c44c8e84162361f38c4121ecc"
932
+ "bytes": 11901,
933
+ "sha256": "afd6e2a08ddd94f45d6050a90be5e81e0837194f5d22ddabb82c4621dddc1921"
863
934
  },
864
935
  {
865
936
  "path": "package-dist/scripts/lib/foundry-workflow-context.d.ts",
@@ -888,8 +959,8 @@
888
959
  },
889
960
  {
890
961
  "path": "package-dist/scripts/lib/foundry-workflow-execution.js",
891
- "bytes": 14214,
892
- "sha256": "73efac49700d49eb256e42a401843115dc5e805a8cff5aa98f2fbab4dca3b65c"
962
+ "bytes": 14729,
963
+ "sha256": "2de417807bc17c3f2b200a5a6b08e5346ae0894ee5deb99e237046f6167496bf"
893
964
  },
894
965
  {
895
966
  "path": "package-dist/scripts/lib/foundry-workflow-finalize.d.ts",
@@ -898,8 +969,8 @@
898
969
  },
899
970
  {
900
971
  "path": "package-dist/scripts/lib/foundry-workflow-finalize.js",
901
- "bytes": 15749,
902
- "sha256": "f012ccd1cd9c7f60a9f5f948c234f431ae3b5ffb0beeb2913100862e1daf024a"
972
+ "bytes": 17958,
973
+ "sha256": "674f9ede43983be08ca3df9e126ae4578896013fb949dba618bf4c1293b2715b"
903
974
  },
904
975
  {
905
976
  "path": "package-dist/scripts/lib/foundry-workflow-identity-apply.d.ts",
@@ -973,13 +1044,13 @@
973
1044
  },
974
1045
  {
975
1046
  "path": "package-dist/scripts/lib/foundry-workflow-state.d.ts",
976
- "bytes": 1498,
977
- "sha256": "53bb76af4175d5170732f9c0a85a9ff274b3b6c8a9ef4e31664ade1e05a7411f"
1047
+ "bytes": 1617,
1048
+ "sha256": "441df88a45682b4ac6ce9fc154f3d1b236e323c39bb570509badf943f4b876f6"
978
1049
  },
979
1050
  {
980
1051
  "path": "package-dist/scripts/lib/foundry-workflow-state.js",
981
- "bytes": 7930,
982
- "sha256": "38a7da4cbd9b37c851d52ccbc27ad4063b45c5937759e51eaba3134be55055c7"
1052
+ "bytes": 9102,
1053
+ "sha256": "1a40f8790ba05bcfe2c13d4583956aded68e7b93b394c0c8d1cb98f840eb6540"
983
1054
  },
984
1055
  {
985
1056
  "path": "package-dist/scripts/lib/full-context-proof.d.ts",
@@ -1089,7 +1160,7 @@
1089
1160
  {
1090
1161
  "path": "package-dist/scripts/lib/import-curation/internal/context-inputs.js",
1091
1162
  "bytes": 8791,
1092
- "sha256": "4ad85987669c6f901342553d558393487c7b008370eae09e658e7705f566f285"
1163
+ "sha256": "def762f9db8fdf136547f319b55008678b58f4e1e1874533bd67091889583882"
1093
1164
  },
1094
1165
  {
1095
1166
  "path": "package-dist/scripts/lib/import-curation/internal/curation-gate-workflow.d.ts",
@@ -1523,8 +1594,8 @@
1523
1594
  },
1524
1595
  {
1525
1596
  "path": "package-dist/scripts/public-api.d.ts",
1526
- "bytes": 5432,
1527
- "sha256": "21af464f301df874922f63b74f26443b733dce7542c354d7faaf9f82e9a29b33"
1597
+ "bytes": 5469,
1598
+ "sha256": "a017720970992e20db40129bfea8e3bb46751c2cac116ff0f38304b6e479b5be"
1528
1599
  },
1529
1600
  {
1530
1601
  "path": "package-dist/scripts/public-api.js",
@@ -1533,13 +1604,13 @@
1533
1604
  },
1534
1605
  {
1535
1606
  "path": "package-dist/scripts/runtime-entry.d.ts",
1536
- "bytes": 1518,
1537
- "sha256": "d77c074e72a7e90ff2e5a617cc8b7a09e4f13e62b585a8f163d8d1102322dbcd"
1607
+ "bytes": 1768,
1608
+ "sha256": "134a084b1169e588af06a4c630042eb96d9a87666cfc1c22ca4786697406fdae"
1538
1609
  },
1539
1610
  {
1540
1611
  "path": "package-dist/scripts/runtime-entry.js",
1541
- "bytes": 20848,
1542
- "sha256": "86a28ddc6a8d6854a52b42428ecb0ebbf8e0bb6ba5716000813b7242005c0df2"
1612
+ "bytes": 21075,
1613
+ "sha256": "a2ed49df891720bdf05597b471bd5ecd429835a9cd7073ae4b376dd776dd4b0d"
1543
1614
  },
1544
1615
  {
1545
1616
  "path": "specs/canonical-support/flow-properties-unit-groups.json",
@@ -1549,12 +1620,12 @@
1549
1620
  {
1550
1621
  "path": "specs/import-profiles.json",
1551
1622
  "bytes": 6781,
1552
- "sha256": "a8047bd54cb765daab1207e3dc6b24c9ea3fbe59549aeb06e6aeecc18f62fa4f"
1623
+ "sha256": "3ad2b417ffe2dc1ed3d3582030b1c4171105e78e133964ddf8c2ccd139ea94b1"
1553
1624
  },
1554
1625
  {
1555
1626
  "path": "specs/prewrite-content-policy.json",
1556
- "bytes": 3271,
1557
- "sha256": "a635183b2b6d8cea205f9c632a09425218e8e92459d1ef12a9c96347244757d8"
1627
+ "bytes": 3380,
1628
+ "sha256": "2dcfc33e5d0ff7b547cd9c915a33264fc5504cb1f4fee6a744e7c9012b5c8fbf"
1558
1629
  },
1559
1630
  {
1560
1631
  "path": "specs/schemas/authorization-derivation.schema.json",
@@ -1568,8 +1639,8 @@
1568
1639
  },
1569
1640
  {
1570
1641
  "path": "specs/schemas/foundry-authorization-input.schema.json",
1571
- "bytes": 2688,
1572
- "sha256": "eb137919775defe90551e949e58ddf466d9e08cdf92135b18c947fd8ab837432"
1642
+ "bytes": 3490,
1643
+ "sha256": "0e4a8424aa2739418bf9b19923a3f6d55887c7ab77ad37a40c720a90c5ae92c5"
1573
1644
  },
1574
1645
  {
1575
1646
  "path": "specs/schemas/foundry-facade-request-index.schema.json",
@@ -1579,7 +1650,7 @@
1579
1650
  {
1580
1651
  "path": "specs/schemas/foundry-managed-runtime.schema.json",
1581
1652
  "bytes": 3278,
1582
- "sha256": "9e2d81669dee71a8486829665f02eb59bba2e735c4a4e8529cb75c7a34783698"
1653
+ "sha256": "8b8d437830760ca295b91a89a528d356d292b2e9cda987c0ad68346324536dac"
1583
1654
  },
1584
1655
  {
1585
1656
  "path": "specs/schemas/foundry-migration-activation.schema.json",
@@ -1603,8 +1674,13 @@
1603
1674
  },
1604
1675
  {
1605
1676
  "path": "specs/schemas/foundry-package-descriptor.schema.json",
1606
- "bytes": 4141,
1607
- "sha256": "1d24b3df80e7fd0404c37f551e3f477f6eee211c103ae60629fa6d7b43e46817"
1677
+ "bytes": 4192,
1678
+ "sha256": "10c26be7f53094dc39e3e904970b287a22a85211df6e3a7a942def678cf4aa2b"
1679
+ },
1680
+ {
1681
+ "path": "specs/schemas/foundry-reference-input.schema.json",
1682
+ "bytes": 2682,
1683
+ "sha256": "cbb49e6a3a8fd35694d60eae82b45c0f0725228cd866686313c515456789cd77"
1608
1684
  },
1609
1685
  {
1610
1686
  "path": "specs/schemas/foundry-runtime-selection.schema.json",
@@ -1644,7 +1720,7 @@
1644
1720
  {
1645
1721
  "path": "specs/schemas/runtime-qualification.schema.json",
1646
1722
  "bytes": 2261,
1647
- "sha256": "5dfef13465309730ea1cd8398a35d7a7c1f7a13eb85c9b529055ed55e127b1cd"
1723
+ "sha256": "7778ac88f8908df60cb9b83e82defc93f093f16bc37f6d7688245eec96f80cd7"
1648
1724
  },
1649
1725
  {
1650
1726
  "path": "specs/schemas/task-authorization.schema.json",
@@ -1657,5 +1733,5 @@
1657
1733
  "sha256": "3d22fcc572f9a0f192ccb699d01fb32574287ed2bbd2aca70fb4b792b7aed487"
1658
1734
  }
1659
1735
  ],
1660
- "files_sha256": "9fab0f9ee5e74a90de7fa129892bdebc8c62167b75a50f7835bdd76f1dc56afe"
1736
+ "files_sha256": "b37e341ba96965199da49a0a371d8926c7dd98cc061f92a27aefb88e94964f83"
1661
1737
  }
@@ -70,6 +70,7 @@ export declare function createFoundryFacade(options: FoundryFacadeOptions): Read
70
70
  actorId: string;
71
71
  semanticInputFile?: string;
72
72
  authorizationInputFile?: string;
73
+ referenceInputFile?: string;
73
74
  }): Promise<FoundryOperationResult>;
74
75
  requestBinding(input: {
75
76
  taskId: string;
@@ -24,7 +24,8 @@ import { inspectFoundryReferences, verifyFoundryReferences, } from "./lib/foundr
24
24
  import { selectFoundrySemanticInput } from "./lib/foundry-semantic-input.js";
25
25
  import { runFoundryWorkflowIdentity } from "./lib/foundry-workflow-identity.js";
26
26
  import { finalizeFoundryWorkflow } from "./lib/foundry-workflow-finalize.js";
27
- import { selectFoundryAuthorizationInput } from "./lib/foundry-authorization-input.js";
27
+ import { selectFoundryReferenceInput, recordFoundryReferenceInput, } from "./lib/foundry-reference-input.js";
28
+ import { selectFoundryAuthorizationInput, snapshotFoundryAuthorizationContract, } from "./lib/foundry-authorization-input.js";
28
29
  import { authorizeFoundryWorkflow } from "./lib/foundry-workflow-authorization.js";
29
30
  import { continueFoundryPreparedApproval } from "./lib/foundry-workflow-approval-continuation.js";
30
31
  const maxSpecBytes = 1024 * 1024;
@@ -1015,6 +1016,9 @@ export function createFoundryFacade(options) {
1015
1016
  let current = null;
1016
1017
  try {
1017
1018
  assertNotInterrupted(options.signal);
1019
+ if (input.referenceInputFile !== undefined &&
1020
+ (typeof input.referenceInputFile !== "string" || !input.referenceInputFile.trim()))
1021
+ throw new FoundryContextError("reference_input_invalid", "An explicit reference input requires one nonempty file path.");
1018
1022
  current = base();
1019
1023
  assertFoundryWorkspaceWrite(current);
1020
1024
  const record = loadFoundryFacadeTaskRecord(current, input.taskId, input.actorId);
@@ -1025,11 +1029,13 @@ export function createFoundryFacade(options) {
1025
1029
  assertNotInterrupted(options.signal);
1026
1030
  loadFoundryFacadeTaskRecord(current, record.task_id, record.spec.actor_id);
1027
1031
  const existing = taskProjection("task.resume", context, record, before, runtimeIdentity(context, qualified));
1032
+ if (input.referenceInputFile && existing.status === "completed")
1033
+ throw new FoundryContextError("execution_scope_completed", "A completed task cannot replace its reference evidence.");
1028
1034
  if (existing.status === "completed" || existing.status === "blocked")
1029
1035
  return existing;
1030
1036
  const execution = completedOwnerScopes(context, before.artifacts);
1031
1037
  if (execution.pending.length) {
1032
- if (input.authorizationInputFile || input.semanticInputFile)
1038
+ if (input.authorizationInputFile || input.semanticInputFile || input.referenceInputFile)
1033
1039
  throw new FoundryContextError("execution_recovery_required", "Recover the consumed request before submitting changes.");
1034
1040
  if (!qualified)
1035
1041
  throw new FoundryContextError("runtime_unqualified", "Owner readback requires qualified runtime owners.");
@@ -1041,19 +1047,44 @@ export function createFoundryFacade(options) {
1041
1047
  await executeFoundryOwnerScope(selected, qualified, before.artifacts, execution.pending[0], options.authentication);
1042
1048
  return taskProjection("task.resume", context, record, await runtime.inspectTask(), runtimeIdentity(context, qualified));
1043
1049
  }
1050
+ if (input.referenceInputFile) {
1051
+ if (input.authorizationInputFile || input.semanticInputFile || record.spec.preparation)
1052
+ throw new FoundryContextError("reference_input_invalid", "Select reference evidence separately from approval, semantic input or explicit cleanup.");
1053
+ const submission = selectFoundryReferenceInput(context, input.referenceInputFile);
1054
+ if (execution.completed.has(submission.spec.dataset_type) ||
1055
+ execution.requests.some((item) => item.request.policy.dataset_type === submission.spec.dataset_type))
1056
+ throw new FoundryContextError("execution_scope_frozen", "A prepared or consumed owner scope cannot replace its reference evidence.");
1057
+ const selected = taskContext(options, current, record, before.artifacts.map((entry) => ({
1058
+ path: path.join(context.taskRoot, entry.path),
1059
+ bytes: entry.bytes,
1060
+ sha256: entry.sha256,
1061
+ })));
1062
+ await recordFoundryReferenceInput(selected, before.artifacts, submission);
1063
+ return taskProjection("task.resume", context, record, await runtime.inspectTask(), runtimeIdentity(context, qualified));
1064
+ }
1044
1065
  if (input.authorizationInputFile) {
1045
1066
  if (input.semanticInputFile || record.spec.preparation)
1046
1067
  throw new FoundryContextError("task_authorization_input_invalid", "Submit approval separately from semantic input or explicit cleanup.");
1047
1068
  if (!qualified)
1048
1069
  throw new FoundryContextError("runtime_unqualified", "Approval admission requires qualified runtime owners.");
1049
- const submission = selectFoundryAuthorizationInput(context, input.authorizationInputFile);
1050
- if (execution.completed.has(submission.spec.dataset_type))
1070
+ const supplied = selectFoundryAuthorizationInput(context, input.authorizationInputFile);
1071
+ if (execution.completed.has(supplied.spec.dataset_type))
1051
1072
  throw new FoundryContextError("execution_scope_completed", "A verified scope cannot receive new write approval.");
1073
+ const submission = supplied.executionContract
1074
+ ? await snapshotFoundryAuthorizationContract(taskContext(options, current, record, before.artifacts.map((artifact) => ({
1075
+ path: path.join(context.taskRoot, artifact.path),
1076
+ bytes: artifact.bytes,
1077
+ sha256: artifact.sha256,
1078
+ }))), supplied, before.artifacts)
1079
+ : supplied;
1052
1080
  const facts = before.artifacts.map((artifact) => ({
1053
1081
  path: path.join(context.taskRoot, artifact.path),
1054
1082
  bytes: artifact.bytes,
1055
1083
  sha256: artifact.sha256,
1056
1084
  }));
1085
+ if (submission.executionContract &&
1086
+ !facts.some((fact) => fs.realpathSync(fact.path) === submission.executionContract.path))
1087
+ facts.push(submission.executionContract);
1057
1088
  const selected = taskContext(options, current, record, facts);
1058
1089
  await authorizeFoundryWorkflow(selected, qualified, before.artifacts, submission, options.authentication);
1059
1090
  return taskProjection("task.resume", context, record, await runtime.inspectTask(), runtimeIdentity(context, qualified));