Skip to content

test: add repo fixture semantic fact assertion helpers #329

Description

@flyingrobots

Summary

Add assertion helpers that compare a repo fixture's expected.semanticFacts against bootstrap output or graph state.

The fixture builder can already carry expected semantic facts. The next step is making those facts executable so Hill 1 tests read like product statements rather than manual graph assertions.

Why

Upcoming bootstrap slices need to prove that artifact inventory, entity extraction, and relationship inference satisfy the design intent. Tests should be able to say: given this fixture, assert these semantic facts were found with the expected edge type, confidence band, and provenance.

Scope

  • Add helpers for asserting expected semantic facts against bootstrap JSON summaries, graph exports, or direct graph reads.
  • Support exact facts and partial matching for confidence/provenance metadata.
  • Produce clear failure messages that name missing, extra, and mismatched facts.
  • Keep helpers fixture-local; do not add production graph behavior.

Acceptance Criteria

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthill:h1-bootstrapHill 1 — zero-input semantic bootstraplane:foundationSupporting lane — core hardening, contracts, integritytestingTesting improvements and infrastructure

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions