test(opencode): adversarial full-provenance E2E gate (#1084) - #357
Merged
jeonghun-jj-lee merged 3 commits intoSep 14, 2026
Merged
jeonghun-jj-lee merged 3 commits into
jeonghun-jj-lee merged 3 commits into
Conversation
…ssed gate (#1084) The adversarial full-provenance matrix as a versioned manifest of case IDs in @opencode-ai/schema (the one package both the opencode engine and app frontend depend on). Each row declares fixture/setup/trigger/expected-authorization/ expected-receipts/permitted-display-safe-fields/prohibited-egress/cleanup/ required-mode. The gate consumes the manifest + green case IDs and emits all_required_passed only when every required case is green; defaultEnablement stays off (human-only flip, AC8). assertCoverage fails closed at load if any required dimension (AC1-AC7) is missing.
…1084) Runs every engine-owned matrix row against the REAL merged contracts — mutation gate + identity, lineage, receipt/evidence/budget storage, privacy serializers, external-diff, rollout resolver — and feeds the green set to ProvenanceMatrix.gate. Covers origins x modes (AC1), all 12 resource classes incl. symlink/alias identity + Trash/restore + unsupported-provider denial (AC2), all 10 outcomes (AC3), concurrent-writer non-attribution + cross-root context denial (AC4), the 7 egress boundaries never carrying capability/evidence/protected metadata (AC5), task/spawn aggregation + fork separation + archival/deletion + legacy/epoch + mixed binaries + rollback (AC6). Isolated mkdtemp roots + preload-sandboxed storage/DB; product-denied outcomes are expected results. Composes with the #1083 SessionRollout.Release evaluator; enablement stays off (AC8).
Runs the accessibility rows against the REAL unified lineage-ledger view-model (#1082): keyboard operation (Enter/Space toggle, Escape collapse, unrelated keys no-op) and both-theme legibility (distinct text+icon per state, tone is a semantic keyword never a color, capability labels fixed) — AC7. Feeds the green set to the shared ProvenanceMatrix.gate; enablement stays off (AC8).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements harmoniqs/amicode#1084, part of #972. 57-case adversarial matrix + all_required_passed gate (default-enablement stays OFF). Merged on local gates per accelerated policy; full CI at integration PR #345.