Skip to content

OMP Plan Kit v1.1.0 — advisor exit-gate

Choose a tag to compare

@stgmt stgmt released this 02 Sep 22:50
· 26 commits to main since this release

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

  • REJECT verdict -> hard block [PLAN_ADVISOR_BLOCK] Советник отклонил план: <reason> before the OMP human-review overlay opens; the agent stays in plan mode with corrective feedback.
  • APPROVE verdict -> 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.ts around reviewProposedPlan() with a bounded prompt (redacted user objective + redacted plan excerpt) and native complete() (maxTokens: 160, disableReasoning: true, per-session call cap 3, timeout 15s). Removed the todo-as-trigger path and negative-scope regex heuristics.
  • Cleaned src/extension.ts (removed tiny wrapper functions and the local isRecord guard).
  • Moved E2E suites from scripts/ to tests/: 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 report audit-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 OMP dispatchResolutionDevice/resolveApprovedPlan proof: 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