@tiangong-lca/foundry 0.1.2 → 0.1.4

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 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: 21f10ac1643798aade3bd930c99785a0e6eaf0d9
162
- lastReviewedNote: "Reviewed for Foundry #128: exact version-only 0.1.2 follows qualified main21f10ac via a fresh release event after the prior GitHub run could not restart. Only package identity and review metadata change; CLI0.1.12, TIDAS0.3.0, full source/public qualification, signing, first-identity handoff and final F1 acceptance remain unchanged and required."
161
+ lastReviewedCommit: 28482d809280d093edefac8f8e9367411a59e6da
162
+ lastReviewedNote: "Reviewed for Foundry #136: strict release-only 0.1.4 projection from qualified source 28482d8, including the real-verified numeric OIDC timestamp correction. Only package, verifier and descriptor versions advance; dependency/runtime/authorization contracts and full release qualification remain required and unchanged."
163
163
  ---
164
164
 
165
165
  # TianGong LCA Data Foundry
@@ -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: 21f10ac1643798aade3bd930c99785a0e6eaf0d9
156
- lastReviewedNote: "Reviewed for Foundry #128: exact version-only 0.1.2 follows qualified main21f10ac via a fresh release event after the prior GitHub run could not restart. Only package identity and review metadata change; CLI0.1.12, TIDAS0.3.0, full source/public qualification, signing, first-identity handoff and final F1 acceptance remain unchanged and required."
155
+ lastReviewedCommit: 28482d809280d093edefac8f8e9367411a59e6da
156
+ lastReviewedNote: "Reviewed for Foundry #136: strict release-only 0.1.4 projection from qualified source 28482d8, including the real-verified numeric OIDC timestamp correction. Only package, verifier and descriptor versions advance; dependency/runtime/authorization contracts and full release qualification remain required and unchanged."
157
157
  ---
158
158
 
159
159
  # Architecture
@@ -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: 21f10ac1643798aade3bd930c99785a0e6eaf0d9
39
- lastReviewedNote: "Reviewed for Foundry #128: exact version-only 0.1.2 follows qualified main21f10ac via a fresh release event after the prior GitHub run could not restart. Only package identity and review metadata change; CLI0.1.12, TIDAS0.3.0, full source/public qualification, signing, first-identity handoff and final F1 acceptance remain unchanged and required."
38
+ lastReviewedCommit: 28482d809280d093edefac8f8e9367411a59e6da
39
+ lastReviewedNote: "Reviewed for Foundry #136: strict release-only 0.1.4 projection from qualified source 28482d8, including the real-verified numeric OIDC timestamp correction. Only package, verifier and descriptor versions advance; dependency/runtime/authorization contracts and full release qualification remain required and unchanged."
40
40
  related:
41
41
  - docs/public-runtime-contract.md
42
42
  - docs/runtime-context-contract.md
@@ -212,7 +212,9 @@ The npm package identity and publisher configuration are account-controlled prer
212
212
 
213
213
  After exporting the prepared artifact, the owning job runs `pnpm release:publish-package`. This command accepts no arguments and requires the exact `npm-package` job, merged release-only source, verified prepared bytes and unchanged immutable tag. An absent package identity produces a `needs-maintainer` result and stops with no upload; the already exported artifact contains the first-upload instructions. An existing exact version must pass independent public provenance/source/byte verification and is never uploaded again. A new version must advance an existing stable public `latest` tag. Registry availability and source/tag identity are refreshed before a new upload.
214
214
 
215
- The new-version path explicitly requests GitHub OIDC audience `npm:registry.npmjs.org` and exchanges that identity at npm's fixed, package-specific endpoint. Only HTTP 201 with `token_type: oidc`, a fresh creation time, a future expiry and at most two hours of credential lifetime is accepted. Exchange failures do not reach the publisher. This uses the [official npm OIDC exchange](https://api-docs.npmjs.com/) and prevents pnpm's automatic OIDC failure handling from selecting an unrelated credential.
215
+ Registry preflight requests `application/json` for the exact-version endpoint and reserves `application/vnd.npm.install-v1+json` for whole-package metadata. The npm registry rejects abbreviated metadata negotiation for an existing version with HTTP 406. That error is never treated as a missing version or permission to upload: fixed-origin, unauthenticated GET probes still accept only the existing 200/404 transitions, reject redirects and retain their timeout/body bounds.
216
+
217
+ The new-version path explicitly requests GitHub OIDC audience `npm:registry.npmjs.org` and exchanges that identity at npm's fixed, package-specific endpoint. Only HTTP 201 with `token_type: oidc`, a fresh creation time, a future expiry and at most two hours of credential lifetime is accepted. The real registry returns numeric creation/expiry timestamps; date strings and numeric Unix seconds or milliseconds normalize to safe integer milliseconds before those same checks. Numeric seconds may preserve millisecond precision; non-finite, negative, unsafe or sub-millisecond values are rejected. Raw numeric strings gain no separate coercion. Exchange failures do not reach the publisher. This uses the [official npm OIDC exchange](https://api-docs.npmjs.com/) and prevents pnpm's automatic OIDC failure handling from selecting an unrelated credential.
216
218
 
217
219
  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.
218
220
 
@@ -220,6 +222,8 @@ There is one publisher invocation. Regardless of its reported success or an unce
220
222
 
221
223
  `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.
222
224
 
225
+ 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
+
223
227
  ## Runtime component publication
224
228
 
225
229
  After `npm_published=true`, four native `prepare-runtime` jobs run `release:prepare-runtime --published` at the same release source. They independently verify public npm inputs, build the three complete components and execute native qualification. The jobs attest their exact archives with pinned GitHub build provenance and retain run-attempt-specific artifacts; they have no GitHub contents-write permission.
@@ -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: 21f10ac1643798aade3bd930c99785a0e6eaf0d9
37
- lastReviewedNote: "Reviewed for Foundry #128: exact version-only 0.1.2 follows qualified main21f10ac via a fresh release event after the prior GitHub run could not restart. Only package identity and review metadata change; CLI0.1.12, TIDAS0.3.0, full source/public qualification, signing, first-identity handoff and final F1 acceptance remain unchanged and required."
36
+ lastReviewedCommit: 28482d809280d093edefac8f8e9367411a59e6da
37
+ lastReviewedNote: "Reviewed for Foundry #136: strict release-only 0.1.4 projection from qualified source 28482d8, including the real-verified numeric OIDC timestamp correction. Only package, verifier and descriptor versions advance; dependency/runtime/authorization contracts and full release qualification remain required and unchanged."
38
38
  related:
39
39
  - docs/runtime-context-contract.md
40
40
  - docs/task-authorization-contract.md
@@ -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: 21f10ac1643798aade3bd930c99785a0e6eaf0d9
45
- lastReviewedNote: "Reviewed for Foundry #128: exact version-only 0.1.2 follows qualified main21f10ac via a fresh release event after the prior GitHub run could not restart. Only package identity and review metadata change; CLI0.1.12, TIDAS0.3.0, full source/public qualification, signing, first-identity handoff and final F1 acceptance remain unchanged and required."
44
+ lastReviewedCommit: 28482d809280d093edefac8f8e9367411a59e6da
45
+ lastReviewedNote: "Reviewed for Foundry #136: strict release-only 0.1.4 projection from qualified source 28482d8, including the real-verified numeric OIDC timestamp correction. Only package, verifier and descriptor versions advance; dependency/runtime/authorization contracts and full release qualification remain required and unchanged."
46
46
  related:
47
47
  - docs/architecture.md
48
48
  - docs/task-authorization-contract.md
@@ -2,7 +2,7 @@
2
2
  "schema": "tiangong-foundry.package-descriptor.v1",
3
3
  "package": {
4
4
  "name": "@tiangong-lca/foundry",
5
- "version": "0.1.2",
5
+ "version": "0.1.4",
6
6
  "cli_dependency": {
7
7
  "name": "@tiangong-lca/cli",
8
8
  "version": "0.1.12"
@@ -58,13 +58,13 @@
58
58
  },
59
59
  {
60
60
  "path": "README.md",
61
- "bytes": 66298,
62
- "sha256": "239bc66f2c78c6f554fb6ca20d5b1a319147403be8bd50956ac06a7b141d99d0"
61
+ "bytes": 66269,
62
+ "sha256": "b373f3df85bb85aa50cc7f06961ba6bda69ca4df56c0645722f1609592fd3276"
63
63
  },
64
64
  {
65
65
  "path": "docs/architecture.md",
66
- "bytes": 57138,
67
- "sha256": "638bc4e42a7fa42d0fe33c12c9e571f31cb6bda62230809cb984d949919ea552"
66
+ "bytes": 57109,
67
+ "sha256": "f148ecfe3ce6113093c43d8ec57edbd4bd0f018ec9018ea90bee6413c68a586e"
68
68
  },
69
69
  {
70
70
  "path": "docs/foundry-task-contracts.md",
@@ -118,18 +118,18 @@
118
118
  },
119
119
  {
120
120
  "path": "docs/package-distribution-contract.md",
121
- "bytes": 57724,
122
- "sha256": "31837210151295cd0ba000b570507324db66413440d69e65a1d817dcd994c229"
121
+ "bytes": 59588,
122
+ "sha256": "a9413d3d7fac526eda72e30f864b118ff174cde5c9362c678531597f1b3bcee9"
123
123
  },
124
124
  {
125
125
  "path": "docs/public-runtime-contract.md",
126
- "bytes": 36957,
127
- "sha256": "399b453efc2d474ae93524d008d0778daba13510b188052542325da7e6b3d4c9"
126
+ "bytes": 36928,
127
+ "sha256": "ad081858a3c02d263c8a9e4aab3daa3918f32452a83cd1858f05bb8e956a8f11"
128
128
  },
129
129
  {
130
130
  "path": "docs/runtime-context-contract.md",
131
- "bytes": 18843,
132
- "sha256": "0fc69f2138851ab36553f33d100edaffb80dd662a141f7e6d5d406952d4bf988"
131
+ "bytes": 18814,
132
+ "sha256": "a0b5c42fa6cf9b2bab5d2b3073136d6cb6d2b0060a7639dd6d3aaa0e3c8f0167"
133
133
  },
134
134
  {
135
135
  "path": "docs/safety-policy.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": "fb215454d5498a712d0a7adebc8e508ed56b7a9379766d6306fcd21f4d53dca4"
627
+ "sha256": "a70721a0c2597b0e5b7cc8721830d4053f13295642d732c8f3cc1cca79edbb5d"
628
628
  },
629
629
  {
630
630
  "path": "package-dist/scripts/lib/foundry-package-contract.js",
631
631
  "bytes": 18452,
632
- "sha256": "0c61f76a071099144d63558a6faa9849ab4a33714e3e898095be5d776347f78a"
632
+ "sha256": "8704bc45ae4bee071a62ae4d0cf190c254f162acd8afab0e9b55d0c8d03bcd05"
633
633
  },
634
634
  {
635
635
  "path": "package-dist/scripts/lib/foundry-private-path.d.ts",
@@ -1604,7 +1604,7 @@
1604
1604
  {
1605
1605
  "path": "specs/schemas/foundry-package-descriptor.schema.json",
1606
1606
  "bytes": 4141,
1607
- "sha256": "febc9aacd801bdc4690bec4f87836ab07cd21641eb24678f5d0506bf73e0f023"
1607
+ "sha256": "2a2e7ebb3970645eb171a4d5b55943aa62a13f7542a0219f107a15797d2ce181"
1608
1608
  },
1609
1609
  {
1610
1610
  "path": "specs/schemas/foundry-runtime-selection.schema.json",
@@ -1657,5 +1657,5 @@
1657
1657
  "sha256": "3d22fcc572f9a0f192ccb699d01fb32574287ed2bbd2aca70fb4b792b7aed487"
1658
1658
  }
1659
1659
  ],
1660
- "files_sha256": "7561b2a6fdafcce948c2273930277a99fa393a5d158f9eead9da810435a8af0d"
1660
+ "files_sha256": "bc39328c2e7c862b0120637bb99464473373b0b3cfeda177751f079baae265fc"
1661
1661
  }
@@ -2,7 +2,7 @@ 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.2";
5
+ declare const packageVersion = "0.1.4";
6
6
  declare const cliPackageName = "@tiangong-lca/cli";
7
7
  declare const cliPackageVersion = "0.1.12";
8
8
  declare const packageBin = "package-dist/scripts/package-entry.js";
@@ -51,7 +51,7 @@ export const foundryPackageStaticFiles = Object.freeze([
51
51
  "LICENSE",
52
52
  ]);
53
53
  const packageName = "@tiangong-lca/foundry";
54
- const packageVersion = "0.1.2";
54
+ const packageVersion = "0.1.4";
55
55
  const packageDescription = "Control plane for TianGong LCA external dataset import and TIDAS authoring work.";
56
56
  const cliPackageName = "@tiangong-lca/cli";
57
57
  const cliPackageVersion = "0.1.12";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiangong-lca/foundry",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "Control plane for TianGong LCA external dataset import and TIDAS authoring work.",
6
6
  "repository": {
@@ -18,7 +18,7 @@
18
18
  "const": "@tiangong-lca/foundry"
19
19
  },
20
20
  "version": {
21
- "const": "0.1.2"
21
+ "const": "0.1.4"
22
22
  },
23
23
  "cli_dependency": {
24
24
  "type": "object",