Skip to content

OSS-380: isolated runtime-artifact publication boundary and format evidence - #525

Merged
athNdev merged 2 commits into
mainfrom
codex/node-artifacts
Nov 18, 2026
Merged

athNdev merged 2 commits into
mainfrom
codex/node-artifacts

Conversation

@athNdev

@athNdev athNdev commented Nov 18, 2026

Copy link
Copy Markdown
Owner

OSS-380 — isolated runtime-artifact publication lane

Companion to OSS-368. This PR adds the publication boundary and evidence record only. It is dispatch-only and performs no live registry push, GitHub release, host provisioning, VM import/boot test, or Carbon Panel application release.

Format decision (primary sources only)

Format Real clean import/boot evidence for our artifact Decision
QCOW2 (Proxmox VE / KVM/libvirt) Not here; owned by sibling OSS-377 lane First-class / publishable
LXC rootfs (Proxmox VE unprivileged) Not here; owned by sibling OSS-378 lane First-class / publishable
Portable Linux installer Not here; owned by sibling OSS-379 lane Supported fallback / publishable
Hyper-V VHDX, VirtualBox VDI/OVA, VMware VMDK/OVF, bhyve None Not supported — use the portable installer

A vendor's documented format support (Microsoft VHDX spec, QEMU qemu-img, VirtualBox manual, FreeBSD handbook) is explicitly not treated as import/boot evidence. Full table and source URLs: docs/node-runtime/home-hypervisor-formats.md.

What changed

  • .github/workflows/runtime-artifacts.yml — the only dispatcher, on workflow_dispatch alone. Separate gate job verifies exact-commit main CI and the bound identity assertion before the publish job can run. Publishes to a draft asset release only on publish=true. Independent runtime-vMAJOR.MINOR.PATCH domain per ADR 0033; never a v* app or mod-* module release.
  • scripts/runtime_artifacts.py — fail-closed boundary (publication_gate), trusted-SHA verification, strict identity assertion parsing, artifact allowlist, deterministic SHA-256/SBOM generation, signature-binding precondition and CLI. Unproven home-hypervisor formats are refused in code.
  • scripts/test_runtime_artifacts.py + scripts/testdata/runtime-artifacts/ — 18 offline tests; wired into ci.yml release-tools job.
  • docs/node-runtime/ — install/verification guide with a gated announcement template (no claim of completed testing), plus the format decision.
  • Knowledge: new Decision concept for format support; release workflow concept clarifies the independent lane; indexes regenerated.

Verification evidence (exact head 24320d2b)

  • python3 -m unittest scripts.test_release scripts.test_go_mod_download scripts.test_runtime_artifacts → EXIT 0 (existing suite + 18 new tests).
  • python3 -m py_compile scripts/runtime_artifacts.py scripts/test_runtime_artifacts.py → EXIT 0.
  • PyYAML safe_load of runtime-artifacts.yml and ci.yml → OK.
  • bun test scripts/workflow-contract.test.mjs → 2 pass / 0 fail.
  • go run ./cmd/knowledge-lint -root . -fix then without -fix → queries: 38/38 pass, OK: 65 concept(s), indexes current.
  • CLI smoke: checksum manifest generation + verify-checksums on a staged fake artifact → verified: true, EXIT 0.

Evidence limits / scope

  • No artifact was built, signed or published in this lane; no registry push, release or host provisioning occurred.
  • No new import/boot evidence was produced; the portable installer is therefore the supported path for all home-hypervisor formats.
  • The cosign keyless signature is produced by the workflow at dispatch time; offline tests verify the fail-closed binding precondition, not a cryptographic signature. No claim of cryptographic verification is made for the offline fixtures.
  • Sibling mode docs (node-*-mode.md) were not yet present when this lane was implemented; interfaces are defined without depending on their file names.

Do not merge until independent review and CI are green.

…idence

Adds a dispatch-only publication workflow under the independent runtime-v* version domain (ADR 0033). A fail-closed Python gate requires a trusted main SHA with exact-commit main CI and a bound identity assertion before any write. Integrity records are deterministic SHA-256 manifests, cosign keyless signatures and CycloneDX SBOMs, attached to a draft asset release only on explicit opt-in. No app release, registry push or host provisioning is performed by this lane.

Records primary-source research on VHDX, VDI, VMDK, OVA/OVF and bhyve: none has real clean import/boot evidence here, so only QCOW2, LXC rootfs and the portable installer are publishable and the installer is the supported fallback. Wires 18 offline gate/integrity tests into CI and updates the governing knowledge concepts.
…rification

B1: allow signature.sig and signature.bundle as integrity records (single INTEGRITY_RECORDS set) so a complete cosign bundle no longer fails verify-bundle; keep them excluded from checksum/SBOM generation. Test stages all cosign records.

B2: derive the certificate identity from trusted inputs as the canonical GitHub Actions OIDC workflow ref (https://github.com/<repo>/.github/workflows/runtime-artifacts.yml@refs/heads/main, per the cosign README and GitHub OIDC workflow_ref claim), store it in signature.json signer_identity, and demote the operator publisher label to informational publisher_label. Never accept a free-form label as a certificate identity; document the exact value consumers must pass.

B3: reword verify_signature_binding/verify_bundle docstrings and the install guide so cryptographic verification is correctly described as the consumer's cosign verify-blob step, not a workflow step.

Tests now 20 (was 18): workflow-ref identity, wrong-label refusal, sig/bundle integrity records, complete-bundle precondition. Full release-tools unittest EXIT 0; YAML parse OK; workflow contract 2/2; knowledge-lint -fix and final 38/38 queries, indexes current.
@athNdev

athNdev commented Nov 18, 2026

Copy link
Copy Markdown
Owner Author

Review fixes applied — new head 1e50c980473a3952939ea07b72b20ccee149f1d1

All three blocking findings fixed in the same branch; no bypass, no publication or registry write. Re-review requested.

B1 — bundle verification always fails. Added a single INTEGRITY_RECORDS allowlist covering SHA256SUMS, sbom.cdx.json, signature.json, signature.sig and signature.bundle. verify_checksum_manifest now permits the cosign records that the workflow writes before verify-bundle, while checksums/sbom CLI generation still excludes all of them from the artifact inventory. test_full_bundle_precondition_gate now stages all five records, reproducing a complete cosign bundle. End-to-end CLI smoke with signature.sig + signature.bundle present → {"problems": [], "verified": "true"}.

B2 — wrong keyless certificate identity. Added expected_certificate_identity(), derived only from trusted repo + trusted main ref + the workflow path:
https://github.com/athndev/carbonpanel/.github/workflows/runtime-artifacts.yml@refs/heads/main
(per the sigstore/cosign README "Identity-based blob signing and verification" and GitHub's OIDC workflow_ref claim). signature.json.signer_identity now holds that canonical value; the operator's free-form publisher is demoted to informational publisher_label and is explicitly rejected as a certificate identity. The install guide now documents the exact value and issuer consumers must pass, and why publisher_label must not be used.

B3 — false verification claim. Reworded verify_signature_binding/verify_bundle docstrings and the install guide: these are offline integrity/binding preconditions only; cryptographic verification is the consumer's cosign verify-blob step. No claim of in-workflow signature verification remains.

N1 (non-blocking). BUILD_SCRIPTS paths remain allowlisted and unchanged, pending reconciliation when the sibling mode lanes land.

Verification at 1e50c980

  • python3 -m unittest scripts.test_release scripts.test_go_mod_download scripts.test_runtime_artifacts → EXIT 0 (20 tests, was 18)
  • python3 -m py_compile → EXIT 0 · PyYAML parse OK · bun test scripts/workflow-contract.test.mjs → 2 pass / 0 fail
  • go run ./cmd/knowledge-lint -root . -fix + final → queries: 38/38 pass, OK: 65 concept(s), indexes current
  • Full cosign-style bundle CLI smoke → verified: true

No merge requested until fresh independent review and CI are green.

@athNdev
athNdev merged commit 14a348b into main Nov 18, 2026
13 checks passed
@athNdev
athNdev deleted the codex/node-artifacts branch November 18, 2026 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant