Runtime instruction distillation workflow
What you'll find here
The 9-step pipeline that turns declared instruction files into reviewed, provenance-linked runtime constraints — and the operator rules that keep raw files from becoming automatic authority.
Raw instruction files are evidence, not authority.
Every step preserves provenance and keeps proposals inactive until a human approves them.
Workflow
- Register declared sources with
craik.instruction_source_registry. - Capture source identity with
craik.instruction_source_snapshot. - Link extracted text with
craik.instruction_provenance. - Create reviewable
craik.distilled_instruction_proposalrecords. - Invalidate proposals when source snapshots change, go missing, are new, or are omitted from the current scan.
- Open
craik.contradiction_reportrecords when authoritative instruction proposals conflict across sources. - Record
craik.instruction_promotion_reviewdecisions. - Create
craik.promoted_instruction_constraintonly for approved proposals. - Consume active constraints in case files, prompts, onboarding, and handoffs.
Operator rules
Inactive until approved
Proposed distillations are inactive until approved.
Visible but inactive
Stale, contradicted, rejected, and deferred distillations remain visible but inactive.
Override required
Approving stale or contradicted proposals requires an explicit override rationale on the promotion review.
Audit trail required
Active constraints retain source ID, source snapshot ID, provenance IDs, evidence IDs, and review links.
Stale-risk warnings
Case files and onboarding surface stale-risk warnings instead of treating stale distillations as facts.
CLI lifecycle
craik instructions registers sources, lists proposals, records approval decisions, and shows provenance through the active operator session.
Forward to next agent
Handoffs carry active instruction constraint IDs forward so later agents can audit what shaped the run.
Fixtures
The contract fixture file includes examples for the core v0.4.0 records.
craik.instruction_source
craik.instruction_source_registry
craik.instruction_source_snapshot
craik.instruction_provenance
craik.distilled_instruction_proposal
craik.instruction_promotion_review
craik.promoted_instruction_constraint
Runtime tests cover stale invalidation, contradiction handling, promotion review, and active-context consumption.