Skip to content

Preserve verified installed-package constants (board ticket 124) - #354

Merged
SSFSKIM merged 23 commits into
mainfrom
devcloud-guard-provenance
Oct 22, 2026
Merged

SSFSKIM merged 23 commits into
mainfrom
devcloud-guard-provenance

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

What and why

Implements board ticket 124 and releases devcloud 0.10.0. Installed-package constants remain readable only when their current bytes match independently verified public distribution evidence.

  • Adds explicit devcloud guard index [--fetch], status and corpus-report commands; no automatic refresh or network work in hooks.
  • Indexes public npm/gcloud artifacts and verifies each eligible Read locally under one 1.5-second provenance deadline.
  • Preserves only generic assignments inside the verified source field and exact matching append result, using bounded, expiring, one-use call receipts. Stored/credential values, provider tokens and private keys remain guarded.
  • Keeps the original native result/ref when unchanged, preserving its pagination companion. Unknown evidence falls back to ordinary detection, never refusal.

Validation Evidence

  • python3 -I -m unittest discover -s devcloud/tests/mods -p provenance_index_test.py: 37 passed, with demonstrated red/green regressions for evidence selection, archive-member isolation, corpus accounting and installation boundaries.
  • Focused engine-kit provenance tests: 52 passed, covering both scrub passes, receipts, concurrency, stronger secrets, stalled preflight/process calls and unchanged refs. Two type errors found by committed CI were corrected and independently re-reviewed.
  • python3 -I devcloud/tests/mods/provenance_probe.py: native macOS / engine 2.1.308 acceptance passed eight Read cases plus repeated verifier-timeout and live-child interrupt cleanup. Uses isolated synthetic fixtures, real tools/hooks/mapper/transcript, a deterministic loopback endpoint and OS-enforced non-loopback network denial. Linux native acceptance is not claimed.
  • devcloud/bin/devcloud guard index --fetch --report-corpus and guard report-corpus: reproduced 1,518 generic matches, all in indexed original-byte-equal files; 1,473 (97.04%) preserved through the production two-pass pipeline. npm: 1,049/1,094; gcloud: 424/424. The 45 npm losses are 43 overlong-line slice cases and two unsupported-control-byte cases. This aggregate simulation is separate from native acceptance; matches are not a claim of harmlessness.
  • ci-gate --gates devcloud-mods,mods-types on reviewed rebased commit 320d46a8: both PASS, GREEN run 39790937593. Final head 647c4b58: both PASS, GREEN run 39791975351.
  • Automatic PR integration matrix: all checks PASS, run 39792589475, including host/image/systemd/unit, mods/types, repository checks and shell lint.
  • git diff --check: passed. Version manifests are synchronized at 0.10.0, above main's 0.9.4 after rebase.

Review

All three milestone frontier reviews converged. doperpowers:review-code at the high rung reviewed 6d75245c..320d46a8: correct, no material findings. This included the gcloud exact-release/component/checksum identity refinement and member-level exclusion of links, link descendants and all duplicate names. The final commit only closes the specification's execution record.

Unresolved Review Findings

Two non-blocking M1 findings remain on board ticket 11 (the tech-debt tracker), confirmed non-blocking by the high review:

  • secrets-provenance.py, metadata() / status_report(): a malformed metadata JSON array can produce a diagnostic traceback. Runtime verification still returns unknown. Deferred diagnostic robustness.
  • provenance_index_test.py, metadata-only persistence test: the searched sentinel is absent from its fixture, weakening that particular assertion. The implementation stores metadata/digests; add a real fixture sentinel in follow-up.

Residue

  • cua resync after merge. Register a ticket naming the actual merged source commit and devcloud 0.10.0. Carry changed guard modules plus new secrets-provenance.tsx, secrets-provenance.py, secrets-provenance-corpus.mjs, protocol/schema and relevant tests. Update vendoring headers/table and document standalone indexing for cua-only users. Keep plugin-relative helper resolution and all existing one-guard marker/stand-down/prompt-id adaptations; test cua alone, both plugin orders, and devcloud removal/reload with receipt loss. This PR does not edit cua.
  • board ticket 125: preserve pagination companion notices when stronger redaction rewrites a Read. This change guarantees companion survival only for unchanged results.
  • board ticket 126: public-chain dpkg provenance. dpkg remains fully guarded here.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)

…t 124)

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Require published artifact evidence, bound the whole provenance stage, preserve unchanged native results, and record manual refresh and deferred work.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Add explicit user-local npm and gcloud indexing, private atomic SQLite publication, and a bounded local-only verification protocol without changing runtime redaction.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Locate the helper in the existing host marketplace for flat-installed CLIs, reject cache roots, keep nested package markers separate, and locate cached artifacts directly by public integrity. Add minimum-Python and deployment-boundary coverage.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Allow public-equal global packages beneath Git-installed runtime managers while retaining project, linked-package, and installation-local checkout exclusions.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Add isolated loopback native acceptance, including pagination and child timeout/abort cleanup; report original-byte and two-pass corpus coverage separately. Preserve unique regular archive members while excluding links and ambiguous names, and identify gcloud evidence by its exact public SDK release. Release devcloud 0.10.0.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
The two non-blocking M1 findings go on board ticket 11, the repository's
tech-debt tracker, instead of a new root file.

Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
@SSFSKIM
SSFSKIM merged commit d9ac5ac into main Oct 22, 2026
10 checks passed
@SSFSKIM
SSFSKIM deleted the devcloud-guard-provenance branch October 22, 2026 14:28
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