fix(skills): recover interrupted RPI critiques without bypassing readiness gates - #2894
Open
Jamie Kim (jkim323) wants to merge 8 commits into
Open
Jamie Kim (jkim323) wants to merge 8 commits into
Jamie Kim (jkim323) wants to merge 8 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2894 +/- ##
==========================================
- Coverage 83.11% 83.01% -0.11%
==========================================
Files 187 186 -1
Lines 35331 34939 -392
Branches 231 231
==========================================
- Hits 29365 29004 -361
+ Misses 5892 5861 -31
Partials 74 74
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Contributor
Eval Execution❌ Status: Failed — 1 spec(s) block merge
|
Jamie Kim (jkim323)
marked this pull request as ready for review
September 11, 2026 05:45
…icrosoft/hve-core into fix/2891-rpi-critique-recovery
Bill Berry (WilliamBerryiii)
approved these changes
Sep 11, 2026
Allen Greaves (agreaves-ms)
approved these changes
Sep 11, 2026
Bill Berry (WilliamBerryiii)
approved these changes
Sep 11, 2026
7 tasks
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.
Description
Allow an interrupted RPI planning critique to recover once with explicit task-specific approval, while preserving the evidence and readiness checks required before implementation.
startedreservation.rpi-plan. Require original-worker inactivity, reconciled saved files and explicit approval; preserve original output and reconcile late results. TerminalComplete,PartialandBlockedresults cannot be retried.Related Issue(s)
Fixes #2891
Type of Change
Select all that apply:
Code & Documentation:
Infrastructure & Configuration:
AI Artifacts:
hve-builderand addressed all actionable findings.github/instructions/*.instructions.md).github/prompts/*.prompt.md).github/agents/*.agent.md).github/skills/*/SKILL.md).github/hooks/*/*.json)evals/)Other:
.ps1,.sh,.py)Sample Prompts (for AI Artifact Contributions)
User Request:
"Resume planning for this task. The initial critique was interrupted and its result is unavailable. Check whether recovery is eligible."
Execution Flow:
The planner reconciles existing evidence, verifies that the original worker ended and checks saved candidate identity. If eligible, it asks for task-specific approval before reserving one distinct recovery attempt. Existing terminal evidence or unresolved prerequisites stop recovery.
Output Artifacts:
Expected output, not a recorded successful run: an eligibility summary or a concrete blocker. After approval and successful assessment, the plan's Critique Disposition retains both attempt records and points to a separate recovery critique with execution status, verdict and findings.
Success Indicators:
Original evidence is preserved, only the authorized current worker assesses, and readiness requires actual assessment evidence and resolved findings. Generic resume or automatic mode alone does not authorize recovery.
For detailed contribution requirements, see:
Testing
Earlier targeted preflight against committed head
5c919c858498534508a687ab1bcf5cfff2735e5c:git diff --checkfrom the merge base to HEAD.Validate-MarkdownFrontmatter.ps1with schema validation and warnings-as-errors for all 11 changed Markdown files.Validate-SkillStructure.ps1forrpi-plan-critiqueandrpi-quick.npm run plugin:validateandnpm run docs:generate:check; documentation drift and attention counts are zero. Earliernpm run plugin:syncandnpm run docs:generatealso reported current projections.Test-EvalSpecComplianceschema/executor/backlink check for all 246 stimuli, and recomputed the normalized hashes for the 13 added cases. These knowledge-level cases do not execute native dispatch, persistence or race handling.The subsequent HB-B01 correction, now committed as
5e43429c12dd5bf8349b1a3c9f06cd5d860cc00b, passed the exact-file schema/executor/backlink check for 248 stimuli, preservation checks for the prior 246 cases, and normalized hash and safety checks for the two additions. Targeted frontmatter/critique-skill structure checks, plugin validation and documentation synchronization checks also passed. These are mechanical checks, not behavior acceptance. The committed-diff whitespace check was rerun successfully at this head while refreshing this description.HVE Builder Review
hve-builderreview mode ran on 2026-09-10 against5c919c858498534508a687ab1bcf5cfff2735e5c:5e43429c12dd5bf8349b1a3c9f06cd5d860cc00bwith scoped finding-selection guidance, an updated usage example and two advisory regression cases. Independent behavioral verification of that correction remains pending.5e43429c12dd5bf8349b1a3c9f06cd5d860cc00breturned Complete / Pass, with zero findings. Three focused scenarios exercised concrete reservation locks, successful two-write stop persistence and a failed-second-write control. HB-B02 is resolved at simulation fidelity; this did not require source changes or a real critique retry.Behavior runs used contained, independently graded High-profile proxy simulations. State writes, host records and dispatches were emulated; native execution and equivalence to the target's selected session model were not verified. The focused HB-B02 Pass does not replace the earlier full-review result or close HB-B01. Original reports and follow-up evidence were retained locally; human-review attestations remain unchecked.
Checklist
Required Checks
AI Artifact Contributions
hve-builderreview mode to review contributionhve-builderreviewRequired Local Checks
The following local-safe validation commands must pass before merging:
npm run validate:localnpm run validate:docsnpm run spell-checknpm run lint:md-linksSecurity Considerations
No dependency manifests, lockfiles, executable scripts or permission declarations change. Recovery remains planner-authorized and requires explicit task-specific consent; missing evidence does not imply approval or Pass.