Skip to content

test: add trace equivalence proof evidence - #352

Merged
Sinity merged 1 commit into
masterfrom
feature/test/architectural-completeness-proof
Apr 22, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/test/architectural-completeness-proof

Conversation

@Sinity

@Sinity Sinity commented Apr 22, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds the first trace-equivalence proof slice for architectural completeness.

Closes #341

Problem

The proof catalog had semantic and structural evidence, but no normalized observable trace vocabulary that could compare an operation across surfaces without falling back to raw output-string equality. Existing diagnostics such as pipeline probes also were not mapped into the proof vocabulary.

Solution

  • Added polylogue.proof.traces with stable observable event nouns, ordered traces, happens_before edges, privacy-safe returned-ID hashing, and a provider-filter query trace builder.
  • Added proof subjects and catalog claims for trace.operation.surface_equivalence and diagnostic.observable_trace_mapping.
  • Added trace and diagnostic mapping runners that emit EvidenceEnvelope results with reproducer, trust, and environment metadata.
  • Added seeded archive tests proving repository/facade provider-filter traces compare by semantic payloads and mapping devtools.pipeline-probe archive-subset diagnostics into the trace vocabulary.
  • Regenerated docs/verification-catalog.md.

Verification

  • pytest tests/unit/proof/test_trace_evidence.py tests/unit/proof/test_catalog.py -q
  • ruff check polylogue/proof tests/unit/proof
  • pytest tests/unit/proof -q
  • mypy polylogue/
  • ruff format --check polylogue/proof tests/unit/proof
  • devtools render-all
  • devtools render-all --check
  • devtools verify
  • pre-push devtools verify --quick

@coderabbitai

coderabbitai Bot commented Apr 22, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 42 minutes and 3 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 42 minutes and 3 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 9e422015-3315-4a05-afd4-58de1c5bf3f1

📥 Commits

Reviewing files that changed from the base of the PR and between 87b1a4e and be29408.

📒 Files selected for processing (8)
  • docs/verification-catalog.md
  • polylogue/proof/__init__.py
  • polylogue/proof/catalog.py
  • polylogue/proof/runners.py
  • polylogue/proof/subjects.py
  • polylogue/proof/traces.py
  • tests/unit/proof/test_catalog.py
  • tests/unit/proof/test_trace_evidence.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/test/architectural-completeness-proof

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Sinity
Sinity merged commit e487a6c into master Apr 22, 2026
12 checks passed
@Sinity
Sinity deleted the feature/test/architectural-completeness-proof branch April 22, 2026 06:59

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: be29408939

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread polylogue/proof/runners.py Resolved
Comment thread polylogue/proof/runners.py Resolved
Sinity added a commit that referenced this pull request Apr 22, 2026
## Summary

Adds the first trace-equivalence proof slice for architectural completeness.

Closes #341

## Problem

The proof catalog had semantic and structural evidence, but no normalized observable trace vocabulary that could compare an operation across surfaces without falling back to raw output-string equality. Existing diagnostics such as pipeline probes also were not mapped into the proof vocabulary.

## Solution

- Added `polylogue.proof.traces` with stable observable event nouns, ordered traces, `happens_before` edges, privacy-safe returned-ID hashing, and a provider-filter query trace builder.
- Added proof subjects and catalog claims for `trace.operation.surface_equivalence` and `diagnostic.observable_trace_mapping`.
- Added trace and diagnostic mapping runners that emit `EvidenceEnvelope` results with reproducer, trust, and environment metadata.
- Added seeded archive tests proving repository/facade provider-filter traces compare by semantic payloads and mapping `devtools.pipeline-probe` archive-subset diagnostics into the trace vocabulary.
- Regenerated `docs/verification-catalog.md`.

## Verification

- `pytest tests/unit/proof/test_trace_evidence.py tests/unit/proof/test_catalog.py -q`
- `ruff check polylogue/proof tests/unit/proof`
- `pytest tests/unit/proof -q`
- `mypy polylogue/`
- `ruff format --check polylogue/proof tests/unit/proof`
- `devtools render-all`
- `devtools render-all --check`
- `devtools verify`
- pre-push `devtools verify --quick`
Sinity added a commit that referenced this pull request Apr 22, 2026
The proof catalog had semantic and structural evidence, but no
normalized observable trace vocabulary that could compare an
operation across surfaces without falling back to raw
output-string equality. Existing diagnostics such as pipeline
probes also weren't mapped into the proof vocabulary.

Adds `polylogue.proof.traces` with stable observable event nouns,
ordered traces, `happens_before` edges, privacy-safe returned-ID
hashing, and a provider-filter query trace builder. Adds proof
subjects and catalog claims for
`trace.operation.surface_equivalence` and
`diagnostic.observable_trace_mapping`. Adds trace and diagnostic
mapping runners that emit `EvidenceEnvelope` results with
reproducer, trust, and environment metadata. Adds seeded archive
tests proving repository/facade provider-filter traces compare by
semantic payloads and maps `devtools.pipeline-probe` archive-subset
diagnostics into the trace vocabulary.

Verification: ruff + mypy + pytest over proof / trace-evidence /
catalog suites; devtools render-all --check, verify and --quick
green.

Closes #341
Sinity added a commit that referenced this pull request Apr 22, 2026
The proof catalog had semantic and structural evidence, but no
normalized observable trace vocabulary that could compare an
operation across surfaces without falling back to raw
output-string equality. Existing diagnostics such as pipeline
probes also weren't mapped into the proof vocabulary.

Adds `polylogue.proof.traces` with stable observable event nouns,
ordered traces, `happens_before` edges, privacy-safe returned-ID
hashing, and a provider-filter query trace builder. Adds proof
subjects and catalog claims for
`trace.operation.surface_equivalence` and
`diagnostic.observable_trace_mapping`. Adds trace and diagnostic
mapping runners that emit `EvidenceEnvelope` results with
reproducer, trust, and environment metadata. Adds seeded archive
tests proving repository/facade provider-filter traces compare by
semantic payloads and maps `devtools.pipeline-probe` archive-subset
diagnostics into the trace vocabulary.

Verification: ruff + mypy + pytest over proof / trace-evidence /
catalog suites; devtools render-all --check, verify and --quick
green.

Closes #341
Sinity added a commit that referenced this pull request Apr 22, 2026
The proof catalog had semantic and structural evidence, but no
normalized observable trace vocabulary that could compare an
operation across surfaces without falling back to raw
output-string equality. Existing diagnostics such as pipeline
probes also weren't mapped into the proof vocabulary.

Adds `polylogue.proof.traces` with stable observable event nouns,
ordered traces, `happens_before` edges, privacy-safe returned-ID
hashing, and a provider-filter query trace builder. Adds proof
subjects and catalog claims for
`trace.operation.surface_equivalence` and
`diagnostic.observable_trace_mapping`. Adds trace and diagnostic
mapping runners that emit `EvidenceEnvelope` results with
reproducer, trust, and environment metadata. Adds seeded archive
tests proving repository/facade provider-filter traces compare by
semantic payloads and maps `devtools.pipeline-probe` archive-subset
diagnostics into the trace vocabulary.

Verification: ruff + mypy + pytest over proof / trace-evidence /
catalog suites; devtools render-all --check, verify and --quick
green.

Closes #341
@Sinity

Sinity commented Apr 28, 2026

Copy link
Copy Markdown
Owner Author

🤖 Post-hoc audit note: this PR received bot review feedback verified against current HEAD as part of #544. 2 finding(s) confirmed still present → tracked in #550.

@Sinity
Sinity requested review from Copilot and removed request for Copilot May 1, 2026 00:43
@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

Only the rows listed above are dispositioned. Held findings remain open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: add trace equivalence and observability-parity evidence

1 participant