Deploy GitHub main 41f2529 (PR #1)
Browse filesSync the Space with mindtdilly/ProjectOS main after merging the wallet service and monorepo. README keeps the existing Docker Space card. WALLET_STORE=memory remains a Space variable.
This view is limited to 50 files because it contains too many changes. Β See raw diff
Files changed (50)
- .github/workflows/validate.yml-2
- AGENTS.mdDeleted-15
- API.mdDeleted-4
- ARCHITECTURE.mdDeleted-55
- ARCHIVE.mdDeleted-4
- BOOTSTRAP.mdDeleted-8
- CANON.mdDeleted-6
- COUNCILS.mdDeleted-38
- DATABASE.mdDeleted-8
- DELTA.mdDeleted-4
- DEPENDENCY.mdDeleted-4
- FABRICS.mdDeleted-68
- FRONTIER.mdDeleted-4
- GOVERNANCE.mdDeleted-20
- IDENTITY.mdDeleted-6
- KNOWLEDGE.mdDeleted-10
- MCP.mdDeleted-29
- MODELS.mdDeleted-10
- PROVIDERS.mdDeleted-15
- README.md+13
- RUNTIME.mdDeleted-8
- SCHEMA.mdDeleted-20
- SNAPSHOTS.mdDeleted-4
- STORAGE.mdDeleted-28
- TRUST.mdDeleted-6
- WORKSPACES.mdDeleted-11
- agents.generated.jsonDeleted-62
- agents.jsonDeleted-62
- archive/projectos-extras-2026-11-01.zipDeleted-3
- bootstrap-projectos.ps1Deleted-48
- docs/AGENTS.mdDeleted-15
- docs/API.mdDeleted-4
- docs/ARCHITECTURE.mdDeleted-55
- docs/ARCHIVE.mdDeleted-4
- docs/BOOTSTRAP.mdDeleted-8
- docs/CANON.mdDeleted-6
- docs/COUNCILS.mdDeleted-38
- docs/DATABASE.mdDeleted-8
- docs/DELTA.mdDeleted-4
- docs/DEPENDENCY.mdDeleted-4
- docs/FABRICS.mdDeleted-68
- docs/FRONTIER.mdDeleted-4
- docs/GOVERNANCE.mdDeleted-20
- docs/IDENTITY.mdDeleted-6
- docs/KNOWLEDGE.mdDeleted-10
- docs/MCP.mdDeleted-29
- docs/MODELS.mdDeleted-10
- docs/PROVIDERS.mdDeleted-15
- docs/RUNTIME.mdDeleted-8
- docs/SCHEMA.mdDeleted-20
15 unmodified lines161718192019202115 unmodified lines 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 artifacts123456789101112131415<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.1234<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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. |1234<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.12345678<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.123456<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.1234567891011121314151617181920212223242526272829303132333435363738<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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 engine12345678<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.1234<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.1234<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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 views1234<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.1234567891011121314151617181920<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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 |123456<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.12345678910<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.1234567891011121314151617181920212223242526272829<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.12345678910<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># Models
| Role | Provider || --- | --- || operations | omni || research | sonar || implementation | copilot || ml | qwen || logic | claude |123456789101112131415<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># Providers
## Storage providers
- SQLite- PostgreSQL
## Model providers
- omni- sonar- copilot- qwen- claude71 unmodified lines7273747576777879808182838485868771 unmodified linesCredentials 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.
```bashcd services/wallet && cp .env.example .env # fill TEST values; WALLET_STORE=memory for no Supabasenpm 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.12345678<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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 β desktop1234567891011121314151617181920<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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 |1234<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.12345678910111213141516171819202122232425262728<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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`.123456<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># Trust
Evaluates sources, datasets, and models against workspace trust requirements.
Trust checks are evaluated before governed execution and knowledge promotion.1234567891011<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># Workspaces
| Role | Workspace || --- | --- || research | VSCode || implementation | Zed || ml | PyCharm || logic | IntelliJ || database | DataGrip || canvas | HFSpace |1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162[ { "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": [] }]1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162[ { "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": [] }]123version https://git-lfs.github.com/spec/v1oid sha256:a921f44fecb2e0515199fae841c10bd14eccd0d2ec60aa133be259d02cbbfdf8size 46948683123456789101112131415161718192021222324252627282930313233343536373839404142434445464748$ErrorActionPreference = 'Stop'
Write-Host ''Write-Host 'ProjectOS Bootstrap' -ForegroundColor CyanWrite-Host ''
$projectRoot = Split-Path -Parent $PSScriptRootSet-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 gitRequire-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-Nullif (-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 installif ($LASTEXITCODE -ne 0) { throw 'pnpm install failed.'}
pnpm generateif ($LASTEXITCODE -ne 0) { throw 'ProjectOS manifest validation or configuration generation failed.'}
Write-Host ''Write-Host 'Bootstrap Complete' -ForegroundColor GreenWrite-Host 'Generated configuration is ready. Start ProjectOS with: pnpm dev'123456789101112131415<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.1234<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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. |1234<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.12345678<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.123456<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.1234567891011121314151617181920212223242526272829303132333435363738<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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 engine12345678<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.1234<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.1234<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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 views1234<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.1234567891011121314151617181920<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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 |123456<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.12345678910<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.1234567891011121314151617181920212223242526272829<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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.12345678910<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># Models
| Role | Provider || --- | --- || operations | omni || research | sonar || implementation | copilot || ml | qwen || logic | claude |123456789101112131415<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># Providers
## Storage providers
- SQLite- PostgreSQL
## Model providers
- omni- sonar- copilot- qwen- claude12345678<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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 β desktop1234567891011121314151617181920<!-- Generated by ProjectOS Schema Engine from bootstrap.xml. --># 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 |.github/workflows/validate.yml-2
AGENTS.mdDeleted-15
API.mdDeleted-4
ARCHITECTURE.mdDeleted-55
ARCHIVE.mdDeleted-4
BOOTSTRAP.mdDeleted-8
CANON.mdDeleted-6
COUNCILS.mdDeleted-38
DATABASE.mdDeleted-8
DELTA.mdDeleted-4
DEPENDENCY.mdDeleted-4
FABRICS.mdDeleted-68
FRONTIER.mdDeleted-4
GOVERNANCE.mdDeleted-20
IDENTITY.mdDeleted-6
KNOWLEDGE.mdDeleted-10
MCP.mdDeleted-29
MODELS.mdDeleted-10
PROVIDERS.mdDeleted-15
README.md+13
RUNTIME.mdDeleted-8
SCHEMA.mdDeleted-20
SNAPSHOTS.mdDeleted-4
STORAGE.mdDeleted-28
TRUST.mdDeleted-6
WORKSPACES.mdDeleted-11
agents.generated.jsonDeleted-62
agents.jsonDeleted-62
archive/projectos-extras-2026-11-01.zipDeleted-3
bootstrap-projectos.ps1Deleted-48
docs/AGENTS.mdDeleted-15
docs/API.mdDeleted-4
docs/ARCHITECTURE.mdDeleted-55
docs/ARCHIVE.mdDeleted-4
docs/BOOTSTRAP.mdDeleted-8
docs/CANON.mdDeleted-6
docs/COUNCILS.mdDeleted-38
docs/DATABASE.mdDeleted-8
docs/DELTA.mdDeleted-4
docs/DEPENDENCY.mdDeleted-4
docs/FABRICS.mdDeleted-68
docs/FRONTIER.mdDeleted-4
docs/GOVERNANCE.mdDeleted-20
docs/IDENTITY.mdDeleted-6
docs/KNOWLEDGE.mdDeleted-10
docs/MCP.mdDeleted-29
docs/MODELS.mdDeleted-10
docs/PROVIDERS.mdDeleted-15
docs/RUNTIME.mdDeleted-8
docs/SCHEMA.mdDeleted-20