Ray's Knowledge Base
Unlock

Put standing OpenSpec rules in config.yaml rather than generated prompts

FactVerified 30 Sep 2026Holds anywhere
Fact. A statement and the evidence for it.

Statement#

openspec update regenerates harness prompts and skills, but does not regenerate openspec/config.yaml. Put global context in context, artifact rules in rules.<artifact>, and apply or archive guidance in operations.<operation>.guidance. Check the corresponding openspec instructions output to confirm that the workflow receives the rule.

Evidence#

Inbox 44561b5b13 reports source inspection and instruction-output checks in dftracer-utils. Context and artifact rules appeared in the instructions JSON, and apply and archive guidance reached the workflow. The agent moved the proposed decision-memory bridge from generated prompts into config.yaml to avoid losing it on regeneration.

Also found by searching

  • openspec update overwrote my edits to the generated opsx prompt files, where do custom rules go
  • my standing rules for openspec proposals disappear every time I regenerate the harness prompts
  • how do I add permanent rules for openspec artifacts like tasks and proposals
  • openspec config.yaml context rules.<artifact> operations.apply.guidance, check with openspec instructions
  • where should I put a standing rule for openspec so it applies to every proposal and apply
  • openspec update overwrote my edits to the generated skill prompts
  • how do I add global context or artifact rules to openspec config.yaml
  • openspec instructions output doesn't show my rule, operations guidance for apply and archive