You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make an approved XMD program a portable source artifact that planning never
executes implicitly. Authors and command-line users decide explicitly whether,
where, and how often that program runs.
Plan produces a program.
Evaluate evaluates a program in the current XMD execution.
Run executes a program from the host/CLI.
Composition decides whether and when a planned program runs.
Common paths
Compose planning and evaluation directly in one document:
<Evaluate>
<Plan>Prepare the release program and ask me to approve it.</Plan>
</Evaluate>
Preserve the approved source and evaluate it later:
<Planas="plan">Prepare the release program and ask me to approve it.</Plan>
<Evaluateprogram={plan} />
Compose command-line planning with an ordinary run:
xmd plan "Prepare the release program."| xmd run -
Or save the artifact and execute the file independently:
xmd plan "Prepare the release program." --output release.md && xmd run release.md
In every path, approval completes the artifact. A later evaluation failure does
not invalidate or rewrite it.
Product boundaries
<Plan> emits or captures exact approved source and never evaluates it.
The Quest completes only when all five stories are delivered. #676 adds
planning-specific progress and post-failure trace afterward and does not block
this public source/execution separation. #679 evaluates planning quality and the
minimum-residual-autonomy rule against reference workflows.
The child stories name the discriminating negative control and focused evidence
for every case. Together they update architecture, specifications, component
syntax, CLI help, the homepage, npm and compiled distribution, and affected
tests without treating delivery CI as a prerequisite for an implementation-
feedback commit.
approved source is byte-identical whether emitted, captured, piped, or saved;
no planning surface executes that source implicitly;
current-execution evaluation supports paired and deferred complete programs,
text and value roots, explicit props, current-site authority, durable replay,
stale-input refusal, and independent repeated occurrences;
Quest outcome
Make an approved XMD program a portable source artifact that planning never
executes implicitly. Authors and command-line users decide explicitly whether,
where, and how often that program runs.
Common paths
Compose planning and evaluation directly in one document:
Preserve the approved source and evaluate it later:
Compose command-line planning with an ordinary run:
Or save the artifact and execute the file independently:
In every path, approval completes the artifact. A later evaluation failure does
not invalidate or rewrite it.
Product boundaries
<Plan>emits or captures exact approved source and never evaluates it.<Evaluate>has explicit complete-program forms while preserving Evaluate Agent-generated XMD through a constrained allowlist #369'srestricted generated-fragment form unchanged.
xmd planproduces source only and has no execution option.xmd run -reads and executes one complete stdin program through the ordinaryrun profile.
only authority installed at its explicit site.
separate replay, failure, and cancellation histories.
<Run>component is introduced.Planning instructions and review minimize residual autonomy while faithfully
representing the user's intent:
Blocking stories and delivery order
<Plan>with<TestAgent>in Markdown tests #728 — run<Plan>with a deterministic<TestAgent>in Markdowntests.
<Plan>emit or capture approved XMD source #722 — make<Plan>a byte-exact text-producing component and prove itsauthor-visible behavior through that Markdown test boundary.
<Evaluate>evaluate complete XMD programs #713 — evaluate complete XMD programs at an authored site while keepingrestricted fragments closed.
xmd run#723 — add complete stdin roots toxmd run.xmd planproduce approved XMD source only #724 — remove implicit CLI execution after the Plan and stdincomposition are available.
The Quest completes only when all five stories are delivered. #676 adds
planning-specific progress and post-failure trace afterward and does not block
this public source/execution separation. #679 evaluates planning quality and the
minimum-residual-autonomy rule against reference workflows.
Acceptance map
Each end-to-end case has one owner:
<Plan>with<TestAgent>in Markdown tests #728: Deterministic Markdown Plan.<Plan>emit or capture approved XMD source #722: Bare Plan, Captured Plan, Failed Plan, Plan replay, Changed Planinput.
<Evaluate>evaluate complete XMD programs #713: Direct composition, Deferred composition, Program forms, Root props,Fragment compatibility, Authority, Evaluation replay, Changed evaluation
source, Repeated evaluation.
xmd run#723: Stdin run.xmd planproduce approved XMD source only #724: CLI Plan, Removed option.The child stories name the discriminating negative control and focused evidence
for every case. Together they update architecture, specifications, component
syntax, CLI help, the homepage, npm and compiled distribution, and affected
tests without treating delivery CI as a prerequisite for an implementation-
feedback commit.
Delivered foundations and superseded work
<Plan>component #660 / PR Add the <Plan> component to xmd run #685 supplies the packaged<Plan>authorship workflow.xmd run -e "<inline document>"to run inline content without a file #76 supplies inline root-source handling that stdin extends.<Plan>expand inline by default #711 and draft PR ✨ Make<Plan>expand inline by default (#711) #720 are superseded because bare<Plan>no longer executesapproved source and no privileged executable-source return disposition exists.
xmd planproduce approved XMD source only #724 owns its homepage follow-up.Completion
The Quest is complete when:
text and value roots, explicit props, current-site authority, durable replay,
stale-input refusal, and independent repeated occurrences;
sourceevaluation remains exactly closed;imports;
and
delivered.
Out of scope
<Run>component, independent child execution, or process isolation.sourceor granting authority from text..xmdfiles #599.md evalfences owned by Execute XMD shown in Markdown code fences #418.