Skip to content

Prompt architecture: single-owner rule for instruction content across the ~45k-word prompt surface #1252

Description

@waleedkadous

Problem

The shipped prompt surface (CLAUDE.md/AGENTS.md, hot-tier governance docs, protocol definitions, porch phase prompts, role docs, skills) measures roughly 45,000 words, and a duplication probe (2026-07-25) found the same rules repeated across 4–6 surfaces each. Consequences:

  • Drift: an edit lands in one copy while the others go stale. Only the CLAUDE.md ↔ AGENTS.md pair is actively policed; the other duplicates are not.
  • Token cost: duplicated rules ride into every phase prompt, every spawn prompt, every session.
  • Ambiguity: a builder can encounter two differently-worded variants of the same rule and not know which is authoritative.

Read-out context: codev is strong on progressive disclosure (hot/cold governance tiers, on-demand skills) but weak on cross-layer duplication.

Proposed direction (to refine in spec)

  1. Single-owner rule: every instruction has exactly one owning surface; all other surfaces reference or summarize it, never restate it. The spec should produce an inventory of the prompt surfaces and an ownership map before any restructuring.
  2. Multi-model fleet tiering: tier prompt content by the consuming model's capability — smaller/cheaper models get fuller scaffolding, stronger models get the compressed form.
  3. Scar rules exempt: hard-won prohibition rules (data-loss scars, gate rules) stay verbatim and always-on wherever they apply — deduplication never applies to them.

Protocol

SPIR — this needs a spec phase (surface inventory + ownership map + measurement of the win) before restructuring anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cross-cuttingTouches multiple areas — needs coordinated handling

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions