@tiangong-lca/foundry 0.1.4 → 0.1.6
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 +4 -4
- package/docs/architecture.md +4 -4
- 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 +4 -4
- package/docs/import-profiles/worldsteel/profile.md +3 -3
- package/docs/package-distribution-contract.md +37 -11
- package/docs/public-runtime-contract.md +3 -3
- package/docs/runtime-context-contract.md +3 -3
- package/docs/task-authorization-contract.md +3 -3
- package/package-dist/assets/foundry-package-descriptor.json +34 -34
- package/package-dist/scripts/lib/foundry-package-contract.d.ts +2 -2
- package/package-dist/scripts/lib/foundry-package-contract.js +2 -2
- 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/import-curation/internal/context-inputs.js +1 -1
- package/package.json +2 -2
- package/specs/import-profiles.json +1 -1
- package/specs/schemas/foundry-managed-runtime.schema.json +1 -1
- package/specs/schemas/foundry-package-descriptor.schema.json +2 -2
- package/specs/schemas/runtime-qualification.schema.json +1 -1
package/README.md
CHANGED
|
@@ -158,8 +158,8 @@ checkPaths:
|
|
|
158
158
|
- test/unit/zero-javascript-ratchet.test.mts
|
|
159
159
|
- test/scenarios/foundry-package-consumer.test.mts
|
|
160
160
|
lastReviewedAt: 2026-09-09
|
|
161
|
-
lastReviewedCommit:
|
|
162
|
-
lastReviewedNote: "Reviewed for Foundry #
|
|
161
|
+
lastReviewedCommit: 5c5cdbd9af89dcafa7a8f837bd3c4de4bd92d2d8
|
|
162
|
+
lastReviewedNote: "Reviewed for Foundry #149: the strict 0.1.6 version projection uses qualified source 5c5cdbd and verified CLI 0.1.13. Runtime behavior and the frozen dependency graph are unchanged; complete owning release and independent public F1 verification remain required."
|
|
163
163
|
---
|
|
164
164
|
|
|
165
165
|
# TianGong LCA Data Foundry
|
|
@@ -339,9 +339,9 @@ pnpm case:production:contact-draft -- \
|
|
|
339
339
|
|
|
340
340
|
The runner accepts no API key or alternate CLI path on argv. It reads only `TIANGONG_LCA_API_BASE_URL`, `TIANGONG_LCA_SUPABASE_PUBLISHABLE_KEY`, and `TIANGONG_LCA_TEST_API_KEY`; the test key exists only in the child environment. The env file must be a regular non-symlink file with POSIX mode `0600` or stricter and, when it is inside this repository, must be git-ignored. The new output directory must also be inside this repository, git-ignored, and reached without a symlinked parent.
|
|
341
341
|
|
|
342
|
-
This production lane is POSIX-only. Windows execution fails closed until the runner can verify a user-exclusive ACL; Windows CI covers that refusal rather than a live case. On POSIX, the runner snapshots the exact installed CLI 0.1.
|
|
342
|
+
This production lane is POSIX-only. Windows execution fails closed until the runner can verify a user-exclusive ACL; Windows CI covers that refusal rather than a live case. On POSIX, the runner snapshots the exact installed CLI 0.1.13 package inside its pnpm dependency island, hashes and rechecks the full pnpm installation plus Foundry source/build/lock facts before every child boundary, executes from a clean directory with `shell=false`, fsyncs create-only private evidence, and publishes a content-addressed case manifest only after the runtime snapshot is removed. Any detected secret in stdout, a report, or a sidecar artifact fails the case and leaves only redacted failure evidence. The created contact remains isolated, unreviewed, and unpublished under the authenticated test account for later case evidence; the lane never performs review/publish transitions or mutates foreign/public/shared rows.
|
|
343
343
|
|
|
344
|
-
Credential-scoped commands use `pnpm account:run -- <profile> -- <executable> [args...]`. The ignored profile supplies both the expected Supabase project ref and canonical user UUID. The wrapper resolves the installed CLI 0.1.
|
|
344
|
+
Credential-scoped commands use `pnpm account:run -- <profile> -- <executable> [args...]`. The ignored profile supplies both the expected Supabase project ref and canonical user UUID. The wrapper resolves the installed CLI 0.1.13, obtains a fresh intent-bound `auth identity-receipt`, and then executes the requested argv without a shell and without inheriting unrelated parent environment variables. Authentication bypass flags are unsupported.
|
|
345
345
|
|
|
346
346
|
Issue #70 consumes CLI 0.1.3 through its supported `./batch` and `./auth-identity-receipt` subpaths. The production identity-preflight path uses the public strict parser; deterministic receipt construction exists only in a local test fixture, and the toolchain ratchet rejects every `@tiangong-lca/cli/dist/src/**` import. pnpm's 1,440-minute maturity gate remains enabled; the exact 0.1.3 exception is bound to the release already verified by tag, Sigstore/Rekor provenance, registry integrity, and clean public consumers.
|
|
347
347
|
|
package/docs/architecture.md
CHANGED
|
@@ -152,8 +152,8 @@ checkPaths:
|
|
|
152
152
|
- test/unit/lint-suppression-audit.test.mts
|
|
153
153
|
- docs/incremental-change-set-contract.md
|
|
154
154
|
lastReviewedAt: 2026-09-09
|
|
155
|
-
lastReviewedCommit:
|
|
156
|
-
lastReviewedNote: "Reviewed for Foundry #
|
|
155
|
+
lastReviewedCommit: 5c5cdbd9af89dcafa7a8f837bd3c4de4bd92d2d8
|
|
156
|
+
lastReviewedNote: "Reviewed for Foundry #149: the strict 0.1.6 version projection uses qualified source 5c5cdbd and verified CLI 0.1.13. Runtime behavior and the frozen dependency graph are unchanged; complete owning release and independent public F1 verification remain required."
|
|
157
157
|
---
|
|
158
158
|
|
|
159
159
|
# Architecture
|
|
@@ -174,7 +174,7 @@ The public task facade delegates sealed owner execution to `foundry-workflow-exe
|
|
|
174
174
|
|
|
175
175
|
## OAuth identity boundary
|
|
176
176
|
|
|
177
|
-
Foundry selects a private session reference and exact project/user intent, then calls the published CLI for a fresh server-verified identity receipt. It validates TTL, canonical hash, expected identity and current OAuth session metadata without owning login, password decoding, token exchange or refresh. Candidate Golden execution uses an isolated Git-visible source snapshot so ignored operator state cannot change qualification. Support-cache transport is owned by the public CLI export. Foundry validates the fresh identity, project, public-state scope, completion marker, artifact paths and hashes, then summarizes rows and atomically replaces only the requested local cache. The CLI runs in a private temporary cwd with an allowlisted OAuth environment; the operator checkout .env and unrelated secrets cannot enter that child. Exact public CLI 0.1.
|
|
177
|
+
Foundry selects a private session reference and exact project/user intent, then calls the published CLI for a fresh server-verified identity receipt. It validates TTL, canonical hash, expected identity and current OAuth session metadata without owning login, password decoding, token exchange or refresh. Candidate Golden execution uses an isolated Git-visible source snapshot so ignored operator state cannot change qualification. Support-cache transport is owned by the public CLI export. Foundry validates the fresh identity, project, public-state scope, completion marker, artifact paths and hashes, then summarizes rows and atomically replaces only the requested local cache. The CLI runs in a private temporary cwd with an allowlisted OAuth environment; the operator checkout .env and unrelated secrets cannot enter that child. Exact public CLI 0.1.13 and reviewed TIDAS 0.2.x/0.3.x expectations are independently selected and re-observed through the W04 qualification boundary. F1 component provenance and package qualification remain W06/W08 gates.
|
|
178
178
|
|
|
179
179
|
## Qualified execution boundary
|
|
180
180
|
|
|
@@ -341,7 +341,7 @@ Build and test resolution must be worktree-local. A clean arbitrary Git worktree
|
|
|
341
341
|
|
|
342
342
|
Cross-platform characterization is also explicit: the Golden harness compares normalized outputs to a non-`HEAD` merge-base, performs recursive comparison in Node rather than calling an external Unix utility, and uses full Git history in CI. Script-backed executable overrides are represented as an executable plus argv prefix and run through Node on macOS, Linux, and Windows. The root `.gitattributes` fixes text files to LF while allowing Windows launcher exceptions, preventing checkout policy from masquerading as format drift.
|
|
343
343
|
|
|
344
|
-
The first credential-bearing entrypoint on that spine is `scripts/with-lca-account.ts`. It does not authenticate against Supabase itself. It resolves the exact installed CLI 0.1.
|
|
344
|
+
The first credential-bearing entrypoint on that spine is `scripts/with-lca-account.ts`. It does not authenticate against Supabase itself. It resolves the exact installed CLI 0.1.13, requests `auth identity-receipt` with both expected project and user assertions, accepts only a fresh intent-bound forced signin, and then launches the requested executable plus argv with `shell:false` and a restricted environment. The CLI owns session and live identity behavior; Foundry owns the profile/thread intent checks and safe process boundary.
|
|
345
345
|
|
|
346
346
|
`scripts/lib/identity-preflight-proof.ts` imports the strict parser from the public `@tiangong-lca/cli/auth-identity-receipt` subpath. `test/fixtures/auth-identity-receipt.ts` is the sole test-only wire-fixture owner and produces bytes that must pass that public parser. No production module or fixture may load CLI `dist/src/**`; the installed-package contract also exercises public batch scheduling/run-lock behavior and proves the private path remains closed.
|
|
347
347
|
|
|
@@ -28,9 +28,9 @@ checkPaths:
|
|
|
28
28
|
- specs/schemas/execution-context.schema.json
|
|
29
29
|
- specs/import-profiles.json
|
|
30
30
|
- tasks/**
|
|
31
|
-
lastReviewedAt: 2026-09-
|
|
32
|
-
lastReviewedCommit:
|
|
33
|
-
lastReviewedNote: "Reviewed for Foundry #
|
|
31
|
+
lastReviewedAt: 2026-09-09
|
|
32
|
+
lastReviewedCommit: fa219ecc833c0aad9bb6a3661265a57f8f24a814
|
|
33
|
+
lastReviewedNote: "Reviewed for Foundry #147: adopt independently verified CLI 0.1.13 at b5e2092 with original permission-preserving bootstrap scripts. Exact runtime/schema/package/release expectations advance together; other dependencies, TIDAS, profile rules, task authorization and private no-replay evidence remain unchanged."
|
|
34
34
|
related:
|
|
35
35
|
- AGENTS.md
|
|
36
36
|
- WORKFLOW.md
|
|
@@ -132,7 +132,7 @@ Account registration optionally stores `account_mode` from explicit task/host in
|
|
|
132
132
|
|
|
133
133
|
An expected account may be selected after local preparation. The first selection is registered as project/user intent; subsequent disagreement is rejected. A missing task-local account file may only be restored from its existing workspace registration. This is intent, not proof of authentication.
|
|
134
134
|
|
|
135
|
-
`verifyFoundryRuntimeIdentity` invokes the exact installed CLI through executable/argv in a fresh private CWD with a restricted environment. The CLI owns OAuth/session refresh and server identity verification. Returned proof is immutable, process-local and bound to workspace/task/actor/runtime, with a 60-second freshness check at permission admission. Serialized proof is not reusable authority. Headless mode uses the CLI's existing explicit target and process-only access token, with cache disabled and no token persistence. CLI 0.1.
|
|
135
|
+
`verifyFoundryRuntimeIdentity` invokes the exact installed CLI through executable/argv in a fresh private CWD with a restricted environment. The CLI owns OAuth/session refresh and server identity verification. Returned proof is immutable, process-local and bound to workspace/task/actor/runtime, with a 60-second freshness check at permission admission. Serialized proof is not reusable authority. Headless mode uses the CLI's existing explicit target and process-only access token, with cache disabled and no token persistence. CLI 0.1.13 reports no token-expiry timestamp for that mode; Foundry does not invent one or claim a separately verified token lifetime.
|
|
136
136
|
|
|
137
137
|
`registerFoundryTaskAuthorization` is an explicit host approval operation. It requires fresh identity, current task/input lineage, a valid W03 grant, and independently selected evidence facts supplied by the trusted caller. The grant cannot select its own evidence paths. Each original evidence file is rechecked and copied into an immutable task snapshot; the grant and selection are registered in workspace state. Updating `authorization.json` uses compare-and-swap against its prior digest and preserves historical grants. Unknown legacy authorization files are not overwritten.
|
|
138
138
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
lastReviewedAt: 2026-09-
|
|
3
|
-
lastReviewedCommit:
|
|
4
|
-
lastReviewedNote: "Reviewed for Foundry #
|
|
2
|
+
lastReviewedAt: 2026-09-09
|
|
3
|
+
lastReviewedCommit: fa219ecc833c0aad9bb6a3661265a57f8f24a814
|
|
4
|
+
lastReviewedNote: "Reviewed for Foundry #147: adopt independently verified CLI 0.1.13 at b5e2092 with original permission-preserving bootstrap scripts. Exact runtime/schema/package/release expectations advance together; other dependencies, TIDAS, profile rules, task authorization and private no-replay evidence remain unchanged."
|
|
5
5
|
title: worldsteel Import Constraints
|
|
6
6
|
docType: constraints
|
|
7
7
|
scope: import-profile
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
lastReviewedAt: 2026-09-
|
|
3
|
-
lastReviewedCommit:
|
|
4
|
-
lastReviewedNote: "Reviewed for Foundry #
|
|
2
|
+
lastReviewedAt: 2026-09-09
|
|
3
|
+
lastReviewedCommit: fa219ecc833c0aad9bb6a3661265a57f8f24a814
|
|
4
|
+
lastReviewedNote: "Reviewed for Foundry #147: adopt independently verified CLI 0.1.13 at b5e2092 with original permission-preserving bootstrap scripts. Exact runtime/schema/package/release expectations advance together; other dependencies, TIDAS, profile rules, task authorization and private no-replay evidence remain unchanged."
|
|
5
5
|
title: worldsteel EF3.1 Import Coverage Evidence
|
|
6
6
|
docType: report
|
|
7
7
|
scope: import-profile/worldsteel
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
lastReviewedAt: 2026-09-
|
|
3
|
-
lastReviewedCommit:
|
|
4
|
-
lastReviewedNote: "Reviewed for Foundry #
|
|
2
|
+
lastReviewedAt: 2026-09-09
|
|
3
|
+
lastReviewedCommit: fa219ecc833c0aad9bb6a3661265a57f8f24a814
|
|
4
|
+
lastReviewedNote: "Reviewed for Foundry #147: adopt independently verified CLI 0.1.13 at b5e2092 with original permission-preserving bootstrap scripts. Exact runtime/schema/package/release expectations advance together; other dependencies, TIDAS, profile rules, task authorization and private no-replay evidence remain unchanged."
|
|
5
5
|
title: worldsteel EF3.1 ILCD Import Plan
|
|
6
6
|
docType: plan
|
|
7
7
|
scope: import-profile/worldsteel
|
|
@@ -331,7 +331,7 @@ The vast majority of those exchanges point at EF3.1 reference flows that will re
|
|
|
331
331
|
|
|
332
332
|
## 9. Risk register (consolidated gotchas)
|
|
333
333
|
|
|
334
|
-
- **Use the project-installed CLI** — leave `TIANGONG_LCA_CLI_BIN` blank so Foundry resolves exact `@tiangong-lca/cli@0.1.
|
|
334
|
+
- **Use the project-installed CLI** — leave `TIANGONG_LCA_CLI_BIN` blank so Foundry resolves exact `@tiangong-lca/cli@0.1.13`; an override is only for an explicit local test binary. Credential-scoped execution still goes through the receipt-gated `pnpm account:run` wrapper.
|
|
335
335
|
- **Don't copy BAFU/USLCI profile wholesale** — Worldsteel reuses every canonical row by UUID, caps the R3 elementary tail, and enables R5 only for materialized FP/UG canonical-cache misses behind the full account-local support gates.
|
|
336
336
|
- **`databaseFallbackSourceConfig` silently inherits BAFU** for any unknown profile → ✅ worldsteel branch added.
|
|
337
337
|
- **`source_contact_rewrites` gated to bafu/uslci** → ✅ widened to include `worldsteel`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
lastReviewedAt: 2026-09-
|
|
3
|
-
lastReviewedCommit:
|
|
4
|
-
lastReviewedNote: "Reviewed for Foundry #
|
|
2
|
+
lastReviewedAt: 2026-09-09
|
|
3
|
+
lastReviewedCommit: fa219ecc833c0aad9bb6a3661265a57f8f24a814
|
|
4
|
+
lastReviewedNote: "Reviewed for Foundry #147: adopt independently verified CLI 0.1.13 at b5e2092 with original permission-preserving bootstrap scripts. Exact runtime/schema/package/release expectations advance together; other dependencies, TIDAS, profile rules, task authorization and private no-replay evidence remain unchanged."
|
|
5
5
|
title: worldsteel Import Profile
|
|
6
6
|
docType: profile
|
|
7
7
|
scope: import-profile
|
|
@@ -35,8 +35,8 @@ checkPaths:
|
|
|
35
35
|
- test/unit/runtime-layout.test.mts
|
|
36
36
|
- test/scenarios/foundry-package-consumer.test.mts
|
|
37
37
|
lastReviewedAt: 2026-09-09
|
|
38
|
-
lastReviewedCommit:
|
|
39
|
-
lastReviewedNote: "Reviewed for Foundry #
|
|
38
|
+
lastReviewedCommit: 5c5cdbd9af89dcafa7a8f837bd3c4de4bd92d2d8
|
|
39
|
+
lastReviewedNote: "Reviewed for Foundry #149: the strict 0.1.6 version projection uses qualified source 5c5cdbd and verified CLI 0.1.13. Runtime behavior and the frozen dependency graph are unchanged; complete owning release and independent public F1 verification remain required."
|
|
40
40
|
related:
|
|
41
41
|
- docs/public-runtime-contract.md
|
|
42
42
|
- docs/runtime-context-contract.md
|
|
@@ -48,7 +48,9 @@ related:
|
|
|
48
48
|
|
|
49
49
|
The npm identity is `@tiangong-lca/foundry`; the public bin is `tiangong-foundry`. W06 establishes the installable `0.1.0` candidate and its production dependency closure. It does not publish a registry version or call this candidate F1. W08 owns the release-only workflow, Trusted Publishing/provenance, immutable tag, platform components, SBOM/license bundle and product compatibility manifest.
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
CLI 0.1.13 is independently verified at source/tag `b5e209259d3bb06205b9af131b1c0edc3fba6da2`. Its original POSIX bootstrap preserves verified archive modes under the private umask; its PowerShell bytes are unchanged. The exact source/script digests in `specs/release/runtime-inputs.json` and runtime descriptor/schema expectations advance with the single CLI lock entry. All other 134 locked packages and the sixteen-package production closure remain unchanged.
|
|
52
|
+
|
|
53
|
+
The package depends exactly on public `@tiangong-lca/cli@0.1.13`. Ajv remains a development dependency for internal commands and release-side SPDX validation. Sigstore 5.0.0, YAML 2.9.0, tar 7.5.22 and fflate 0.8.3 are also development-only release tools for signing/verification, lock parsing and bounded upstream archive selection. None enters the public compiler/dependency closure. TIDAS is an independently verified native component selected later by the CLI manager, not an npm dependency or bundled binary.
|
|
52
54
|
|
|
53
55
|
## Public surface
|
|
54
56
|
|
|
@@ -158,11 +160,27 @@ Source CI preserves each successful native result under a run-attempt-specific a
|
|
|
158
160
|
|
|
159
161
|
The local `pnpm prepush:gate` remains the complete developer gate. Full source CI partitions the complete test-file inventory into four duration-balanced groups on each supported platform. Test files execute in isolated Node processes; shared environment and process mocks never require concurrent tests within one process. New unprofiled files remain included. Every shard binds the exact clean source and plan digest, records Node-owned counters and per-file execution evidence, and hashes its event report. Aggregation requires every platform/group exactly once with matching source, inventory and successful outcomes. Missing, duplicate, failed or stale results block qualification.
|
|
160
162
|
|
|
161
|
-
Only a pull request whose exact ancestor-related diff passes `inspectFoundryRelease` may use the version-only lane. It allows the same three version fields and permitted single-line review metadata, then runs type/lint/toolchain, build/surface/audit, release/package contracts and the real packed consumer. Mixed source, dependencies, lock changes, document bodies or invalid Git evidence cannot select this lane. Every final release `workflow_call` supplies its exact source SHA and
|
|
163
|
+
Only a pull request whose exact ancestor-related diff passes `inspectFoundryRelease` may use the version-only lane. It allows the same three version fields and permitted single-line review metadata, then runs type/lint/toolchain, build/surface/audit, release/package contracts and the real packed consumer. Mixed source, dependencies, lock changes, document bodies or invalid Git evidence cannot select this lane. Every final release `workflow_call` supplies its exact source SHA and requires complete four-platform tests, native qualification, aggregation and copied bootstrap, either freshly executed or restored from a verified complete source capsule. Tests and the complete read-only native path run in parallel after the shared package build. Native aggregation and copied-bootstrap checks do not wait for tests; the final qualification gate joins all test and native-path results before signing. Required platform checks run their dependency guard even after a failed or skipped prerequisite. Full aggregation and bootstrap use explicit cancellation/result guards so an intentionally skipped version-only job cannot suppress them transitively. An always-running terminal gate requires every stage selected by the mode to succeed; missing or skipped full-qualification stages fail the workflow. Publication continuations likewise require successful prerequisites and respect cancellation.
|
|
164
|
+
|
|
165
|
+
A dedicated source build produces the canonical npm archive once and verifies its descriptor, complete packed file set and CLI pin. The build manifest binds exact Git commit/tree, package, Node/pnpm/TypeScript versions, lock digest and GitHub run/attempt/workflow. Archive and manifest SHA-256 values travel as independent producing-job outputs; downloaded metadata cannot select its own authority. Consumers verify those digests and the current context, safely extract and validate the package inventory, then receive a branded in-memory snapshot. The original three-variable selection remains limited to the producing attempt. Serialized objects, partial selections, stale source and changed bytes fail without falling back to a fresh build. Cross-attempt selection requires the separate signed capsule protocol below.
|
|
166
|
+
|
|
167
|
+
Native source qualification, published-input assembly and npm signing may consume that same verified snapshot. Published mode still independently verifies actual registry provenance and requires registry bytes to equal the qualified source artifact. Dedicated fresh-build, cold-install, tamper and native bootstrap cases remain. Ordinary local packing without a selected CI artifact continues to build fresh. These source-only mechanisms add no installed-runtime input, credential store or business permission. Bare artifacts remain scoped to one run attempt. Only cryptographically verified complete stages may cross run or attempt boundaries; they retain their original provenance.
|
|
168
|
+
|
|
169
|
+
### Signed completed stages and recovery
|
|
170
|
+
|
|
171
|
+
`pnpm ci:stage restore|seal` is a source-only workflow utility. A `tiangong-foundry.ci-capsule.v1` receipt binds stage, platform, CI/release purpose, repository numeric identities, exact source commit/tree, package, Node/pnpm/TypeScript and lock hash, native-input and complete test-plan hashes, upstream input digest, and every regular payload file's size/SHA256. The trusted owning job seals only after successful semantic validation. GitHub attests the receipt, thereby binding its entire inventory. Source qualification uses the reusable `quality-gate.yml` signer; release stages use `publish-foundry.yml`. Verification checks the hosted-runner certificate's source, caller and signer digests/refs, repository identities and original run/attempt, rather than trusting provenance-shaped JSON.
|
|
172
|
+
|
|
173
|
+
`resume_run_id` is an optional numeric locator for one exact same-source prior run. The current run is searched first, including earlier attempts. Discovery is bounded to 500 artifacts per selected run; names locate candidates but grant no authority. Missing or legitimately expired proofs cause the owning stage to execute again. Invalid signatures, mismatched content or incomplete evidence fail closed. Required downstream inputs cannot silently fall back. Verified signing time must be within 24 hours; missing or future signing timestamps are invalid. Relay artifacts keep the original receipt and payload unchanged and do not extend that lifetime. Changed source, dependencies, toolchain, platform or input requires qualification again. Legacy unsigned results are never promoted into this protocol.
|
|
174
|
+
|
|
175
|
+
For resumable publication, start a new dispatch of the exact immutable release tag and set `resume_run_id` to the retained qualification run. Keep that original run intact. GitHub can remove artifacts belonging to jobs selected by **Re-run all jobs**; an attempt suffix does not preserve them. Re-running the original qualification run can therefore require full qualification again. A recovery run with an explicit retained origin can itself be rerun: it re-verifies the origin's proof if its own relay artifact disappeared. Failed-job retries may consume surviving successful-stage proofs, but missing or expired prerequisites never count as success. Record the exact selected origin before starting recovery; do not rerun or delete its producer while relying on those artifacts.
|
|
162
176
|
|
|
163
|
-
|
|
177
|
+
Public bootstrap qualification keeps its disposable home, runtime cache, copied scripts and test workspace in `foundry-bootstrap-public-work`. Only the completed `bootstrap-qualification.json` bytes are copied into a new `foundry-bootstrap-public-qualification` evidence directory before semantic validation, capsule inventory and signing. Empty temporary directories and cached component files are not stage evidence; the generic capsule still rejects empty directories, hidden paths and unregistered payloads. Existing proof directories are never overwritten. Restored signed bootstrap capsules follow the unchanged validation path and do not rerun qualification or proof staging.
|
|
164
178
|
|
|
165
|
-
|
|
179
|
+
The reusable stages are complete source qualification, published-native qualification per platform, component-publication metadata and public bootstrap per platform. Source qualification is one complete stage: failure before its capsule is sealed still needs source requalification. Native archive attestations remain mandatory and are verified against the original receipt's source/ref. Source package consumers verify the signed capsule, then the original build manifest and archive inventory; `FOUNDRY_QUALIFICATION_CAPSULE` cannot be combined with the older three-variable selection. No restored receipt becomes installed-runtime or business authorization.
|
|
180
|
+
|
|
181
|
+
Only the final source sealing job receives OIDC/attestation-write permission; test and native source checks remain read-only. Fork PRs run the complete checks without signing or reuse. Final guards reject failed, skipped or missing required stages, including failed sealing. During publication, existing npm/tag/component/final-manifest state is still independently revalidated; reuse does not bypass immutable-asset consistency checks or authorize another upload.
|
|
182
|
+
|
|
183
|
+
Benchmark targets are at most 18 minutes for full qualification and 5 minutes for recovery when reusable stages are already complete. These are targets pending measured GitHub runs, exclude human debugging time, and do not promise those times for rebuilding a failed native stage. This change does not move CI to local Macs or purchase larger runners.
|
|
166
184
|
|
|
167
185
|
## Release diff and published-source verification
|
|
168
186
|
|
|
@@ -180,7 +198,11 @@ CLI provenance is restricted to `tiangong-lca/tiangong-cli` and `.github/workflo
|
|
|
180
198
|
|
|
181
199
|
An ordinary unchanged-version main push exits without a GitHub PR lookup. A release requires one PR merged into the canonical repository's main branch whose merge commit exactly matches the source; wrong-target, open, unmerged, ambiguous, incomplete or mismatched evidence fails. A merged fork PR remains valid even after its source fork is deleted: the canonical main commit and merged PR record own the source proof. The bounded read-only GitHub API lookup uses only the workflow-provided token and emits the PR identity, never credentials. This proves the source relationship; it does not replace required review or platform qualification.
|
|
182
200
|
|
|
183
|
-
|
|
201
|
+
Exact-tag recovery permits empty/default inputs plus an optional canonical numeric `resume_run_id`. `diagnose_npm_oidc` must be disabled, `diagnose_platform` must be `none`, and `diagnose_tag` must be empty. The locator cannot change source or tag. Enabled diagnostics, noncanonical values, unknown keys and all publication source/tag overrides remain rejected. Diagnostic jobs are separate explicit branch dispatches and cannot publish.
|
|
202
|
+
|
|
203
|
+
The immutable `foundry-v0.1.4` workflow predates this default-input correction. To continue that release, completely rerun its original qualified main-push run `34314765464`; that preserved event has no dispatch inputs. Every required source and publication stage runs again with fresh attempt-bound artifacts, and the existing public npm release is independently verified without another upload. Do not move the old tag or mix artifacts from different attempts. A successful package upload whose immediate public readback failed must first be independently verified before choosing this recovery.
|
|
204
|
+
|
|
205
|
+
`.github/workflows/publish-foundry.yml` connects that context gate to the existing four-native-host canonical gate through `workflow_call`. The reusable quality workflow checks out the admitted SHA, retains its ordinary PR/manual triggers, and does not persist checkout credentials. The source checks have read-only permissions; only their completed-stage sealer receives OIDC and attestation-write permissions.
|
|
184
206
|
|
|
185
207
|
After every host passes, the separate `release-tag` job revalidates the event, clean source/main relationship, release-only diff and merged PR. `pnpm release:tag` accepts no source/tag arguments or serialized context and requires that exact job identity. This tag job receives contents-write permission only for its create-or-verify operation; it installs no project dependencies and does not persist checkout credentials. The later component publisher has separate contents-write permission gated on all published-input native jobs; final-manifest publication has its own contents-write job after all public bootstrap checks.
|
|
186
208
|
|
|
@@ -218,17 +240,21 @@ The new-version path explicitly requests GitHub OIDC audience `npm:registry.npmj
|
|
|
218
240
|
|
|
219
241
|
The pinned pnpm 11.24.0 executable uploads copied, rechecked tarball/signature bytes from a fresh private directory proven to be outside Git. Its environment contains essential process settings and only the newly exchanged short-lived credential; inherited npm/GitHub credentials, OIDC endpoints, Node options and user configuration overrides are omitted. Private npm configuration files contain fixed registry/TLS settings and an environment-variable placeholder, never the credential itself. Those files and temporary package copies are removed after the process closes. Publishing uses the prepacked artifact, provided provenance, no Git checks and zero HTTP retries; no shell, package lifecycle, ordinary-account token or alternate package manager is involved.
|
|
220
242
|
|
|
221
|
-
There is one publisher invocation. Regardless of its reported success or an uncertain/failed response, independent public readback owns the outcome.
|
|
243
|
+
There is one publisher invocation. Regardless of its reported success or an uncertain/failed response, independent public readback owns the outcome. Readback retries only temporary transport failures and HTTP 404/408/429/5xx with exponential delays capped at 60 seconds and a four-minute retry budget (individual requests retain their 30-second bound). Existing-version verification uses the same policy. Integrity, source and provenance failures are terminal; none of these paths repeats publication. The public tarball's byte count and SHA-512 must match the prepared artifact, in addition to all signed-source/workflow checks. A different existing version payload, missing provenance or failed readback stops the release. Existing-version verification does not establish that the account has configured future Trusted Publisher permissions.
|
|
222
244
|
|
|
223
245
|
`package-artifacts/npm-publication/` contains the publication result and readable report; a successful result also preserves public metadata, attestations and verification. The workflow exports this evidence even when publication fails. `npm_published=true` is emitted only after public verification succeeds; later component/manifest stages must require it. It proves package publication only, not complete F1 runtime qualification.
|
|
224
246
|
|
|
225
247
|
An explicit `workflow_dispatch` with `diagnose_npm_oidc=true` selects the separate diagnostic job in the same Trusted Publisher workflow and skips the release context and every publication continuation. `pnpm release:diagnose-npm-oidc` accepts no arguments and requires that exact GitHub-hosted diagnostic job, canonical repository/workflow, branch dispatch, matching workflow/source SHA, clean physical checkout and explicit event input. It requests one package-specific ephemeral credential through the existing bounded OIDC exchange, discards it, and reports only fixed validation reasons, field kinds, boolean token checks and numeric timing differences. No token, raw response value, credential fingerprint or account configuration is emitted or persisted. The diagnostic cannot upload packages, create tags/releases/assets or satisfy release qualification. Its shared response inspection uses the ordinary publisher's timestamp parser and unchanged freshness/lifetime limits; a diagnostic rejection is evidence to investigate, never permission to weaken them.
|
|
226
248
|
|
|
249
|
+
Before expensive release qualification, `release:preflight` revalidates the exact release event/merged source and registry state. An existing version undergoes public verification; a new version performs the real package-specific OIDC exchange and discards the credential after reporting fixed validation facts. First-package identity creation retains the prepared-artifact maintainer handoff. The preflight job cannot sign or publish a package.
|
|
250
|
+
|
|
251
|
+
For standalone native diagnosis, dispatch `publish-foundry.yml` on a reviewed branch with `diagnose_platform` set to one supported tuple and `diagnose_tag` set to an exact existing stable tag; leave the other modes disabled. `release:diagnose-platform` validates that immutable tag's main ancestry, release-only source and merged PR, then executes that source's published-native preparation in an isolated worktree. Its token is read-only and it has no OIDC permission. Bounded reports preserve controller/source/platform, failing phase, exit and fixed failure facts without raw child output or credentials. Current-source native qualification also preserves `runtime-diagnostic.json` before cleaning its temporary cache; failed diagnostics are never qualification evidence.
|
|
252
|
+
|
|
227
253
|
## Runtime component publication
|
|
228
254
|
|
|
229
|
-
After `npm_published=true`, four native `prepare-runtime` jobs run `release:prepare-runtime --published` at the same release source.
|
|
255
|
+
After `npm_published=true`, four native `prepare-runtime` jobs run `release:prepare-runtime --published` at the same release source. Each job first attempts verified restoration of its same-source/platform/package capsule. A missing or expired capsule triggers independent public npm verification, complete component building and native execution. Fresh successful jobs attest their archives and complete stage inventory; they have no GitHub contents-write permission.
|
|
230
256
|
|
|
231
|
-
The `publish-components` job
|
|
257
|
+
The `publish-components` job requires all four verified native capsules and verifies each archive attestation against the canonical workflow, exact source digest and original signed ref/hosted-runner identity. `release:publish-components` accepts no arguments and requires that exact owning job. It revalidates the merged release-only source, existing package tag and actual public Foundry npm artifact, then performs fresh in-process four-platform aggregation and checks package digests again. Copied aggregate receipts cannot supply release bytes. Before upload it rechecks its source, manifest, report and every archived byte.
|
|
232
258
|
|
|
233
259
|
Component assets use the existing `foundry-v<version>` tag. The publisher creates a draft, uploads only missing expected files, checks exact source and server-reported asset digests, then publishes the complete draft. An existing published release is accepted only with the complete identical asset set. Conflicting bytes, extra files, an incomplete published release or a different tag source fail; there is no asset replacement, deletion or tag movement. The final-manifest stage uses the distinct `foundry-runtime-v<version>` namespace after public bootstrap qualification.
|
|
234
260
|
|
|
@@ -278,7 +304,7 @@ Native handshake success is not minimum-host or clean-machine qualification. Cur
|
|
|
278
304
|
|
|
279
305
|
`pnpm package:build` rebuilds both output roots from scratch and verifies the staged package. `pnpm package:check` compares the stage with the descriptor, runs a pack dry-run, and verifies the installed C1 descriptor. `pnpm package:pack` packs only `package-stage/` into an owned temporary directory, derives the versioned archive name from the verified staged descriptor, then installs it with an exclusive hardlink. The repository manifest, compiled verifier version and descriptor JSON Schema version remain coherent release projections; the verifier never takes its expected identity from the installed manifest it is checking. An identical existing archive is reused; a link, invalid file or different existing bytes are preserved and rejected rather than overwritten.
|
|
280
306
|
|
|
281
|
-
The package scenario rebuilds twice, packs twice byte-identically, and installs the same tarball into two clean consumers; the second install is offline from the first consumer's isolated public cache. The scenario first verifies the source-pinned pnpm version. Corepack, when used, stores that tool in a fresh scenario-local cache shared across the isolated tool homes; later packing runs with Corepack networking disabled and latest-version lookup disabled. Tool bootstrap and the first public-registry install have bounded five-minute deadlines for cold network downloads; the offline install and local commands retain their two-minute deadlines. It verifies the exact import surface and declarations, public CLI 0.1.
|
|
307
|
+
The package scenario rebuilds twice, packs twice byte-identically, and installs the same tarball into two clean consumers; the second install is offline from the first consumer's isolated public cache. The scenario first verifies the source-pinned pnpm version. Corepack, when used, stores that tool in a fresh scenario-local cache shared across the isolated tool homes; later packing runs with Corepack networking disabled and latest-version lookup disabled. Tool bootstrap and the first public-registry install have bounded five-minute deadlines for cold network downloads; the offline install and local commands retain their two-minute deadlines. It verifies the exact import surface and declarations, public CLI 0.1.13 runtime identity, shebang/bin, source/installed operation equivalence, arbitrary Unicode CWD, read-only package bytes, isolated workspace writes and all six facade operations. It also proves that internal commands, modified/extra/linked files, a lifecycle-bearing manifest, a `darwin-x64` descriptor and a package copied without C1 fail closed.
|
|
282
308
|
|
|
283
309
|
These checks qualify a local candidate tarball. They do not prove registry provenance, public component download, native TIDAS availability on every host or a complete Node+CLI+Foundry+TIDAS component. Those are W08 release gates.
|
|
284
310
|
|
|
@@ -33,8 +33,8 @@ checkPaths:
|
|
|
33
33
|
- test/scenarios/foundry-package-consumer.test.mts
|
|
34
34
|
- docs/public-runtime-contract.md
|
|
35
35
|
lastReviewedAt: 2026-09-09
|
|
36
|
-
lastReviewedCommit:
|
|
37
|
-
lastReviewedNote: "Reviewed for Foundry #
|
|
36
|
+
lastReviewedCommit: 5c5cdbd9af89dcafa7a8f837bd3c4de4bd92d2d8
|
|
37
|
+
lastReviewedNote: "Reviewed for Foundry #149: the strict 0.1.6 version projection uses qualified source 5c5cdbd and verified CLI 0.1.13. Runtime behavior and the frozen dependency graph are unchanged; complete owning release and independent public F1 verification remain required."
|
|
38
38
|
related:
|
|
39
39
|
- docs/runtime-context-contract.md
|
|
40
40
|
- docs/task-authorization-contract.md
|
|
@@ -177,7 +177,7 @@ Every facade revision also rechecks all retained predecessors in its request cha
|
|
|
177
177
|
|
|
178
178
|
## Runtime selection and migration seam
|
|
179
179
|
|
|
180
|
-
The public facade accepts CLI/TIDAS expectations only through its process-local host interface. Ordinary argv, task specs, `.env` and ambient `TIDAS_BIN`/expectation variables cannot select trust anchors. Without a host selection, doctor, start, status and local resume work and report `qualification.required`; child-required work must return the runtime qualification action. The managed bin now obtains this selection from the CLI IPC context and its verified component metadata. The final immutable production product manifest remains a W08 deliverable. The current exact CLI 0.1.
|
|
180
|
+
The public facade accepts CLI/TIDAS expectations only through its process-local host interface. Ordinary argv, task specs, `.env` and ambient `TIDAS_BIN`/expectation variables cannot select trust anchors. Without a host selection, doctor, start, status and local resume work and report `qualification.required`; child-required work must return the runtime qualification action. The managed bin now obtains this selection from the CLI IPC context and its verified component metadata. The final immutable production product manifest remains a W08 deliverable. The current exact CLI 0.1.13 constraint remains explicit rather than silently accepting a future version.
|
|
181
181
|
|
|
182
182
|
`workspace migrate --dry-run` recursively inventories only regular files/directories, rejects links and returns `tiangong-foundry.workspace-migration-plan.v1` as an inline content-bound artifact. It classifies control, local-preparation, terminal-success, attempted/unknown, authorization/account and unclassified paths. The public envelope is bounded to 10,000 entries and 64 directory levels. The total hashed inventory is bounded to 256 MiB. Files larger than 64 MiB and recognized credential/session files retain path/size/classification facts with `sha256=null`; their contents are not read by this inventory. The tree digest binds this observational inventory, not an atomic filesystem snapshot, so W10 must re-read and verify every selected source immediately before apply. It writes nothing. W10 owns application, rollback and detailed old-schema mapping.
|
|
183
183
|
|
|
@@ -41,8 +41,8 @@ checkPaths:
|
|
|
41
41
|
- test/scenarios/foundry-execution-admission.test.mts
|
|
42
42
|
- test/scenarios/foundry-package-consumer.test.mts
|
|
43
43
|
lastReviewedAt: 2026-09-09
|
|
44
|
-
lastReviewedCommit:
|
|
45
|
-
lastReviewedNote: "Reviewed for Foundry #
|
|
44
|
+
lastReviewedCommit: 5c5cdbd9af89dcafa7a8f837bd3c4de4bd92d2d8
|
|
45
|
+
lastReviewedNote: "Reviewed for Foundry #149: the strict 0.1.6 version projection uses qualified source 5c5cdbd and verified CLI 0.1.13. Runtime behavior and the frozen dependency graph are unchanged; complete owning release and independent public F1 verification remain required."
|
|
46
46
|
related:
|
|
47
47
|
- docs/architecture.md
|
|
48
48
|
- docs/task-authorization-contract.md
|
|
@@ -64,7 +64,7 @@ The public task facade delegates sealed owner execution to `foundry-workflow-exe
|
|
|
64
64
|
|
|
65
65
|
The public workflow selects derived row/context facts from the current verified task index before assessment. `runFoundryTaskOperation` rechecks their producer ancestry and original sources. Native validation and the exact CLI's local QA/queue commands use the qualified runtime and isolated environment; curation and authoring write only to a fresh task-owned generation. Runtime assets and source-owner reference bases remain separate from user workspace paths.
|
|
66
66
|
|
|
67
|
-
`qualifyFoundryRuntime` compares an independently selected CLI expectation with the exact installed `@tiangong-lca/cli@0.1.
|
|
67
|
+
`qualifyFoundryRuntime` compares an independently selected CLI expectation with the exact installed `@tiangong-lca/cli@0.1.13` runtime descriptor. It also compares a strict TIDAS expectation with the selected platform, executable bytes, compatible 0.2.x or 0.3.x version, validation protocols, event schemas and asset fingerprint. The selected TIDAS executable is copied into a private temporary directory, rehashed there and invoked with the credential-free child environment; both handshake calls must be silent. Qualification uses a process-local brand. The portable identity described by `runtime-qualification.schema.json` is diagnostic evidence and cannot be deserialized into authority.
|
|
68
68
|
|
|
69
69
|
The TIDAS expectation admits only `linux-x64`, `linux-arm64`, `darwin-arm64` and `win32-x64`; `darwin-x64` cannot enter the schema or runtime context. `tidas-runtime-expectation.schema.json` is the reviewed machine shape. Qualification creation performs the isolated version/protocol/assets handshake once. Every later assertion reopens and hashes the selected executable and rejects any byte drift before child admission; identical immutable bytes do not replay the handshake. This keeps the original observed behavior bound to exact content while avoiding repeated child-process creation inside one admission call.
|
|
70
70
|
|
|
@@ -29,9 +29,9 @@ checkPaths:
|
|
|
29
29
|
- test/unit/task-authorization.test.mts
|
|
30
30
|
- test/unit/task-profile-authority.test.mts
|
|
31
31
|
- test/scenarios/foundry-execution-admission.test.mts
|
|
32
|
-
lastReviewedAt: 2026-09-
|
|
33
|
-
lastReviewedCommit:
|
|
34
|
-
lastReviewedNote: "Reviewed for Foundry #
|
|
32
|
+
lastReviewedAt: 2026-09-09
|
|
33
|
+
lastReviewedCommit: fa219ecc833c0aad9bb6a3661265a57f8f24a814
|
|
34
|
+
lastReviewedNote: "Reviewed for Foundry #147: adopt independently verified CLI 0.1.13 at b5e2092 with original permission-preserving bootstrap scripts. Exact runtime/schema/package/release expectations advance together; other dependencies, TIDAS, profile rules, task authorization and private no-replay evidence remain unchanged."
|
|
35
35
|
related:
|
|
36
36
|
- docs/architecture.md
|
|
37
37
|
- docs/safety-policy.md
|
|
@@ -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.6",
|
|
6
6
|
"cli_dependency": {
|
|
7
7
|
"name": "@tiangong-lca/cli",
|
|
8
|
-
"version": "0.1.
|
|
8
|
+
"version": "0.1.13"
|
|
9
9
|
},
|
|
10
10
|
"bin": "package-dist/scripts/package-entry.js",
|
|
11
11
|
"public_api": "package-dist/scripts/public-api.js",
|
|
@@ -58,18 +58,18 @@
|
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
"path": "README.md",
|
|
61
|
-
"bytes":
|
|
62
|
-
"sha256": "
|
|
61
|
+
"bytes": 66212,
|
|
62
|
+
"sha256": "2070232f782bec8c84b605b134e09ede503cd58b2284bf94954fc4403740d677"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
"path": "docs/architecture.md",
|
|
66
|
-
"bytes":
|
|
67
|
-
"sha256": "
|
|
66
|
+
"bytes": 57052,
|
|
67
|
+
"sha256": "ba3695242f653ea3512f194267434077f85129163f6bc67ac91ad38435f28fac"
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
"path": "docs/foundry-task-contracts.md",
|
|
71
|
-
"bytes":
|
|
72
|
-
"sha256": "
|
|
71
|
+
"bytes": 19995,
|
|
72
|
+
"sha256": "33ad2d0e2d7aa15346ffdf83d1240afc0559b3f635308319ca50412d5e93efcc"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
"path": "docs/import-profiles/bafu/constraints.md",
|
|
@@ -98,38 +98,38 @@
|
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"path": "docs/import-profiles/worldsteel/constraints.md",
|
|
101
|
-
"bytes":
|
|
102
|
-
"sha256": "
|
|
101
|
+
"bytes": 7842,
|
|
102
|
+
"sha256": "a5a0a3c8d6a38b8050b60c8c88054da73c7a335211990f84047165d000d6f2d4"
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"path": "docs/import-profiles/worldsteel/import-coverage.md",
|
|
106
|
-
"bytes":
|
|
107
|
-
"sha256": "
|
|
106
|
+
"bytes": 6702,
|
|
107
|
+
"sha256": "cfb3879fafa662f8ea2f36108f8fe8148045b930629bee8a3250567104ebcf9c"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
"path": "docs/import-profiles/worldsteel/import-plan.md",
|
|
111
|
-
"bytes":
|
|
112
|
-
"sha256": "
|
|
111
|
+
"bytes": 46797,
|
|
112
|
+
"sha256": "f1b46092a6eeb653fd95adfc781536354f516982c4af160be92d657bca159270"
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"path": "docs/import-profiles/worldsteel/profile.md",
|
|
116
|
-
"bytes":
|
|
117
|
-
"sha256": "
|
|
116
|
+
"bytes": 8158,
|
|
117
|
+
"sha256": "5d7f119a729930d4a745abe2d171d78bddd78872b141c46fa154ba2fb2b51a1f"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"path": "docs/package-distribution-contract.md",
|
|
121
|
-
"bytes":
|
|
122
|
-
"sha256": "
|
|
121
|
+
"bytes": 67700,
|
|
122
|
+
"sha256": "eb2f9004baa71b5b5447464b69c4a698634c394e2a42ae2d492374332cc649c3"
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"path": "docs/public-runtime-contract.md",
|
|
126
|
-
"bytes":
|
|
127
|
-
"sha256": "
|
|
126
|
+
"bytes": 36871,
|
|
127
|
+
"sha256": "181a4ecd13909e1752faec75587391de17bab915be3af2698c911b51fa100279"
|
|
128
128
|
},
|
|
129
129
|
{
|
|
130
130
|
"path": "docs/runtime-context-contract.md",
|
|
131
|
-
"bytes":
|
|
132
|
-
"sha256": "
|
|
131
|
+
"bytes": 18757,
|
|
132
|
+
"sha256": "abb4ae4b930e267106b6df41b4fb716462a39ec35838687a6a81cea975f181c6"
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
"path": "docs/safety-policy.md",
|
|
@@ -138,8 +138,8 @@
|
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"path": "docs/task-authorization-contract.md",
|
|
141
|
-
"bytes":
|
|
142
|
-
"sha256": "
|
|
141
|
+
"bytes": 17347,
|
|
142
|
+
"sha256": "a578d89b5dcbee8d06aa378c59dbbd29fa697fcef636ba0b99c251f52873af8c"
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
"path": "docs/uslci-import-runbook.md",
|
|
@@ -624,12 +624,12 @@
|
|
|
624
624
|
{
|
|
625
625
|
"path": "package-dist/scripts/lib/foundry-package-contract.d.ts",
|
|
626
626
|
"bytes": 5556,
|
|
627
|
-
"sha256": "
|
|
627
|
+
"sha256": "92a979b0685b100f55cbf9e82804564cc09c1464122d3c45d52ca823765c9c57"
|
|
628
628
|
},
|
|
629
629
|
{
|
|
630
630
|
"path": "package-dist/scripts/lib/foundry-package-contract.js",
|
|
631
631
|
"bytes": 18452,
|
|
632
|
-
"sha256": "
|
|
632
|
+
"sha256": "fe7be0eaa6dff854f78c585f8e5cf0b790c027a5b76bb07247500d33aca57c16"
|
|
633
633
|
},
|
|
634
634
|
{
|
|
635
635
|
"path": "package-dist/scripts/lib/foundry-private-path.d.ts",
|
|
@@ -729,7 +729,7 @@
|
|
|
729
729
|
{
|
|
730
730
|
"path": "package-dist/scripts/lib/foundry-runtime-qualification.js",
|
|
731
731
|
"bytes": 12065,
|
|
732
|
-
"sha256": "
|
|
732
|
+
"sha256": "1e3542fe176cc82d4e8c2ab0c7e1fbe804b3ce96ca24172d4ce657fe3e456144"
|
|
733
733
|
},
|
|
734
734
|
{
|
|
735
735
|
"path": "package-dist/scripts/lib/foundry-runtime-selection-record.d.ts",
|
|
@@ -759,7 +759,7 @@
|
|
|
759
759
|
{
|
|
760
760
|
"path": "package-dist/scripts/lib/foundry-runtime-utils.js",
|
|
761
761
|
"bytes": 23278,
|
|
762
|
-
"sha256": "
|
|
762
|
+
"sha256": "5ed9a1dbd07eb374c88dc5a66913b3b4c3ee7923a5f133b3b413b4f5551217f0"
|
|
763
763
|
},
|
|
764
764
|
{
|
|
765
765
|
"path": "package-dist/scripts/lib/foundry-semantic-input.d.ts",
|
|
@@ -1089,7 +1089,7 @@
|
|
|
1089
1089
|
{
|
|
1090
1090
|
"path": "package-dist/scripts/lib/import-curation/internal/context-inputs.js",
|
|
1091
1091
|
"bytes": 8791,
|
|
1092
|
-
"sha256": "
|
|
1092
|
+
"sha256": "4ad85987669c6f901342553d558393487c7b008370eae09e658e7705f566f285"
|
|
1093
1093
|
},
|
|
1094
1094
|
{
|
|
1095
1095
|
"path": "package-dist/scripts/lib/import-curation/internal/curation-gate-workflow.d.ts",
|
|
@@ -1549,7 +1549,7 @@
|
|
|
1549
1549
|
{
|
|
1550
1550
|
"path": "specs/import-profiles.json",
|
|
1551
1551
|
"bytes": 6781,
|
|
1552
|
-
"sha256": "
|
|
1552
|
+
"sha256": "a8047bd54cb765daab1207e3dc6b24c9ea3fbe59549aeb06e6aeecc18f62fa4f"
|
|
1553
1553
|
},
|
|
1554
1554
|
{
|
|
1555
1555
|
"path": "specs/prewrite-content-policy.json",
|
|
@@ -1579,7 +1579,7 @@
|
|
|
1579
1579
|
{
|
|
1580
1580
|
"path": "specs/schemas/foundry-managed-runtime.schema.json",
|
|
1581
1581
|
"bytes": 3278,
|
|
1582
|
-
"sha256": "
|
|
1582
|
+
"sha256": "9e2d81669dee71a8486829665f02eb59bba2e735c4a4e8529cb75c7a34783698"
|
|
1583
1583
|
},
|
|
1584
1584
|
{
|
|
1585
1585
|
"path": "specs/schemas/foundry-migration-activation.schema.json",
|
|
@@ -1604,7 +1604,7 @@
|
|
|
1604
1604
|
{
|
|
1605
1605
|
"path": "specs/schemas/foundry-package-descriptor.schema.json",
|
|
1606
1606
|
"bytes": 4141,
|
|
1607
|
-
"sha256": "
|
|
1607
|
+
"sha256": "1d24b3df80e7fd0404c37f551e3f477f6eee211c103ae60629fa6d7b43e46817"
|
|
1608
1608
|
},
|
|
1609
1609
|
{
|
|
1610
1610
|
"path": "specs/schemas/foundry-runtime-selection.schema.json",
|
|
@@ -1644,7 +1644,7 @@
|
|
|
1644
1644
|
{
|
|
1645
1645
|
"path": "specs/schemas/runtime-qualification.schema.json",
|
|
1646
1646
|
"bytes": 2261,
|
|
1647
|
-
"sha256": "
|
|
1647
|
+
"sha256": "5dfef13465309730ea1cd8398a35d7a7c1f7a13eb85c9b529055ed55e127b1cd"
|
|
1648
1648
|
},
|
|
1649
1649
|
{
|
|
1650
1650
|
"path": "specs/schemas/task-authorization.schema.json",
|
|
@@ -1657,5 +1657,5 @@
|
|
|
1657
1657
|
"sha256": "3d22fcc572f9a0f192ccb699d01fb32574287ed2bbd2aca70fb4b792b7aed487"
|
|
1658
1658
|
}
|
|
1659
1659
|
],
|
|
1660
|
-
"files_sha256": "
|
|
1660
|
+
"files_sha256": "9fab0f9ee5e74a90de7fa129892bdebc8c62167b75a50f7835bdd76f1dc56afe"
|
|
1661
1661
|
}
|
|
@@ -2,9 +2,9 @@ export declare const FOUNDRY_PACKAGE_DESCRIPTOR_SCHEMA: "tiangong-foundry.packag
|
|
|
2
2
|
export declare const foundryPackageDescriptorPath: "package-dist/assets/foundry-package-descriptor.json";
|
|
3
3
|
export declare const foundryPackageStaticFiles: readonly ["package-dist/", "specs/import-profiles.json", "specs/prewrite-content-policy.json", "specs/canonical-support/flow-properties-unit-groups.json", "specs/schemas/authorization-derivation.schema.json", "specs/schemas/execution-context.schema.json", "specs/schemas/foundry-facade-request-index.schema.json", "specs/schemas/foundry-operation-result.schema.json", "specs/schemas/foundry-package-descriptor.schema.json", "specs/schemas/foundry-task-start.schema.json", "specs/schemas/foundry-semantic-input.schema.json", "specs/schemas/foundry-authorization-input.schema.json", "specs/schemas/foundry-workspace-migration-plan.schema.json", "specs/schemas/foundry-workspace-migration-transfer-plan.schema.json", "specs/schemas/foundry-migration-transfer-receipt.schema.json", "specs/schemas/foundry-workspace-migration-pending.schema.json", "specs/schemas/foundry-migration-adoption-plan.schema.json", "specs/schemas/foundry-migration-activation.schema.json", "specs/schemas/foundry-workspace-v2.schema.json", "specs/schemas/foundry-runtime-selection.schema.json", "specs/schemas/foundry-managed-runtime.schema.json", "specs/schemas/runtime-qualification.schema.json", "specs/schemas/task-authorization.schema.json", "specs/schemas/tidas-runtime-expectation.schema.json", "docs/architecture.md", "docs/package-distribution-contract.md", "docs/foundry-task-contracts.md", "docs/public-runtime-contract.md", "docs/runtime-context-contract.md", "docs/workspace-migration-contract.md", "docs/safety-policy.md", "docs/task-authorization-contract.md", "docs/import-profiles/bafu/constraints.md", "docs/import-profiles/bafu/leaf-process-classification-authoring.md", "docs/import-profiles/bafu/profile.md", "docs/import-profiles/uslci/constraints.md", "docs/import-profiles/uslci/profile.md", "docs/uslci-import-runbook.md", "docs/import-profiles/worldsteel/constraints.md", "docs/import-profiles/worldsteel/import-coverage.md", "docs/import-profiles/worldsteel/import-plan.md", "docs/import-profiles/worldsteel/profile.md", "README.md", "LICENSE"];
|
|
4
4
|
declare const packageName = "@tiangong-lca/foundry";
|
|
5
|
-
declare const packageVersion = "0.1.
|
|
5
|
+
declare const packageVersion = "0.1.6";
|
|
6
6
|
declare const cliPackageName = "@tiangong-lca/cli";
|
|
7
|
-
declare const cliPackageVersion = "0.1.
|
|
7
|
+
declare const cliPackageVersion = "0.1.13";
|
|
8
8
|
declare const packageBin = "package-dist/scripts/package-entry.js";
|
|
9
9
|
declare const packageApi = "package-dist/scripts/public-api.js";
|
|
10
10
|
declare const packageTypes = "package-dist/scripts/public-api.d.ts";
|
|
@@ -51,10 +51,10 @@ export const foundryPackageStaticFiles = Object.freeze([
|
|
|
51
51
|
"LICENSE",
|
|
52
52
|
]);
|
|
53
53
|
const packageName = "@tiangong-lca/foundry";
|
|
54
|
-
const packageVersion = "0.1.
|
|
54
|
+
const packageVersion = "0.1.6";
|
|
55
55
|
const packageDescription = "Control plane for TianGong LCA external dataset import and TIDAS authoring work.";
|
|
56
56
|
const cliPackageName = "@tiangong-lca/cli";
|
|
57
|
-
const cliPackageVersion = "0.1.
|
|
57
|
+
const cliPackageVersion = "0.1.13";
|
|
58
58
|
const packageBin = "package-dist/scripts/package-entry.js";
|
|
59
59
|
const packageApi = "package-dist/scripts/public-api.js";
|
|
60
60
|
const packageTypes = "package-dist/scripts/public-api.d.ts";
|
|
@@ -157,8 +157,8 @@ export function qualifyFoundryRuntime(context, options) {
|
|
|
157
157
|
catch {
|
|
158
158
|
return fail("runtime_cli_unqualified", "CLI runtime bytes do not match the independently selected C1 expectation.");
|
|
159
159
|
}
|
|
160
|
-
if (cli.package.version !== "0.1.
|
|
161
|
-
fail("runtime_cli_unqualified", "Foundry requires the exact CLI 0.1.
|
|
160
|
+
if (cli.package.version !== "0.1.13" || cli.platform !== context.platform)
|
|
161
|
+
fail("runtime_cli_unqualified", "Foundry requires the exact CLI 0.1.13 C1 runtime on the selected platform.");
|
|
162
162
|
const cliExpectation = Object.freeze({ ...options.cliExpectation });
|
|
163
163
|
if (cliExpectation.schema !== CLI_RUNTIME_EXPECTATION_SCHEMA)
|
|
164
164
|
fail("runtime_cli_unqualified", "CLI runtime expectation is not the supported schema.");
|
|
@@ -8,7 +8,7 @@ import { runtimeEnvFilePolicyDisabled, runtimeEnvFilePolicyKey, } from "./foundr
|
|
|
8
8
|
import { resolveFoundryRuntimePaths } from "./foundry-runtime-paths.js";
|
|
9
9
|
const require = createRequire(import.meta.url);
|
|
10
10
|
const tiangongLcaCliPackageName = "@tiangong-lca/cli";
|
|
11
|
-
const tiangongLcaCliPackageVersion = "0.1.
|
|
11
|
+
const tiangongLcaCliPackageVersion = "0.1.13";
|
|
12
12
|
const tiangongLcaCliBinName = "tiangong-lca";
|
|
13
13
|
const { repoRoot: foundryRepoRoot } = resolveFoundryRuntimePaths(import.meta.url);
|
|
14
14
|
function isRecord(value) {
|
|
@@ -6,7 +6,7 @@ import { asText, directoryExists, ensureArray, fileExists, readJson, readText, r
|
|
|
6
6
|
function asJsonRecord(value) {
|
|
7
7
|
return value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
8
8
|
}
|
|
9
|
-
export const tidasSchemaSearchRoots = ["@tiangong-lca/cli@0.1.
|
|
9
|
+
export const tidasSchemaSearchRoots = ["@tiangong-lca/cli@0.1.13/assets/tidas-schemas"];
|
|
10
10
|
export function tidasSchemaPath(repoRoot, schemaFile) {
|
|
11
11
|
void repoRoot;
|
|
12
12
|
const candidate = path.join(resolveInstalledTiangongLcaCliPackage().schemaDir, schemaFile);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiangong-lca/foundry",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Control plane for TianGong LCA external dataset import and TIDAS authoring work.",
|
|
6
6
|
"repository": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
},
|
|
81
81
|
"license": "MIT",
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@tiangong-lca/cli": "0.1.
|
|
83
|
+
"@tiangong-lca/cli": "0.1.13"
|
|
84
84
|
},
|
|
85
85
|
"foundryRuntime": {
|
|
86
86
|
"schema": "tiangong-foundry.runtime-layout.v2",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"const": "@tiangong-lca/foundry"
|
|
19
19
|
},
|
|
20
20
|
"version": {
|
|
21
|
-
"const": "0.1.
|
|
21
|
+
"const": "0.1.6"
|
|
22
22
|
},
|
|
23
23
|
"cli_dependency": {
|
|
24
24
|
"type": "object",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"const": "@tiangong-lca/cli"
|
|
30
30
|
},
|
|
31
31
|
"version": {
|
|
32
|
-
"const": "0.1.
|
|
32
|
+
"const": "0.1.13"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
},
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"additionalProperties": false,
|
|
15
15
|
"required": ["package_version", "platform", "content_sha256", "node_version", "node_sha256"],
|
|
16
16
|
"properties": {
|
|
17
|
-
"package_version": { "const": "0.1.
|
|
17
|
+
"package_version": { "const": "0.1.13" },
|
|
18
18
|
"platform": {
|
|
19
19
|
"enum": ["linux-x64", "linux-arm64", "darwin-arm64", "win32-x64"]
|
|
20
20
|
},
|