# Stack decisions belong in the project plan

Hybrid's global agents define engineering responsibilities and quality requirements. They do not select a default application framework, database, ORM or cloud.

For a new application, the premium planners recommend a suitable stack and explain why. Before implementation, the approved plan contains the practical rules for using that stack. Research uses **both Context7 and web search with actual official documentation reads**, matched to the selected versions.

For an existing application, keep its stack. Replacing a framework/library or deviating from the existing or approved stack requires a concrete proposal and **explicit developer approval** before dependent edits or installs. Explain benefits/gains, alternatives, migration effort, compatibility/security risks and rollback. A reviewer pass, generic "continue" or permission to build a feature is not that approval. An explicit request for the exact change already supplies it.

## What the plan contains

Use a clearly identified **Stack implementation contract** section in the existing plan; equivalent prose is fine.

| Item | Required content |
| --- | --- |
| Decision | Selected technologies/versions, current installed versions, fit, alternatives and compatibility/deployment constraints. Distinguish latest stable from the selected version. |
| Research | Lookup date, Context7 library ID and actual returned version, official page URLs and the specific facts established. Record unavailable tools or version mismatches and authoritative fallback evidence honestly. |
| Implementation guidance | Relevant APIs and module ownership, supported patterns, version pitfalls, source citations and meaningful acceptance checks. Separate framework requirements from project choices. |
| Coverage | Rendering, routing, mutations, state/forms, validation, persistence, identity, failure/concurrency, runtime and tests as applicable. Do not invent services to fill headings. |
| Approval | For replacements/deviations, the specific developer-approved change and scope. Preserve existing choices while approval is pending. |
| Deferred checks | Owner, dependent operation, required evidence and failure/replan path. Installation/build checks follow scaffolding; foundational unsafe decisions cannot be deferred. |

Build saves the approved plan and supplies its path and relevant rules to each implementation specialist. Reviewers check evidence and code against that contract. A heading or collection of links does not prove research. Unchanged decisions reuse verified evidence; ordinary existing-pattern edits do not trigger another full-stack study.

## Documentation accuracy

Context7's documented workflow resolves a library before querying its documentation and supports version-qualified IDs. Verify the returned source/version rather than assuming the requested version is indexed. Cross-check material decisions with official version-specific documentation, release notes and compatibility information. See [Context7 MCP tools](https://context7.com/docs/resources/all-clients) and [Context7 API version guidance](https://context7.com/docs/api-guide).

If Context7 lacks a library or a tool is unavailable, record the attempted lookup and use authoritative documentation or bundled source/help as an explicit fallback. Do not fabricate a successful lookup. Resolve essential unknowns before dependent implementation, while continuing independent work. Research sends public technology names and generic API questions only; never private code, credentials or internal URLs.

## Enforcement boundary

This is an agent/reviewer instruction contract, delivered to the host, installed specialists and isolated reviewers. The existing checkpoint still enforces reviewer verdicts and unresolved findings. There is no new heading-count parser, automated claim of documentation verification, or retroactive approval reset. The harness does not independently prove that an agent read a source or that a quoted approval came from the developer; agents and reviewers must verify the actual evidence and authorization.

Framework-specific skill examples remain reference material for the chosen stack. The plugin's own Node/OpenTUI implementation and optional package-script verification adapters are implementation constraints of Hybrid, not instructions to build every application with those technologies.

On startup after a package update, configured standard profiles refresh package-managed agents, rules and skills with backups. Reviewer settings, plugin registration and task history are unchanged. User-customized files are preserved; **Run diagnostics → Managed instructions** lists files that need comparison with the new package. Custom settings-file profiles remain read-only and need their existing installation workflow to update assets.
