Repository navigation
Persistent, governed project intelligence for coding agents. 3.1.3 adds Project Intelligence queries and scoped verification evidence, and separates the machine lifecycle from the project lifecycle.
No breaking changes. No project migration is required. schemaVersion stays 3, apiVersion stays spectra/v2, and no command or flag is removed.
Upgrade notes
Native 3.1.2 users: 3.1.2 predates the managed-install ownership record and cannot be replaced in place by its old
spectra updatepath. Install 3.1.3 into a fresh managed location with the current installer (it prints the exact commands). Your project files are not modified and no project migration is required.
- Global npm:
npm install -g spectra-pack@latest - npx:
npx spectra-pack@latest ... - Existing projects: refresh generated files and agent guidance with
spectra doctor --fix, thenspectra adapters --agents <csv>. HandwrittenAGENTS.mdandCLAUDE.mdfiles are protected unless you pass--force. - From 3.1.3 on, a managed native install records ownership, so
spectra updatecan update it.
Highlights
Project Intelligence
spectra inspect <id>explains what governs a rule, requirement, scenario, invariant, module or test target, and whether it is verified.spectra inspect --changed,--base <ref>and--file <path>report the impact of changed files at module and canonical-source level. This is not a code graph.
Verification and gates
spectra verify --test-target <id>records scoped, local verification evidence. Subjects reportverified,failed,staleorunverified.spectra verify --explain <id>says why.spectra verify --gate review|releasereports whether the evidence lets a stage proceed.- Evidence is scoped: a passing test target supports the subjects that declare it. It does not prove a requirement everywhere.
Context and retrieval
spectra context --route-taskselects exact knowledge objects within the role budget, now also matches architectural invariants, and folds plural and-ing/-edvariants.- Retrieval stays deterministic, lexical and budget-aware. There is no semantic or vector search.
Lifecycle
spectra updatechanges the machine application only. It never reads or writes a project.spectra migrateis the explicit per-project step.spectra uninstallremoves the native application and leaves every project unchanged.- Derived caches rebuild on their own and never need a migration.
Agent guidance
- Generated adapters cover route-first context, business memory, Project Intelligence commands and the verification gates.
- Agent-facing JSON carries
contractVersion1 and structured errors.contextandrouteJSON no longer include absolute paths.
Fixes
- Adapters generated in new projects no longer omit the route-first and business-memory guidance.
spectra verify --test-targetfinds locally installed tools in the package'snode_modules/.bin.spectra knowledge promote|supersede|deprecateno longer matches a rule whose ID only starts with the requested ID.spectra verify --gaterefuses an unresolvable--base/--headref.
Documentation
README, CLI reference and website describe all 24 commands and the three lifecycles. The website diagrams are cleaner.
Full details: CHANGELOG.