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

Activity

  1. added
    enhancementNew feature or request
    testingTesting improvements and infrastructure
    hill:h1-bootstrapHill 1 — zero-input semantic bootstrap
    lane:foundationSupporting lane — core hardening, contracts, integrity
    on Jun 1, 2026
  2. coderabbitai commented on Jun 1, 2026

    @coderabbitai
    Contributor
    🔗 Related PRs

    #308 - docs: define Hill 1 semantic bootstrap slice [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

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

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