CE Evidence Linker
Use this skill when
- Generating a curated evidence summary after a verification run
- Diagnosing which CE-CAP / CE-REQ claims lack passing evidence
- Updating an evidence file after a patch or new test run
- Producing a human-readable chain status report (claim → req → TIF → test → evidence)
Inputs
- Raw evidence output from
reports/verification/ormake capability-evidence-refresh - TIF register from
development/capabilities/verification/tif/README.md - Requirements from
development/capabilities/requirements/ - Claims from
development/capabilities/claims/
Workflow
- Parse test results. Run or read the capability test suite:
```bash
pytest tests/capabilities/ -v --tb=short 2>&1
```
Identify each test ID, its pass/fail status, and the TIF or requirement it covers
(from test naming convention test_should_<behavior>_when_<condition>).
- Map tests to TIF IDs. Use the TIF README table in
development/capabilities/verification/tif/README.md to resolve
test_id → TIF ID → requirement IDs → claim IDs.
- Compute coverage. For each claim:
- List all child requirements
- For each requirement, list all TIF IDs
- For each TIF, list tests with their pass/fail status
- A requirement is evidenced only when ALL its TIFs have at least one passing test
- Produce a curated evidence summary in
development/capabilities/evidence/evidence_<area>_<version>.md.
Follow the curated evidence format from development/capabilities/evidence/README.md.
Minimum fields per evidence record:
evidence_id:CE-EVID-<AREA>-<NNN>-<YYYYMMDD>claim_ids: list of CE-CAP-... IDsrequirement_ids: list of CE-REQ-... IDstif_ids: list of CE-TIF-... IDs (empty for TIF-exempt requirements)verification_type: api_contract | behavioral_contract | numerical_behavior | empirical_smoketest_id: full pytest node IDcommit_sha: git HEAD SHApackage_version: calibrated_explanations.versionresult: pass | fail
- Identify open gaps. List requirements with no passing evidence in priority order:
- No test exists for the TIF (untested)
- Test exists but is failing (failing)
- Test passes but no TIF link (orphan — zero traceability credit)
- Flag regressions. Compare against previous evidence summary. Flag any
TIF that previously had passing evidence but now shows a failing test.
- Update requirement
verification_statusfields where newly passing evidence
closes a previously unverified requirement. Set to verified.
Verification
make capability-chain-check
python scripts/quality/validate_capability_chain.py
Output contract
Return:
- Curated evidence summary file contents for
development/capabilities/evidence/. - Full chain-status table: claim → requirement → TIF → test → status.
- Gap list: requirements with no passing evidence (categorised by gap type).
- Regression list: TIFs that regressed since last evidence record.
- List of
verification_statusfields updated toverified.
Constraints
- Only passing tests provide positive evidence — a failing test does NOT close a requirement.
- Orphan tests (no TIF link) contribute zero traceability credit. List them in the gap report.
- Evidence records must include
commit_shaandpackage_version— a "pass" without
these fields is not usable as formal evidence.
verification_statusin a requirement file must only be set toverifiedwhen:
(a) all TIF IDs for that requirement have a passing test, and
(b) the evidence record has been written with the required fields.
- Do not suppress failing tests from the gap list. Every failure must be visible.
- Curated evidence summaries go to
development/capabilities/evidence/. Raw JSON/JSONL
outputs from CI go to reports/verification/ — do not mix these directories.