diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml
index 6dad46555586bae92f0e7468a3fa627d4e5ac962..22cfc2fb9c6b3ec0b624f47d134c6239ff3cc378 100644
--- a/.github/workflows/validate.yml
+++ b/.github/workflows/validate.yml
@@ -16,8 +16,6 @@ jobs:
node-version: 24
- name: Set up pnpm
uses: pnpm/action-setup@v4
- with:
- version: 10
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Generate configuration and documentation artifacts
diff --git a/AGENTS.md b/AGENTS.md
deleted file mode 100644
index 812e0b44a82e26cc7585dd9f05c18a09af7125d2..0000000000000000000000000000000000000000
--- a/AGENTS.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-# Agents
-
-- **Research Agent** — Finds evidence and records sources relevant to a question.
-- **ML Agent** — Reviews model choices, evaluation needs, and model-specific constraints.
-- **Logic Agent** — Checks plans for feasibility, consistency, and contradictions.
-- **Knowledge Agent** — Retrieves and organizes project memory and research.
-- **Dependency Agent** — Identifies missing tools, permissions, libraries, data, or infrastructure.
-- **Delta Agent** — Compares current project state with a target or frontier.
-- **Evolution Agent** — Turns comparison results into sequenced improvement suggestions.
-- **Infrastructure Agent** — Plans runtime, storage, and environment requirements.
-- **Tool Execution Agent** — Coordinates approved tool calls through configured adapters.
-- **Governance Agent** — Applies policy checks and identifies human approval needs.
-- **Canonicalization Agent** — Turns verified outcomes into structured, reusable canon.
-- **Implementation Agent** — Plans approved implementation work.
diff --git a/API.md b/API.md
deleted file mode 100644
index 135cce0f52daac6ec1c118f9f0acfc9966cc504e..0000000000000000000000000000000000000000
--- a/API.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# API
-
-The local API provides health, state, and planning routes. Current routes include `GET /api/health`, `GET /api/state`, `POST /api/plans/draft`, and `POST /api/state/{projects|policies|plans|snapshots}`. Existing state routes remain on the compatibility `app_state` table while normalized repository migration proceeds.
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
deleted file mode 100644
index 2bc645d2f2232e3b19c50ce52be0e2e71f3bafef..0000000000000000000000000000000000000000
--- a/ARCHITECTURE.md
+++ /dev/null
@@ -1,55 +0,0 @@
-
-# Architecture
-
-ProjectOS 2.0 runs in **local** mode. Its runtime route is schema validation → bootstrap validation → fabrics and registries → council and MCP initialization → dashboard.
-
-## Decision flow
-
-1. **Question** — A person or connected system submits a question or requested outcome.
-2. **Operations Agent** — Coordinates intent analysis, routing, validation, and execution planning.
-3. **Determine Intent** — Classifies the request as research, implementation, infrastructure, evolution, or governance work.
-4. **Choose Council Template** — Selects a council template with the relevant specialists.
-5. **Assign Models** — Selects model providers and capabilities that match the task and trust requirements.
-6. **Assign Datasets** — Attaches project knowledge and datasets with source and permission context.
-7. **Assign Tools** — Selects tools required by the plan, subject to policy and permission checks.
-8. **Assign Workspace** — Binds the plan to a project workspace and runtime boundary.
-9. **Validate Through Logic** — Checks feasibility, consistency, assumptions, and contradictions before action.
-10. **Validate Through Governance** — Checks trust, policies, permissions, and approval requirements before action.
-11. **Execute** — Runs only actions that are available, authorized, and within the configured runtime.
-12. **Store Knowledge** — Records useful evidence, decisions, and outcomes with provenance.
-13. **Snapshot** — Captures the project state needed to reproduce or review the work.
-14. **Consolidate** — Merges compatible learning into organized project knowledge.
-15. **Update Canon** — Updates the canonical project record with reviewed, durable findings.
-
-## Project lifecycle
-
-| Stage | Purpose |
-| --- | --- |
-| Research | Discover the problem and evidence. |
-| Active | Coordinate work and decisions. |
-| Production | Deliver stable project outcomes. |
-| Evolving | Improve capabilities continuously. |
-| Frontier Comparison | Compare current project state with emerging approaches. |
-| Delta Analysis | Identify the gaps between current and target state. |
-| Missing Dependencies | Surface unavailable requirements. |
-| Evolution Suggestions | Propose the next improvements. |
-| Obsolete | Mark work that is ready for retirement. |
-| Snapshot | Preserve a durable project state. |
-| Archive | Store completed work and its history. |
-| Template | Make proven project patterns reusable. |
-
-## Fabrics
-
-| Fabric | Purpose |
-| --- | --- |
-| Identity | Resolves who is acting, what they own, and which roles apply. |
-| Trust | Evaluates sources, datasets, and models against workspace trust requirements. |
-| Research | Connects research sources and organizes evidence for project decisions. |
-| Knowledge | Organizes project memory into research, lessons, canon, frontier, and archive. |
-| Logic | Builds plans and checks feasibility, consistency, and competing claims. |
-| Delta | Compares current and target states to identify gaps and useful evolution. |
-| Dependency | Finds unmet runtime, access, model, tool, library, and dataset requirements. |
-| Governance | Applies policy gates, approval decisions, overrides, and audit recording. |
-| Execution | Dispatches approved work to the appropriate execution adapter. |
-| Storage | Defines local and enterprise storage for project artifacts and vectors. |
-| Canvas | Provides visual workspaces for diagrams, whiteboards, and knowledge views. |
diff --git a/ARCHIVE.md b/ARCHIVE.md
deleted file mode 100644
index 591bd9ee40ae302a798151dd6a8121d8b687adb4..0000000000000000000000000000000000000000
--- a/ARCHIVE.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Archive
-
-Archived resources are preserved in `archive_records` with a payload checksum, source snapshot, reason, and retention deadline. The configured archive retention is 7 years. Canon records are retained permanently.
diff --git a/BOOTSTRAP.md b/BOOTSTRAP.md
deleted file mode 100644
index 83ceb3058e5cff931680a211a0755c407772f2a9..0000000000000000000000000000000000000000
--- a/BOOTSTRAP.md
+++ /dev/null
@@ -1,8 +0,0 @@
-
-# Bootstrap
-
-The human-authored source of truth is `bootstrap.xml`. The schema engine validates it against `schemas/ProjectOS.xsd` and `schemas/ProjectOS.sch`, then generates runtime, registry, storage, documentation, snapshot, and release artifacts under `configs` plus the repository's `generated/` and `release/` directories.
-
-## Manifest sections
-
-Decision flow, lifecycle, fabrics, councils, agents, models, storage, governance, knowledge, permissions, workspaces, MCP server trust, naming conventions, language profiles, and documentation outputs are all declared in the bootstrap manifest.
diff --git a/CANON.md b/CANON.md
deleted file mode 100644
index 2571a6e15fefe492fd998d9d366e47dea376e013..0000000000000000000000000000000000000000
--- a/CANON.md
+++ /dev/null
@@ -1,6 +0,0 @@
-
-# Canon
-
-Canon stores verified, governed knowledge as versioned `canon_entries` and `canon_revisions`. Promotion records the source snapshot and preserves revision history. Permanent retention is required by the bootstrap policy.
-
-The promotion service commits the canon revision, Frontier status transition, and post-promotion snapshot together after Logic validation and Governance approval.
diff --git a/COUNCILS.md b/COUNCILS.md
deleted file mode 100644
index 554d08abda2744946f949e67368be218661b53bc..0000000000000000000000000000000000000000
--- a/COUNCILS.md
+++ /dev/null
@@ -1,38 +0,0 @@
-
-# Councils
-
-## Research Council
-
-Combines research and knowledge specialists to answer evidence questions.
-
-Members: Research Agent, Knowledge Agent, Trust review
-
-## Architecture Council
-
-Reviews boundaries, dependencies, and system-level trade-offs.
-
-Members: Logic Agent, Dependency Agent, Infrastructure Agent
-
-## Implementation Council
-
-Coordinates implementation from an approved plan through a reviewable change.
-
-Members: Implementation Agent, Logic Agent, Tool Execution Agent
-
-## Infrastructure Council
-
-Checks environments, storage, runtime, and deployment dependencies.
-
-Members: Infrastructure Agent, Dependency Agent, Governance Agent
-
-## Evolution Council
-
-Compares project state with the frontier and ranks improvement opportunities.
-
-Members: Delta Agent, Evolution Agent, Knowledge Agent
-
-## Governance Council
-
-Reviews policies, trust, approvals, and recorded exceptions.
-
-Members: Governance Agent, Trust validation, Approval engine
diff --git a/DATABASE.md b/DATABASE.md
deleted file mode 100644
index 410ee8d24a0fa189c2be1c3c51dadf99775bc5b0..0000000000000000000000000000000000000000
--- a/DATABASE.md
+++ /dev/null
@@ -1,8 +0,0 @@
-
-# Database
-
-Local storage: SQLite,sqlite-vec
-
-Enterprise storage: PostgreSQL,pgvector
-
-Normalized tables cover projects, events, snapshots, canon entries and revisions, frontier items and observations, archives, embeddings, dependency findings, delta runs and gaps, blockers, and governance reviews. The PostgreSQL schema includes pgvector HNSW cosine search; SQLite stores embedding arrays as JSON until sqlite-vec is installed.
diff --git a/DELTA.md b/DELTA.md
deleted file mode 100644
index 12b8cffda6ffb3a9a740748844be052312564430..0000000000000000000000000000000000000000
--- a/DELTA.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Delta
-
-Delta compares declared current and target requirement sets, persists each run in `delta_runs`, records missing values in `delta_gaps`, and links open dependency blockers through `delta_dependencies`. A run is complete only when the target has no gaps and no open blockers.
diff --git a/DEPENDENCY.md b/DEPENDENCY.md
deleted file mode 100644
index b5e88ec974a49d2841c45b117e049c5aa2ec967e..0000000000000000000000000000000000000000
--- a/DEPENDENCY.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Dependency
-
-Dependency Fabric records missing models, datasets, permissions, tools, and infrastructure in `dependency_findings`. Open findings are deduplicated by project, category, and name; they can be resolved or waived without erasing history. Current model routes: 5; workspace routes: 6.
diff --git a/FABRICS.md b/FABRICS.md
deleted file mode 100644
index 533854df3547b6f92e1d1828afb40c8824c90cc8..0000000000000000000000000000000000000000
--- a/FABRICS.md
+++ /dev/null
@@ -1,68 +0,0 @@
-
-# Fabrics
-
-## Identity
-
-Resolves who is acting, what they own, and which roles apply.
-
-Capabilities: Ownership graph, Role registry, LDAP, Entra, OAuth, and SAML connectors
-
-## Trust
-
-Evaluates sources, datasets, and models against workspace trust requirements.
-
-Capabilities: Source verification, Dataset and model verification, Trust scores
-
-## Research
-
-Connects research sources and organizes evidence for project decisions.
-
-Capabilities: Web and paper discovery, Documentation connectors, Research source attribution
-
-## Knowledge
-
-Organizes project memory into research, lessons, canon, frontier, and archive.
-
-Capabilities: Project memory, Canonical knowledge, Snapshots and archive
-
-## Logic
-
-Builds plans and checks feasibility, consistency, and competing claims.
-
-Capabilities: Intent analysis, Planning and validation, Consensus and contradictions
-
-## Delta
-
-Compares current and target states to identify gaps and useful evolution.
-
-Capabilities: Current and frontier state, Gap analysis, Evolution and obsolescence
-
-## Dependency
-
-Finds unmet runtime, access, model, tool, library, and dataset requirements.
-
-Capabilities: Missing permissions, Missing tools and models, Missing libraries, datasets, and infrastructure
-
-## Governance
-
-Applies policy gates, approval decisions, overrides, and audit recording.
-
-Capabilities: Policy registry, Approval queue, Audit history
-
-## Execution
-
-Dispatches approved work to the appropriate execution adapter.
-
-Capabilities: PowerShell, Python, and Node, Docker and Git, MCP tools
-
-## Storage
-
-Defines local and enterprise storage for project artifacts and vectors.
-
-Capabilities: SQLite and sqlite-vec, PostgreSQL and pgvector, Snapshots, consolidation, and archives
-
-## Canvas
-
-Provides visual workspaces for diagrams, whiteboards, and knowledge views.
-
-Capabilities: Whiteboard canvas, Diagram engine, Knowledge views
diff --git a/FRONTIER.md b/FRONTIER.md
deleted file mode 100644
index 77ac3d0a774bf9854ceee9b27f4a0fe5d773bb47..0000000000000000000000000000000000000000
--- a/FRONTIER.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Frontier
-
-The Frontier tracks research that has not yet been accepted into canon. Candidate records and observations are stored in `frontier_items` and `frontier_observations`; promotion requires Logic validation and Governance approval before changing status and creating a canon entry.
diff --git a/GOVERNANCE.md b/GOVERNANCE.md
deleted file mode 100644
index 6012bdf8f6ab6fc92652a108a5a1107c07734271..0000000000000000000000000000000000000000
--- a/GOVERNANCE.md
+++ /dev/null
@@ -1,20 +0,0 @@
-
-# Governance
-
-- **Policy Engine** — Evaluates plans against the active policy registry.
-- **Approval Engine** — Routes gated actions to the right reviewer.
-- **Trust Validation** — Checks identity, sources, datasets, and models.
-- **Override Engine** — Records scoped exceptions with justification.
-- **Audit Log** — Keeps an attributable record of decisions and actions.
-- **Policy Registry** — Maintains versioned workspace rules.
-
-Promotion and other governed actions create auditable records in `governance_reviews`; a pending or rejected review does not authorize execution or canon promotion.
-
-## Permission rules
-
-| ID | Resource | Action | Effect | Approval |
-| --- | --- | --- | --- | --- |
-| workspace-read | workspace | read | allow | false |
-| workspace-write | workspace | write | require-approval | true |
-| tool-execution | tools | execute | require-approval | true |
-| external-network | external-network | access | deny | true |
diff --git a/IDENTITY.md b/IDENTITY.md
deleted file mode 100644
index 11b0d0a021fdc18b1ee4a8edef242773c3e76f26..0000000000000000000000000000000000000000
--- a/IDENTITY.md
+++ /dev/null
@@ -1,6 +0,0 @@
-
-# Identity
-
-Resolves who is acting, what they own, and which roles apply.
-
-Identity remains an integration boundary; provider credentials and directory connectors are configured separately.
diff --git a/KNOWLEDGE.md b/KNOWLEDGE.md
deleted file mode 100644
index 2f3bef747d0b7a1862d4fc9d1e31188594c1b741..0000000000000000000000000000000000000000
--- a/KNOWLEDGE.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-# Knowledge
-
-- **Project memory** — Working context and decisions.
-- **Research** — Sources, findings, and evidence.
-- **Lessons** — Reusable outcomes and reflections.
-- **Canon** — The current trusted project record.
-- **Frontier** — Emerging ideas and state of the art.
-- **Snapshots** — Point-in-time project state.
-- **Archive** — Preserved retired work.
diff --git a/MCP.md b/MCP.md
deleted file mode 100644
index b5840e0f33befd922dc215403743e6e4e47986fb..0000000000000000000000000000000000000000
--- a/MCP.md
+++ /dev/null
@@ -1,29 +0,0 @@
-
-# MCP
-
-The registry separates adapters from profile membership and declares the authentication method for each server. Secrets are referenced by environment-variable name or an OS keyring profile; secret values are never generated into configuration or release files. GitHub's default OAuth flow requires browser approval rather than a saved PAT.
-
-## Server library
-
-| Entry | Adapter | Trust | Access | Authentication | Credential reference |
-| --- | --- | --- | --- | --- | --- |
-| filesystem | filesystem | High | read-only | none | None |
-| git | git | High | read-only | none | None |
-| github-readonly | github | Verified | read-only | oauth | None |
-| github-write | github | High | read-write | oauth | None |
-| postgres-readonly | postgres | Verified | read-only | keyring | PROJECTOS_POSTGRES_READ_PROFILE |
-| postgres-write | postgres | High | read-write | keyring | PROJECTOS_POSTGRES_WRITE_PROFILE |
-| fetch | fetch | Medium | read-only | none | None |
-| memory | memory | High | read-only | none | None |
-
-## Profiles
-
-| Profile | Enabled | Servers | Purpose |
-| --- | --- | --- | --- |
-| workspace | true | filesystem, memory | Workspace files and persistent MCP memory. |
-| research | true | fetch, github-readonly | Public web research and read-only GitHub context. |
-| implementation | true | filesystem, github-readonly | Workspace files and read-only GitHub context. |
-| database-readonly | true | postgres-readonly | Read-only PostgreSQL access using an OS keyring profile. |
-| database-write | false | postgres-write | Explicitly disabled write access; requires a separate least-privilege database role and approval policy. |
-
-The ProjectOS MCP Fabric validates credential references and connects selected profiles. GitHub and PostgreSQL write access are disabled by default.
diff --git a/MODELS.md b/MODELS.md
deleted file mode 100644
index 16984c3a275b6d9b131a5681839fa8612adfba85..0000000000000000000000000000000000000000
--- a/MODELS.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-# Models
-
-| Role | Provider |
-| --- | --- |
-| operations | omni |
-| research | sonar |
-| implementation | copilot |
-| ml | qwen |
-| logic | claude |
diff --git a/PROVIDERS.md b/PROVIDERS.md
deleted file mode 100644
index f9e9228f002cce4ef0ed98d04fd2784a140d15d8..0000000000000000000000000000000000000000
--- a/PROVIDERS.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-# Providers
-
-## Storage providers
-
-- SQLite
-- PostgreSQL
-
-## Model providers
-
-- omni
-- sonar
-- copilot
-- qwen
-- claude
diff --git a/README.md b/README.md
index be85a51187218f9f6a092ccc4a59bf8b5a35a5e2..4ad0e4e68a7902b946d69dd9feb9de2eb65bb3d0 100644
--- a/README.md
+++ b/README.md
@@ -72,3 +72,16 @@ The MCP Fabric loads the generated server and named-profile registries. The cura
Credentials are referenced by environment-variable name or OS keyring profile in `bootstrap.xml`; they are not copied into generated registries, docs, snapshots, or release bundles. GitHub defaults to browser OAuth with no user-managed token value; PostgreSQL passwords belong in the server's OS keyring profile (Windows Credential Manager, macOS Keychain, or Linux Secret Service). See `configs/mcp.credentials.example.env` and [docs/mcp-adapters.md](docs/mcp-adapters.md) for setup. Profile checks start each server, negotiate MCP over stdio, and list its tools. The database profile also connects the selected saved PostgreSQL profile. Missing prerequisites are reported by name without printing credential values.
The filesystem adapter confines access to the ProjectOS workspace by default. Windows has a documented junction race limitation in the upstream filesystem server, so keep the permitted root narrow and avoid granting access to paths writable by untrusted local processes. MCP write-capable tools require explicit approval through the library API; read-only profiles reject tools the server does not mark read-only.
+
+## Wallet service (`services/wallet`) — TEST mode only
+
+Personal-use wallet backend: double-entry ledger (integer minor units, every transaction sums to zero, idempotency keys), Stripe **test-mode** funding via Checkout or PaymentIntents with signature-verified webhooks (`/webhooks/stripe`), and payment routing that pays a QR-scanned invoice from wallet balance (`/invoices/pay`). Persistence is Supabase (`services/wallet/supabase/migrations`), keyed by `user_id` for later multi-user.
+
+Safety: the service refuses to start with `sk_live_`/non-test keys or any Apple Pay / private-relay env vars, rejects live-mode webhook events, and has no external payout path — invoice payments move value only inside the ledger (`merchant_payable`). Paying real merchants will require a licensed card-issuer integration.
+
+```bash
+cd services/wallet && cp .env.example .env # fill TEST values; WALLET_STORE=memory for no Supabase
+npm install && npm test && npm run dev
+```
+
+The root `Dockerfile` builds this service for a Hugging Face Docker Space on port 7860; set the env vars from `.env.example` as Space secrets.
diff --git a/RUNTIME.md b/RUNTIME.md
deleted file mode 100644
index 8f1cbe330426ff9cc10c2f60dc4b4746544616c6..0000000000000000000000000000000000000000
--- a/RUNTIME.md
+++ /dev/null
@@ -1,8 +0,0 @@
-
-# Runtime
-
-- Profile: Privileged
-- Snapshots: true
-- Automatic routing: true
-- Consolidation: true
-- Startup order: schema → bootstrap → fabrics → identity → trust → storage → knowledge → logic → governance → operations → agents → registries → council → mcp → desktop
diff --git a/SCHEMA.md b/SCHEMA.md
deleted file mode 100644
index d9a6f43535b5a632e34b984d54247bd3f6c6c4ef..0000000000000000000000000000000000000000
--- a/SCHEMA.md
+++ /dev/null
@@ -1,20 +0,0 @@
-
-# Schema
-
-## Validation inputs
-
-- XSD: `schemas/ProjectOS.xsd`
-- Schematron: `schemas/ProjectOS.sch`
-
-The XSD enforces manifest structure, typed values, positive dimensions and retention periods, and unique registry keys. Schematron enforces cross-section rules for storage provider dependencies, migration backups, canon retention, MCP registry completeness, and symbol alias collisions.
-
-## Canonical symbols
-
-| Canonical symbol | Aliases |
-| --- | --- |
-| ProjectRepository | IProjectRepository, ProjectRepo, ProjectStore |
-| CanonRepository | ICanonRepository, CanonRepo, CanonStore |
-| SnapshotRepository | ISnapshotRepository, SnapshotRepo, SnapshotStore |
-| FrontierRepository | IFrontierRepository, FrontierRepo, FrontierStore |
-| ArchiveRepository | IArchiveRepository, ArchiveRepo, ArchiveStore |
-| EmbeddingRepository | IEmbeddingRepository, EmbeddingRepo, EmbeddingStore |
diff --git a/SNAPSHOTS.md b/SNAPSHOTS.md
deleted file mode 100644
index e44a2e801fecba07392c04c4bcec0fb26a04f70d..0000000000000000000000000000000000000000
--- a/SNAPSHOTS.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Snapshots
-
-Snapshots capture project state, events, canon entries and revisions, frontier records and observations, archives, embeddings, dependency findings, delta runs and gaps, and governance reviews with a schema version and content checksum. The configured retention period is 90 days. Snapshot and item records are stored in `snapshots` and `snapshot_items`; the release snapshot manifest hashes bootstrap, runtime, and storage configuration.
diff --git a/STORAGE.md b/STORAGE.md
deleted file mode 100644
index 87d932b0c73daf2964ef90aa42e7185943b49a09..0000000000000000000000000000000000000000
--- a/STORAGE.md
+++ /dev/null
@@ -1,28 +0,0 @@
-
-# Storage
-
-## Providers
-
-- SQLite
-- PostgreSQL
-
-## Vector stores
-
-| Provider | Dimensions |
-| --- | --- |
-| sqlite-vec | 1536 |
-| pgvector | 1536 |
-
-## Retention
-
-- Snapshots: 90 days
-- Archives: 7 years
-- Canon retained permanently: yes
-
-## Migration policy
-
-- Automatic migration: enabled
-- Backup before migration: required
-- Validate after migration: enabled
-
-SQLite tables are declared in `packages/storage-fabric/sqlite/schema.sql`; PostgreSQL and pgvector tables are declared in `packages/storage-fabric/pgvector/schema.sql`.
diff --git a/TRUST.md b/TRUST.md
deleted file mode 100644
index bae518e687501b88be869209657ef6b3959955fb..0000000000000000000000000000000000000000
--- a/TRUST.md
+++ /dev/null
@@ -1,6 +0,0 @@
-
-# Trust
-
-Evaluates sources, datasets, and models against workspace trust requirements.
-
-Trust checks are evaluated before governed execution and knowledge promotion.
diff --git a/WORKSPACES.md b/WORKSPACES.md
deleted file mode 100644
index fac28d1c6694b59c70f8069ff86f19b727cc58ce..0000000000000000000000000000000000000000
--- a/WORKSPACES.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-# Workspaces
-
-| Role | Workspace |
-| --- | --- |
-| research | VSCode |
-| implementation | Zed |
-| ml | PyCharm |
-| logic | IntelliJ |
-| database | DataGrip |
-| canvas | HFSpace |
diff --git a/agents.generated.json b/agents.generated.json
deleted file mode 100644
index 8dfae341c52028c51cb9835faba60bd3157931a6..0000000000000000000000000000000000000000
--- a/agents.generated.json
+++ /dev/null
@@ -1,62 +0,0 @@
-[
- {
- "name": "Research Agent",
- "description": "Finds evidence and records sources relevant to a question.",
- "capabilities": []
- },
- {
- "name": "ML Agent",
- "description": "Reviews model choices, evaluation needs, and model-specific constraints.",
- "capabilities": []
- },
- {
- "name": "Logic Agent",
- "description": "Checks plans for feasibility, consistency, and contradictions.",
- "capabilities": []
- },
- {
- "name": "Knowledge Agent",
- "description": "Retrieves and organizes project memory and research.",
- "capabilities": []
- },
- {
- "name": "Dependency Agent",
- "description": "Identifies missing tools, permissions, libraries, data, or infrastructure.",
- "capabilities": []
- },
- {
- "name": "Delta Agent",
- "description": "Compares current project state with a target or frontier.",
- "capabilities": []
- },
- {
- "name": "Evolution Agent",
- "description": "Turns comparison results into sequenced improvement suggestions.",
- "capabilities": []
- },
- {
- "name": "Infrastructure Agent",
- "description": "Plans runtime, storage, and environment requirements.",
- "capabilities": []
- },
- {
- "name": "Tool Execution Agent",
- "description": "Coordinates approved tool calls through configured adapters.",
- "capabilities": []
- },
- {
- "name": "Governance Agent",
- "description": "Applies policy checks and identifies human approval needs.",
- "capabilities": []
- },
- {
- "name": "Canonicalization Agent",
- "description": "Turns verified outcomes into structured, reusable canon.",
- "capabilities": []
- },
- {
- "name": "Implementation Agent",
- "description": "Plans approved implementation work.",
- "capabilities": []
- }
-]
diff --git a/agents.json b/agents.json
deleted file mode 100644
index 8dfae341c52028c51cb9835faba60bd3157931a6..0000000000000000000000000000000000000000
--- a/agents.json
+++ /dev/null
@@ -1,62 +0,0 @@
-[
- {
- "name": "Research Agent",
- "description": "Finds evidence and records sources relevant to a question.",
- "capabilities": []
- },
- {
- "name": "ML Agent",
- "description": "Reviews model choices, evaluation needs, and model-specific constraints.",
- "capabilities": []
- },
- {
- "name": "Logic Agent",
- "description": "Checks plans for feasibility, consistency, and contradictions.",
- "capabilities": []
- },
- {
- "name": "Knowledge Agent",
- "description": "Retrieves and organizes project memory and research.",
- "capabilities": []
- },
- {
- "name": "Dependency Agent",
- "description": "Identifies missing tools, permissions, libraries, data, or infrastructure.",
- "capabilities": []
- },
- {
- "name": "Delta Agent",
- "description": "Compares current project state with a target or frontier.",
- "capabilities": []
- },
- {
- "name": "Evolution Agent",
- "description": "Turns comparison results into sequenced improvement suggestions.",
- "capabilities": []
- },
- {
- "name": "Infrastructure Agent",
- "description": "Plans runtime, storage, and environment requirements.",
- "capabilities": []
- },
- {
- "name": "Tool Execution Agent",
- "description": "Coordinates approved tool calls through configured adapters.",
- "capabilities": []
- },
- {
- "name": "Governance Agent",
- "description": "Applies policy checks and identifies human approval needs.",
- "capabilities": []
- },
- {
- "name": "Canonicalization Agent",
- "description": "Turns verified outcomes into structured, reusable canon.",
- "capabilities": []
- },
- {
- "name": "Implementation Agent",
- "description": "Plans approved implementation work.",
- "capabilities": []
- }
-]
diff --git a/archive/projectos-extras-2026-11-01.zip b/archive/projectos-extras-2026-11-01.zip
deleted file mode 100644
index 2d1df3bc85436572eba00f9b50c8c01559fa95a5..0000000000000000000000000000000000000000
--- a/archive/projectos-extras-2026-11-01.zip
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:a921f44fecb2e0515199fae841c10bd14eccd0d2ec60aa133be259d02cbbfdf8
-size 46948683
diff --git a/bootstrap-projectos.ps1 b/bootstrap-projectos.ps1
deleted file mode 100644
index 903bf3fddb76d93450f271e943e9c99b20561e45..0000000000000000000000000000000000000000
--- a/bootstrap-projectos.ps1
+++ /dev/null
@@ -1,48 +0,0 @@
-$ErrorActionPreference = 'Stop'
-
-Write-Host ''
-Write-Host 'ProjectOS Bootstrap' -ForegroundColor Cyan
-Write-Host ''
-
-$projectRoot = Split-Path -Parent $PSScriptRoot
-Set-Location $projectRoot
-
-function Require-Command {
- param([Parameter(Mandatory = $true)][string]$Name)
- if (-not (Get-Command $Name -ErrorAction SilentlyContinue)) {
- throw "$Name is missing. Install it and run bootstrap again."
- }
-}
-
-Require-Command git
-Require-Command node
-
-$nodeVersion = [version](node -p "process.versions.node")
-if ($nodeVersion -lt [version]'22.5.0') {
- throw "Node.js 22.5 or later is required. Found $nodeVersion."
-}
-
-if (-not (Get-Command pnpm -ErrorAction SilentlyContinue)) {
- Require-Command npm
- npm install --global pnpm@10
-}
-
-New-Item -ItemType Directory -Path (Join-Path $projectRoot 'configs') -Force | Out-Null
-if (-not (Test-Path (Join-Path $projectRoot 'bootstrap.xml'))) {
- Copy-Item -LiteralPath (Join-Path $projectRoot 'defaults\bootstrap.xml') -Destination (Join-Path $projectRoot 'bootstrap.xml')
- Write-Host 'Created default bootstrap.xml'
-}
-
-pnpm install
-if ($LASTEXITCODE -ne 0) {
- throw 'pnpm install failed.'
-}
-
-pnpm generate
-if ($LASTEXITCODE -ne 0) {
- throw 'ProjectOS manifest validation or configuration generation failed.'
-}
-
-Write-Host ''
-Write-Host 'Bootstrap Complete' -ForegroundColor Green
-Write-Host 'Generated configuration is ready. Start ProjectOS with: pnpm dev'
diff --git a/docs/AGENTS.md b/docs/AGENTS.md
deleted file mode 100644
index 812e0b44a82e26cc7585dd9f05c18a09af7125d2..0000000000000000000000000000000000000000
--- a/docs/AGENTS.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-# Agents
-
-- **Research Agent** — Finds evidence and records sources relevant to a question.
-- **ML Agent** — Reviews model choices, evaluation needs, and model-specific constraints.
-- **Logic Agent** — Checks plans for feasibility, consistency, and contradictions.
-- **Knowledge Agent** — Retrieves and organizes project memory and research.
-- **Dependency Agent** — Identifies missing tools, permissions, libraries, data, or infrastructure.
-- **Delta Agent** — Compares current project state with a target or frontier.
-- **Evolution Agent** — Turns comparison results into sequenced improvement suggestions.
-- **Infrastructure Agent** — Plans runtime, storage, and environment requirements.
-- **Tool Execution Agent** — Coordinates approved tool calls through configured adapters.
-- **Governance Agent** — Applies policy checks and identifies human approval needs.
-- **Canonicalization Agent** — Turns verified outcomes into structured, reusable canon.
-- **Implementation Agent** — Plans approved implementation work.
diff --git a/docs/API.md b/docs/API.md
deleted file mode 100644
index 135cce0f52daac6ec1c118f9f0acfc9966cc504e..0000000000000000000000000000000000000000
--- a/docs/API.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# API
-
-The local API provides health, state, and planning routes. Current routes include `GET /api/health`, `GET /api/state`, `POST /api/plans/draft`, and `POST /api/state/{projects|policies|plans|snapshots}`. Existing state routes remain on the compatibility `app_state` table while normalized repository migration proceeds.
diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md
deleted file mode 100644
index 2bc645d2f2232e3b19c50ce52be0e2e71f3bafef..0000000000000000000000000000000000000000
--- a/docs/ARCHITECTURE.md
+++ /dev/null
@@ -1,55 +0,0 @@
-
-# Architecture
-
-ProjectOS 2.0 runs in **local** mode. Its runtime route is schema validation → bootstrap validation → fabrics and registries → council and MCP initialization → dashboard.
-
-## Decision flow
-
-1. **Question** — A person or connected system submits a question or requested outcome.
-2. **Operations Agent** — Coordinates intent analysis, routing, validation, and execution planning.
-3. **Determine Intent** — Classifies the request as research, implementation, infrastructure, evolution, or governance work.
-4. **Choose Council Template** — Selects a council template with the relevant specialists.
-5. **Assign Models** — Selects model providers and capabilities that match the task and trust requirements.
-6. **Assign Datasets** — Attaches project knowledge and datasets with source and permission context.
-7. **Assign Tools** — Selects tools required by the plan, subject to policy and permission checks.
-8. **Assign Workspace** — Binds the plan to a project workspace and runtime boundary.
-9. **Validate Through Logic** — Checks feasibility, consistency, assumptions, and contradictions before action.
-10. **Validate Through Governance** — Checks trust, policies, permissions, and approval requirements before action.
-11. **Execute** — Runs only actions that are available, authorized, and within the configured runtime.
-12. **Store Knowledge** — Records useful evidence, decisions, and outcomes with provenance.
-13. **Snapshot** — Captures the project state needed to reproduce or review the work.
-14. **Consolidate** — Merges compatible learning into organized project knowledge.
-15. **Update Canon** — Updates the canonical project record with reviewed, durable findings.
-
-## Project lifecycle
-
-| Stage | Purpose |
-| --- | --- |
-| Research | Discover the problem and evidence. |
-| Active | Coordinate work and decisions. |
-| Production | Deliver stable project outcomes. |
-| Evolving | Improve capabilities continuously. |
-| Frontier Comparison | Compare current project state with emerging approaches. |
-| Delta Analysis | Identify the gaps between current and target state. |
-| Missing Dependencies | Surface unavailable requirements. |
-| Evolution Suggestions | Propose the next improvements. |
-| Obsolete | Mark work that is ready for retirement. |
-| Snapshot | Preserve a durable project state. |
-| Archive | Store completed work and its history. |
-| Template | Make proven project patterns reusable. |
-
-## Fabrics
-
-| Fabric | Purpose |
-| --- | --- |
-| Identity | Resolves who is acting, what they own, and which roles apply. |
-| Trust | Evaluates sources, datasets, and models against workspace trust requirements. |
-| Research | Connects research sources and organizes evidence for project decisions. |
-| Knowledge | Organizes project memory into research, lessons, canon, frontier, and archive. |
-| Logic | Builds plans and checks feasibility, consistency, and competing claims. |
-| Delta | Compares current and target states to identify gaps and useful evolution. |
-| Dependency | Finds unmet runtime, access, model, tool, library, and dataset requirements. |
-| Governance | Applies policy gates, approval decisions, overrides, and audit recording. |
-| Execution | Dispatches approved work to the appropriate execution adapter. |
-| Storage | Defines local and enterprise storage for project artifacts and vectors. |
-| Canvas | Provides visual workspaces for diagrams, whiteboards, and knowledge views. |
diff --git a/docs/ARCHIVE.md b/docs/ARCHIVE.md
deleted file mode 100644
index 591bd9ee40ae302a798151dd6a8121d8b687adb4..0000000000000000000000000000000000000000
--- a/docs/ARCHIVE.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Archive
-
-Archived resources are preserved in `archive_records` with a payload checksum, source snapshot, reason, and retention deadline. The configured archive retention is 7 years. Canon records are retained permanently.
diff --git a/docs/BOOTSTRAP.md b/docs/BOOTSTRAP.md
deleted file mode 100644
index 83ceb3058e5cff931680a211a0755c407772f2a9..0000000000000000000000000000000000000000
--- a/docs/BOOTSTRAP.md
+++ /dev/null
@@ -1,8 +0,0 @@
-
-# Bootstrap
-
-The human-authored source of truth is `bootstrap.xml`. The schema engine validates it against `schemas/ProjectOS.xsd` and `schemas/ProjectOS.sch`, then generates runtime, registry, storage, documentation, snapshot, and release artifacts under `configs` plus the repository's `generated/` and `release/` directories.
-
-## Manifest sections
-
-Decision flow, lifecycle, fabrics, councils, agents, models, storage, governance, knowledge, permissions, workspaces, MCP server trust, naming conventions, language profiles, and documentation outputs are all declared in the bootstrap manifest.
diff --git a/docs/CANON.md b/docs/CANON.md
deleted file mode 100644
index 2571a6e15fefe492fd998d9d366e47dea376e013..0000000000000000000000000000000000000000
--- a/docs/CANON.md
+++ /dev/null
@@ -1,6 +0,0 @@
-
-# Canon
-
-Canon stores verified, governed knowledge as versioned `canon_entries` and `canon_revisions`. Promotion records the source snapshot and preserves revision history. Permanent retention is required by the bootstrap policy.
-
-The promotion service commits the canon revision, Frontier status transition, and post-promotion snapshot together after Logic validation and Governance approval.
diff --git a/docs/COUNCILS.md b/docs/COUNCILS.md
deleted file mode 100644
index 554d08abda2744946f949e67368be218661b53bc..0000000000000000000000000000000000000000
--- a/docs/COUNCILS.md
+++ /dev/null
@@ -1,38 +0,0 @@
-
-# Councils
-
-## Research Council
-
-Combines research and knowledge specialists to answer evidence questions.
-
-Members: Research Agent, Knowledge Agent, Trust review
-
-## Architecture Council
-
-Reviews boundaries, dependencies, and system-level trade-offs.
-
-Members: Logic Agent, Dependency Agent, Infrastructure Agent
-
-## Implementation Council
-
-Coordinates implementation from an approved plan through a reviewable change.
-
-Members: Implementation Agent, Logic Agent, Tool Execution Agent
-
-## Infrastructure Council
-
-Checks environments, storage, runtime, and deployment dependencies.
-
-Members: Infrastructure Agent, Dependency Agent, Governance Agent
-
-## Evolution Council
-
-Compares project state with the frontier and ranks improvement opportunities.
-
-Members: Delta Agent, Evolution Agent, Knowledge Agent
-
-## Governance Council
-
-Reviews policies, trust, approvals, and recorded exceptions.
-
-Members: Governance Agent, Trust validation, Approval engine
diff --git a/docs/DATABASE.md b/docs/DATABASE.md
deleted file mode 100644
index 410ee8d24a0fa189c2be1c3c51dadf99775bc5b0..0000000000000000000000000000000000000000
--- a/docs/DATABASE.md
+++ /dev/null
@@ -1,8 +0,0 @@
-
-# Database
-
-Local storage: SQLite,sqlite-vec
-
-Enterprise storage: PostgreSQL,pgvector
-
-Normalized tables cover projects, events, snapshots, canon entries and revisions, frontier items and observations, archives, embeddings, dependency findings, delta runs and gaps, blockers, and governance reviews. The PostgreSQL schema includes pgvector HNSW cosine search; SQLite stores embedding arrays as JSON until sqlite-vec is installed.
diff --git a/docs/DELTA.md b/docs/DELTA.md
deleted file mode 100644
index 12b8cffda6ffb3a9a740748844be052312564430..0000000000000000000000000000000000000000
--- a/docs/DELTA.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Delta
-
-Delta compares declared current and target requirement sets, persists each run in `delta_runs`, records missing values in `delta_gaps`, and links open dependency blockers through `delta_dependencies`. A run is complete only when the target has no gaps and no open blockers.
diff --git a/docs/DEPENDENCY.md b/docs/DEPENDENCY.md
deleted file mode 100644
index b5e88ec974a49d2841c45b117e049c5aa2ec967e..0000000000000000000000000000000000000000
--- a/docs/DEPENDENCY.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Dependency
-
-Dependency Fabric records missing models, datasets, permissions, tools, and infrastructure in `dependency_findings`. Open findings are deduplicated by project, category, and name; they can be resolved or waived without erasing history. Current model routes: 5; workspace routes: 6.
diff --git a/docs/FABRICS.md b/docs/FABRICS.md
deleted file mode 100644
index 533854df3547b6f92e1d1828afb40c8824c90cc8..0000000000000000000000000000000000000000
--- a/docs/FABRICS.md
+++ /dev/null
@@ -1,68 +0,0 @@
-
-# Fabrics
-
-## Identity
-
-Resolves who is acting, what they own, and which roles apply.
-
-Capabilities: Ownership graph, Role registry, LDAP, Entra, OAuth, and SAML connectors
-
-## Trust
-
-Evaluates sources, datasets, and models against workspace trust requirements.
-
-Capabilities: Source verification, Dataset and model verification, Trust scores
-
-## Research
-
-Connects research sources and organizes evidence for project decisions.
-
-Capabilities: Web and paper discovery, Documentation connectors, Research source attribution
-
-## Knowledge
-
-Organizes project memory into research, lessons, canon, frontier, and archive.
-
-Capabilities: Project memory, Canonical knowledge, Snapshots and archive
-
-## Logic
-
-Builds plans and checks feasibility, consistency, and competing claims.
-
-Capabilities: Intent analysis, Planning and validation, Consensus and contradictions
-
-## Delta
-
-Compares current and target states to identify gaps and useful evolution.
-
-Capabilities: Current and frontier state, Gap analysis, Evolution and obsolescence
-
-## Dependency
-
-Finds unmet runtime, access, model, tool, library, and dataset requirements.
-
-Capabilities: Missing permissions, Missing tools and models, Missing libraries, datasets, and infrastructure
-
-## Governance
-
-Applies policy gates, approval decisions, overrides, and audit recording.
-
-Capabilities: Policy registry, Approval queue, Audit history
-
-## Execution
-
-Dispatches approved work to the appropriate execution adapter.
-
-Capabilities: PowerShell, Python, and Node, Docker and Git, MCP tools
-
-## Storage
-
-Defines local and enterprise storage for project artifacts and vectors.
-
-Capabilities: SQLite and sqlite-vec, PostgreSQL and pgvector, Snapshots, consolidation, and archives
-
-## Canvas
-
-Provides visual workspaces for diagrams, whiteboards, and knowledge views.
-
-Capabilities: Whiteboard canvas, Diagram engine, Knowledge views
diff --git a/docs/FRONTIER.md b/docs/FRONTIER.md
deleted file mode 100644
index 77ac3d0a774bf9854ceee9b27f4a0fe5d773bb47..0000000000000000000000000000000000000000
--- a/docs/FRONTIER.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Frontier
-
-The Frontier tracks research that has not yet been accepted into canon. Candidate records and observations are stored in `frontier_items` and `frontier_observations`; promotion requires Logic validation and Governance approval before changing status and creating a canon entry.
diff --git a/docs/GOVERNANCE.md b/docs/GOVERNANCE.md
deleted file mode 100644
index 6012bdf8f6ab6fc92652a108a5a1107c07734271..0000000000000000000000000000000000000000
--- a/docs/GOVERNANCE.md
+++ /dev/null
@@ -1,20 +0,0 @@
-
-# Governance
-
-- **Policy Engine** — Evaluates plans against the active policy registry.
-- **Approval Engine** — Routes gated actions to the right reviewer.
-- **Trust Validation** — Checks identity, sources, datasets, and models.
-- **Override Engine** — Records scoped exceptions with justification.
-- **Audit Log** — Keeps an attributable record of decisions and actions.
-- **Policy Registry** — Maintains versioned workspace rules.
-
-Promotion and other governed actions create auditable records in `governance_reviews`; a pending or rejected review does not authorize execution or canon promotion.
-
-## Permission rules
-
-| ID | Resource | Action | Effect | Approval |
-| --- | --- | --- | --- | --- |
-| workspace-read | workspace | read | allow | false |
-| workspace-write | workspace | write | require-approval | true |
-| tool-execution | tools | execute | require-approval | true |
-| external-network | external-network | access | deny | true |
diff --git a/docs/IDENTITY.md b/docs/IDENTITY.md
deleted file mode 100644
index 11b0d0a021fdc18b1ee4a8edef242773c3e76f26..0000000000000000000000000000000000000000
--- a/docs/IDENTITY.md
+++ /dev/null
@@ -1,6 +0,0 @@
-
-# Identity
-
-Resolves who is acting, what they own, and which roles apply.
-
-Identity remains an integration boundary; provider credentials and directory connectors are configured separately.
diff --git a/docs/KNOWLEDGE.md b/docs/KNOWLEDGE.md
deleted file mode 100644
index 2f3bef747d0b7a1862d4fc9d1e31188594c1b741..0000000000000000000000000000000000000000
--- a/docs/KNOWLEDGE.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-# Knowledge
-
-- **Project memory** — Working context and decisions.
-- **Research** — Sources, findings, and evidence.
-- **Lessons** — Reusable outcomes and reflections.
-- **Canon** — The current trusted project record.
-- **Frontier** — Emerging ideas and state of the art.
-- **Snapshots** — Point-in-time project state.
-- **Archive** — Preserved retired work.
diff --git a/docs/MCP.md b/docs/MCP.md
deleted file mode 100644
index b5840e0f33befd922dc215403743e6e4e47986fb..0000000000000000000000000000000000000000
--- a/docs/MCP.md
+++ /dev/null
@@ -1,29 +0,0 @@
-
-# MCP
-
-The registry separates adapters from profile membership and declares the authentication method for each server. Secrets are referenced by environment-variable name or an OS keyring profile; secret values are never generated into configuration or release files. GitHub's default OAuth flow requires browser approval rather than a saved PAT.
-
-## Server library
-
-| Entry | Adapter | Trust | Access | Authentication | Credential reference |
-| --- | --- | --- | --- | --- | --- |
-| filesystem | filesystem | High | read-only | none | None |
-| git | git | High | read-only | none | None |
-| github-readonly | github | Verified | read-only | oauth | None |
-| github-write | github | High | read-write | oauth | None |
-| postgres-readonly | postgres | Verified | read-only | keyring | PROJECTOS_POSTGRES_READ_PROFILE |
-| postgres-write | postgres | High | read-write | keyring | PROJECTOS_POSTGRES_WRITE_PROFILE |
-| fetch | fetch | Medium | read-only | none | None |
-| memory | memory | High | read-only | none | None |
-
-## Profiles
-
-| Profile | Enabled | Servers | Purpose |
-| --- | --- | --- | --- |
-| workspace | true | filesystem, memory | Workspace files and persistent MCP memory. |
-| research | true | fetch, github-readonly | Public web research and read-only GitHub context. |
-| implementation | true | filesystem, github-readonly | Workspace files and read-only GitHub context. |
-| database-readonly | true | postgres-readonly | Read-only PostgreSQL access using an OS keyring profile. |
-| database-write | false | postgres-write | Explicitly disabled write access; requires a separate least-privilege database role and approval policy. |
-
-The ProjectOS MCP Fabric validates credential references and connects selected profiles. GitHub and PostgreSQL write access are disabled by default.
diff --git a/docs/MODELS.md b/docs/MODELS.md
deleted file mode 100644
index 16984c3a275b6d9b131a5681839fa8612adfba85..0000000000000000000000000000000000000000
--- a/docs/MODELS.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-# Models
-
-| Role | Provider |
-| --- | --- |
-| operations | omni |
-| research | sonar |
-| implementation | copilot |
-| ml | qwen |
-| logic | claude |
diff --git a/docs/PROVIDERS.md b/docs/PROVIDERS.md
deleted file mode 100644
index f9e9228f002cce4ef0ed98d04fd2784a140d15d8..0000000000000000000000000000000000000000
--- a/docs/PROVIDERS.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-# Providers
-
-## Storage providers
-
-- SQLite
-- PostgreSQL
-
-## Model providers
-
-- omni
-- sonar
-- copilot
-- qwen
-- claude
diff --git a/docs/RUNTIME.md b/docs/RUNTIME.md
deleted file mode 100644
index 8f1cbe330426ff9cc10c2f60dc4b4746544616c6..0000000000000000000000000000000000000000
--- a/docs/RUNTIME.md
+++ /dev/null
@@ -1,8 +0,0 @@
-
-# Runtime
-
-- Profile: Privileged
-- Snapshots: true
-- Automatic routing: true
-- Consolidation: true
-- Startup order: schema → bootstrap → fabrics → identity → trust → storage → knowledge → logic → governance → operations → agents → registries → council → mcp → desktop
diff --git a/docs/SCHEMA.md b/docs/SCHEMA.md
deleted file mode 100644
index d9a6f43535b5a632e34b984d54247bd3f6c6c4ef..0000000000000000000000000000000000000000
--- a/docs/SCHEMA.md
+++ /dev/null
@@ -1,20 +0,0 @@
-
-# Schema
-
-## Validation inputs
-
-- XSD: `schemas/ProjectOS.xsd`
-- Schematron: `schemas/ProjectOS.sch`
-
-The XSD enforces manifest structure, typed values, positive dimensions and retention periods, and unique registry keys. Schematron enforces cross-section rules for storage provider dependencies, migration backups, canon retention, MCP registry completeness, and symbol alias collisions.
-
-## Canonical symbols
-
-| Canonical symbol | Aliases |
-| --- | --- |
-| ProjectRepository | IProjectRepository, ProjectRepo, ProjectStore |
-| CanonRepository | ICanonRepository, CanonRepo, CanonStore |
-| SnapshotRepository | ISnapshotRepository, SnapshotRepo, SnapshotStore |
-| FrontierRepository | IFrontierRepository, FrontierRepo, FrontierStore |
-| ArchiveRepository | IArchiveRepository, ArchiveRepo, ArchiveStore |
-| EmbeddingRepository | IEmbeddingRepository, EmbeddingRepo, EmbeddingStore |
diff --git a/docs/SNAPSHOTS.md b/docs/SNAPSHOTS.md
deleted file mode 100644
index e44a2e801fecba07392c04c4bcec0fb26a04f70d..0000000000000000000000000000000000000000
--- a/docs/SNAPSHOTS.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Snapshots
-
-Snapshots capture project state, events, canon entries and revisions, frontier records and observations, archives, embeddings, dependency findings, delta runs and gaps, and governance reviews with a schema version and content checksum. The configured retention period is 90 days. Snapshot and item records are stored in `snapshots` and `snapshot_items`; the release snapshot manifest hashes bootstrap, runtime, and storage configuration.
diff --git a/docs/STORAGE.md b/docs/STORAGE.md
deleted file mode 100644
index 87d932b0c73daf2964ef90aa42e7185943b49a09..0000000000000000000000000000000000000000
--- a/docs/STORAGE.md
+++ /dev/null
@@ -1,28 +0,0 @@
-
-# Storage
-
-## Providers
-
-- SQLite
-- PostgreSQL
-
-## Vector stores
-
-| Provider | Dimensions |
-| --- | --- |
-| sqlite-vec | 1536 |
-| pgvector | 1536 |
-
-## Retention
-
-- Snapshots: 90 days
-- Archives: 7 years
-- Canon retained permanently: yes
-
-## Migration policy
-
-- Automatic migration: enabled
-- Backup before migration: required
-- Validate after migration: enabled
-
-SQLite tables are declared in `packages/storage-fabric/sqlite/schema.sql`; PostgreSQL and pgvector tables are declared in `packages/storage-fabric/pgvector/schema.sql`.
diff --git a/docs/TRUST.md b/docs/TRUST.md
deleted file mode 100644
index bae518e687501b88be869209657ef6b3959955fb..0000000000000000000000000000000000000000
--- a/docs/TRUST.md
+++ /dev/null
@@ -1,6 +0,0 @@
-
-# Trust
-
-Evaluates sources, datasets, and models against workspace trust requirements.
-
-Trust checks are evaluated before governed execution and knowledge promotion.
diff --git a/docs/WORKSPACES.md b/docs/WORKSPACES.md
deleted file mode 100644
index fac28d1c6694b59c70f8069ff86f19b727cc58ce..0000000000000000000000000000000000000000
--- a/docs/WORKSPACES.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-# Workspaces
-
-| Role | Workspace |
-| --- | --- |
-| research | VSCode |
-| implementation | Zed |
-| ml | PyCharm |
-| logic | IntelliJ |
-| database | DataGrip |
-| canvas | HFSpace |
diff --git a/generated-configs/registries/agents.json b/generated-configs/registries/agents.json
deleted file mode 100644
index 8dfae341c52028c51cb9835faba60bd3157931a6..0000000000000000000000000000000000000000
--- a/generated-configs/registries/agents.json
+++ /dev/null
@@ -1,62 +0,0 @@
-[
- {
- "name": "Research Agent",
- "description": "Finds evidence and records sources relevant to a question.",
- "capabilities": []
- },
- {
- "name": "ML Agent",
- "description": "Reviews model choices, evaluation needs, and model-specific constraints.",
- "capabilities": []
- },
- {
- "name": "Logic Agent",
- "description": "Checks plans for feasibility, consistency, and contradictions.",
- "capabilities": []
- },
- {
- "name": "Knowledge Agent",
- "description": "Retrieves and organizes project memory and research.",
- "capabilities": []
- },
- {
- "name": "Dependency Agent",
- "description": "Identifies missing tools, permissions, libraries, data, or infrastructure.",
- "capabilities": []
- },
- {
- "name": "Delta Agent",
- "description": "Compares current project state with a target or frontier.",
- "capabilities": []
- },
- {
- "name": "Evolution Agent",
- "description": "Turns comparison results into sequenced improvement suggestions.",
- "capabilities": []
- },
- {
- "name": "Infrastructure Agent",
- "description": "Plans runtime, storage, and environment requirements.",
- "capabilities": []
- },
- {
- "name": "Tool Execution Agent",
- "description": "Coordinates approved tool calls through configured adapters.",
- "capabilities": []
- },
- {
- "name": "Governance Agent",
- "description": "Applies policy checks and identifies human approval needs.",
- "capabilities": []
- },
- {
- "name": "Canonicalization Agent",
- "description": "Turns verified outcomes into structured, reusable canon.",
- "capabilities": []
- },
- {
- "name": "Implementation Agent",
- "description": "Plans approved implementation work.",
- "capabilities": []
- }
-]
diff --git a/generated-configs/registries/mcp-profiles.json b/generated-configs/registries/mcp-profiles.json
deleted file mode 100644
index bf39fe5e1887952c41320476245bc88de9b3164c..0000000000000000000000000000000000000000
--- a/generated-configs/registries/mcp-profiles.json
+++ /dev/null
@@ -1,45 +0,0 @@
-[
- {
- "name": "workspace",
- "description": "Workspace files and persistent MCP memory.",
- "enabled": true,
- "servers": [
- "filesystem",
- "memory"
- ]
- },
- {
- "name": "research",
- "description": "Public web research and read-only GitHub context.",
- "enabled": true,
- "servers": [
- "fetch",
- "github-readonly"
- ]
- },
- {
- "name": "implementation",
- "description": "Workspace files and read-only GitHub context.",
- "enabled": true,
- "servers": [
- "filesystem",
- "github-readonly"
- ]
- },
- {
- "name": "database-readonly",
- "description": "Read-only PostgreSQL access using an OS keyring profile.",
- "enabled": true,
- "servers": [
- "postgres-readonly"
- ]
- },
- {
- "name": "database-write",
- "description": "Explicitly disabled write access; requires a separate least-privilege database role and approval policy.",
- "enabled": false,
- "servers": [
- "postgres-write"
- ]
- }
-]
diff --git a/generated-configs/registries/mcp.json b/generated-configs/registries/mcp.json
deleted file mode 100644
index f7eef37d4d79b7f840ba127f1fb22ff819689df9..0000000000000000000000000000000000000000
--- a/generated-configs/registries/mcp.json
+++ /dev/null
@@ -1,68 +0,0 @@
-[
- {
- "name": "filesystem",
- "adapter": "filesystem",
- "trust": "High",
- "enabled": true,
- "authMode": "none",
- "accessMode": "read-only"
- },
- {
- "name": "git",
- "adapter": "git",
- "trust": "High",
- "enabled": false,
- "authMode": "none",
- "accessMode": "read-only"
- },
- {
- "name": "github-readonly",
- "adapter": "github",
- "trust": "Verified",
- "enabled": true,
- "authMode": "oauth",
- "accessMode": "read-only"
- },
- {
- "name": "github-write",
- "adapter": "github",
- "trust": "High",
- "enabled": false,
- "authMode": "oauth",
- "accessMode": "read-write"
- },
- {
- "name": "postgres-readonly",
- "adapter": "postgres",
- "trust": "Verified",
- "enabled": true,
- "authMode": "keyring",
- "credentialRef": "PROJECTOS_POSTGRES_READ_PROFILE",
- "accessMode": "read-only"
- },
- {
- "name": "postgres-write",
- "adapter": "postgres",
- "trust": "High",
- "enabled": false,
- "authMode": "keyring",
- "credentialRef": "PROJECTOS_POSTGRES_WRITE_PROFILE",
- "accessMode": "read-write"
- },
- {
- "name": "fetch",
- "adapter": "fetch",
- "trust": "Medium",
- "enabled": true,
- "authMode": "none",
- "accessMode": "read-only"
- },
- {
- "name": "memory",
- "adapter": "memory",
- "trust": "High",
- "enabled": true,
- "authMode": "none",
- "accessMode": "read-only"
- }
-]
diff --git a/generated-configs/registries/models.json b/generated-configs/registries/models.json
deleted file mode 100644
index a999fabd658409eb2da16ec2701ffa24fbc90ab8..0000000000000000000000000000000000000000
--- a/generated-configs/registries/models.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "operations": "omni",
- "research": "sonar",
- "implementation": "copilot",
- "ml": "qwen",
- "logic": "claude"
-}
diff --git a/generated-configs/registries/permissions.json b/generated-configs/registries/permissions.json
deleted file mode 100644
index b52525bb907da73cba61f9e32e0811109dcb0f6e..0000000000000000000000000000000000000000
--- a/generated-configs/registries/permissions.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "rules": [
- {
- "id": "workspace-read",
- "resource": "workspace",
- "action": "read",
- "effect": "allow",
- "requiresApproval": false
- },
- {
- "id": "workspace-write",
- "resource": "workspace",
- "action": "write",
- "effect": "require-approval",
- "requiresApproval": true
- },
- {
- "id": "tool-execution",
- "resource": "tools",
- "action": "execute",
- "effect": "require-approval",
- "requiresApproval": true
- },
- {
- "id": "external-network",
- "resource": "external-network",
- "action": "access",
- "effect": "deny",
- "requiresApproval": true
- }
- ]
-}
diff --git a/generated-configs/registries/symbols.json b/generated-configs/registries/symbols.json
deleted file mode 100644
index bd12b88db8a8d34120f54c5b5eb0f4cea2f1a6c7..0000000000000000000000000000000000000000
--- a/generated-configs/registries/symbols.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "ProjectRepository": [
- "IProjectRepository",
- "ProjectRepo",
- "ProjectStore"
- ],
- "CanonRepository": [
- "ICanonRepository",
- "CanonRepo",
- "CanonStore"
- ],
- "SnapshotRepository": [
- "ISnapshotRepository",
- "SnapshotRepo",
- "SnapshotStore"
- ],
- "FrontierRepository": [
- "IFrontierRepository",
- "FrontierRepo",
- "FrontierStore"
- ],
- "ArchiveRepository": [
- "IArchiveRepository",
- "ArchiveRepo",
- "ArchiveStore"
- ],
- "EmbeddingRepository": [
- "IEmbeddingRepository",
- "EmbeddingRepo",
- "EmbeddingStore"
- ]
-}
diff --git a/generated-configs/registries/workspaces.json b/generated-configs/registries/workspaces.json
deleted file mode 100644
index 10fa47b5a654daa8ce9ba96982c42e9fc3fdfb6d..0000000000000000000000000000000000000000
--- a/generated-configs/registries/workspaces.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "research": "VSCode",
- "implementation": "Zed",
- "ml": "PyCharm",
- "logic": "IntelliJ",
- "database": "DataGrip",
- "canvas": "HFSpace"
-}
diff --git a/generated-configs/runtime.json b/generated-configs/runtime.json
deleted file mode 100644
index 95b4565709d55d3f5202033bd59be5c16340cd2d..0000000000000000000000000000000000000000
--- a/generated-configs/runtime.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "profile": "Privileged",
- "snapshots": true,
- "automaticRouting": true,
- "consolidation": true,
- "startupOrder": [
- "schema",
- "bootstrap",
- "fabrics",
- "identity",
- "trust",
- "storage",
- "knowledge",
- "logic",
- "governance",
- "operations",
- "agents",
- "registries",
- "council",
- "mcp",
- "desktop"
- ]
-}
diff --git a/generated-configs/storage/migrations.json b/generated-configs/storage/migrations.json
deleted file mode 100644
index 9f50225e2493b97cce6f8f070f13b1ce02dae74e..0000000000000000000000000000000000000000
--- a/generated-configs/storage/migrations.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "schema": 1,
- "version": 2,
- "policy": {
- "autoMigrate": true,
- "backupBeforeMigration": true,
- "validateSchema": true
- },
- "tables": [
- "projects",
- "project_events",
- "snapshots",
- "snapshot_items",
- "canon_entries",
- "canon_revisions",
- "frontier_items",
- "frontier_observations",
- "archive_records",
- "knowledge_embeddings",
- "dependency_findings",
- "delta_runs",
- "delta_gaps",
- "delta_dependencies",
- "governance_reviews"
- ],
- "steps": [
- "Back up the local database before applying migrations when configured.",
- "Apply SQLite schema version 2, including dependency findings, delta persistence, and governance review tables.",
- "Apply idempotent schema updates and record the applied schema versions.",
- "Validate the expected table set before the API becomes ready.",
- "Backfill app_state into normalized repositories in a transaction.",
- "Verify counts and checksums before switching reads or removing app_state."
- ]
-}
diff --git a/generated-configs/storage/package-manifest.json b/generated-configs/storage/package-manifest.json
deleted file mode 100644
index e4b65cf5e1e646e327692b9be7e0f77d21151c1c..0000000000000000000000000000000000000000
--- a/generated-configs/storage/package-manifest.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "package": "@projectos/storage-fabric",
- "version": "0.1.0",
- "repositories": [
- "ProjectRepository",
- "CanonRepository",
- "SnapshotRepository",
- "FrontierRepository",
- "ArchiveRepository",
- "EmbeddingRepository"
- ]
-}
diff --git a/generated-configs/storage/repositories.json b/generated-configs/storage/repositories.json
deleted file mode 100644
index 977351fd26a8ca572b905c011435802e53dfddaf..0000000000000000000000000000000000000000
--- a/generated-configs/storage/repositories.json
+++ /dev/null
@@ -1,8 +0,0 @@
-[
- "ProjectRepository",
- "CanonRepository",
- "SnapshotRepository",
- "FrontierRepository",
- "ArchiveRepository",
- "EmbeddingRepository"
-]
diff --git a/generated-configs/storage/storage.json b/generated-configs/storage/storage.json
deleted file mode 100644
index 2230d9ca9c231d4812f62e8626eaef528925654c..0000000000000000000000000000000000000000
--- a/generated-configs/storage/storage.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "providers": [
- "SQLite",
- "PostgreSQL"
- ],
- "vectorStores": [
- {
- "provider": "sqlite-vec",
- "dimensions": 1536
- },
- {
- "provider": "pgvector",
- "dimensions": 1536
- }
- ],
- "retention": {
- "snapshotDays": 90,
- "archiveYears": 7,
- "keepCanonForever": true
- },
- "migration": {
- "autoMigrate": true,
- "backupBeforeMigration": true,
- "validateSchema": true
- }
-}
diff --git a/generated-docs/AGENTS.md b/generated-docs/AGENTS.md
deleted file mode 100644
index 812e0b44a82e26cc7585dd9f05c18a09af7125d2..0000000000000000000000000000000000000000
--- a/generated-docs/AGENTS.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-# Agents
-
-- **Research Agent** — Finds evidence and records sources relevant to a question.
-- **ML Agent** — Reviews model choices, evaluation needs, and model-specific constraints.
-- **Logic Agent** — Checks plans for feasibility, consistency, and contradictions.
-- **Knowledge Agent** — Retrieves and organizes project memory and research.
-- **Dependency Agent** — Identifies missing tools, permissions, libraries, data, or infrastructure.
-- **Delta Agent** — Compares current project state with a target or frontier.
-- **Evolution Agent** — Turns comparison results into sequenced improvement suggestions.
-- **Infrastructure Agent** — Plans runtime, storage, and environment requirements.
-- **Tool Execution Agent** — Coordinates approved tool calls through configured adapters.
-- **Governance Agent** — Applies policy checks and identifies human approval needs.
-- **Canonicalization Agent** — Turns verified outcomes into structured, reusable canon.
-- **Implementation Agent** — Plans approved implementation work.
diff --git a/generated-docs/API.md b/generated-docs/API.md
deleted file mode 100644
index 135cce0f52daac6ec1c118f9f0acfc9966cc504e..0000000000000000000000000000000000000000
--- a/generated-docs/API.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# API
-
-The local API provides health, state, and planning routes. Current routes include `GET /api/health`, `GET /api/state`, `POST /api/plans/draft`, and `POST /api/state/{projects|policies|plans|snapshots}`. Existing state routes remain on the compatibility `app_state` table while normalized repository migration proceeds.
diff --git a/generated-docs/ARCHITECTURE.md b/generated-docs/ARCHITECTURE.md
deleted file mode 100644
index 2bc645d2f2232e3b19c50ce52be0e2e71f3bafef..0000000000000000000000000000000000000000
--- a/generated-docs/ARCHITECTURE.md
+++ /dev/null
@@ -1,55 +0,0 @@
-
-# Architecture
-
-ProjectOS 2.0 runs in **local** mode. Its runtime route is schema validation → bootstrap validation → fabrics and registries → council and MCP initialization → dashboard.
-
-## Decision flow
-
-1. **Question** — A person or connected system submits a question or requested outcome.
-2. **Operations Agent** — Coordinates intent analysis, routing, validation, and execution planning.
-3. **Determine Intent** — Classifies the request as research, implementation, infrastructure, evolution, or governance work.
-4. **Choose Council Template** — Selects a council template with the relevant specialists.
-5. **Assign Models** — Selects model providers and capabilities that match the task and trust requirements.
-6. **Assign Datasets** — Attaches project knowledge and datasets with source and permission context.
-7. **Assign Tools** — Selects tools required by the plan, subject to policy and permission checks.
-8. **Assign Workspace** — Binds the plan to a project workspace and runtime boundary.
-9. **Validate Through Logic** — Checks feasibility, consistency, assumptions, and contradictions before action.
-10. **Validate Through Governance** — Checks trust, policies, permissions, and approval requirements before action.
-11. **Execute** — Runs only actions that are available, authorized, and within the configured runtime.
-12. **Store Knowledge** — Records useful evidence, decisions, and outcomes with provenance.
-13. **Snapshot** — Captures the project state needed to reproduce or review the work.
-14. **Consolidate** — Merges compatible learning into organized project knowledge.
-15. **Update Canon** — Updates the canonical project record with reviewed, durable findings.
-
-## Project lifecycle
-
-| Stage | Purpose |
-| --- | --- |
-| Research | Discover the problem and evidence. |
-| Active | Coordinate work and decisions. |
-| Production | Deliver stable project outcomes. |
-| Evolving | Improve capabilities continuously. |
-| Frontier Comparison | Compare current project state with emerging approaches. |
-| Delta Analysis | Identify the gaps between current and target state. |
-| Missing Dependencies | Surface unavailable requirements. |
-| Evolution Suggestions | Propose the next improvements. |
-| Obsolete | Mark work that is ready for retirement. |
-| Snapshot | Preserve a durable project state. |
-| Archive | Store completed work and its history. |
-| Template | Make proven project patterns reusable. |
-
-## Fabrics
-
-| Fabric | Purpose |
-| --- | --- |
-| Identity | Resolves who is acting, what they own, and which roles apply. |
-| Trust | Evaluates sources, datasets, and models against workspace trust requirements. |
-| Research | Connects research sources and organizes evidence for project decisions. |
-| Knowledge | Organizes project memory into research, lessons, canon, frontier, and archive. |
-| Logic | Builds plans and checks feasibility, consistency, and competing claims. |
-| Delta | Compares current and target states to identify gaps and useful evolution. |
-| Dependency | Finds unmet runtime, access, model, tool, library, and dataset requirements. |
-| Governance | Applies policy gates, approval decisions, overrides, and audit recording. |
-| Execution | Dispatches approved work to the appropriate execution adapter. |
-| Storage | Defines local and enterprise storage for project artifacts and vectors. |
-| Canvas | Provides visual workspaces for diagrams, whiteboards, and knowledge views. |
diff --git a/generated-docs/ARCHIVE.md b/generated-docs/ARCHIVE.md
deleted file mode 100644
index 591bd9ee40ae302a798151dd6a8121d8b687adb4..0000000000000000000000000000000000000000
--- a/generated-docs/ARCHIVE.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Archive
-
-Archived resources are preserved in `archive_records` with a payload checksum, source snapshot, reason, and retention deadline. The configured archive retention is 7 years. Canon records are retained permanently.
diff --git a/generated-docs/BOOTSTRAP.md b/generated-docs/BOOTSTRAP.md
deleted file mode 100644
index 83ceb3058e5cff931680a211a0755c407772f2a9..0000000000000000000000000000000000000000
--- a/generated-docs/BOOTSTRAP.md
+++ /dev/null
@@ -1,8 +0,0 @@
-
-# Bootstrap
-
-The human-authored source of truth is `bootstrap.xml`. The schema engine validates it against `schemas/ProjectOS.xsd` and `schemas/ProjectOS.sch`, then generates runtime, registry, storage, documentation, snapshot, and release artifacts under `configs` plus the repository's `generated/` and `release/` directories.
-
-## Manifest sections
-
-Decision flow, lifecycle, fabrics, councils, agents, models, storage, governance, knowledge, permissions, workspaces, MCP server trust, naming conventions, language profiles, and documentation outputs are all declared in the bootstrap manifest.
diff --git a/generated-docs/CANON.md b/generated-docs/CANON.md
deleted file mode 100644
index 2571a6e15fefe492fd998d9d366e47dea376e013..0000000000000000000000000000000000000000
--- a/generated-docs/CANON.md
+++ /dev/null
@@ -1,6 +0,0 @@
-
-# Canon
-
-Canon stores verified, governed knowledge as versioned `canon_entries` and `canon_revisions`. Promotion records the source snapshot and preserves revision history. Permanent retention is required by the bootstrap policy.
-
-The promotion service commits the canon revision, Frontier status transition, and post-promotion snapshot together after Logic validation and Governance approval.
diff --git a/generated-docs/COUNCILS.md b/generated-docs/COUNCILS.md
deleted file mode 100644
index 554d08abda2744946f949e67368be218661b53bc..0000000000000000000000000000000000000000
--- a/generated-docs/COUNCILS.md
+++ /dev/null
@@ -1,38 +0,0 @@
-
-# Councils
-
-## Research Council
-
-Combines research and knowledge specialists to answer evidence questions.
-
-Members: Research Agent, Knowledge Agent, Trust review
-
-## Architecture Council
-
-Reviews boundaries, dependencies, and system-level trade-offs.
-
-Members: Logic Agent, Dependency Agent, Infrastructure Agent
-
-## Implementation Council
-
-Coordinates implementation from an approved plan through a reviewable change.
-
-Members: Implementation Agent, Logic Agent, Tool Execution Agent
-
-## Infrastructure Council
-
-Checks environments, storage, runtime, and deployment dependencies.
-
-Members: Infrastructure Agent, Dependency Agent, Governance Agent
-
-## Evolution Council
-
-Compares project state with the frontier and ranks improvement opportunities.
-
-Members: Delta Agent, Evolution Agent, Knowledge Agent
-
-## Governance Council
-
-Reviews policies, trust, approvals, and recorded exceptions.
-
-Members: Governance Agent, Trust validation, Approval engine
diff --git a/generated-docs/DATABASE.md b/generated-docs/DATABASE.md
deleted file mode 100644
index 410ee8d24a0fa189c2be1c3c51dadf99775bc5b0..0000000000000000000000000000000000000000
--- a/generated-docs/DATABASE.md
+++ /dev/null
@@ -1,8 +0,0 @@
-
-# Database
-
-Local storage: SQLite,sqlite-vec
-
-Enterprise storage: PostgreSQL,pgvector
-
-Normalized tables cover projects, events, snapshots, canon entries and revisions, frontier items and observations, archives, embeddings, dependency findings, delta runs and gaps, blockers, and governance reviews. The PostgreSQL schema includes pgvector HNSW cosine search; SQLite stores embedding arrays as JSON until sqlite-vec is installed.
diff --git a/generated-docs/DELTA.md b/generated-docs/DELTA.md
deleted file mode 100644
index 12b8cffda6ffb3a9a740748844be052312564430..0000000000000000000000000000000000000000
--- a/generated-docs/DELTA.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Delta
-
-Delta compares declared current and target requirement sets, persists each run in `delta_runs`, records missing values in `delta_gaps`, and links open dependency blockers through `delta_dependencies`. A run is complete only when the target has no gaps and no open blockers.
diff --git a/generated-docs/DEPENDENCY.md b/generated-docs/DEPENDENCY.md
deleted file mode 100644
index b5e88ec974a49d2841c45b117e049c5aa2ec967e..0000000000000000000000000000000000000000
--- a/generated-docs/DEPENDENCY.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Dependency
-
-Dependency Fabric records missing models, datasets, permissions, tools, and infrastructure in `dependency_findings`. Open findings are deduplicated by project, category, and name; they can be resolved or waived without erasing history. Current model routes: 5; workspace routes: 6.
diff --git a/generated-docs/FABRICS.md b/generated-docs/FABRICS.md
deleted file mode 100644
index 533854df3547b6f92e1d1828afb40c8824c90cc8..0000000000000000000000000000000000000000
--- a/generated-docs/FABRICS.md
+++ /dev/null
@@ -1,68 +0,0 @@
-
-# Fabrics
-
-## Identity
-
-Resolves who is acting, what they own, and which roles apply.
-
-Capabilities: Ownership graph, Role registry, LDAP, Entra, OAuth, and SAML connectors
-
-## Trust
-
-Evaluates sources, datasets, and models against workspace trust requirements.
-
-Capabilities: Source verification, Dataset and model verification, Trust scores
-
-## Research
-
-Connects research sources and organizes evidence for project decisions.
-
-Capabilities: Web and paper discovery, Documentation connectors, Research source attribution
-
-## Knowledge
-
-Organizes project memory into research, lessons, canon, frontier, and archive.
-
-Capabilities: Project memory, Canonical knowledge, Snapshots and archive
-
-## Logic
-
-Builds plans and checks feasibility, consistency, and competing claims.
-
-Capabilities: Intent analysis, Planning and validation, Consensus and contradictions
-
-## Delta
-
-Compares current and target states to identify gaps and useful evolution.
-
-Capabilities: Current and frontier state, Gap analysis, Evolution and obsolescence
-
-## Dependency
-
-Finds unmet runtime, access, model, tool, library, and dataset requirements.
-
-Capabilities: Missing permissions, Missing tools and models, Missing libraries, datasets, and infrastructure
-
-## Governance
-
-Applies policy gates, approval decisions, overrides, and audit recording.
-
-Capabilities: Policy registry, Approval queue, Audit history
-
-## Execution
-
-Dispatches approved work to the appropriate execution adapter.
-
-Capabilities: PowerShell, Python, and Node, Docker and Git, MCP tools
-
-## Storage
-
-Defines local and enterprise storage for project artifacts and vectors.
-
-Capabilities: SQLite and sqlite-vec, PostgreSQL and pgvector, Snapshots, consolidation, and archives
-
-## Canvas
-
-Provides visual workspaces for diagrams, whiteboards, and knowledge views.
-
-Capabilities: Whiteboard canvas, Diagram engine, Knowledge views
diff --git a/generated-docs/FRONTIER.md b/generated-docs/FRONTIER.md
deleted file mode 100644
index 77ac3d0a774bf9854ceee9b27f4a0fe5d773bb47..0000000000000000000000000000000000000000
--- a/generated-docs/FRONTIER.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Frontier
-
-The Frontier tracks research that has not yet been accepted into canon. Candidate records and observations are stored in `frontier_items` and `frontier_observations`; promotion requires Logic validation and Governance approval before changing status and creating a canon entry.
diff --git a/generated-docs/GOVERNANCE.md b/generated-docs/GOVERNANCE.md
deleted file mode 100644
index 6012bdf8f6ab6fc92652a108a5a1107c07734271..0000000000000000000000000000000000000000
--- a/generated-docs/GOVERNANCE.md
+++ /dev/null
@@ -1,20 +0,0 @@
-
-# Governance
-
-- **Policy Engine** — Evaluates plans against the active policy registry.
-- **Approval Engine** — Routes gated actions to the right reviewer.
-- **Trust Validation** — Checks identity, sources, datasets, and models.
-- **Override Engine** — Records scoped exceptions with justification.
-- **Audit Log** — Keeps an attributable record of decisions and actions.
-- **Policy Registry** — Maintains versioned workspace rules.
-
-Promotion and other governed actions create auditable records in `governance_reviews`; a pending or rejected review does not authorize execution or canon promotion.
-
-## Permission rules
-
-| ID | Resource | Action | Effect | Approval |
-| --- | --- | --- | --- | --- |
-| workspace-read | workspace | read | allow | false |
-| workspace-write | workspace | write | require-approval | true |
-| tool-execution | tools | execute | require-approval | true |
-| external-network | external-network | access | deny | true |
diff --git a/generated-docs/IDENTITY.md b/generated-docs/IDENTITY.md
deleted file mode 100644
index 11b0d0a021fdc18b1ee4a8edef242773c3e76f26..0000000000000000000000000000000000000000
--- a/generated-docs/IDENTITY.md
+++ /dev/null
@@ -1,6 +0,0 @@
-
-# Identity
-
-Resolves who is acting, what they own, and which roles apply.
-
-Identity remains an integration boundary; provider credentials and directory connectors are configured separately.
diff --git a/generated-docs/KNOWLEDGE.md b/generated-docs/KNOWLEDGE.md
deleted file mode 100644
index 2f3bef747d0b7a1862d4fc9d1e31188594c1b741..0000000000000000000000000000000000000000
--- a/generated-docs/KNOWLEDGE.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-# Knowledge
-
-- **Project memory** — Working context and decisions.
-- **Research** — Sources, findings, and evidence.
-- **Lessons** — Reusable outcomes and reflections.
-- **Canon** — The current trusted project record.
-- **Frontier** — Emerging ideas and state of the art.
-- **Snapshots** — Point-in-time project state.
-- **Archive** — Preserved retired work.
diff --git a/generated-docs/MCP.md b/generated-docs/MCP.md
deleted file mode 100644
index b5840e0f33befd922dc215403743e6e4e47986fb..0000000000000000000000000000000000000000
--- a/generated-docs/MCP.md
+++ /dev/null
@@ -1,29 +0,0 @@
-
-# MCP
-
-The registry separates adapters from profile membership and declares the authentication method for each server. Secrets are referenced by environment-variable name or an OS keyring profile; secret values are never generated into configuration or release files. GitHub's default OAuth flow requires browser approval rather than a saved PAT.
-
-## Server library
-
-| Entry | Adapter | Trust | Access | Authentication | Credential reference |
-| --- | --- | --- | --- | --- | --- |
-| filesystem | filesystem | High | read-only | none | None |
-| git | git | High | read-only | none | None |
-| github-readonly | github | Verified | read-only | oauth | None |
-| github-write | github | High | read-write | oauth | None |
-| postgres-readonly | postgres | Verified | read-only | keyring | PROJECTOS_POSTGRES_READ_PROFILE |
-| postgres-write | postgres | High | read-write | keyring | PROJECTOS_POSTGRES_WRITE_PROFILE |
-| fetch | fetch | Medium | read-only | none | None |
-| memory | memory | High | read-only | none | None |
-
-## Profiles
-
-| Profile | Enabled | Servers | Purpose |
-| --- | --- | --- | --- |
-| workspace | true | filesystem, memory | Workspace files and persistent MCP memory. |
-| research | true | fetch, github-readonly | Public web research and read-only GitHub context. |
-| implementation | true | filesystem, github-readonly | Workspace files and read-only GitHub context. |
-| database-readonly | true | postgres-readonly | Read-only PostgreSQL access using an OS keyring profile. |
-| database-write | false | postgres-write | Explicitly disabled write access; requires a separate least-privilege database role and approval policy. |
-
-The ProjectOS MCP Fabric validates credential references and connects selected profiles. GitHub and PostgreSQL write access are disabled by default.
diff --git a/generated-docs/MODELS.md b/generated-docs/MODELS.md
deleted file mode 100644
index 16984c3a275b6d9b131a5681839fa8612adfba85..0000000000000000000000000000000000000000
--- a/generated-docs/MODELS.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-# Models
-
-| Role | Provider |
-| --- | --- |
-| operations | omni |
-| research | sonar |
-| implementation | copilot |
-| ml | qwen |
-| logic | claude |
diff --git a/generated-docs/PROVIDERS.md b/generated-docs/PROVIDERS.md
deleted file mode 100644
index f9e9228f002cce4ef0ed98d04fd2784a140d15d8..0000000000000000000000000000000000000000
--- a/generated-docs/PROVIDERS.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-# Providers
-
-## Storage providers
-
-- SQLite
-- PostgreSQL
-
-## Model providers
-
-- omni
-- sonar
-- copilot
-- qwen
-- claude
diff --git a/generated-docs/RUNTIME.md b/generated-docs/RUNTIME.md
deleted file mode 100644
index 8f1cbe330426ff9cc10c2f60dc4b4746544616c6..0000000000000000000000000000000000000000
--- a/generated-docs/RUNTIME.md
+++ /dev/null
@@ -1,8 +0,0 @@
-
-# Runtime
-
-- Profile: Privileged
-- Snapshots: true
-- Automatic routing: true
-- Consolidation: true
-- Startup order: schema → bootstrap → fabrics → identity → trust → storage → knowledge → logic → governance → operations → agents → registries → council → mcp → desktop
diff --git a/generated-docs/SCHEMA.md b/generated-docs/SCHEMA.md
deleted file mode 100644
index d9a6f43535b5a632e34b984d54247bd3f6c6c4ef..0000000000000000000000000000000000000000
--- a/generated-docs/SCHEMA.md
+++ /dev/null
@@ -1,20 +0,0 @@
-
-# Schema
-
-## Validation inputs
-
-- XSD: `schemas/ProjectOS.xsd`
-- Schematron: `schemas/ProjectOS.sch`
-
-The XSD enforces manifest structure, typed values, positive dimensions and retention periods, and unique registry keys. Schematron enforces cross-section rules for storage provider dependencies, migration backups, canon retention, MCP registry completeness, and symbol alias collisions.
-
-## Canonical symbols
-
-| Canonical symbol | Aliases |
-| --- | --- |
-| ProjectRepository | IProjectRepository, ProjectRepo, ProjectStore |
-| CanonRepository | ICanonRepository, CanonRepo, CanonStore |
-| SnapshotRepository | ISnapshotRepository, SnapshotRepo, SnapshotStore |
-| FrontierRepository | IFrontierRepository, FrontierRepo, FrontierStore |
-| ArchiveRepository | IArchiveRepository, ArchiveRepo, ArchiveStore |
-| EmbeddingRepository | IEmbeddingRepository, EmbeddingRepo, EmbeddingStore |
diff --git a/generated-docs/SNAPSHOTS.md b/generated-docs/SNAPSHOTS.md
deleted file mode 100644
index e44a2e801fecba07392c04c4bcec0fb26a04f70d..0000000000000000000000000000000000000000
--- a/generated-docs/SNAPSHOTS.md
+++ /dev/null
@@ -1,4 +0,0 @@
-
-# Snapshots
-
-Snapshots capture project state, events, canon entries and revisions, frontier records and observations, archives, embeddings, dependency findings, delta runs and gaps, and governance reviews with a schema version and content checksum. The configured retention period is 90 days. Snapshot and item records are stored in `snapshots` and `snapshot_items`; the release snapshot manifest hashes bootstrap, runtime, and storage configuration.
diff --git a/generated-docs/STORAGE.md b/generated-docs/STORAGE.md
deleted file mode 100644
index 87d932b0c73daf2964ef90aa42e7185943b49a09..0000000000000000000000000000000000000000
--- a/generated-docs/STORAGE.md
+++ /dev/null
@@ -1,28 +0,0 @@
-
-# Storage
-
-## Providers
-
-- SQLite
-- PostgreSQL
-
-## Vector stores
-
-| Provider | Dimensions |
-| --- | --- |
-| sqlite-vec | 1536 |
-| pgvector | 1536 |
-
-## Retention
-
-- Snapshots: 90 days
-- Archives: 7 years
-- Canon retained permanently: yes
-
-## Migration policy
-
-- Automatic migration: enabled
-- Backup before migration: required
-- Validate after migration: enabled
-
-SQLite tables are declared in `packages/storage-fabric/sqlite/schema.sql`; PostgreSQL and pgvector tables are declared in `packages/storage-fabric/pgvector/schema.sql`.
diff --git a/generated-docs/TRUST.md b/generated-docs/TRUST.md
deleted file mode 100644
index bae518e687501b88be869209657ef6b3959955fb..0000000000000000000000000000000000000000
--- a/generated-docs/TRUST.md
+++ /dev/null
@@ -1,6 +0,0 @@
-
-# Trust
-
-Evaluates sources, datasets, and models against workspace trust requirements.
-
-Trust checks are evaluated before governed execution and knowledge promotion.
diff --git a/generated-docs/WORKSPACES.md b/generated-docs/WORKSPACES.md
deleted file mode 100644
index fac28d1c6694b59c70f8069ff86f19b727cc58ce..0000000000000000000000000000000000000000
--- a/generated-docs/WORKSPACES.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-# Workspaces
-
-| Role | Workspace |
-| --- | --- |
-| research | VSCode |
-| implementation | Zed |
-| ml | PyCharm |
-| logic | IntelliJ |
-| database | DataGrip |
-| canvas | HFSpace |
diff --git a/language-profiles.generated.json b/language-profiles.generated.json
deleted file mode 100644
index f1e85a55e0a1ba833245a1ba6dd8b6626103a2d8..0000000000000000000000000000000000000000
--- a/language-profiles.generated.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "CSharp": {
- "interfacePrefix": "I"
- },
- "TypeScript": {
- "interfacePrefix": ""
- },
- "Java": {
- "interfacePrefix": ""
- },
- "OpenAPITypeScript": {
- "interfacePrefix": "I"
- }
-}
diff --git a/manifest.json b/manifest.json
deleted file mode 100644
index 10b68dc0dfe7d96c6fc6654ad7afb2112e4a711c..0000000000000000000000000000000000000000
--- a/manifest.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "project": "ProjectOS",
- "version": "2.0",
- "mode": "local",
- "generatedAt": "2026-10-31T07:37:41.171Z",
- "bootstrap": "bootstrap.xml",
- "schema": "ProjectOS.xsd",
- "rules": "ProjectOS.sch",
- "generatedDirectory": "generated/",
- "documentationDirectory": "docs/",
- "storageDirectory": "storage/",
- "snapshotManifest": "generated/snapshots/snapshot-manifest.json",
- "migrationManifest": "migrations/manifest.json",
- "mcpRegistry": "generated/registries/mcp.json",
- "mcpProfiles": "generated/registries/mcp-profiles.json"
-}
diff --git a/mcp-adapters.md b/mcp-adapters.md
deleted file mode 100644
index f4ef6c04788c6f53faae4e5c7119cda443e98ab7..0000000000000000000000000000000000000000
--- a/mcp-adapters.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# ProjectOS MCP Adapter Library
-
-`bootstrap.xml` is the source of truth for MCP server entries and named profiles. `pnpm generate` compiles those sections into `generated/registries/mcp.json` and `generated/registries/mcp-profiles.json`; generated files are never edited by hand.
-
-## Discover and load profiles
-
-- `pnpm mcp:profiles` lists the curated adapters, profile membership, access mode, and credential-reference names.
-- `pnpm mcp:check workspace` starts the workspace profile, negotiates the MCP stdio handshake, and confirms each server's tools.
-- `pnpm mcp:connect workspace` keeps the profile connected until Ctrl+C.
-- The library API is exported from `packages/mcp-fabric/src/index.ts`: `loadMcpLibrary()` loads generated registries, and `connectProfile(name)` connects all servers selected by that profile.
-
-Enabled profiles are `workspace` (filesystem and persistent memory), `research` (public fetch plus read-only GitHub), `implementation` (workspace files plus read-only GitHub), and `database-readonly` (a saved PostgreSQL read-only keyring profile). `database-write` and GitHub write access stay disabled in the bootstrap manifest. The Git adapter entry is catalogued but disabled until a repository root is configured.
-
-## Adapter catalog
-
-| Adapter | Default auth | Upstream | Runtime | Credentials and limits |
-| --- | --- | --- | --- | --- |
-| filesystem | none | [MCP filesystem server](https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem) | `npx @modelcontextprotocol/server-filesystem@2.1.0` | Limited to `PROJECTOS_MCP_FILESYSTEM_ROOT` or this ProjectOS directory. |
-| github | OAuth + PKCE | [GitHub MCP server](https://github.com/github/github-mcp-server) | Docker image `ghcr.io/github/github-mcp-server:v2.0.3` | Browser authorization by default; no user-managed PAT. Read mode and lockdown are set by the server entry. |
-| postgres | OS keyring | [Microsoft PostgreSQL MCP server](https://github.com/microsoft/postgres-mcp) | `npx -y @microsoft/postgres-mcp run` | Selects a saved keyring profile by name. The database role itself must have only read permissions. |
-| fetch | none | [MCP fetch server](https://github.com/modelcontextprotocol/servers/tree/main/src/fetch) | `uvx --from mcp-server-fetch==2026.10.28 mcp-server-fetch` | Public web requests; no account token. |
-| memory | none | [MCP memory server](https://github.com/modelcontextprotocol/servers/tree/main/src/memory) | `npx @modelcontextprotocol/server-memory@2.0.1` | Persistent data stays in `data/mcp-memory.jsonl`. |
-| git | none | [MCP Git server](https://github.com/modelcontextprotocol/servers/tree/main/src/git) | `uvx --from mcp-server-git==2026.10.28 mcp-server-git` | Disabled by default; requires `PROJECTOS_GIT_ROOT` and is restricted to that repository. |
-
-The upstream security release recommends Node.js 24.22.1+ or 26.12.1+ for npm-based servers. On Windows, the filesystem server documents a junction race limitation; keep its allowed root narrow and do not point it at a path writable by an untrusted local process.
-
-## Credential setup
-
-No real credential values are committed or included in generated artifacts. GitHub uses the official Docker server's OAuth login by default: on first use, approve access in the browser; the server holds the resulting token in memory. The official build provides its OAuth app for github.com, so ProjectOS needs no client ID or PAT. The callback is bound to loopback only at port 8085 by default. If you need a different port, set `PROJECTOS_GITHUB_OAUTH_CALLBACK_PORT`. GitHub PAT-based authentication remains an opt-in by changing the server's `authMode` to `environment` and adding a `credentialRef`; no PAT is required for the default profile. See [GitHub's local OAuth instructions](https://github.com/github/github-mcp-server/blob/main/docs/oauth-login.md).
-
-For PostgreSQL, install the server's profile in its OS keyring, then set the non-secret ProjectOS selector to that profile name. For example, the official server supports:
-
-```powershell
-npx -y @microsoft/postgres-mcp connection add projectos-readonly "host=HOST user=projectos_reader dbname=DATABASE sslmode=verify-full" --access-mode ro
-npx -y @microsoft/postgres-mcp connection set-password projectos-readonly
-$env:PROJECTOS_POSTGRES_READ_PROFILE = 'projectos-readonly'
-```
-
-Use a database role that is read-only as well as the server's `ro` profile flag. The MCP server is a gateway; the database permissions are the authority boundary. Keep passwords out of command arguments and shell history.
-
-Run `pnpm mcp:connect research` to start the GitHub MCP profile. When a GitHub tool is first used, the official server can direct you through browser OAuth; approve the requested access in GitHub. The OAuth flow uses PKCE and the token is held in memory by the server. For headless use, the official server supports a device-code flow. To opt into a PAT instead, retrieve it from a secret manager into `PROJECTOS_GITHUB_READ_TOKEN` for that process only, set the server to `authMode="environment"` with that `credentialRef`, and run `pnpm mcp:check research`.
-
-## Permission handling
-
-The library rejects tool calls from read-only profiles unless the upstream tool marks itself read-only. Any non-read-only tool requires an explicit `approved=true` argument in the library call. GitHub read-only mode also removes GitHub write tools at the server level. A profile check establishes server connections and discovers tools; it does not execute those tools.
diff --git a/mcp-profiles.generated.json b/mcp-profiles.generated.json
deleted file mode 100644
index bf39fe5e1887952c41320476245bc88de9b3164c..0000000000000000000000000000000000000000
--- a/mcp-profiles.generated.json
+++ /dev/null
@@ -1,45 +0,0 @@
-[
- {
- "name": "workspace",
- "description": "Workspace files and persistent MCP memory.",
- "enabled": true,
- "servers": [
- "filesystem",
- "memory"
- ]
- },
- {
- "name": "research",
- "description": "Public web research and read-only GitHub context.",
- "enabled": true,
- "servers": [
- "fetch",
- "github-readonly"
- ]
- },
- {
- "name": "implementation",
- "description": "Workspace files and read-only GitHub context.",
- "enabled": true,
- "servers": [
- "filesystem",
- "github-readonly"
- ]
- },
- {
- "name": "database-readonly",
- "description": "Read-only PostgreSQL access using an OS keyring profile.",
- "enabled": true,
- "servers": [
- "postgres-readonly"
- ]
- },
- {
- "name": "database-write",
- "description": "Explicitly disabled write access; requires a separate least-privilege database role and approval policy.",
- "enabled": false,
- "servers": [
- "postgres-write"
- ]
- }
-]
diff --git a/mcp-profiles.json b/mcp-profiles.json
deleted file mode 100644
index bf39fe5e1887952c41320476245bc88de9b3164c..0000000000000000000000000000000000000000
--- a/mcp-profiles.json
+++ /dev/null
@@ -1,45 +0,0 @@
-[
- {
- "name": "workspace",
- "description": "Workspace files and persistent MCP memory.",
- "enabled": true,
- "servers": [
- "filesystem",
- "memory"
- ]
- },
- {
- "name": "research",
- "description": "Public web research and read-only GitHub context.",
- "enabled": true,
- "servers": [
- "fetch",
- "github-readonly"
- ]
- },
- {
- "name": "implementation",
- "description": "Workspace files and read-only GitHub context.",
- "enabled": true,
- "servers": [
- "filesystem",
- "github-readonly"
- ]
- },
- {
- "name": "database-readonly",
- "description": "Read-only PostgreSQL access using an OS keyring profile.",
- "enabled": true,
- "servers": [
- "postgres-readonly"
- ]
- },
- {
- "name": "database-write",
- "description": "Explicitly disabled write access; requires a separate least-privilege database role and approval policy.",
- "enabled": false,
- "servers": [
- "postgres-write"
- ]
- }
-]
diff --git a/mcp.generated.json b/mcp.generated.json
deleted file mode 100644
index f7eef37d4d79b7f840ba127f1fb22ff819689df9..0000000000000000000000000000000000000000
--- a/mcp.generated.json
+++ /dev/null
@@ -1,68 +0,0 @@
-[
- {
- "name": "filesystem",
- "adapter": "filesystem",
- "trust": "High",
- "enabled": true,
- "authMode": "none",
- "accessMode": "read-only"
- },
- {
- "name": "git",
- "adapter": "git",
- "trust": "High",
- "enabled": false,
- "authMode": "none",
- "accessMode": "read-only"
- },
- {
- "name": "github-readonly",
- "adapter": "github",
- "trust": "Verified",
- "enabled": true,
- "authMode": "oauth",
- "accessMode": "read-only"
- },
- {
- "name": "github-write",
- "adapter": "github",
- "trust": "High",
- "enabled": false,
- "authMode": "oauth",
- "accessMode": "read-write"
- },
- {
- "name": "postgres-readonly",
- "adapter": "postgres",
- "trust": "Verified",
- "enabled": true,
- "authMode": "keyring",
- "credentialRef": "PROJECTOS_POSTGRES_READ_PROFILE",
- "accessMode": "read-only"
- },
- {
- "name": "postgres-write",
- "adapter": "postgres",
- "trust": "High",
- "enabled": false,
- "authMode": "keyring",
- "credentialRef": "PROJECTOS_POSTGRES_WRITE_PROFILE",
- "accessMode": "read-write"
- },
- {
- "name": "fetch",
- "adapter": "fetch",
- "trust": "Medium",
- "enabled": true,
- "authMode": "none",
- "accessMode": "read-only"
- },
- {
- "name": "memory",
- "adapter": "memory",
- "trust": "High",
- "enabled": true,
- "authMode": "none",
- "accessMode": "read-only"
- }
-]
diff --git a/mcp.json b/mcp.json
deleted file mode 100644
index f7eef37d4d79b7f840ba127f1fb22ff819689df9..0000000000000000000000000000000000000000
--- a/mcp.json
+++ /dev/null
@@ -1,68 +0,0 @@
-[
- {
- "name": "filesystem",
- "adapter": "filesystem",
- "trust": "High",
- "enabled": true,
- "authMode": "none",
- "accessMode": "read-only"
- },
- {
- "name": "git",
- "adapter": "git",
- "trust": "High",
- "enabled": false,
- "authMode": "none",
- "accessMode": "read-only"
- },
- {
- "name": "github-readonly",
- "adapter": "github",
- "trust": "Verified",
- "enabled": true,
- "authMode": "oauth",
- "accessMode": "read-only"
- },
- {
- "name": "github-write",
- "adapter": "github",
- "trust": "High",
- "enabled": false,
- "authMode": "oauth",
- "accessMode": "read-write"
- },
- {
- "name": "postgres-readonly",
- "adapter": "postgres",
- "trust": "Verified",
- "enabled": true,
- "authMode": "keyring",
- "credentialRef": "PROJECTOS_POSTGRES_READ_PROFILE",
- "accessMode": "read-only"
- },
- {
- "name": "postgres-write",
- "adapter": "postgres",
- "trust": "High",
- "enabled": false,
- "authMode": "keyring",
- "credentialRef": "PROJECTOS_POSTGRES_WRITE_PROFILE",
- "accessMode": "read-write"
- },
- {
- "name": "fetch",
- "adapter": "fetch",
- "trust": "Medium",
- "enabled": true,
- "authMode": "none",
- "accessMode": "read-only"
- },
- {
- "name": "memory",
- "adapter": "memory",
- "trust": "High",
- "enabled": true,
- "authMode": "none",
- "accessMode": "read-only"
- }
-]
diff --git a/migration-manifest.json b/migration-manifest.json
deleted file mode 100644
index 9f50225e2493b97cce6f8f070f13b1ce02dae74e..0000000000000000000000000000000000000000
--- a/migration-manifest.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "schema": 1,
- "version": 2,
- "policy": {
- "autoMigrate": true,
- "backupBeforeMigration": true,
- "validateSchema": true
- },
- "tables": [
- "projects",
- "project_events",
- "snapshots",
- "snapshot_items",
- "canon_entries",
- "canon_revisions",
- "frontier_items",
- "frontier_observations",
- "archive_records",
- "knowledge_embeddings",
- "dependency_findings",
- "delta_runs",
- "delta_gaps",
- "delta_dependencies",
- "governance_reviews"
- ],
- "steps": [
- "Back up the local database before applying migrations when configured.",
- "Apply SQLite schema version 2, including dependency findings, delta persistence, and governance review tables.",
- "Apply idempotent schema updates and record the applied schema versions.",
- "Validate the expected table set before the API becomes ready.",
- "Backfill app_state into normalized repositories in a transaction.",
- "Verify counts and checksums before switching reads or removing app_state."
- ]
-}
diff --git a/migrations.json b/migrations.json
deleted file mode 100644
index 9f50225e2493b97cce6f8f070f13b1ce02dae74e..0000000000000000000000000000000000000000
--- a/migrations.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "schema": 1,
- "version": 2,
- "policy": {
- "autoMigrate": true,
- "backupBeforeMigration": true,
- "validateSchema": true
- },
- "tables": [
- "projects",
- "project_events",
- "snapshots",
- "snapshot_items",
- "canon_entries",
- "canon_revisions",
- "frontier_items",
- "frontier_observations",
- "archive_records",
- "knowledge_embeddings",
- "dependency_findings",
- "delta_runs",
- "delta_gaps",
- "delta_dependencies",
- "governance_reviews"
- ],
- "steps": [
- "Back up the local database before applying migrations when configured.",
- "Apply SQLite schema version 2, including dependency findings, delta persistence, and governance review tables.",
- "Apply idempotent schema updates and record the applied schema versions.",
- "Validate the expected table set before the API becomes ready.",
- "Backfill app_state into normalized repositories in a transaction.",
- "Verify counts and checksums before switching reads or removing app_state."
- ]
-}
diff --git a/migrations/manifest.json b/migrations/manifest.json
deleted file mode 100644
index 9f50225e2493b97cce6f8f070f13b1ce02dae74e..0000000000000000000000000000000000000000
--- a/migrations/manifest.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "schema": 1,
- "version": 2,
- "policy": {
- "autoMigrate": true,
- "backupBeforeMigration": true,
- "validateSchema": true
- },
- "tables": [
- "projects",
- "project_events",
- "snapshots",
- "snapshot_items",
- "canon_entries",
- "canon_revisions",
- "frontier_items",
- "frontier_observations",
- "archive_records",
- "knowledge_embeddings",
- "dependency_findings",
- "delta_runs",
- "delta_gaps",
- "delta_dependencies",
- "governance_reviews"
- ],
- "steps": [
- "Back up the local database before applying migrations when configured.",
- "Apply SQLite schema version 2, including dependency findings, delta persistence, and governance review tables.",
- "Apply idempotent schema updates and record the applied schema versions.",
- "Validate the expected table set before the API becomes ready.",
- "Backfill app_state into normalized repositories in a transaction.",
- "Verify counts and checksums before switching reads or removing app_state."
- ]
-}
diff --git a/models.generated.json b/models.generated.json
deleted file mode 100644
index a999fabd658409eb2da16ec2701ffa24fbc90ab8..0000000000000000000000000000000000000000
--- a/models.generated.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "operations": "omni",
- "research": "sonar",
- "implementation": "copilot",
- "ml": "qwen",
- "logic": "claude"
-}
diff --git a/models.json b/models.json
deleted file mode 100644
index a999fabd658409eb2da16ec2701ffa24fbc90ab8..0000000000000000000000000000000000000000
--- a/models.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "operations": "omni",
- "research": "sonar",
- "implementation": "copilot",
- "ml": "qwen",
- "logic": "claude"
-}
diff --git a/package-manifest.json b/package-manifest.json
deleted file mode 100644
index e4b65cf5e1e646e327692b9be7e0f77d21151c1c..0000000000000000000000000000000000000000
--- a/package-manifest.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "package": "@projectos/storage-fabric",
- "version": "0.1.0",
- "repositories": [
- "ProjectRepository",
- "CanonRepository",
- "SnapshotRepository",
- "FrontierRepository",
- "ArchiveRepository",
- "EmbeddingRepository"
- ]
-}
diff --git a/package.json b/package.json
index 659c834f88f7ea1954dfcf99239ae15f97efb4a0..d09ede33ff48ffe49f6003987ac466d43c1a51be 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
"mcp:profiles": "pnpm --filter @projectos/mcp-fabric profiles",
"mcp:check": "pnpm --filter @projectos/mcp-fabric check",
"mcp:connect": "pnpm --filter @projectos/mcp-fabric connect",
- "test": "pnpm --filter @projectos/schema-engine test && pnpm --filter @projectos/storage-fabric test && pnpm --filter @projectos/governance-fabric test && pnpm --filter @projectos/logic-fabric test && pnpm --filter @projectos/dependency-fabric test && pnpm --filter @projectos/delta-fabric test && pnpm --filter @projectos/knowledge-fabric test"
+ "test": "pnpm --filter @projectos/schema-engine test && pnpm --filter @projectos/storage-fabric test && pnpm --filter @projectos/governance-fabric test && pnpm --filter @projectos/logic-fabric test && pnpm --filter @projectos/dependency-fabric test && pnpm --filter @projectos/delta-fabric test && pnpm --filter @projectos/knowledge-fabric test && pnpm --filter @projectos/wallet test"
},
"devDependencies": {
"turbo": "^2.2.3",
diff --git a/packages/schema-engine/tests/docs/documentation-snapshot.test.ts b/packages/schema-engine/tests/docs/documentation-snapshot.test.ts
index b93ffa3cc9e7a11fbac18c8eb6e7d69b749e87ee..28c272d67f5eb53867954e8e996f8447b2741bfb 100644
--- a/packages/schema-engine/tests/docs/documentation-snapshot.test.ts
+++ b/packages/schema-engine/tests/docs/documentation-snapshot.test.ts
@@ -3,6 +3,8 @@ import { readFile } from 'node:fs/promises';
import { test } from 'node:test';
import { generateDocumentation, type DocumentationInput } from '../../src/generators/documentation.js';
+const normalizeNewlines = (value: string) => value.replace(/\r\n/g, '\n');
+
const input = {
project: {
name: 'Fixture', version: '1.0', mode: 'local',
@@ -24,6 +26,7 @@ for (const [name, file] of [['Architecture', 'ARCHITECTURE.md'], ['Storage', 'ST
test(`${name} documentation matches its generated snapshot`, async () => {
const generated = generateDocumentation(input, [name])[`docs/${file}`];
const expected = await readFile(new URL(`./snapshots/${file}`, import.meta.url), 'utf8');
- assert.equal(generated, expected);
+ // CI runners may check out snapshots with CRLF; compare on LF only.
+ assert.equal(normalizeNewlines(generated), normalizeNewlines(expected));
});
}
diff --git a/permissions.generated.json b/permissions.generated.json
deleted file mode 100644
index b52525bb907da73cba61f9e32e0811109dcb0f6e..0000000000000000000000000000000000000000
--- a/permissions.generated.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "rules": [
- {
- "id": "workspace-read",
- "resource": "workspace",
- "action": "read",
- "effect": "allow",
- "requiresApproval": false
- },
- {
- "id": "workspace-write",
- "resource": "workspace",
- "action": "write",
- "effect": "require-approval",
- "requiresApproval": true
- },
- {
- "id": "tool-execution",
- "resource": "tools",
- "action": "execute",
- "effect": "require-approval",
- "requiresApproval": true
- },
- {
- "id": "external-network",
- "resource": "external-network",
- "action": "access",
- "effect": "deny",
- "requiresApproval": true
- }
- ]
-}
diff --git a/permissions.json b/permissions.json
deleted file mode 100644
index b52525bb907da73cba61f9e32e0811109dcb0f6e..0000000000000000000000000000000000000000
--- a/permissions.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "rules": [
- {
- "id": "workspace-read",
- "resource": "workspace",
- "action": "read",
- "effect": "allow",
- "requiresApproval": false
- },
- {
- "id": "workspace-write",
- "resource": "workspace",
- "action": "write",
- "effect": "require-approval",
- "requiresApproval": true
- },
- {
- "id": "tool-execution",
- "resource": "tools",
- "action": "execute",
- "effect": "require-approval",
- "requiresApproval": true
- },
- {
- "id": "external-network",
- "resource": "external-network",
- "action": "access",
- "effect": "deny",
- "requiresApproval": true
- }
- ]
-}
diff --git a/projectos-bootstrap.xml b/projectos-bootstrap.xml
deleted file mode 100644
index ac7563ca4ee0534da4980df0083982b74ffe33e5..0000000000000000000000000000000000000000
--- a/projectos-bootstrap.xml
+++ /dev/null
@@ -1,215 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Research AgentKnowledge AgentTrust review
- Logic AgentDependency AgentInfrastructure Agent
- Implementation AgentLogic AgentTool Execution Agent
- Infrastructure AgentDependency AgentGovernance Agent
- Delta AgentEvolution AgentKnowledge Agent
- Governance AgentTrust validationApproval engine
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- IProjectRepository
- ProjectRepo
- ProjectStore
-
-
- ICanonRepository
- CanonRepo
- CanonStore
-
-
- ISnapshotRepository
- SnapshotRepo
- SnapshotStore
-
-
- IFrontierRepository
- FrontierRepo
- FrontierStore
-
-
- IArchiveRepository
- ArchiveRepo
- ArchiveStore
-
-
- IEmbeddingRepository
- EmbeddingRepo
- EmbeddingStore
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/projectos-manifest.json b/projectos-manifest.json
deleted file mode 100644
index 10b68dc0dfe7d96c6fc6654ad7afb2112e4a711c..0000000000000000000000000000000000000000
--- a/projectos-manifest.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "project": "ProjectOS",
- "version": "2.0",
- "mode": "local",
- "generatedAt": "2026-10-31T07:37:41.171Z",
- "bootstrap": "bootstrap.xml",
- "schema": "ProjectOS.xsd",
- "rules": "ProjectOS.sch",
- "generatedDirectory": "generated/",
- "documentationDirectory": "docs/",
- "storageDirectory": "storage/",
- "snapshotManifest": "generated/snapshots/snapshot-manifest.json",
- "migrationManifest": "migrations/manifest.json",
- "mcpRegistry": "generated/registries/mcp.json",
- "mcpProfiles": "generated/registries/mcp-profiles.json"
-}
diff --git a/projectos-rules.sch b/projectos-rules.sch
deleted file mode 100644
index 30fc8a015a6323b00858d2f5b4cd98e2ad7ae3aa..0000000000000000000000000000000000000000
--- a/projectos-rules.sch
+++ /dev/null
@@ -1,114 +0,0 @@
-
-
- ProjectOS v2 manifest rules
-
-
- The manifest version must be 2.0.
- The decision formula must define all 15 stages.
- The decision formula must include logic and governance gates.
- The project lifecycle must define all 12 stages.
- The manifest must define the 11 ProjectOS fabrics.
- The manifest must define six council templates.
- The manifest must define 12 specialist agents.
- At least one model routing entry is required.
- At least one workspace route is required.
- At least one permission rule is required.
- The runtime profile must be named.
-
-
-
-
- Every fabric needs a name.
- Every fabric needs a description for the dashboard.
- Every fabric must declare at least one capability.
-
-
- Every council needs a description.
- Every council must assign at least one member.
-
-
- Every agent needs a description.
-
-
-
-
- Fabric names must be unique.
- Council names must be unique.
- Agent names must be unique.
- Model roles must be unique.
- Workspace roles must be unique.
- Permission rule identifiers must be unique.
- Both local and enterprise storage targets must be named.
-
-
-
-
- Each model route needs a role and provider.
-
-
- Each workspace route needs a role and workspace name.
-
-
- Permission effects must be allow, deny, or require-approval.
-
-
-
-
- LogicAgent required.
-
-
-
-
- At least one storage provider must be enabled.
- At least one vector store must be configured.
- sqlite-vec requires the SQLite provider to be enabled.
- pgvector requires the PostgreSQL provider to be enabled.
-
-
-
-
- Canon storage must be retained permanently.
-
-
-
-
- Automatic migrations require backups.
- Automatic migrations require schema validation.
-
-
-
-
- At least one canonical symbol convention is required.
- A symbol alias cannot collide with a canonical symbol name.
-
-
- Each symbol convention needs a canonical name.
- Each canonical symbol needs at least one alias.
-
-
- Each language profile needs a name.
- Each language profile must define its interface prefix, which may be empty.
-
-
-
-
- At least one documentation output must be enabled.
- Architecture documentation must be enabled.
- Bootstrap documentation must be enabled.
- Schema documentation must be enabled.
-
-
-
-
- At least one MCP server entry is required.
- Every MCP server needs a name.
- Every MCP server needs a registered adapter name.
- Environment and keyring authentication require a credential reference.
- At least one MCP profile is required.
-
-
- The database-write profile must stay disabled until a write role and approval policy are configured.
- GitHub write access must stay disabled until a write-scoped credential is configured.
-
-
-
diff --git a/projectos-schema.xsd b/projectos-schema.xsd
deleted file mode 100644
index 07776cf2ed84949d9978c8db9e0ee96aa09c6227..0000000000000000000000000000000000000000
--- a/projectos-schema.xsd
+++ /dev/null
@@ -1,318 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/projectos.generated.json b/projectos.generated.json
deleted file mode 100644
index f896d1fd0f9cd8de2cdba7645b7fdf1da431621d..0000000000000000000000000000000000000000
--- a/projectos.generated.json
+++ /dev/null
@@ -1,649 +0,0 @@
-{
- "version": "2.0",
- "name": "ProjectOS",
- "mode": "local",
- "steps": [
- {
- "name": "Question",
- "description": "A person or connected system submits a question or requested outcome.",
- "capabilities": [],
- "gate": false
- },
- {
- "name": "Operations Agent",
- "description": "Coordinates intent analysis, routing, validation, and execution planning.",
- "capabilities": [],
- "gate": false
- },
- {
- "name": "Determine Intent",
- "description": "Classifies the request as research, implementation, infrastructure, evolution, or governance work.",
- "capabilities": [],
- "gate": false
- },
- {
- "name": "Choose Council Template",
- "description": "Selects a council template with the relevant specialists.",
- "capabilities": [],
- "gate": false
- },
- {
- "name": "Assign Models",
- "description": "Selects model providers and capabilities that match the task and trust requirements.",
- "capabilities": [],
- "gate": false
- },
- {
- "name": "Assign Datasets",
- "description": "Attaches project knowledge and datasets with source and permission context.",
- "capabilities": [],
- "gate": false
- },
- {
- "name": "Assign Tools",
- "description": "Selects tools required by the plan, subject to policy and permission checks.",
- "capabilities": [],
- "gate": false
- },
- {
- "name": "Assign Workspace",
- "description": "Binds the plan to a project workspace and runtime boundary.",
- "capabilities": [],
- "gate": false
- },
- {
- "name": "Validate Through Logic",
- "description": "Checks feasibility, consistency, assumptions, and contradictions before action.",
- "capabilities": [],
- "gate": true
- },
- {
- "name": "Validate Through Governance",
- "description": "Checks trust, policies, permissions, and approval requirements before action.",
- "capabilities": [],
- "gate": true
- },
- {
- "name": "Execute",
- "description": "Runs only actions that are available, authorized, and within the configured runtime.",
- "capabilities": [],
- "gate": false
- },
- {
- "name": "Store Knowledge",
- "description": "Records useful evidence, decisions, and outcomes with provenance.",
- "capabilities": [],
- "gate": false
- },
- {
- "name": "Snapshot",
- "description": "Captures the project state needed to reproduce or review the work.",
- "capabilities": [],
- "gate": false
- },
- {
- "name": "Consolidate",
- "description": "Merges compatible learning into organized project knowledge.",
- "capabilities": [],
- "gate": false
- },
- {
- "name": "Update Canon",
- "description": "Updates the canonical project record with reviewed, durable findings.",
- "capabilities": [],
- "gate": false
- }
- ],
- "stages": [
- {
- "name": "Research",
- "description": "Discover the problem and evidence.",
- "capabilities": []
- },
- {
- "name": "Active",
- "description": "Coordinate work and decisions.",
- "capabilities": []
- },
- {
- "name": "Production",
- "description": "Deliver stable project outcomes.",
- "capabilities": []
- },
- {
- "name": "Evolving",
- "description": "Improve capabilities continuously.",
- "capabilities": []
- },
- {
- "name": "Frontier Comparison",
- "description": "Compare current project state with emerging approaches.",
- "capabilities": []
- },
- {
- "name": "Delta Analysis",
- "description": "Identify the gaps between current and target state.",
- "capabilities": []
- },
- {
- "name": "Missing Dependencies",
- "description": "Surface unavailable requirements.",
- "capabilities": []
- },
- {
- "name": "Evolution Suggestions",
- "description": "Propose the next improvements.",
- "capabilities": []
- },
- {
- "name": "Obsolete",
- "description": "Mark work that is ready for retirement.",
- "capabilities": []
- },
- {
- "name": "Snapshot",
- "description": "Preserve a durable project state.",
- "capabilities": []
- },
- {
- "name": "Archive",
- "description": "Store completed work and its history.",
- "capabilities": []
- },
- {
- "name": "Template",
- "description": "Make proven project patterns reusable.",
- "capabilities": []
- }
- ],
- "fabrics": [
- {
- "name": "Identity",
- "description": "Resolves who is acting, what they own, and which roles apply.",
- "icon": "◉",
- "capabilities": [
- "Ownership graph",
- "Role registry",
- "LDAP, Entra, OAuth, and SAML connectors"
- ]
- },
- {
- "name": "Trust",
- "description": "Evaluates sources, datasets, and models against workspace trust requirements.",
- "icon": "⬡",
- "capabilities": [
- "Source verification",
- "Dataset and model verification",
- "Trust scores"
- ]
- },
- {
- "name": "Research",
- "description": "Connects research sources and organizes evidence for project decisions.",
- "icon": "⌕",
- "capabilities": [
- "Web and paper discovery",
- "Documentation connectors",
- "Research source attribution"
- ]
- },
- {
- "name": "Knowledge",
- "description": "Organizes project memory into research, lessons, canon, frontier, and archive.",
- "icon": "▧",
- "capabilities": [
- "Project memory",
- "Canonical knowledge",
- "Snapshots and archive"
- ]
- },
- {
- "name": "Logic",
- "description": "Builds plans and checks feasibility, consistency, and competing claims.",
- "icon": "⌘",
- "capabilities": [
- "Intent analysis",
- "Planning and validation",
- "Consensus and contradictions"
- ]
- },
- {
- "name": "Delta",
- "description": "Compares current and target states to identify gaps and useful evolution.",
- "icon": "Δ",
- "capabilities": [
- "Current and frontier state",
- "Gap analysis",
- "Evolution and obsolescence"
- ]
- },
- {
- "name": "Dependency",
- "description": "Finds unmet runtime, access, model, tool, library, and dataset requirements.",
- "icon": "⛓",
- "capabilities": [
- "Missing permissions",
- "Missing tools and models",
- "Missing libraries, datasets, and infrastructure"
- ]
- },
- {
- "name": "Governance",
- "description": "Applies policy gates, approval decisions, overrides, and audit recording.",
- "icon": "⬡",
- "capabilities": [
- "Policy registry",
- "Approval queue",
- "Audit history"
- ]
- },
- {
- "name": "Execution",
- "description": "Dispatches approved work to the appropriate execution adapter.",
- "icon": "▶",
- "capabilities": [
- "PowerShell, Python, and Node",
- "Docker and Git",
- "MCP tools"
- ]
- },
- {
- "name": "Storage",
- "description": "Defines local and enterprise storage for project artifacts and vectors.",
- "icon": "▤",
- "capabilities": [
- "SQLite and sqlite-vec",
- "PostgreSQL and pgvector",
- "Snapshots, consolidation, and archives"
- ]
- },
- {
- "name": "Canvas",
- "description": "Provides visual workspaces for diagrams, whiteboards, and knowledge views.",
- "icon": "▱",
- "capabilities": [
- "Whiteboard canvas",
- "Diagram engine",
- "Knowledge views"
- ]
- }
- ],
- "agents": [
- {
- "name": "Research Agent",
- "description": "Finds evidence and records sources relevant to a question.",
- "capabilities": []
- },
- {
- "name": "ML Agent",
- "description": "Reviews model choices, evaluation needs, and model-specific constraints.",
- "capabilities": []
- },
- {
- "name": "Logic Agent",
- "description": "Checks plans for feasibility, consistency, and contradictions.",
- "capabilities": []
- },
- {
- "name": "Knowledge Agent",
- "description": "Retrieves and organizes project memory and research.",
- "capabilities": []
- },
- {
- "name": "Dependency Agent",
- "description": "Identifies missing tools, permissions, libraries, data, or infrastructure.",
- "capabilities": []
- },
- {
- "name": "Delta Agent",
- "description": "Compares current project state with a target or frontier.",
- "capabilities": []
- },
- {
- "name": "Evolution Agent",
- "description": "Turns comparison results into sequenced improvement suggestions.",
- "capabilities": []
- },
- {
- "name": "Infrastructure Agent",
- "description": "Plans runtime, storage, and environment requirements.",
- "capabilities": []
- },
- {
- "name": "Tool Execution Agent",
- "description": "Coordinates approved tool calls through configured adapters.",
- "capabilities": []
- },
- {
- "name": "Governance Agent",
- "description": "Applies policy checks and identifies human approval needs.",
- "capabilities": []
- },
- {
- "name": "Canonicalization Agent",
- "description": "Turns verified outcomes into structured, reusable canon.",
- "capabilities": []
- },
- {
- "name": "Implementation Agent",
- "description": "Plans approved implementation work.",
- "capabilities": []
- }
- ],
- "councils": [
- {
- "name": "Research Council",
- "description": "Combines research and knowledge specialists to answer evidence questions.",
- "icon": "◎",
- "capabilities": [
- "Research Agent",
- "Knowledge Agent",
- "Trust review"
- ]
- },
- {
- "name": "Architecture Council",
- "description": "Reviews boundaries, dependencies, and system-level trade-offs.",
- "icon": "◇",
- "capabilities": [
- "Logic Agent",
- "Dependency Agent",
- "Infrastructure Agent"
- ]
- },
- {
- "name": "Implementation Council",
- "description": "Coordinates implementation from an approved plan through a reviewable change.",
- "icon": "⚒",
- "capabilities": [
- "Implementation Agent",
- "Logic Agent",
- "Tool Execution Agent"
- ]
- },
- {
- "name": "Infrastructure Council",
- "description": "Checks environments, storage, runtime, and deployment dependencies.",
- "icon": "⌂",
- "capabilities": [
- "Infrastructure Agent",
- "Dependency Agent",
- "Governance Agent"
- ]
- },
- {
- "name": "Evolution Council",
- "description": "Compares project state with the frontier and ranks improvement opportunities.",
- "icon": "↻",
- "capabilities": [
- "Delta Agent",
- "Evolution Agent",
- "Knowledge Agent"
- ]
- },
- {
- "name": "Governance Council",
- "description": "Reviews policies, trust, approvals, and recorded exceptions.",
- "icon": "⬡",
- "capabilities": [
- "Governance Agent",
- "Trust validation",
- "Approval engine"
- ]
- }
- ],
- "governance": [
- {
- "name": "Policy Engine",
- "description": "Evaluates plans against the active policy registry.",
- "capabilities": []
- },
- {
- "name": "Approval Engine",
- "description": "Routes gated actions to the right reviewer.",
- "capabilities": []
- },
- {
- "name": "Trust Validation",
- "description": "Checks identity, sources, datasets, and models.",
- "capabilities": []
- },
- {
- "name": "Override Engine",
- "description": "Records scoped exceptions with justification.",
- "capabilities": []
- },
- {
- "name": "Audit Log",
- "description": "Keeps an attributable record of decisions and actions.",
- "capabilities": []
- },
- {
- "name": "Policy Registry",
- "description": "Maintains versioned workspace rules.",
- "capabilities": []
- }
- ],
- "knowledge": [
- {
- "name": "Project memory",
- "description": "Working context and decisions.",
- "capabilities": []
- },
- {
- "name": "Research",
- "description": "Sources, findings, and evidence.",
- "capabilities": []
- },
- {
- "name": "Lessons",
- "description": "Reusable outcomes and reflections.",
- "capabilities": []
- },
- {
- "name": "Canon",
- "description": "The current trusted project record.",
- "capabilities": []
- },
- {
- "name": "Frontier",
- "description": "Emerging ideas and state of the art.",
- "capabilities": []
- },
- {
- "name": "Snapshots",
- "description": "Point-in-time project state.",
- "capabilities": []
- },
- {
- "name": "Archive",
- "description": "Preserved retired work.",
- "capabilities": []
- }
- ],
- "runtime": {
- "profile": "Privileged",
- "snapshots": true,
- "automaticRouting": true,
- "consolidation": true,
- "startupOrder": [
- "schema",
- "bootstrap",
- "fabrics",
- "identity",
- "trust",
- "storage",
- "knowledge",
- "logic",
- "governance",
- "operations",
- "agents",
- "registries",
- "council",
- "mcp",
- "desktop"
- ]
- },
- "storage": {
- "local": "SQLite,sqlite-vec",
- "enterprise": "PostgreSQL,pgvector"
- },
- "models": {
- "operations": "omni",
- "research": "sonar",
- "implementation": "copilot",
- "ml": "qwen",
- "logic": "claude"
- },
- "workspaces": {
- "research": "VSCode",
- "implementation": "Zed",
- "ml": "PyCharm",
- "logic": "IntelliJ",
- "database": "DataGrip",
- "canvas": "HFSpace"
- },
- "permissions": [
- {
- "id": "workspace-read",
- "resource": "workspace",
- "action": "read",
- "effect": "allow",
- "requiresApproval": false
- },
- {
- "id": "workspace-write",
- "resource": "workspace",
- "action": "write",
- "effect": "require-approval",
- "requiresApproval": true
- },
- {
- "id": "tool-execution",
- "resource": "tools",
- "action": "execute",
- "effect": "require-approval",
- "requiresApproval": true
- },
- {
- "id": "external-network",
- "resource": "external-network",
- "action": "access",
- "effect": "deny",
- "requiresApproval": true
- }
- ],
- "mcpServers": [
- {
- "name": "filesystem",
- "adapter": "filesystem",
- "trust": "High",
- "enabled": true,
- "authMode": "none",
- "accessMode": "read-only"
- },
- {
- "name": "git",
- "adapter": "git",
- "trust": "High",
- "enabled": false,
- "authMode": "none",
- "accessMode": "read-only"
- },
- {
- "name": "github-readonly",
- "adapter": "github",
- "trust": "Verified",
- "enabled": true,
- "authMode": "oauth",
- "accessMode": "read-only"
- },
- {
- "name": "github-write",
- "adapter": "github",
- "trust": "High",
- "enabled": false,
- "authMode": "oauth",
- "accessMode": "read-write"
- },
- {
- "name": "postgres-readonly",
- "adapter": "postgres",
- "trust": "Verified",
- "enabled": true,
- "authMode": "keyring",
- "credentialRef": "PROJECTOS_POSTGRES_READ_PROFILE",
- "accessMode": "read-only"
- },
- {
- "name": "postgres-write",
- "adapter": "postgres",
- "trust": "High",
- "enabled": false,
- "authMode": "keyring",
- "credentialRef": "PROJECTOS_POSTGRES_WRITE_PROFILE",
- "accessMode": "read-write"
- },
- {
- "name": "fetch",
- "adapter": "fetch",
- "trust": "Medium",
- "enabled": true,
- "authMode": "none",
- "accessMode": "read-only"
- },
- {
- "name": "memory",
- "adapter": "memory",
- "trust": "High",
- "enabled": true,
- "authMode": "none",
- "accessMode": "read-only"
- }
- ],
- "mcpProfiles": [
- {
- "name": "workspace",
- "description": "Workspace files and persistent MCP memory.",
- "enabled": true,
- "servers": [
- "filesystem",
- "memory"
- ]
- },
- {
- "name": "research",
- "description": "Public web research and read-only GitHub context.",
- "enabled": true,
- "servers": [
- "fetch",
- "github-readonly"
- ]
- },
- {
- "name": "implementation",
- "description": "Workspace files and read-only GitHub context.",
- "enabled": true,
- "servers": [
- "filesystem",
- "github-readonly"
- ]
- },
- {
- "name": "database-readonly",
- "description": "Read-only PostgreSQL access using an OS keyring profile.",
- "enabled": true,
- "servers": [
- "postgres-readonly"
- ]
- },
- {
- "name": "database-write",
- "description": "Explicitly disabled write access; requires a separate least-privilege database role and approval policy.",
- "enabled": false,
- "servers": [
- "postgres-write"
- ]
- }
- ]
-}
diff --git a/repositories.json b/repositories.json
deleted file mode 100644
index 977351fd26a8ca572b905c011435802e53dfddaf..0000000000000000000000000000000000000000
--- a/repositories.json
+++ /dev/null
@@ -1,8 +0,0 @@
-[
- "ProjectRepository",
- "CanonRepository",
- "SnapshotRepository",
- "FrontierRepository",
- "ArchiveRepository",
- "EmbeddingRepository"
-]
diff --git a/runtime.generated.json b/runtime.generated.json
deleted file mode 100644
index 95b4565709d55d3f5202033bd59be5c16340cd2d..0000000000000000000000000000000000000000
--- a/runtime.generated.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "profile": "Privileged",
- "snapshots": true,
- "automaticRouting": true,
- "consolidation": true,
- "startupOrder": [
- "schema",
- "bootstrap",
- "fabrics",
- "identity",
- "trust",
- "storage",
- "knowledge",
- "logic",
- "governance",
- "operations",
- "agents",
- "registries",
- "council",
- "mcp",
- "desktop"
- ]
-}
diff --git a/runtime.json b/runtime.json
deleted file mode 100644
index 95b4565709d55d3f5202033bd59be5c16340cd2d..0000000000000000000000000000000000000000
--- a/runtime.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "profile": "Privileged",
- "snapshots": true,
- "automaticRouting": true,
- "consolidation": true,
- "startupOrder": [
- "schema",
- "bootstrap",
- "fabrics",
- "identity",
- "trust",
- "storage",
- "knowledge",
- "logic",
- "governance",
- "operations",
- "agents",
- "registries",
- "council",
- "mcp",
- "desktop"
- ]
-}
diff --git a/services/wallet/.env.example b/services/wallet/.env.example
deleted file mode 100644
index 8e29bd13da513e4fbf6c445a679085056f11aad6..0000000000000000000000000000000000000000
--- a/services/wallet/.env.example
+++ /dev/null
@@ -1,11 +0,0 @@
-# Wallet service — copy to .env and fill with TEST values only. Never commit real values.
-PORT=7860
-WALLET_USER_ID=00000000-0000-0000-0000-000000000001
-STRIPE_SECRET_KEY=sk_test_REPLACE_ME
-STRIPE_WEBHOOK_SECRET=whsec_REPLACE_ME
-STRIPE_SUCCESS_URL=http://localhost:7860/funding/success
-STRIPE_CANCEL_URL=http://localhost:7860/funding/cancel
-SUPABASE_URL=https://YOUR_PROJECT.supabase.co
-SUPABASE_SERVICE_ROLE_KEY=REPLACE_ME
-# Set to "memory" to run without Supabase (dev/tests)
-WALLET_STORE=supabase
diff --git a/snapshot-manifest.json b/snapshot-manifest.json
deleted file mode 100644
index 7b5209083debd0707745204836dcffaf7d1607ec..0000000000000000000000000000000000000000
--- a/snapshot-manifest.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "schema": 1,
- "timestamp": "2026-10-31T07:37:41.171Z",
- "project": "ProjectOS",
- "bootstrapHash": "sha256:6b21ad2a11f34f6976e7533430251acf6f694763fe086c5307c7f6d1e2eaecab",
- "runtimeHash": "sha256:7f7ce051acbc510849e40ff4ceb81b75691497fa0ca7b866265b175795acd639",
- "storageHash": "sha256:fe8bfd3a0643b842864575a0d7d9854b4a6144af5fd9b5b4c9c2a82e2c1156e1",
- "mcpHash": "sha256:de8b5554fe7fea13f95693475adf7a29b93c7102f62504d27c5918a39d9c5277"
-}
diff --git a/storage-migration-plan.md b/storage-migration-plan.md
deleted file mode 100644
index 34e3e36a4f4252e2f27b0818c4b3636dd4903eb1..0000000000000000000000000000000000000000
--- a/storage-migration-plan.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Storage migration plan
-
-`bootstrap.xml` is the source of storage configuration. The schema engine validates the provider, vector-store, retention, and migration settings, then writes `configs/generated/storage.generated.json`. The local SQLite schema is already applied when the API opens `data/projectos.sqlite`; existing state routes still use `app_state`.
-
-## Phase 1: Dual-write
-
-Add normalized writes for project and snapshot changes while continuing to update `app_state`. Perform both writes in one SQLite transaction, and return success only after both have committed. Give events and snapshots stable IDs so retries do not create duplicates.
-
-## Phase 2: Repositories
-
-Introduce `ProjectRepository`, `SnapshotRepository`, `CanonRepository`, `FrontierRepository`, `ArchiveRepository`, and `EmbeddingRepository`. Keep HTTP handlers responsible for request validation and call the repositories for persistence.
-
-| Route | Primary table |
-| --- | --- |
-| `POST /api/projects` | `projects` |
-| `POST /api/snapshots` | `snapshots`, `snapshot_items` |
-| `POST /api/canon` | `canon_entries`, `canon_revisions` |
-| `POST /api/frontier` | `frontier_items`, `frontier_observations` |
-| `POST /api/archive` | `archive_records` |
-
-## Phase 3: Backfill and read cutover
-
-Read legacy arrays from `app_state`, map each record into its normalized table, and preserve the original JSON payload for fields without a normalized column. Make the backfill idempotent. Compare record counts and content checksums before switching reads to repositories. Keep the old state values until the cutover is confirmed.
-
-- `app_state.projects` → `projects`
-- `app_state.snapshots` → `snapshots` and `snapshot_items`
-- governance history → `project_events`
-
-## Phase 4: Vector backfill
-
-Generate embeddings for canon entries, frontier items, and project descriptions through the configured embedding provider. Record model key, dimensions, and source content hash. Verify the configured dimensions before writing. SQLite stores JSON vectors; PostgreSQL uses `vector(1536)` and its HNSW cosine index. Change both schemas and the manifest together when adopting a model with a different dimension.
-
-## Phase 5: Remove compatibility storage
-
-After all reads and writes use repositories and the backfill is verified, remove `app_state`, its route compatibility code, and legacy migration logic. Keep migration history and archive records according to the configured retention policy. Before enabling automatic schema changes, honor `backupBeforeMigration` and `validateSchema` from the generated storage config.
diff --git a/storage.generated.json b/storage.generated.json
deleted file mode 100644
index 2230d9ca9c231d4812f62e8626eaef528925654c..0000000000000000000000000000000000000000
--- a/storage.generated.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "providers": [
- "SQLite",
- "PostgreSQL"
- ],
- "vectorStores": [
- {
- "provider": "sqlite-vec",
- "dimensions": 1536
- },
- {
- "provider": "pgvector",
- "dimensions": 1536
- }
- ],
- "retention": {
- "snapshotDays": 90,
- "archiveYears": 7,
- "keepCanonForever": true
- },
- "migration": {
- "autoMigrate": true,
- "backupBeforeMigration": true,
- "validateSchema": true
- }
-}
diff --git a/storage.json b/storage.json
deleted file mode 100644
index 2230d9ca9c231d4812f62e8626eaef528925654c..0000000000000000000000000000000000000000
--- a/storage.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "providers": [
- "SQLite",
- "PostgreSQL"
- ],
- "vectorStores": [
- {
- "provider": "sqlite-vec",
- "dimensions": 1536
- },
- {
- "provider": "pgvector",
- "dimensions": 1536
- }
- ],
- "retention": {
- "snapshotDays": 90,
- "archiveYears": 7,
- "keepCanonForever": true
- },
- "migration": {
- "autoMigrate": true,
- "backupBeforeMigration": true,
- "validateSchema": true
- }
-}
diff --git a/storage/package-manifest.json b/storage/package-manifest.json
deleted file mode 100644
index e4b65cf5e1e646e327692b9be7e0f77d21151c1c..0000000000000000000000000000000000000000
--- a/storage/package-manifest.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "package": "@projectos/storage-fabric",
- "version": "0.1.0",
- "repositories": [
- "ProjectRepository",
- "CanonRepository",
- "SnapshotRepository",
- "FrontierRepository",
- "ArchiveRepository",
- "EmbeddingRepository"
- ]
-}
diff --git a/storage/postgres/schema.sql b/storage/postgres/schema.sql
deleted file mode 100644
index 5aff07830e0de6e9680e5e48b2bb1bc319d004c9..0000000000000000000000000000000000000000
--- a/storage/postgres/schema.sql
+++ /dev/null
@@ -1,255 +0,0 @@
-CREATE EXTENSION IF NOT EXISTS vector;
-
-CREATE TABLE IF NOT EXISTS storage_schema_migrations (
- version INTEGER PRIMARY KEY,
- name TEXT NOT NULL,
- applied_at TIMESTAMPTZ NOT NULL DEFAULT now()
-);
-
-CREATE TABLE IF NOT EXISTS projects (
- project_id TEXT PRIMARY KEY,
- name TEXT NOT NULL,
- description TEXT NOT NULL DEFAULT '',
- stage TEXT NOT NULL DEFAULT 'Research',
- state_json JSONB NOT NULL DEFAULT '{}'::jsonb,
- created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- archived_at TIMESTAMPTZ
-);
-
-CREATE INDEX IF NOT EXISTS projects_stage_updated_idx ON projects(stage, updated_at DESC);
-CREATE INDEX IF NOT EXISTS projects_state_gin_idx ON projects USING GIN (state_json);
-
-CREATE TABLE IF NOT EXISTS project_events (
- event_id TEXT PRIMARY KEY,
- project_id TEXT NOT NULL REFERENCES projects(project_id) ON DELETE CASCADE,
- event_type TEXT NOT NULL,
- payload_json JSONB NOT NULL DEFAULT '{}'::jsonb,
- created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- created_by TEXT
-);
-
-CREATE INDEX IF NOT EXISTS project_events_project_created_idx ON project_events(project_id, created_at DESC);
-
-CREATE TABLE IF NOT EXISTS snapshots (
- snapshot_id TEXT PRIMARY KEY,
- project_id TEXT NOT NULL REFERENCES projects(project_id) ON DELETE CASCADE,
- snapshot_type TEXT NOT NULL CHECK (snapshot_type IN ('manual', 'scheduled', 'pre_change', 'canon', 'frontier', 'archive')),
- label TEXT NOT NULL,
- source TEXT NOT NULL DEFAULT 'local',
- schema_version TEXT NOT NULL DEFAULT '1',
- state_json JSONB NOT NULL,
- checksum TEXT NOT NULL,
- created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- created_by TEXT,
- metadata_json JSONB NOT NULL DEFAULT '{}'::jsonb
-);
-
-CREATE INDEX IF NOT EXISTS snapshots_project_created_idx ON snapshots(project_id, created_at DESC);
-CREATE INDEX IF NOT EXISTS snapshots_type_created_idx ON snapshots(snapshot_type, created_at DESC);
-CREATE INDEX IF NOT EXISTS snapshots_metadata_gin_idx ON snapshots USING GIN (metadata_json);
-
-CREATE TABLE IF NOT EXISTS snapshot_items (
- snapshot_item_id TEXT PRIMARY KEY,
- snapshot_id TEXT NOT NULL REFERENCES snapshots(snapshot_id) ON DELETE CASCADE,
- entity_type TEXT NOT NULL,
- entity_id TEXT NOT NULL,
- ordinal INTEGER NOT NULL DEFAULT 0 CHECK (ordinal >= 0),
- payload_json JSONB NOT NULL,
- content_hash TEXT NOT NULL,
- UNIQUE (snapshot_id, entity_type, entity_id)
-);
-
-CREATE INDEX IF NOT EXISTS snapshot_items_entity_idx ON snapshot_items(entity_type, entity_id);
-
-CREATE TABLE IF NOT EXISTS canon_entries (
- entry_id TEXT PRIMARY KEY,
- project_id TEXT REFERENCES projects(project_id) ON DELETE SET NULL,
- slug TEXT NOT NULL,
- title TEXT NOT NULL,
- body TEXT NOT NULL,
- entry_type TEXT NOT NULL CHECK (entry_type IN ('principle', 'decision', 'pattern', 'policy', 'knowledge', 'procedure')),
- status TEXT NOT NULL DEFAULT 'draft' CHECK (status IN ('draft', 'active', 'superseded', 'archived')),
- version INTEGER NOT NULL DEFAULT 1 CHECK (version > 0),
- source_snapshot_id TEXT REFERENCES snapshots(snapshot_id) ON DELETE SET NULL,
- supersedes_entry_id TEXT REFERENCES canon_entries(entry_id) ON DELETE SET NULL,
- metadata_json JSONB NOT NULL DEFAULT '{}'::jsonb,
- valid_from TIMESTAMPTZ,
- valid_until TIMESTAMPTZ,
- created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- UNIQUE (project_id, slug, version)
-);
-
-CREATE INDEX IF NOT EXISTS canon_entries_project_status_idx ON canon_entries(project_id, status, updated_at DESC);
-CREATE INDEX IF NOT EXISTS canon_entries_type_status_idx ON canon_entries(entry_type, status);
-CREATE INDEX IF NOT EXISTS canon_entries_metadata_gin_idx ON canon_entries USING GIN (metadata_json);
-
-CREATE TABLE IF NOT EXISTS canon_revisions (
- revision_id TEXT PRIMARY KEY,
- entry_id TEXT NOT NULL REFERENCES canon_entries(entry_id) ON DELETE CASCADE,
- version INTEGER NOT NULL CHECK (version > 0),
- title TEXT NOT NULL,
- body TEXT NOT NULL,
- source_snapshot_id TEXT REFERENCES snapshots(snapshot_id) ON DELETE SET NULL,
- change_summary TEXT NOT NULL DEFAULT '',
- metadata_json JSONB NOT NULL DEFAULT '{}'::jsonb,
- created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- created_by TEXT,
- UNIQUE (entry_id, version)
-);
-
-CREATE INDEX IF NOT EXISTS canon_revisions_entry_created_idx ON canon_revisions(entry_id, created_at DESC);
-
-CREATE TABLE IF NOT EXISTS frontier_items (
- frontier_id TEXT PRIMARY KEY,
- project_id TEXT REFERENCES projects(project_id) ON DELETE CASCADE,
- domain TEXT NOT NULL,
- item_type TEXT NOT NULL CHECK (item_type IN ('technology', 'capability', 'practice', 'dependency', 'research', 'risk')),
- title TEXT NOT NULL,
- description TEXT NOT NULL DEFAULT '',
- rationale TEXT NOT NULL DEFAULT '',
- status TEXT NOT NULL DEFAULT 'candidate' CHECK (status IN ('candidate', 'tracking', 'adopted', 'rejected', 'obsolete')),
- confidence DOUBLE PRECISION CHECK (confidence IS NULL OR (confidence >= 0 AND confidence <= 1)),
- impact TEXT NOT NULL DEFAULT 'medium' CHECK (impact IN ('low', 'medium', 'high', 'critical')),
- first_seen_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- last_reviewed_at TIMESTAMPTZ,
- review_after TIMESTAMPTZ,
- metadata_json JSONB NOT NULL DEFAULT '{}'::jsonb,
- created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
-);
-
-CREATE INDEX IF NOT EXISTS frontier_items_project_status_idx ON frontier_items(project_id, status, updated_at DESC);
-CREATE INDEX IF NOT EXISTS frontier_items_domain_review_idx ON frontier_items(domain, review_after);
-CREATE INDEX IF NOT EXISTS frontier_items_metadata_gin_idx ON frontier_items USING GIN (metadata_json);
-
-CREATE TABLE IF NOT EXISTS frontier_observations (
- observation_id TEXT PRIMARY KEY,
- frontier_id TEXT NOT NULL REFERENCES frontier_items(frontier_id) ON DELETE CASCADE,
- source_name TEXT NOT NULL,
- source_uri TEXT,
- observed_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- summary TEXT NOT NULL,
- evidence_json JSONB NOT NULL DEFAULT '{}'::jsonb,
- confidence DOUBLE PRECISION CHECK (confidence IS NULL OR (confidence >= 0 AND confidence <= 1)),
- created_at TIMESTAMPTZ NOT NULL DEFAULT now()
-);
-
-CREATE INDEX IF NOT EXISTS frontier_observations_frontier_idx ON frontier_observations(frontier_id, observed_at DESC);
-
-CREATE TABLE IF NOT EXISTS archive_records (
- archive_id TEXT PRIMARY KEY,
- project_id TEXT REFERENCES projects(project_id) ON DELETE SET NULL,
- resource_type TEXT NOT NULL,
- resource_id TEXT NOT NULL,
- snapshot_id TEXT REFERENCES snapshots(snapshot_id) ON DELETE SET NULL,
- payload_json JSONB NOT NULL,
- checksum TEXT NOT NULL,
- archive_reason TEXT NOT NULL DEFAULT '',
- archived_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- archived_by TEXT,
- retention_until TIMESTAMPTZ,
- restored_at TIMESTAMPTZ,
- metadata_json JSONB NOT NULL DEFAULT '{}'::jsonb
-);
-
-CREATE INDEX IF NOT EXISTS archive_records_project_archived_idx ON archive_records(project_id, archived_at DESC);
-CREATE INDEX IF NOT EXISTS archive_records_resource_idx ON archive_records(resource_type, resource_id, archived_at DESC);
-CREATE INDEX IF NOT EXISTS archive_records_retention_idx ON archive_records(retention_until) WHERE restored_at IS NULL;
-
-CREATE TABLE IF NOT EXISTS knowledge_embeddings (
- embedding_id TEXT PRIMARY KEY,
- entity_type TEXT NOT NULL,
- entity_id TEXT NOT NULL,
- model_key TEXT NOT NULL,
- dimensions INTEGER NOT NULL DEFAULT 1536 CHECK (dimensions = 1536),
- embedding VECTOR(1536) NOT NULL,
- content_hash TEXT NOT NULL,
- created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- UNIQUE (entity_type, entity_id, model_key)
-);
-
-CREATE INDEX IF NOT EXISTS knowledge_embeddings_entity_idx ON knowledge_embeddings(entity_type, entity_id);
-CREATE INDEX IF NOT EXISTS knowledge_embeddings_cosine_hnsw_idx
- ON knowledge_embeddings USING HNSW (embedding vector_cosine_ops);
-
-CREATE TABLE IF NOT EXISTS dependency_findings (
- finding_id TEXT PRIMARY KEY,
- project_id TEXT NOT NULL REFERENCES projects(project_id) ON DELETE CASCADE,
- kind TEXT NOT NULL CHECK (kind IN ('model', 'dataset', 'permission', 'tool', 'infrastructure')),
- name TEXT NOT NULL,
- description TEXT NOT NULL DEFAULT '',
- status TEXT NOT NULL DEFAULT 'open' CHECK (status IN ('open', 'resolved', 'waived')),
- source TEXT NOT NULL DEFAULT 'manual',
- metadata_json JSONB NOT NULL DEFAULT '{}'::jsonb,
- detected_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- resolved_at TIMESTAMPTZ
-);
-
-CREATE INDEX IF NOT EXISTS dependency_findings_project_status_idx ON dependency_findings(project_id, status, detected_at DESC);
-CREATE INDEX IF NOT EXISTS dependency_findings_kind_name_idx ON dependency_findings(kind, name, status);
-
-CREATE TABLE IF NOT EXISTS delta_runs (
- delta_run_id TEXT PRIMARY KEY,
- project_id TEXT NOT NULL REFERENCES projects(project_id) ON DELETE CASCADE,
- current_label TEXT NOT NULL,
- target_label TEXT NOT NULL,
- current_state_json JSONB NOT NULL,
- target_state_json JSONB NOT NULL,
- status TEXT NOT NULL CHECK (status IN ('complete', 'blocked')),
- created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- created_by TEXT
-);
-
-CREATE INDEX IF NOT EXISTS delta_runs_project_created_idx ON delta_runs(project_id, created_at DESC);
-
-CREATE TABLE IF NOT EXISTS delta_gaps (
- gap_id TEXT PRIMARY KEY,
- delta_run_id TEXT NOT NULL REFERENCES delta_runs(delta_run_id) ON DELETE CASCADE,
- dimension TEXT NOT NULL,
- current_values_json JSONB NOT NULL,
- target_values_json JSONB NOT NULL,
- missing_values_json JSONB NOT NULL,
- severity TEXT NOT NULL CHECK (severity IN ('gap', 'blocker')),
- status TEXT NOT NULL DEFAULT 'open' CHECK (status IN ('open', 'resolved', 'accepted')),
- created_at TIMESTAMPTZ NOT NULL DEFAULT now()
-);
-
-CREATE INDEX IF NOT EXISTS delta_gaps_run_status_idx ON delta_gaps(delta_run_id, status);
-
-CREATE TABLE IF NOT EXISTS delta_dependencies (
- delta_dependency_id TEXT PRIMARY KEY,
- delta_run_id TEXT NOT NULL REFERENCES delta_runs(delta_run_id) ON DELETE CASCADE,
- finding_id TEXT NOT NULL REFERENCES dependency_findings(finding_id) ON DELETE RESTRICT,
- created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- UNIQUE (delta_run_id, finding_id)
-);
-
-CREATE INDEX IF NOT EXISTS delta_dependencies_run_idx ON delta_dependencies(delta_run_id);
-
-CREATE TABLE IF NOT EXISTS governance_reviews (
- review_id TEXT PRIMARY KEY,
- project_id TEXT NOT NULL REFERENCES projects(project_id) ON DELETE CASCADE,
- action TEXT NOT NULL,
- resource_type TEXT NOT NULL,
- resource_id TEXT NOT NULL,
- decision TEXT NOT NULL DEFAULT 'pending' CHECK (decision IN ('pending', 'approved', 'rejected')),
- requested_by TEXT,
- requested_at TIMESTAMPTZ NOT NULL DEFAULT now(),
- reviewed_by TEXT,
- reviewed_at TIMESTAMPTZ,
- reason TEXT NOT NULL DEFAULT '',
- metadata_json JSONB NOT NULL DEFAULT '{}'::jsonb
-);
-
-CREATE INDEX IF NOT EXISTS governance_reviews_project_decision_idx ON governance_reviews(project_id, decision, requested_at DESC);
-CREATE INDEX IF NOT EXISTS governance_reviews_resource_idx ON governance_reviews(action, resource_type, resource_id, decision);
-
-INSERT INTO storage_schema_migrations(version, name)
-VALUES (1, 'initial-storage-schema')
-ON CONFLICT (version) DO NOTHING;
-
-INSERT INTO storage_schema_migrations(version, name)
-VALUES (2, 'knowledge-delta-dependency-governance-lifecycle')
-ON CONFLICT (version) DO NOTHING;
diff --git a/storage/sqlite/schema.sql b/storage/sqlite/schema.sql
deleted file mode 100644
index dc483c4ffaa92b7527f3e5a75c94c13a37f4912e..0000000000000000000000000000000000000000
--- a/storage/sqlite/schema.sql
+++ /dev/null
@@ -1,254 +0,0 @@
-PRAGMA foreign_keys = ON;
-
-CREATE TABLE IF NOT EXISTS storage_schema_migrations (
- version INTEGER PRIMARY KEY,
- name TEXT NOT NULL,
- applied_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))
-);
-
-CREATE TABLE IF NOT EXISTS projects (
- project_id TEXT PRIMARY KEY,
- name TEXT NOT NULL,
- description TEXT NOT NULL DEFAULT '',
- stage TEXT NOT NULL DEFAULT 'Research',
- state_json TEXT NOT NULL DEFAULT '{}' CHECK (json_valid(state_json)),
- created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- updated_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- archived_at TEXT
-);
-
-CREATE INDEX IF NOT EXISTS projects_stage_updated_idx ON projects(stage, updated_at DESC);
-
-CREATE TABLE IF NOT EXISTS project_events (
- event_id TEXT PRIMARY KEY,
- project_id TEXT NOT NULL REFERENCES projects(project_id) ON DELETE CASCADE,
- event_type TEXT NOT NULL,
- payload_json TEXT NOT NULL DEFAULT '{}' CHECK (json_valid(payload_json)),
- created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- created_by TEXT
-);
-
-CREATE INDEX IF NOT EXISTS project_events_project_created_idx ON project_events(project_id, created_at DESC);
-
-CREATE TABLE IF NOT EXISTS snapshots (
- snapshot_id TEXT PRIMARY KEY,
- project_id TEXT NOT NULL REFERENCES projects(project_id) ON DELETE CASCADE,
- snapshot_type TEXT NOT NULL CHECK (snapshot_type IN ('manual', 'scheduled', 'pre_change', 'canon', 'frontier', 'archive')),
- label TEXT NOT NULL,
- source TEXT NOT NULL DEFAULT 'local',
- schema_version TEXT NOT NULL DEFAULT '1',
- state_json TEXT NOT NULL CHECK (json_valid(state_json)),
- checksum TEXT NOT NULL,
- created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- created_by TEXT,
- metadata_json TEXT NOT NULL DEFAULT '{}' CHECK (json_valid(metadata_json))
-);
-
-CREATE INDEX IF NOT EXISTS snapshots_project_created_idx ON snapshots(project_id, created_at DESC);
-CREATE INDEX IF NOT EXISTS snapshots_type_created_idx ON snapshots(snapshot_type, created_at DESC);
-
-CREATE TABLE IF NOT EXISTS snapshot_items (
- snapshot_item_id TEXT PRIMARY KEY,
- snapshot_id TEXT NOT NULL REFERENCES snapshots(snapshot_id) ON DELETE CASCADE,
- entity_type TEXT NOT NULL,
- entity_id TEXT NOT NULL,
- ordinal INTEGER NOT NULL DEFAULT 0 CHECK (ordinal >= 0),
- payload_json TEXT NOT NULL CHECK (json_valid(payload_json)),
- content_hash TEXT NOT NULL,
- UNIQUE (snapshot_id, entity_type, entity_id)
-);
-
-CREATE INDEX IF NOT EXISTS snapshot_items_entity_idx ON snapshot_items(entity_type, entity_id);
-
-CREATE TABLE IF NOT EXISTS canon_entries (
- entry_id TEXT PRIMARY KEY,
- project_id TEXT REFERENCES projects(project_id) ON DELETE SET NULL,
- slug TEXT NOT NULL,
- title TEXT NOT NULL,
- body TEXT NOT NULL,
- entry_type TEXT NOT NULL CHECK (entry_type IN ('principle', 'decision', 'pattern', 'policy', 'knowledge', 'procedure')),
- status TEXT NOT NULL DEFAULT 'draft' CHECK (status IN ('draft', 'active', 'superseded', 'archived')),
- version INTEGER NOT NULL DEFAULT 1 CHECK (version > 0),
- source_snapshot_id TEXT REFERENCES snapshots(snapshot_id) ON DELETE SET NULL,
- supersedes_entry_id TEXT REFERENCES canon_entries(entry_id) ON DELETE SET NULL,
- metadata_json TEXT NOT NULL DEFAULT '{}' CHECK (json_valid(metadata_json)),
- valid_from TEXT,
- valid_until TEXT,
- created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- updated_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- UNIQUE (project_id, slug, version)
-);
-
-CREATE INDEX IF NOT EXISTS canon_entries_project_status_idx ON canon_entries(project_id, status, updated_at DESC);
-CREATE INDEX IF NOT EXISTS canon_entries_type_status_idx ON canon_entries(entry_type, status);
-
-CREATE TABLE IF NOT EXISTS canon_revisions (
- revision_id TEXT PRIMARY KEY,
- entry_id TEXT NOT NULL REFERENCES canon_entries(entry_id) ON DELETE CASCADE,
- version INTEGER NOT NULL CHECK (version > 0),
- title TEXT NOT NULL,
- body TEXT NOT NULL,
- source_snapshot_id TEXT REFERENCES snapshots(snapshot_id) ON DELETE SET NULL,
- change_summary TEXT NOT NULL DEFAULT '',
- metadata_json TEXT NOT NULL DEFAULT '{}' CHECK (json_valid(metadata_json)),
- created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- created_by TEXT,
- UNIQUE (entry_id, version)
-);
-
-CREATE INDEX IF NOT EXISTS canon_revisions_entry_created_idx ON canon_revisions(entry_id, created_at DESC);
-
-CREATE TABLE IF NOT EXISTS frontier_items (
- frontier_id TEXT PRIMARY KEY,
- project_id TEXT REFERENCES projects(project_id) ON DELETE CASCADE,
- domain TEXT NOT NULL,
- item_type TEXT NOT NULL CHECK (item_type IN ('technology', 'capability', 'practice', 'dependency', 'research', 'risk')),
- title TEXT NOT NULL,
- description TEXT NOT NULL DEFAULT '',
- rationale TEXT NOT NULL DEFAULT '',
- status TEXT NOT NULL DEFAULT 'candidate' CHECK (status IN ('candidate', 'tracking', 'adopted', 'rejected', 'obsolete')),
- confidence REAL CHECK (confidence IS NULL OR (confidence >= 0 AND confidence <= 1)),
- impact TEXT NOT NULL DEFAULT 'medium' CHECK (impact IN ('low', 'medium', 'high', 'critical')),
- first_seen_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- last_reviewed_at TEXT,
- review_after TEXT,
- metadata_json TEXT NOT NULL DEFAULT '{}' CHECK (json_valid(metadata_json)),
- created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- updated_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))
-);
-
-CREATE INDEX IF NOT EXISTS frontier_items_project_status_idx ON frontier_items(project_id, status, updated_at DESC);
-CREATE INDEX IF NOT EXISTS frontier_items_domain_review_idx ON frontier_items(domain, review_after);
-
-CREATE TABLE IF NOT EXISTS frontier_observations (
- observation_id TEXT PRIMARY KEY,
- frontier_id TEXT NOT NULL REFERENCES frontier_items(frontier_id) ON DELETE CASCADE,
- source_name TEXT NOT NULL,
- source_uri TEXT,
- observed_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- summary TEXT NOT NULL,
- evidence_json TEXT NOT NULL DEFAULT '{}' CHECK (json_valid(evidence_json)),
- confidence REAL CHECK (confidence IS NULL OR (confidence >= 0 AND confidence <= 1)),
- created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))
-);
-
-CREATE INDEX IF NOT EXISTS frontier_observations_frontier_idx ON frontier_observations(frontier_id, observed_at DESC);
-
-CREATE TABLE IF NOT EXISTS archive_records (
- archive_id TEXT PRIMARY KEY,
- project_id TEXT REFERENCES projects(project_id) ON DELETE SET NULL,
- resource_type TEXT NOT NULL,
- resource_id TEXT NOT NULL,
- snapshot_id TEXT REFERENCES snapshots(snapshot_id) ON DELETE SET NULL,
- payload_json TEXT NOT NULL CHECK (json_valid(payload_json)),
- checksum TEXT NOT NULL,
- archive_reason TEXT NOT NULL DEFAULT '',
- archived_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- archived_by TEXT,
- retention_until TEXT,
- restored_at TEXT,
- metadata_json TEXT NOT NULL DEFAULT '{}' CHECK (json_valid(metadata_json))
-);
-
-CREATE INDEX IF NOT EXISTS archive_records_project_archived_idx ON archive_records(project_id, archived_at DESC);
-CREATE INDEX IF NOT EXISTS archive_records_resource_idx ON archive_records(resource_type, resource_id, archived_at DESC);
-CREATE INDEX IF NOT EXISTS archive_records_retention_idx ON archive_records(retention_until) WHERE restored_at IS NULL;
-
-CREATE TABLE IF NOT EXISTS knowledge_embeddings (
- embedding_id TEXT PRIMARY KEY,
- entity_type TEXT NOT NULL,
- entity_id TEXT NOT NULL,
- model_key TEXT NOT NULL,
- dimensions INTEGER NOT NULL CHECK (dimensions > 0),
- embedding_json TEXT NOT NULL CHECK (json_valid(embedding_json) AND json_type(embedding_json) = 'array'),
- content_hash TEXT NOT NULL,
- created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- UNIQUE (entity_type, entity_id, model_key)
-);
-
-CREATE INDEX IF NOT EXISTS knowledge_embeddings_entity_idx ON knowledge_embeddings(entity_type, entity_id);
-
-CREATE TABLE IF NOT EXISTS dependency_findings (
- finding_id TEXT PRIMARY KEY,
- project_id TEXT NOT NULL REFERENCES projects(project_id) ON DELETE CASCADE,
- kind TEXT NOT NULL CHECK (kind IN ('model', 'dataset', 'permission', 'tool', 'infrastructure')),
- name TEXT NOT NULL,
- description TEXT NOT NULL DEFAULT '',
- status TEXT NOT NULL DEFAULT 'open' CHECK (status IN ('open', 'resolved', 'waived')),
- source TEXT NOT NULL DEFAULT 'manual',
- metadata_json TEXT NOT NULL DEFAULT '{}' CHECK (json_valid(metadata_json)),
- detected_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- resolved_at TEXT
-);
-
-CREATE INDEX IF NOT EXISTS dependency_findings_project_status_idx ON dependency_findings(project_id, status, detected_at DESC);
-CREATE INDEX IF NOT EXISTS dependency_findings_kind_name_idx ON dependency_findings(kind, name, status);
-
-CREATE TABLE IF NOT EXISTS delta_runs (
- delta_run_id TEXT PRIMARY KEY,
- project_id TEXT NOT NULL REFERENCES projects(project_id) ON DELETE CASCADE,
- current_label TEXT NOT NULL,
- target_label TEXT NOT NULL,
- current_state_json TEXT NOT NULL CHECK (json_valid(current_state_json)),
- target_state_json TEXT NOT NULL CHECK (json_valid(target_state_json)),
- status TEXT NOT NULL CHECK (status IN ('complete', 'blocked')),
- created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- created_by TEXT
-);
-
-CREATE INDEX IF NOT EXISTS delta_runs_project_created_idx ON delta_runs(project_id, created_at DESC);
-
-CREATE TABLE IF NOT EXISTS delta_gaps (
- gap_id TEXT PRIMARY KEY,
- delta_run_id TEXT NOT NULL REFERENCES delta_runs(delta_run_id) ON DELETE CASCADE,
- dimension TEXT NOT NULL,
- current_values_json TEXT NOT NULL CHECK (json_valid(current_values_json)),
- target_values_json TEXT NOT NULL CHECK (json_valid(target_values_json)),
- missing_values_json TEXT NOT NULL CHECK (json_valid(missing_values_json)),
- severity TEXT NOT NULL CHECK (severity IN ('gap', 'blocker')),
- status TEXT NOT NULL DEFAULT 'open' CHECK (status IN ('open', 'resolved', 'accepted')),
- created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))
-);
-
-CREATE INDEX IF NOT EXISTS delta_gaps_run_status_idx ON delta_gaps(delta_run_id, status);
-
-CREATE TABLE IF NOT EXISTS delta_dependencies (
- delta_dependency_id TEXT PRIMARY KEY,
- delta_run_id TEXT NOT NULL REFERENCES delta_runs(delta_run_id) ON DELETE CASCADE,
- finding_id TEXT NOT NULL REFERENCES dependency_findings(finding_id) ON DELETE RESTRICT,
- created_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- UNIQUE (delta_run_id, finding_id)
-);
-
-CREATE INDEX IF NOT EXISTS delta_dependencies_run_idx ON delta_dependencies(delta_run_id);
-
-CREATE TABLE IF NOT EXISTS governance_reviews (
- review_id TEXT PRIMARY KEY,
- project_id TEXT NOT NULL REFERENCES projects(project_id) ON DELETE CASCADE,
- action TEXT NOT NULL,
- resource_type TEXT NOT NULL,
- resource_id TEXT NOT NULL,
- decision TEXT NOT NULL DEFAULT 'pending' CHECK (decision IN ('pending', 'approved', 'rejected')),
- requested_by TEXT,
- requested_at TEXT NOT NULL DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
- reviewed_by TEXT,
- reviewed_at TEXT,
- reason TEXT NOT NULL DEFAULT '',
- metadata_json TEXT NOT NULL DEFAULT '{}' CHECK (json_valid(metadata_json))
-);
-
-CREATE INDEX IF NOT EXISTS governance_reviews_project_decision_idx ON governance_reviews(project_id, decision, requested_at DESC);
-CREATE INDEX IF NOT EXISTS governance_reviews_resource_idx ON governance_reviews(action, resource_type, resource_id, decision);
-
--- Kept for compatibility with the current local API while normalized storage is introduced.
-CREATE TABLE IF NOT EXISTS app_state (
- state_key TEXT PRIMARY KEY,
- value_json TEXT NOT NULL CHECK (json_valid(value_json)),
- updated_at TEXT NOT NULL
-);
-
-INSERT OR IGNORE INTO storage_schema_migrations(version, name)
-VALUES (1, 'initial-storage-schema');
-
-INSERT OR IGNORE INTO storage_schema_migrations(version, name)
-VALUES (2, 'knowledge-delta-dependency-governance-lifecycle');
diff --git a/symbol-aliases.generated.json b/symbol-aliases.generated.json
deleted file mode 100644
index bd12b88db8a8d34120f54c5b5eb0f4cea2f1a6c7..0000000000000000000000000000000000000000
--- a/symbol-aliases.generated.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "ProjectRepository": [
- "IProjectRepository",
- "ProjectRepo",
- "ProjectStore"
- ],
- "CanonRepository": [
- "ICanonRepository",
- "CanonRepo",
- "CanonStore"
- ],
- "SnapshotRepository": [
- "ISnapshotRepository",
- "SnapshotRepo",
- "SnapshotStore"
- ],
- "FrontierRepository": [
- "IFrontierRepository",
- "FrontierRepo",
- "FrontierStore"
- ],
- "ArchiveRepository": [
- "IArchiveRepository",
- "ArchiveRepo",
- "ArchiveStore"
- ],
- "EmbeddingRepository": [
- "IEmbeddingRepository",
- "EmbeddingRepo",
- "EmbeddingStore"
- ]
-}
diff --git a/symbol-resolution.md b/symbol-resolution.md
deleted file mode 100644
index bce51e65eac7157255165538e2753e5e78ee8c1b..0000000000000000000000000000000000000000
--- a/symbol-resolution.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# Canonical symbols and language profiles
-
-`bootstrap.xml` stores architecture names in canonical form and lists aliases that may appear in generated artifacts or external clients. The schema engine validates the registry, then generates:
-
-- `configs/generated/symbol-aliases.generated.json`
-- `configs/generated/language-profiles.generated.json`
-
-For example, `IProjectRepository`, `ProjectRepo`, and `ProjectStore` all resolve to `ProjectRepository`. Unknown symbols pass through unchanged; ambiguous aliases fail generation.
-
-Logic Fabric exposes `resolveSymbols` for type lookup and `emitSymbols` for target-language naming. A generator can resolve an alias first, then emit the canonical symbol with its selected profile:
-
-```ts
-import { SymbolResolver } from '@projectos/schema-engine';
-
-const resolver = new SymbolResolver(aliases, languageProfiles);
-resolver.resolve('IProjectRepository'); // ProjectRepository
-resolver.emit('IProjectRepository', 'CSharp'); // IProjectRepository
-resolver.emit('ProjectRepository', 'TypeScript'); // ProjectRepository
-```
-
-Language profiles only affect emitted names. They do not change the canonical registry used for planning, dependency analysis, council requests, or type lookup.
diff --git a/symbols.json b/symbols.json
deleted file mode 100644
index bd12b88db8a8d34120f54c5b5eb0f4cea2f1a6c7..0000000000000000000000000000000000000000
--- a/symbols.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "ProjectRepository": [
- "IProjectRepository",
- "ProjectRepo",
- "ProjectStore"
- ],
- "CanonRepository": [
- "ICanonRepository",
- "CanonRepo",
- "CanonStore"
- ],
- "SnapshotRepository": [
- "ISnapshotRepository",
- "SnapshotRepo",
- "SnapshotStore"
- ],
- "FrontierRepository": [
- "IFrontierRepository",
- "FrontierRepo",
- "FrontierStore"
- ],
- "ArchiveRepository": [
- "IArchiveRepository",
- "ArchiveRepo",
- "ArchiveStore"
- ],
- "EmbeddingRepository": [
- "IEmbeddingRepository",
- "EmbeddingRepo",
- "EmbeddingStore"
- ]
-}
diff --git a/workflows/validate.yml b/workflows/validate.yml
deleted file mode 100644
index 6dad46555586bae92f0e7468a3fa627d4e5ac962..0000000000000000000000000000000000000000
--- a/workflows/validate.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-name: Validate ProjectOS
-
-on:
- push:
- pull_request:
-
-jobs:
- validate:
- runs-on: windows-latest
- steps:
- - name: Check out source
- uses: actions/checkout@v4
- - name: Set up Node.js
- uses: actions/setup-node@v4
- with:
- node-version: 24
- - name: Set up pnpm
- uses: pnpm/action-setup@v4
- with:
- version: 10
- - name: Install dependencies
- run: pnpm install --frozen-lockfile
- - name: Generate configuration and documentation artifacts
- run: pnpm generate
- - name: Validate generated snapshot hashes
- run: pnpm validate:generated
- - name: Build workspace
- run: pnpm build
- - name: Run snapshot, alias, and documentation checks
- run: pnpm test
- - name: Produce the release bundle after all checks pass
- run: pnpm --filter @projectos/schema-engine release
- - name: Validate release package layout
- run: pnpm validate:release
diff --git a/workspaces.generated.json b/workspaces.generated.json
deleted file mode 100644
index 10fa47b5a654daa8ce9ba96982c42e9fc3fdfb6d..0000000000000000000000000000000000000000
--- a/workspaces.generated.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "research": "VSCode",
- "implementation": "Zed",
- "ml": "PyCharm",
- "logic": "IntelliJ",
- "database": "DataGrip",
- "canvas": "HFSpace"
-}
diff --git a/workspaces.json b/workspaces.json
deleted file mode 100644
index 10fa47b5a654daa8ce9ba96982c42e9fc3fdfb6d..0000000000000000000000000000000000000000
--- a/workspaces.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "research": "VSCode",
- "implementation": "Zed",
- "ml": "PyCharm",
- "logic": "IntelliJ",
- "database": "DataGrip",
- "canvas": "HFSpace"
-}