Documentation
¶
Overview ¶
Package rehearse is the rehearse-report ingestion adapter: it reads `.specscore/rehearse/latest.json` from the repo and emits `verified-behavior` facts — one `verified-by` and one `has-verification-status` pair for every scenario–AC combination whose status is `pass` or `fail`.
Feature: cli/rehearse/evidence (REQ: adapter-rehearse, REQ: verification-facts, REQ: verified-behavior-class, REQ: observed-at-run-time)
Subjects are emitted repo-relative (`#<verifies-entry>`, e.g. `#x#ac:y`); the pipeline prefixes them with the workspace-scoped repo slug. Scenarios with status `skipped` or `no-steps`, or with an empty `verifies` list, emit no facts. A missing report file is silent; an unreadable or unparsable file emits one warning (REQ: partial-tolerance).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct{}
Adapter is the rehearse-report ingestion adapter. The zero value is ready to use.
func (Adapter) Ingest ¶
Ingest reads the rehearse report at <repoPath>/.specscore/rehearse/latest.json and emits two facts per scenario–AC pair for pass/fail scenarios:
- subject `#<verifies-entry>`, predicate `verified-by`, object = scenario file
- subject `#<verifies-entry>`, predicate `has-verification-status`, object = status
A missing report is silently ignored. An unreadable or unparsable report produces one warning and no facts (REQ: partial-tolerance).