@tiangong-lca/foundry 0.1.7 → 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.
- package/README.md +7 -5
- package/docs/architecture.md +7 -5
- package/docs/foundry-task-contracts.md +4 -4
- package/docs/import-profiles/worldsteel/constraints.md +3 -3
- package/docs/import-profiles/worldsteel/import-coverage.md +3 -3
- package/docs/import-profiles/worldsteel/import-plan.md +1 -1
- package/docs/import-profiles/worldsteel/profile.md +3 -3
- package/docs/package-distribution-contract.md +6 -6
- package/docs/public-runtime-contract.md +22 -6
- package/docs/runtime-context-contract.md +9 -5
- package/docs/task-authorization-contract.md +8 -4
- package/package-dist/assets/foundry-package-descriptor.json +150 -84
- package/package-dist/scripts/foundry-facade.d.ts +1 -0
- package/package-dist/scripts/foundry-facade.js +35 -4
- package/package-dist/scripts/lib/finalize-owners/commit-handoff.js +65 -10
- package/package-dist/scripts/lib/finalize-owners/finalize-reference-inputs.d.ts +12 -0
- package/package-dist/scripts/lib/finalize-owners/finalize-reference-inputs.js +57 -0
- package/package-dist/scripts/lib/finalize-owners/handoff-reference-intent.d.ts +28 -0
- package/package-dist/scripts/lib/finalize-owners/handoff-reference-intent.js +115 -0
- package/package-dist/scripts/lib/finalize-owners/native-insert-closeout.d.ts +13 -0
- package/package-dist/scripts/lib/finalize-owners/native-insert-closeout.js +99 -0
- package/package-dist/scripts/lib/finalize-owners/native-insert-handoff.d.ts +47 -0
- package/package-dist/scripts/lib/finalize-owners/native-insert-handoff.js +146 -0
- package/package-dist/scripts/lib/finalize-owners/post-authoring.js +13 -0
- package/package-dist/scripts/lib/finalize-owners/post-write-closeout.d.ts +8 -2
- package/package-dist/scripts/lib/finalize-owners/post-write-closeout.js +48 -2
- package/package-dist/scripts/lib/finalize-owners/reference-intent-closeout.d.ts +12 -0
- package/package-dist/scripts/lib/finalize-owners/reference-intent-closeout.js +77 -0
- package/package-dist/scripts/lib/foundry-authorization-input.d.ts +8 -0
- package/package-dist/scripts/lib/foundry-authorization-input.js +68 -1
- package/package-dist/scripts/lib/foundry-command-metadata.js +15 -1
- package/package-dist/scripts/lib/foundry-execution-admission.js +82 -5
- package/package-dist/scripts/lib/foundry-owner-execution-store.js +25 -2
- package/package-dist/scripts/lib/foundry-owner-readback.d.ts +2 -0
- package/package-dist/scripts/lib/foundry-owner-readback.js +65 -14
- package/package-dist/scripts/lib/foundry-package-contract.d.ts +4 -4
- package/package-dist/scripts/lib/foundry-package-contract.js +4 -2
- package/package-dist/scripts/lib/foundry-reference-input.d.ts +28 -0
- package/package-dist/scripts/lib/foundry-reference-input.js +235 -0
- package/package-dist/scripts/lib/foundry-runtime-qualification.js +2 -2
- package/package-dist/scripts/lib/foundry-runtime-utils.js +1 -1
- package/package-dist/scripts/lib/foundry-task-store.d.ts +1 -1
- package/package-dist/scripts/lib/foundry-workflow-authorization.d.ts +2 -1
- package/package-dist/scripts/lib/foundry-workflow-authorization.js +38 -2
- package/package-dist/scripts/lib/foundry-workflow-execution.js +7 -1
- package/package-dist/scripts/lib/foundry-workflow-finalize.js +43 -1
- package/package-dist/scripts/lib/foundry-workflow-state.d.ts +2 -0
- package/package-dist/scripts/lib/foundry-workflow-state.js +31 -2
- package/package-dist/scripts/lib/import-curation/internal/context-inputs.js +1 -1
- package/package-dist/scripts/public-api.d.ts +1 -0
- package/package-dist/scripts/runtime-entry.js +2 -1
- package/package.json +3 -2
- package/specs/import-profiles.json +1 -1
- package/specs/prewrite-content-policy.json +1 -1
- package/specs/schemas/foundry-authorization-input.schema.json +38 -1
- package/specs/schemas/foundry-managed-runtime.schema.json +1 -1
- package/specs/schemas/foundry-package-descriptor.schema.json +3 -2
- package/specs/schemas/foundry-reference-input.schema.json +137 -0
- 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.
|
|
5
|
+
"version": "0.1.8",
|
|
6
6
|
"cli_dependency": {
|
|
7
7
|
"name": "@tiangong-lca/cli",
|
|
8
|
-
"version": "0.1.
|
|
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":
|
|
62
|
-
"sha256": "
|
|
62
|
+
"bytes": 66725,
|
|
63
|
+
"sha256": "ce570557972b3f0d9c6425c8cfe1a7cbf5083552cbacd8992ebcb938c40c8225"
|
|
63
64
|
},
|
|
64
65
|
{
|
|
65
66
|
"path": "docs/architecture.md",
|
|
66
|
-
"bytes":
|
|
67
|
-
"sha256": "
|
|
67
|
+
"bytes": 57485,
|
|
68
|
+
"sha256": "2365914a5b92306eb8b29a9b93f8675caf596922645bcece7308e7d1ce235574"
|
|
68
69
|
},
|
|
69
70
|
{
|
|
70
71
|
"path": "docs/foundry-task-contracts.md",
|
|
71
|
-
"bytes":
|
|
72
|
-
"sha256": "
|
|
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":
|
|
102
|
-
"sha256": "
|
|
102
|
+
"bytes": 7770,
|
|
103
|
+
"sha256": "883b32beaf14dbcea10eaa4513a09587dfd36fcb6140d7075419dadee38daa20"
|
|
103
104
|
},
|
|
104
105
|
{
|
|
105
106
|
"path": "docs/import-profiles/worldsteel/import-coverage.md",
|
|
106
|
-
"bytes":
|
|
107
|
-
"sha256": "
|
|
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": "
|
|
113
|
+
"sha256": "6482f574df61f7a9789b6c2ac8751fa8b7001ce4418566510928e755babf18a4"
|
|
113
114
|
},
|
|
114
115
|
{
|
|
115
116
|
"path": "docs/import-profiles/worldsteel/profile.md",
|
|
116
|
-
"bytes":
|
|
117
|
-
"sha256": "
|
|
117
|
+
"bytes": 8086,
|
|
118
|
+
"sha256": "e87b87384eb9349c6ff5190eddbcd1a38347ea0d725d77f0d60e96ac6d04fc23"
|
|
118
119
|
},
|
|
119
120
|
{
|
|
120
121
|
"path": "docs/package-distribution-contract.md",
|
|
121
|
-
"bytes":
|
|
122
|
-
"sha256": "
|
|
122
|
+
"bytes": 68982,
|
|
123
|
+
"sha256": "bb2503b64cb0ac2a9677f7a3db0fb5500d606bcf56438f7e7221cfd69d8d9928"
|
|
123
124
|
},
|
|
124
125
|
{
|
|
125
126
|
"path": "docs/public-runtime-contract.md",
|
|
126
|
-
"bytes":
|
|
127
|
-
"sha256": "
|
|
127
|
+
"bytes": 42361,
|
|
128
|
+
"sha256": "0f1b55c56ae2a7bfc4046bf456eca05e467b8a07af3984ad5053ff0f6ada4fd9"
|
|
128
129
|
},
|
|
129
130
|
{
|
|
130
131
|
"path": "docs/runtime-context-contract.md",
|
|
131
|
-
"bytes":
|
|
132
|
-
"sha256": "
|
|
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":
|
|
142
|
-
"sha256": "
|
|
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":
|
|
157
|
-
"sha256": "
|
|
157
|
+
"bytes": 2989,
|
|
158
|
+
"sha256": "2b2c93bd00c26213bb37dd558950f5eebd8162ac49bb275ba60c91bf8347a922"
|
|
158
159
|
},
|
|
159
160
|
{
|
|
160
161
|
"path": "package-dist/scripts/foundry-facade.js",
|
|
161
|
-
"bytes":
|
|
162
|
-
"sha256": "
|
|
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":
|
|
322
|
-
"sha256": "
|
|
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":
|
|
332
|
-
"sha256": "
|
|
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":
|
|
337
|
-
"sha256": "
|
|
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":
|
|
342
|
-
"sha256": "
|
|
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":
|
|
367
|
-
"sha256": "
|
|
417
|
+
"bytes": 1744,
|
|
418
|
+
"sha256": "22216f4177f8e48eb58271223024f884790658d1a81054c8501cc1db9a8d94e2"
|
|
368
419
|
},
|
|
369
420
|
{
|
|
370
421
|
"path": "package-dist/scripts/lib/foundry-authorization-input.js",
|
|
371
|
-
"bytes":
|
|
372
|
-
"sha256": "
|
|
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":
|
|
382
|
-
"sha256": "
|
|
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":
|
|
432
|
-
"sha256": "
|
|
482
|
+
"bytes": 18511,
|
|
483
|
+
"sha256": "35b775bd9b1534dcfedab886c44013e066248e108080d97f95d2d0e1949931f3"
|
|
433
484
|
},
|
|
434
485
|
{
|
|
435
486
|
"path": "package-dist/scripts/lib/foundry-execution-attempt.d.ts",
|
|
@@ -608,18 +659,18 @@
|
|
|
608
659
|
},
|
|
609
660
|
{
|
|
610
661
|
"path": "package-dist/scripts/lib/foundry-owner-execution-store.js",
|
|
611
|
-
"bytes":
|
|
612
|
-
"sha256": "
|
|
662
|
+
"bytes": 18605,
|
|
663
|
+
"sha256": "01acf96d94cd6be344623e8d9c103ffd02c2ed78f05576438e1a2ea4aa353183"
|
|
613
664
|
},
|
|
614
665
|
{
|
|
615
666
|
"path": "package-dist/scripts/lib/foundry-owner-readback.d.ts",
|
|
616
|
-
"bytes":
|
|
617
|
-
"sha256": "
|
|
667
|
+
"bytes": 1556,
|
|
668
|
+
"sha256": "493a94b9a45c63a23745a6f37358a63fd034ed7b3a3a771f1e456e255e607d37"
|
|
618
669
|
},
|
|
619
670
|
{
|
|
620
671
|
"path": "package-dist/scripts/lib/foundry-owner-readback.js",
|
|
621
|
-
"bytes":
|
|
622
|
-
"sha256": "
|
|
672
|
+
"bytes": 13161,
|
|
673
|
+
"sha256": "8fd916b449851129936e18d3464d1ea92814c5d71ce778cdf398d651c81c334f"
|
|
623
674
|
},
|
|
624
675
|
{
|
|
625
676
|
"path": "package-dist/scripts/lib/foundry-owner-trace-acceptance.d.ts",
|
|
@@ -633,13 +684,13 @@
|
|
|
633
684
|
},
|
|
634
685
|
{
|
|
635
686
|
"path": "package-dist/scripts/lib/foundry-package-contract.d.ts",
|
|
636
|
-
"bytes":
|
|
637
|
-
"sha256": "
|
|
687
|
+
"bytes": 5648,
|
|
688
|
+
"sha256": "a4d85444ae5d8d2b59bee87d99f282b78f3effcabda2c425ea275bb23bf21d1a"
|
|
638
689
|
},
|
|
639
690
|
{
|
|
640
691
|
"path": "package-dist/scripts/lib/foundry-package-contract.js",
|
|
641
|
-
"bytes":
|
|
642
|
-
"sha256": "
|
|
692
|
+
"bytes": 18552,
|
|
693
|
+
"sha256": "1816d3f1fc7b66016cf3c692260ec35f0dd5850b4f0d01a5ed47543b8177279c"
|
|
643
694
|
},
|
|
644
695
|
{
|
|
645
696
|
"path": "package-dist/scripts/lib/foundry-private-path.d.ts",
|
|
@@ -651,6 +702,16 @@
|
|
|
651
702
|
"bytes": 1041,
|
|
652
703
|
"sha256": "7d0d00f8a2e0f98f5871974aadaeb8161746219b6a28135644086fa8ffa245f5"
|
|
653
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
|
+
},
|
|
654
715
|
{
|
|
655
716
|
"path": "package-dist/scripts/lib/foundry-runtime-cache.d.ts",
|
|
656
717
|
"bytes": 262,
|
|
@@ -739,7 +800,7 @@
|
|
|
739
800
|
{
|
|
740
801
|
"path": "package-dist/scripts/lib/foundry-runtime-qualification.js",
|
|
741
802
|
"bytes": 12065,
|
|
742
|
-
"sha256": "
|
|
803
|
+
"sha256": "a547dd641cb1229b9621976f47a0de721c409c847a308f168480bc7995f66d90"
|
|
743
804
|
},
|
|
744
805
|
{
|
|
745
806
|
"path": "package-dist/scripts/lib/foundry-runtime-selection-record.d.ts",
|
|
@@ -769,7 +830,7 @@
|
|
|
769
830
|
{
|
|
770
831
|
"path": "package-dist/scripts/lib/foundry-runtime-utils.js",
|
|
771
832
|
"bytes": 23278,
|
|
772
|
-
"sha256": "
|
|
833
|
+
"sha256": "d92c04f7f2867cfd9f9e16285f1f6318292ed6ba3d408f03adcb375caca88a86"
|
|
773
834
|
},
|
|
774
835
|
{
|
|
775
836
|
"path": "package-dist/scripts/lib/foundry-semantic-input.d.ts",
|
|
@@ -823,8 +884,8 @@
|
|
|
823
884
|
},
|
|
824
885
|
{
|
|
825
886
|
"path": "package-dist/scripts/lib/foundry-task-store.d.ts",
|
|
826
|
-
"bytes":
|
|
827
|
-
"sha256": "
|
|
887
|
+
"bytes": 1819,
|
|
888
|
+
"sha256": "f25032dddc6da78060be481c92334cd8e04a88e973e2d8da090fd2d0b0cdd1b5"
|
|
828
889
|
},
|
|
829
890
|
{
|
|
830
891
|
"path": "package-dist/scripts/lib/foundry-task-store.js",
|
|
@@ -863,13 +924,13 @@
|
|
|
863
924
|
},
|
|
864
925
|
{
|
|
865
926
|
"path": "package-dist/scripts/lib/foundry-workflow-authorization.d.ts",
|
|
866
|
-
"bytes":
|
|
867
|
-
"sha256": "
|
|
927
|
+
"bytes": 1581,
|
|
928
|
+
"sha256": "f3f22f1ac91b134e39d6e39be7db68382cc327959afe757c9490bb7033026ff6"
|
|
868
929
|
},
|
|
869
930
|
{
|
|
870
931
|
"path": "package-dist/scripts/lib/foundry-workflow-authorization.js",
|
|
871
|
-
"bytes":
|
|
872
|
-
"sha256": "
|
|
932
|
+
"bytes": 11901,
|
|
933
|
+
"sha256": "afd6e2a08ddd94f45d6050a90be5e81e0837194f5d22ddabb82c4621dddc1921"
|
|
873
934
|
},
|
|
874
935
|
{
|
|
875
936
|
"path": "package-dist/scripts/lib/foundry-workflow-context.d.ts",
|
|
@@ -898,8 +959,8 @@
|
|
|
898
959
|
},
|
|
899
960
|
{
|
|
900
961
|
"path": "package-dist/scripts/lib/foundry-workflow-execution.js",
|
|
901
|
-
"bytes":
|
|
902
|
-
"sha256": "
|
|
962
|
+
"bytes": 14729,
|
|
963
|
+
"sha256": "2de417807bc17c3f2b200a5a6b08e5346ae0894ee5deb99e237046f6167496bf"
|
|
903
964
|
},
|
|
904
965
|
{
|
|
905
966
|
"path": "package-dist/scripts/lib/foundry-workflow-finalize.d.ts",
|
|
@@ -908,8 +969,8 @@
|
|
|
908
969
|
},
|
|
909
970
|
{
|
|
910
971
|
"path": "package-dist/scripts/lib/foundry-workflow-finalize.js",
|
|
911
|
-
"bytes":
|
|
912
|
-
"sha256": "
|
|
972
|
+
"bytes": 17958,
|
|
973
|
+
"sha256": "674f9ede43983be08ca3df9e126ae4578896013fb949dba618bf4c1293b2715b"
|
|
913
974
|
},
|
|
914
975
|
{
|
|
915
976
|
"path": "package-dist/scripts/lib/foundry-workflow-identity-apply.d.ts",
|
|
@@ -983,13 +1044,13 @@
|
|
|
983
1044
|
},
|
|
984
1045
|
{
|
|
985
1046
|
"path": "package-dist/scripts/lib/foundry-workflow-state.d.ts",
|
|
986
|
-
"bytes":
|
|
987
|
-
"sha256": "
|
|
1047
|
+
"bytes": 1617,
|
|
1048
|
+
"sha256": "441df88a45682b4ac6ce9fc154f3d1b236e323c39bb570509badf943f4b876f6"
|
|
988
1049
|
},
|
|
989
1050
|
{
|
|
990
1051
|
"path": "package-dist/scripts/lib/foundry-workflow-state.js",
|
|
991
|
-
"bytes":
|
|
992
|
-
"sha256": "
|
|
1052
|
+
"bytes": 9102,
|
|
1053
|
+
"sha256": "1a40f8790ba05bcfe2c13d4583956aded68e7b93b394c0c8d1cb98f840eb6540"
|
|
993
1054
|
},
|
|
994
1055
|
{
|
|
995
1056
|
"path": "package-dist/scripts/lib/full-context-proof.d.ts",
|
|
@@ -1099,7 +1160,7 @@
|
|
|
1099
1160
|
{
|
|
1100
1161
|
"path": "package-dist/scripts/lib/import-curation/internal/context-inputs.js",
|
|
1101
1162
|
"bytes": 8791,
|
|
1102
|
-
"sha256": "
|
|
1163
|
+
"sha256": "def762f9db8fdf136547f319b55008678b58f4e1e1874533bd67091889583882"
|
|
1103
1164
|
},
|
|
1104
1165
|
{
|
|
1105
1166
|
"path": "package-dist/scripts/lib/import-curation/internal/curation-gate-workflow.d.ts",
|
|
@@ -1533,8 +1594,8 @@
|
|
|
1533
1594
|
},
|
|
1534
1595
|
{
|
|
1535
1596
|
"path": "package-dist/scripts/public-api.d.ts",
|
|
1536
|
-
"bytes":
|
|
1537
|
-
"sha256": "
|
|
1597
|
+
"bytes": 5469,
|
|
1598
|
+
"sha256": "a017720970992e20db40129bfea8e3bb46751c2cac116ff0f38304b6e479b5be"
|
|
1538
1599
|
},
|
|
1539
1600
|
{
|
|
1540
1601
|
"path": "package-dist/scripts/public-api.js",
|
|
@@ -1548,8 +1609,8 @@
|
|
|
1548
1609
|
},
|
|
1549
1610
|
{
|
|
1550
1611
|
"path": "package-dist/scripts/runtime-entry.js",
|
|
1551
|
-
"bytes":
|
|
1552
|
-
"sha256": "
|
|
1612
|
+
"bytes": 21075,
|
|
1613
|
+
"sha256": "a2ed49df891720bdf05597b471bd5ecd429835a9cd7073ae4b376dd776dd4b0d"
|
|
1553
1614
|
},
|
|
1554
1615
|
{
|
|
1555
1616
|
"path": "specs/canonical-support/flow-properties-unit-groups.json",
|
|
@@ -1559,12 +1620,12 @@
|
|
|
1559
1620
|
{
|
|
1560
1621
|
"path": "specs/import-profiles.json",
|
|
1561
1622
|
"bytes": 6781,
|
|
1562
|
-
"sha256": "
|
|
1623
|
+
"sha256": "3ad2b417ffe2dc1ed3d3582030b1c4171105e78e133964ddf8c2ccd139ea94b1"
|
|
1563
1624
|
},
|
|
1564
1625
|
{
|
|
1565
1626
|
"path": "specs/prewrite-content-policy.json",
|
|
1566
|
-
"bytes":
|
|
1567
|
-
"sha256": "
|
|
1627
|
+
"bytes": 3380,
|
|
1628
|
+
"sha256": "2dcfc33e5d0ff7b547cd9c915a33264fc5504cb1f4fee6a744e7c9012b5c8fbf"
|
|
1568
1629
|
},
|
|
1569
1630
|
{
|
|
1570
1631
|
"path": "specs/schemas/authorization-derivation.schema.json",
|
|
@@ -1578,8 +1639,8 @@
|
|
|
1578
1639
|
},
|
|
1579
1640
|
{
|
|
1580
1641
|
"path": "specs/schemas/foundry-authorization-input.schema.json",
|
|
1581
|
-
"bytes":
|
|
1582
|
-
"sha256": "
|
|
1642
|
+
"bytes": 3490,
|
|
1643
|
+
"sha256": "0e4a8424aa2739418bf9b19923a3f6d55887c7ab77ad37a40c720a90c5ae92c5"
|
|
1583
1644
|
},
|
|
1584
1645
|
{
|
|
1585
1646
|
"path": "specs/schemas/foundry-facade-request-index.schema.json",
|
|
@@ -1589,7 +1650,7 @@
|
|
|
1589
1650
|
{
|
|
1590
1651
|
"path": "specs/schemas/foundry-managed-runtime.schema.json",
|
|
1591
1652
|
"bytes": 3278,
|
|
1592
|
-
"sha256": "
|
|
1653
|
+
"sha256": "8b8d437830760ca295b91a89a528d356d292b2e9cda987c0ad68346324536dac"
|
|
1593
1654
|
},
|
|
1594
1655
|
{
|
|
1595
1656
|
"path": "specs/schemas/foundry-migration-activation.schema.json",
|
|
@@ -1613,8 +1674,13 @@
|
|
|
1613
1674
|
},
|
|
1614
1675
|
{
|
|
1615
1676
|
"path": "specs/schemas/foundry-package-descriptor.schema.json",
|
|
1616
|
-
"bytes":
|
|
1617
|
-
"sha256": "
|
|
1677
|
+
"bytes": 4192,
|
|
1678
|
+
"sha256": "10c26be7f53094dc39e3e904970b287a22a85211df6e3a7a942def678cf4aa2b"
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
"path": "specs/schemas/foundry-reference-input.schema.json",
|
|
1682
|
+
"bytes": 2682,
|
|
1683
|
+
"sha256": "cbb49e6a3a8fd35694d60eae82b45c0f0725228cd866686313c515456789cd77"
|
|
1618
1684
|
},
|
|
1619
1685
|
{
|
|
1620
1686
|
"path": "specs/schemas/foundry-runtime-selection.schema.json",
|
|
@@ -1654,7 +1720,7 @@
|
|
|
1654
1720
|
{
|
|
1655
1721
|
"path": "specs/schemas/runtime-qualification.schema.json",
|
|
1656
1722
|
"bytes": 2261,
|
|
1657
|
-
"sha256": "
|
|
1723
|
+
"sha256": "7778ac88f8908df60cb9b83e82defc93f093f16bc37f6d7688245eec96f80cd7"
|
|
1658
1724
|
},
|
|
1659
1725
|
{
|
|
1660
1726
|
"path": "specs/schemas/task-authorization.schema.json",
|
|
@@ -1667,5 +1733,5 @@
|
|
|
1667
1733
|
"sha256": "3d22fcc572f9a0f192ccb699d01fb32574287ed2bbd2aca70fb4b792b7aed487"
|
|
1668
1734
|
}
|
|
1669
1735
|
],
|
|
1670
|
-
"files_sha256": "
|
|
1736
|
+
"files_sha256": "b37e341ba96965199da49a0a371d8926c7dd98cc061f92a27aefb88e94964f83"
|
|
1671
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 {
|
|
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
|
|
1050
|
-
if (execution.completed.has(
|
|
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));
|