Repository navigation
Closed
Labels
area:cliCLIarea:mcpMCParea:pipelinePipelinearea:qaQAphase:migrationIncremental migration toward target architecturetheme:semantic-proofSemantic, structural, trace, and provider proof obligationstheme:verifiabilitySchema-native proof and evidence architecturetype:testTests
Description
Parent
Part of #330.
Context
Cross-surface equality should not compare raw CLI/MCP/facade output strings. Those surfaces naturally differ in representation. The useful invariant is that they perform compatible observable operations and return compatible semantic facts.
The same event vocabulary should also inform runtime probes and diagnostics so live failures map back to proof subjects rather than requiring bespoke debugging.
Scope
Add trace-equivalence evidence:
- define normalized observable trace events such as
ReadArchive,ApplyFilter,ReturnRows(count, ids_hash),EmitConversation,EmitError; - allow total-order traces first, but design the type for partial-order
happens_beforeedges where concurrency/commutation matters; - build adapters for at least two surfaces, likely CLI and facade or CLI and MCP;
- compare traces over seeded/generated archives;
- record trace evidence in
EvidenceEnvelope.
Observability parity:
- pipeline probes, readiness reports, and structured logs should use compatible event nouns where practical;
- diagnostic events should be linkable to a subject, claim, operation, or artifact node when practical;
- runtime traces are not primary proof, but should be explainable through the proof vocabulary.
Acceptance criteria
- At least one operation has cross-surface trace-equivalence evidence.
- Trace evidence compares semantic event payloads, not raw output strings.
- Trace envelope includes reproducer and trust/environment metadata.
- The trace type can represent partial order even if the first runner emits total order only.
- At least one probe/readiness/log diagnostic shape is mapped to the observable-trace vocabulary.
Metadata
Metadata
Assignees
Labels
area:cliCLIarea:mcpMCParea:pipelinePipelinearea:qaQAphase:migrationIncremental migration toward target architecturetheme:semantic-proofSemantic, structural, trace, and provider proof obligationstheme:verifiabilitySchema-native proof and evidence architecturetype:testTests
Activity
Sinity commentedon Apr 22, 2026
Starting #341 after #340 merged.
Tactic for this slice:
happens_beforeedges, even if the initial runner emits total order only;ReadArchive,ApplyFilter,ReturnRows) and stable hashes/counts, not raw rendered output;EvidenceEnvelopewith the existing trust/environment metadata path;Sinity commentedon Apr 22, 2026
Checkpoint for #341:
ReadArchive,ApplyFilter,ReturnRows,EmitConversation,EmitError.trace.operation.provider_filter_queryanddiagnostic.observable.pipeline_probe_archive_subsetsubjects.Verification run locally:
pytest tests/unit/proof/test_trace_evidence.py tests/unit/proof/test_catalog.py -qruff check polylogue/proof tests/unit/proofpytest tests/unit/proof -qmypy polylogue/ruff format --check polylogue/proof tests/unit/proofdevtools render-all --checkdevtools verifydevtools verify --quicktest: add trace equivalence proof evidence
test: add trace equivalence proof evidence (#352)
test: add trace equivalence proof evidence (#352)
test: add trace equivalence proof evidence (#352)
test: add trace equivalence proof evidence (#352)