Experiment with read-only catalog plan inspection - #115
Draft
myobie wants to merge 5 commits into
Draft
Conversation
myobie
force-pushed
the
agent/experimental-plan-inspect
branch
from
July 30, 2026 23:08
9b7d6aa to
2caa0d7
Compare
…an-inspect # Conflicts: # src/main.rs
myobie
marked this pull request as ready for review
August 3, 2026 16:21
myobie
marked this pull request as draft
August 3, 2026 16:57
Contributor
Author
|
Nathan revised the experiment contract: agent declarations will now contribute only a childless Agent Spec Resource link to a plan-owned plan.kdl. I am moving this PR back to draft while I replace the custom plan-ref and inline agent plan forms, preserve both target intent forms, merge current main normally, and rerun the full evidence matrix. No review or merge is requested until I publish the new exact head. |
…an-inspect # Conflicts: # src/main.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Outcome
Nathan revised the experiment after the previous exact head. Agent declarations now use only the existing childless Agent Spec Resource envelope to link to a plan-owned
plan.kdl. The target file owns plan identity, owner, version graph, reasons, and intent.st2 plan validate|list|show|inspectremains read-only, direct-KDL, catalog-bounded, no-CAS, and non-executing.Agent Resource link
The Resource envelope remains exactly local name +
_tag+uri, with no children. The name is the agent-local role. The link can contribute the agent identity toreferencedBy; it does not contribute owner or other plan truth. Thefile:URI resolves from the agent KDL file and must remain within the selected catalog.The old custom
plan-refnode andagent { plan { ... } }truth are rejected.Target form A: referenced Markdown content
contentresolves from the declaringplan.kdland stays within the selected catalog.Target form B: complete inline intent
Each version must contain exactly one
content="file:..."or one inlineintent. A version cannot contain both. Parent existence, uniqueness, cycle rejection, required revision reasons, deterministic ordering, and the derived concurrent frontier remain unchanged.CLI and JSON boundary
validate: exit 0 withresult=valid, plan count, and zero errors; invalid input emits the classified JSON receipt when--jsonis present and exits nonzero.list: preservesidentity,owner, andfrontier.show: preserves normalized identity, owner, versions, parents, reasons, and frontier; each version now exposescontentorintent.inspect: preserves source provenance,sourceKind=external, andreferencedBy; a content version exposesresolvedContent, while an inline version exposesintent.Deliberate exclusions
There is no current pointer, controller, execution, schedule, step graph, retry, claim, receipt, event, reconciliation mutation, agent restart, content digest, immutable-history proof, CAS, merge, or deployment behavior. Direct KDL and direct human-to-agent planning remain complete workflows. No paid or model evaluation is included or authorized.
Evidence
Exact head:
8a76b6e71355140e5b89cd9313fcfd88c82b5cadMerged base:
4262c195899d9e5cacf6c5ea0e792ca176d431e9Rework after the live-main merge: 9 files, +430/-138.
Full PR against current main: 11 files, +1653/-0.
cargo check --workspace --all-targets: passedcargo test --workspace --doc: passedgit diff --check: passedThe four excluded tests reproduce on exact merged base
4262c195899d9e5cacf6c5ea0e792ca176d431e9:tracked_product_surface_contains_only_native_namespresentation_changes_patch_the_exact_live_pty_without_restarting_itmanaged_agents_do_not_inherit_launcher_no_color_unless_declaredmanaged_agent_color_contract_crosses_systemd_scopeThis PR is draft and unmerged. Nathan must review the new exact head before any ready transition or merge.