feat(autonomy): prerequisite-resolution slice for the setup skill (#2725) - #2804
feat(autonomy): prerequisite-resolution slice for the setup skill (#2725)#2804kyle-sexton wants to merge 2 commits into
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
Claude finished @kyle-sexton's task in 2m 24s —— View job Security review
I reviewed the 11 files changed in this PR (diff against No CRITICAL or IMPORTANT security findings. One low-severity note worth a follow-up: SUGGESTION — dead/mis-keyed guard in the "never write security binding" invariant. if (existing.admission || existing.isolation || existing.executor_class) {
throw new Error("refusing to write security-binding axes into autonomy binding");
}Two issues with this guard as written:
Not currently exploitable (there's no code path that lets No other issues found: no path traversal (all file paths derive from a trusted |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 621d5656c3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Last security-reviewed head: |
|
Claude finished @kyle-sexton's task in 3m 29s —— View job Code review completeTodo list
SummaryReviewed the diff against
Both are static-analysis-confirmed (cross-checked resolver output shape, emission generator, and real security-binding fixtures) rather than executed live, since the sandbox here blocks writes under any No other issues found — the propose/ratify split, narrowing-only enablement advice, additive-section shape ( |
|
Claude has reviewed this PR 1 time. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
eafc7ce to
26d9bce
Compare
621d565 to
8288e96
Compare
26d9bce to
42f99f7
Compare
) Closes #2725 Phase 5 of the routine-capability-detection plan (ADR 0011): extend the setup skill with check/apply for per-identity prerequisite resolution, narrowing-only enablement, and additive binding declarations. Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
8288e96 to
9faef23
Compare
Closes #2724 ## Summary Replacement for #2796 (auto-closed when stack base was deleted after #2793 squash-merge). Lands the deterministic prerequisite resolver on main after #2793. Closes #2724 ## Summary Phase 4 of the routine-capability-detection plan (ADR 0011): deterministic prerequisite resolver that reads the Phase 3 emission and emits per-identity verdicts with provenance on a named scheduling surface. ## Fix - **Resolver** `skills/setup/scripts/resolve-prerequisites.mjs` — repo-file + harness-context probes; composes binding declarations, ecosystems (resolved), tracker seam, `.mcp.json` presence/enablement. - **Precedence** — declaration narrows; ran-negative probe caps declarations (finding); unprobeable ≠ absent. - **Seven fixtures** under `scripts/fixtures/prerequisite-resolution/` + co-located test/manifest (bare-repo, fail-closed, declared-absent-narrows, probe-negative-caps, probe-could-not-run, posture-divergence, positive-verdict). - **Liveness** — engine health-check taxonomy row; fail-loud; wall-clock-free (byte-identical consecutive runs). - **Version bump** to `0.21.0`. Stacked on #2793 (`cursor/2723-prereq-emit-8f91`). ## Verification ```text $ bash plugins/autonomy/skills/setup/scripts/resolve-prerequisites.fixtures.test.sh $ bash scripts/check-changelog-parity.sh --check-bump origin/main $ bash scripts/check-orphaned-fixtures.sh --check $ bash scripts/check-changed-skills.sh origin/main ``` ## Related - ADR 0011; Refs #2685; depends on #2723 ## Related - Continues autonomy stack after #2793; precedes setup-skill slice (#2725 / former #2804). - Supersedes closed #2796. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
) (#2813) Closes #2725 ## Summary Re-lands the autonomy setup-skill prerequisite-resolution slice (0.22.0) on main after #2809. Replaces #2804, which was auto-closed when its stack base was deleted on squash-merge. ## Related - Completes the autonomy stack after #2793 / #2809. - Supersedes closed #2804. --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
Warning Automated review did not complete — this is an infrastructure failure, not a review verdict. Treat any Claude comment on this PR (including a placeholder like "I'll analyze this and get back to you") as incomplete, not "no findings."
Re-run the job, or workflow_dispatch this workflow with the PR number, to retry the review. A new push re-triggers this lane only if the caller's |
Closes #2725
Summary
Phase 5 of the routine-capability-detection plan (ADR 0011): setup skill slice for prerequisite resolution —
checkreports verdicts with provenance;applyruns detect-diff-reconcile + prose proposals + human ratify into an additive binding section.Fix
SKILL.mdsection +context/prerequisite-resolution-slice.md.check-prerequisite-resolution.mjs— engine health-check wrapper over the Phase 4 resolver across declared surfaces.apply-prerequisite-resolution.mjs— propose (non-interactive assumptions) /--ratifywrite ofprerequisite_resolution(surface_refs+declarations, nosurfacesmap); never writes security binding; narrowing-only enablement advice; org-rung stops.0.22.0.Stacked on #2796 (
cursor/2724-prereq-resolver-14fb).Verification
Related