Skip to content

test(tax-lawyer): add end-to-end test for Satisfies → evidence chain → MCP tool pipeline - #158

Merged
elasticdotventures merged 2 commits into
mainfrom
issue-144-tax-lawyer-test
Aug 9, 2026
Merged

test(tax-lawyer): add end-to-end test for Satisfies → evidence chain → MCP tool pipeline#158
elasticdotventures merged 2 commits into
mainfrom
issue-144-tax-lawyer-test

Conversation

@elasticdotventures

Copy link
Copy Markdown
Member

Implements #144

  • SatisfiesResult roundtrip serialization test
  • Full pipeline: ingest -> classify -> evidence chain
  • Violated constraint surfaces in SatisfiesResult
  • Ontology path roundtrip with evidence chain
  • Lifecycle replay confirms pipeline stages

…ct hardcoded reconstructed_state expectation

Both e2e tests called tax_evidence_chain_tool with from_entity_id set to the raw
account_id string, which was never registered via ontology_upsert_entities — this
always fails with missing_ref. Seed a Transaction entity first and pass its real
entity id, matching the pattern already used in tax_evidence_chain_contract.rs.

Also: reconstructed_state's actual format is 'tx_id=...;stage=...;category=...'
(see events.rs), not the hardcoded 'ingest→classification' the test asserted —
switch to the same .contains() style already used in restart_persistence.rs.
@elasticdotventures
elasticdotventures force-pushed the issue-144-tax-lawyer-test branch from 060f65d to cef8c9d Compare August 9, 2026 07:09
@elasticdotventures
elasticdotventures merged commit 4046cbf into main Aug 9, 2026
6 checks passed
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