Skip to content

feat(conformance): add portable conformance export package format - #445

Merged
morluto merged 1 commit into
mainfrom
codex/conformance-package-336
Jul 28, 2026
Merged

morluto merged 1 commit into
mainfrom
codex/conformance-package-336

Conversation

@morluto

@morluto morluto commented Jul 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Implements a committed scenario/replay/shim/evidence package format for portable process-fidelity conformance fixtures.

Closes #336, #337, #338.

Changes

  • Conformance export package format (Design portable process-fidelity conformance export package #336): Defines a versioned, path-independent package format with deterministic manifests, scenario contracts, replay/shim plans, expected evidence, and verifier contracts. Package IDs are deterministically computed from canonical JSON for reproducibility.

  • Semantic-diff trust gates (Add semantic-diff trust gates for conformance fixtures #337): Implements trust gates that compare captured runs against committed conformance packages, classifying semantic diffs from timing/normalization noise. Volatile dimensions (timing, timestamps, PIDs) are ignored. Unknown/truncated evidence is never treated as equivalence.

  • Conformance CI replay (Run conformance fixtures in clean-checkout CI replay #338): Adds a CI replay engine that runs each scenario, evaluates trust gates, and detects drift between captured and committed evidence. Reports first divergence with evidence IDs.

Verification

npm run typecheck   # passes
npm run lint        # passes (no new warnings)
npx vitest run tests/conformancePackage.test.ts tests/conformanceTrustGate.test.ts tests/conformanceReplay.test.ts  # 27 tests pass

Acceptance criteria

  • ✅ Package contains deterministic manifests, scenario contract, replay/shim plans, expected evidence, and verifier contract
  • ✅ Format is versioned and path-independent (fixture_path is relative to repo root)
  • ✅ CI can consume the package from a clean checkout
  • ✅ Gates reject runs that differ in required dimensions
  • ✅ Unknown/truncated evidence is not treated as equivalence
  • ✅ Results cite evidence IDs and first divergence

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@cursor

cursor Bot commented Jul 28, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

Define a committed scenario/replay/shim/evidence package format for
portable process-fidelity conformance fixtures (#336). The package
format is versioned, path-independent, and consumable from a clean
checkout.

- conformancePackage.ts: top-level package schema with scenario
  manifests, replay plans, shim plans, expected evidence, and
  verifier contracts. Deterministic package ID computed from
  canonical JSON. Cross-reference validation ensures internal
  consistency.
- conformanceTrustGate.ts: trust gates that compare captured runs
  against committed conformance packages (#337). Classifies semantic
  diffs from timing/normalization noise. Unknown/truncated evidence
  is never treated as equivalence.
- conformanceReplay.ts: CI replay engine that runs each scenario,
  evaluates trust gates, and detects drift between captured and
  committed evidence (#338).

Closes #336, #337, #338
@morluto
morluto force-pushed the codex/conformance-package-336 branch from 940107a to 4ee30e4 Compare July 28, 2026 05:40
@morluto
morluto merged commit 91fb87d into main Jul 28, 2026
13 checks passed
@morluto
morluto deleted the codex/conformance-package-336 branch July 28, 2026 06:52
darsrc pushed a commit to darsrc/rea that referenced this pull request Oct 10, 2026
…-336

feat(conformance): add portable conformance export package format
@morluto morluto added enhancement New feature or request area: build Build, CI, packaging, and publishing labels Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build Build, CI, packaging, and publishing enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Design portable process-fidelity conformance export package

1 participant