Skip to content

test: complete G2 evidence conformance - #6

Merged
BunsDev merged 2 commits into
mainfrom
docs/psyche-g2-evidence-attestation
Aug 12, 2026
Merged

test: complete G2 evidence conformance#6
BunsDev merged 2 commits into
mainfrom
docs/psyche-g2-evidence-attestation

Conversation

@BunsDev

@BunsDev BunsDev commented Aug 11, 2026

Copy link
Copy Markdown
Member

Completes the final reusable-suite requirements discovered during the G2 contract review.

  • proves valid same-ID/recomputed-digest launch and input conflicts preserve durable adoption
  • exercises policy denial through adoption with no durable mutation
  • exercises mid-flight authority loss through inspection with no local fallback
  • adds adapter-neutral deterministic conformance controls

The G2 evidence remains candidate until this exact source commit completes remote CI; the follow-up evidence commit will modify only docs/G2-EVIDENCE.md.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings August 11, 2026 05:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR completes remaining G2 contract conformance coverage by extending the scripted Coven test fixture with additional deterministic fault points and new assertions around stable adoption conflicts and structured denials.

Changes:

  • Add adapter-neutral fault points for adoption policy denial and mid-inspection authority loss.
  • Update the scripted G2 port to surface PolicyDenied during adoption and Unavailable during inspection under those injected faults.
  • Extend conformance assertions to verify durable state is unchanged across same-ID conflicts, policy denials, and authority-loss recovery.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
crates/psyche-test-support/src/suites/coven.rs Adds new fault-handling branches to the scripted port and expands the conformance suite with new conflict/denial/authority-loss assertions.
crates/psyche-test-support/src/coven.rs Introduces two new adapter-neutral CovenFaultPoint variants used by fixtures and suites.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 316 to 324
let selected_fault = {
let mut runtime = self.runtime()?;
runtime.adoption_calls = runtime.adoption_calls.saturating_add(1);
runtime.selected_fault
};
if selected_fault == Some(CovenFaultPoint::AdoptionPolicyDenied) {
return Err(PortError::PolicyDenied);
}
let mut state = self.durable()?;
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@BunsDev
BunsDev merged commit 3e62afb into main Aug 12, 2026
13 of 14 checks passed
@BunsDev
BunsDev deleted the docs/psyche-g2-evidence-attestation branch August 12, 2026 03:04
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.

2 participants