Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Transition from Monolithic Instruction Push to Modular Knowledge Pull

ADR-26055: Transition from Monolithic Instruction Push to Modular Knowledge Pull

Date

2026-05-31

Status

proposed

Context

The project currently utilizes QWEN.md and AGENTS.md as the primary vehicles for transmitting rules, conventions, and workflows to AI agents. As the project grows, this “Push” model—where all instructions are loaded into the system prompt—has encountered several critical failure modes:

  1. Instruction Drift: Overlapping or conflicting rules emerge as new instructions are appended without a systematic audit of existing ones.

  2. Context Window Exhaustion (Token Bombs): Large volumes of detailed workflows (e.g., release management) consume significant token space, increasing costs and causing the agent to “forget” primary invariants.

  3. The “Needle in a Haystack” Problem: High-priority rules (e.g., absolute path requirements) are diluted by low-priority procedural details, leading to intermittent adherence failures.

  4. Discovery Latency: Agents often attempt to “guess” the correct way to perform a complex task rather than searching for the existing documented SOP because the prompt does not explicitly route them to a discovery process.

Decision

We will transition from a Monolithic Instruction Push to a Modular Knowledge Pull Architecture. This system splits knowledge into two distinct tiers:

1. Tier 1: The Constitution (QWEN.md)

QWEN.md will be stripped of all detailed procedural workflows and reduced to a minimalist “Routing Layer.” Its primary functions are:

2. Tier 2: Modular Standard Operating Procedures (SOPs) (Skills & Frontmatter)

Complex, scenario-specific workflows will be moved into specialized Skills (located in .qwen/skills/) and project documentation.

3. Operational Framework (AGENTS.md)

AGENTS.md will be restructured from a list of rules into an Operational Manual. It will define the “How” of agent behavior, specifically the mandatory loop: Task Analysis →\rightarrow Knowledge Discovery (Pull) →\rightarrow SOP Application →\rightarrow Verification.

Consequences

Positive

Negative / Risks

Alternatives

References

Participants

  1. Vadim Rudakov

  2. Qwen Code