Skip to content

test(opencode): adversarial full-provenance E2E gate (#1084) - #357

Merged
jeonghun-jj-lee merged 3 commits into
amico/issue-972-session-lineage-ledgerfrom
amico/issue-1084-adversarial-e2e
Sep 14, 2026
Merged

jeonghun-jj-lee merged 3 commits into
amico/issue-972-session-lineage-ledgerfrom
amico/issue-1084-adversarial-e2e

Conversation

@jeonghun-jj-lee

Copy link
Copy Markdown
Contributor

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.

…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).
@jeonghun-jj-lee
jeonghun-jj-lee merged commit c051cfa into amico/issue-972-session-lineage-ledger Sep 14, 2026
@jeonghun-jj-lee
jeonghun-jj-lee deleted the amico/issue-1084-adversarial-e2e branch September 14, 2026 03:18
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