OMP Plan Kit v1.1.0 — advisor exit-gate
OMP Plan Kit v1.1.0 — advisor exit-gate
Advisor is now an economical exit-gate that runs only at plan handoff.
What changed
Economy
- Intermediate planning steps (todo updates, reads, scratch edits) spend 0 advisor tokens.
- Malformed payloads (bad slug, path traversal, missing plan file) are blocked as
PLAN_HANDOFF_*with 0 tokens. - The plan advisor runs strictly on
write xd://propose <slug>against the completed plan artifact.
Gate
REJECTverdict -> hard block[PLAN_ADVISOR_BLOCK] Советник отклонил план: <reason>before the OMP human-review overlay opens; the agent stays in plan mode with corrective feedback.APPROVEverdict -> handoff passes through to OMP core dispatch unchanged.- In-session SHA-256 cache: re-proposing an unchanged plan spends 0 additional tokens.
Technical
- Reworked
src/extension.tsaroundreviewProposedPlan()with a bounded prompt (redacted user objective + redacted plan excerpt) and nativecomplete()(maxTokens: 160,disableReasoning: true, per-session call cap3, timeout15s). Removed thetodo-as-trigger path and negative-scope regex heuristics. - Cleaned
src/extension.ts(removed tiny wrapper functions and the localisRecordguard). - Moved E2E suites from
scripts/totests/:e2e-programmer.mjs,e2e-advisor-contract.mjs,e2e-real-plan-handoff.mjs,e2e-advisor-live.mjs.scripts/now contains only install/uninstall helpers. - Added project rule
.omp/rules/tests.md(test discipline) and audit reportaudit-reports/plan-advisor-exit-gate-2026-09-03.md. - Updated
package.json,CHANGELOG.md,README.md,llms.txt.
Verification
All four suites pass; live suite executed on openai-codex/gpt-5.6-sol:
tests/e2e-programmer.mjs— 8 mutation cases, 3 profiles, stale-plan control.tests/e2e-advisor-contract.mjs— zero waste on syntax errors/todo, REJECT/APPROVE paths, bounded request shape, cache hits.tests/e2e-real-plan-handoff.mjs— real OMPdispatchResolutionDevice/resolveApprovedPlanproof: a rejected defective plan never reaches core, an approved clean plan opens the human review overlay.tests/e2e-advisor-live.mjs— live model rejected defective out-of-scope plan, approved a concrete in-scope plan with verification.
Install: omp plugin install github:stgmt/omp-plan-kit#v1.1.0
Profiles: node scripts/install-all-profiles.mjs
Evidence: audit-reports/plan-advisor-exit-gate-2026-09-03.md