Repository navigation
v2.7.0 — Prompt system hardening
Prompt system hardening: typed routing metadata, per-model-family prompt variants, Oracle guardrails, metadata-driven overlay routing, and tighter delegate descriptions.
Added
- Typed routing metadata —
SubAgentRoutingMetadatainterface withcategory,cost,useWhen,avoidWhen, and optionalkeyTriggerfields onSubAgentDeclaration. All five builtin sub-agents carry routing metadata. systemPromptByFamilydeclaration field — optional per-model-family prompt overrides resolved viaresolveSystemPromptBody(). Variant selection is driven solely by the configured nested model (never the parent's cached model family).- Oracle GPT prompt variant — prose-first output, explicit opener blacklist, and effort tags. Selected when the configured nested model is a GPT-family model (
gpt-*,o1-*,o3-*,o4-*). - General GPT prompt variant — streamlined executor prompt with opener blacklist and overlay-deferring tool access.
- Oracle guardrails —
Long-Context Handling(anchor claims to file paths, label inferred items, flag contradictions) andHigh-Risk Self-Check(re-scan for unstated assumptions, verify no new failure modes) sections in the default Oracle prompt. - Routing summary helpers —
buildRoutingSummary()andbuildOverlayRoutingMatrix()insrc/sub-agents/routing.ts. - Sub-Agent Routing section in
/blackbytes-status— displays category, cost, use-when/avoid-when, and key trigger for each enabled sub-agent. - YAML
routingfield — optional typed routing metadata in YAML sub-agent declarations with validation. - Description length enforcement — test assertions verify all builtin delegate descriptions are ≤ 400 chars.
Changed
- Bytes overlay routing matrix is metadata-driven — replaces per-agent hardcoded
ifchecks withbuildOverlayRoutingMatrix()from registeredSubAgentMeta. - General's Tool Access prompt section defers to the runtime safety overlay for the authoritative tool list.
- Delegate tool descriptions shortened to ≤ 400 chars each. Strict delegation gates and cost signals preserved.
/blackbytes-statusSub-Agent Routing replaces the removed Compact Tool Output section (10 sections total).