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.

ADR 26013: Just-in-Time Prompt Transformation

Title

Implementation of Just-in-Time (JIT) JSON-to-YAML conversion for LLM prompt loading.

Status

Accepted

Date

2026-01-30

Context

The current workflow utilizes JSON as the “Source of Truth” for prompt storage, but requires YAML for LLM inference (compatible with ollama and qwen2.5-coder / ministral stacks). The proposal to store these converted YAML files as ready-to-go artifacts in the Git repository introduces several risks:

  1. Single Source of Truth (SSoT) Violation: Changes to JSON might not be reflected in YAML, leading to non-deterministic behavior [ISO 29148: Consistency].

  2. Git Noise: Storing derivative artifacts doubles diff sizes and complicates peer reviews.

  3. Local Stack Constraints: Maintaining redundant files increases disk overhead on restricted local systems.

Decision

We will not store converted YAML prompts in the repository. Instead, the system will implement a JIT (Just-in-Time) transformation layer within the Python application logic.

Consequences

Positive

Negative

Alternatives

Persistent Artifact Storage (Rejected)

Convert prompts to YAML for quick access when needed without conversion from JSON.

YAML as Source of Truth (Rejected)

References

Participants

  1. Vadim Rudakov

  2. Senior AI Systems Architect (Gemini)