Skip to content

Add trusted artifact boundary and publication#41

Merged
dovvnloading merged 1 commit into
mainfrom
codex/artifact-boundary
Jul 21, 2026
Merged

Add trusted artifact boundary and publication#41
dovvnloading merged 1 commit into
mainfrom
codex/artifact-boundary

Conversation

@dovvnloading

Copy link
Copy Markdown
Owner

Summary

  • add the owner-bound trusted artifact boundary for source copy-in and provider output publication
  • reject links/reparse points, hardlinks, sparse files, ADS/path ambiguity, active content, archives, and non-finite JSON
  • add exact output claims, quarantine, hash/size limits, atomic publication, rollback, and fail-closed repository cleanup
  • document the stage in the Phase 2 ADR/evidence and update the parent plan gates

Why

The signed bundle installer protects trusted runtime bytes but must not be the user-artifact path. This boundary prevents source mutation/overwrite, TOCTOU and path-link escapes, unclaimed outputs, active-content publication, and partial artifact batches before any provider is enabled.

Validation

  • python -m pytest -q (187 passed, 1 skipped, 1 pre-existing warning)
  • python -m pytest tests/test_phase2_artifact_boundary.py -q (16 passed)
  • python -m compileall -q backend\\cortex_backend\\execution tests
  • python tools/generate_contracts.py
  • git diff --check
  • frontend lint, typecheck, production build, and 39 frontend tests passed

The unrelated working-tree edit to Cortex.pyproj was intentionally not included.

@dovvnloading
dovvnloading marked this pull request as ready for review July 21, 2026 22:31
@dovvnloading
dovvnloading merged commit 52944d9 into main Jul 21, 2026
1 check passed
@dovvnloading
dovvnloading deleted the codex/artifact-boundary branch July 21, 2026 23:53
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