Repository navigation
PSP 7: Robust Typed Correction Loops and Plugin-Aware Prompt Contracts #123
Replies: 3 comments
|
PSP 7 has now been accepted. Implementation is ongoing on the runtime and documentation side, but it is not yet complete or merged, so the PSP status is moving to A follow-up implementation PR will be opened shortly to continue landing the remaining work tied to this PSP. Tracking summary:
|
|
Implementation PR is now open: #124 Implement PSP 7 correction loop contracts PR: #124 This PR contains the PSP 7 implementation work that followed the merged proposal PR #121. Highlights:
|
PSP-7 Implementation Complete -- Shipped in v0.5.9PSP-7 has been fully implemented and merged to master via PR #124. The release is tagged as v0.5.9. What Was DeliveredTyped Parse Pipeline (bundle.rs) Replaced the Option-based
Every path through the pipeline produces a Retry Classification The
This replaces the previous approach of treating all parse failures identically. Structured JSON Artifact Format (prompt_compiler.rs) The correction prompt now instructs the LLM to return a strict JSON schema: {
"artifacts": [
{ "operation": "write", "path": "path/from/evidence", "content": "..." }
],
"commands": ["optional dependency command"]
}Exact target paths from AgentTools Integration (convergence.rs) Correction commands are now routed through
Two separate copies of the inline command execution code were removed. Manifest Policy Enforcement (bundle.rs) Semantic validation prevents LLM-generated bundles from silently mutating root manifests (Cargo.toml, package.json, pyproject.toml) unless they are explicitly listed in the node output targets. Legal support files (build.rs, Makefile, etc.) are preserved. Two new tests verify this behavior:
Budget Exhaustion (convergence.rs) The budget check before each correction attempt was widened from Additional Changes in v0.5.9
Verification
Closing this discussion as the specification has been fully implemented. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
PSP 7 Discussion
This discussion tracks PSP 7: Robust Typed Correction Loops and Plugin-Aware Prompt Contracts.
Links
docs/psps/source/psp-000007.rstSummary
Questions For Review
Please keep feedback focused on the proposal contract, the implementation surface, and any missing edge cases.
All reactions