testing-provenance-ontology

Validates telic seam provenance and ontology schema changes with targeted pytest workflows.

1|3|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/AIKAGRYA/dharma_swarm --skill testing-provenance-ontology-aikagrya
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: testing-provenance-ontology
Source: https://github.com/AIKAGRYA/dharma_swarm/tree/main/.agents/skills/testing-provenance
Command: npx skills add https://github.com/AIKAGRYA/dharma_swarm --skill testing-provenance-ontology-aikagrya

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Changes to the telic seam and ontology surface can silently fail because OntologyRegistry.create_object() returns (None, [errors]) instead of raising, so broken schema changes look green unless tests assert on the created object. This Skill provides a disciplined test procedure that proves provenance actually persists. ## Core Features & Use Cases - Targeted test sequencing: Runs focused pytest files for telic_seam, task_board, and telos_graph before a full-suite regression sweep diffed against a same-session baseline. - Enum round-trip validation: Enforces updating both the code-level whitelist and the ontology schema enum, with an explicit assertion that create_object() does not return None. - Adversarial test patterns: Provides fixture construction rules and adversarial patterns (topology round-trip, orphan proposals, method existence) plus a structured PASS/FAIL verdict block. - Use Case: After adding a new action_type enum value to ActionProposal, use this Skill to verify the dispatch is stored with the new value rather than silently falling back to "dispatch". ## Quick Start Verify my changes to telic_seam.py and ontology.py by running the targeted provenance tests and the enum round-trip check, then report the verdict block.

Frequently Asked Questions about testing-provenance-ontology

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test ontology schema enum changes in Python?▼

Update both the code-level whitelist and the ontology schema enum_values, then call OntologyRegistry.create_object() with the new value and assert the returned object is not None. A code-only update silently returns (None, [errors]) and looks green.

How do I verify telic seam provenance persists after a dispatch?▼

Record a dispatch with the new topology value, then read the stored action_type property back off the ontology object and assert it equals the new value. Do not treat record_dispatch returning without exception as success.

Why does create_object return None instead of raising an error?▼

OntologyRegistry.create_object() returns a (None, [errors]) tuple on schema rejection rather than raising, so callers like record_dispatch swallow the None. Tests must explicitly assert on the created object to catch broken schemas.

How should I construct a TelicSeam fixture in pytest?▼

Build a real OntologyRegistry via create_dharma_registry() and a LineageGraph backed by pytest tmp_path, then pass them to TelicSeam(registry=..., lineage=...). Avoid the path-based constructor and shared /tmp databases.

Can I compare test failures against a remembered failure count?▼

No. Pre-existing failure tallies rot over time, so always diff the full suite against a same-session baseline such as git stash followed by pytest. Only a same-session baseline diff counts as evidence.