feat(plugins): add read-only lifecycle control plane - #44
Draft
phodal wants to merge 1 commit into
Draft
Conversation
Add typed status, plan, verify, and doctor flows across supported host surfaces, with scope-safe observations, fail-closed plans, and isolated home bindings. Split Pi persistent and session-only behavior and document the portable host contracts. Implements docs/specs/2026-07-31-better-harness-plugin-lifecycle.md. Validation covers npm test (1163/1163), the documentation link graph (6/6), pack verification (401 npm entries and 424 runtime zip entries), and isolated public CLI smoke checks. Co-authored-by: Codex (GPT 5.6 Sol) <codex@openai.com>
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.
Summary
plugin status,plugin plan,plugin verify, anddoctorflows across eight supported hosts and eleven host surfacesdocs/specs/2026-07-31-better-harness-plugin-lifecycle.mdWhy
Lifecycle evidence and mutation planning previously depended on provider-specific assumptions that could borrow discovery, scope, or installation state across surfaces. This change introduces a shared read-only control plane so callers can inspect and plan against explicit evidence without executing host mutations.
Impact
Users and automation can query normalized status, verification, doctor, and deterministic plan envelopes. Unknown, mixed, foreign, or unbound host state fails closed.
plugin applyremains intentionally unregistered, so Better Harness does not execute lifecycle mutations.Validation
npm test— 1163/1163 passednode --test test/doc-link-graph.test.mjs— 6/6 passednpm run pack:verify— 401 npm entries and 424 runtime zip entriesgit diff origin/main...HEAD --checkRisk and follow-up
The native help fixture is contract evidence rather than live cross-platform acceptance. Real Codex Desktop, Pi same-session, and Windows host smoke remain follow-up validation boundaries.