plainweave
The Plainweave server provides read-only access to a traceability graph linking strategic goals, requirements, and code entities, enabling queries about code justification, requirement coverage, and intent relationships — without making any mutations or governance verdicts.
Project context: Retrieve local project capabilities and authority boundaries.
Loomweave catalog: List identity snapshots of code entities (with pagination support).
Requirements: Search by query text/status, fetch by ID, and read computed dossiers aggregating context and linked evidence.
Trace links: List edges between requirements, code entities, and goals — filterable by direction, state, relation type, and requirement ID.
Intent graph queries:
orphans: Find nodes (code, requirement, or goal) with no upward justification edge.trace: Get the up/down neighborhood of any node in the intent graph.corpus: Dump the full requirements corpus with linked goals and code entities.coverage: Report the fraction of in-scope public surfaces justified via requirement→goal chains, with configurable filters.
Baselines: List, retrieve, and diff immutable snapshots of the intent graph state.
Entity intent context: Read intent context for specific code entity references.
Preflight facts: Gather scoped facts for Legis preflight checks (e.g., new public entities with no requirement binding) for CI/CD boundary surfacing.
Verification status: Read derived verification status with reason codes and evidence freshness for a requirement, or list unverified/stale requirements.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@plainweave list all orphan code entities"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Plainweave
Permission for code to exist.
Plainweave is the Weft federation member that holds the team's code-grounded intent: a traceability graph in which every code entity must earn its existence by laddering up to a requirement, and every requirement must ladder up to a strategic goal. A node with no upward edge — at any level — is a reviewable question:
a public capability with no requirement → "why does this code exist?"
a requirement with no goal → "what am I doing here?"
The point is not catching orphan code (that is one query). The point is that binding code to requirements accretes a living, readable requirements corpus an agent or human can reason over — "why do we have three requirements for reporting that are all the same?" — and consolidate. Plainweave moves the refactor lever up the Meadows leverage hierarchy: from the lowest altitude (rename this function, extract that class) to a high one (why does this submodule exist; does it still serve a goal we hold?).
Status — 1.0. The build is complete and stable: the intent graph, the read primitives, the authoring surface, the cross-member seams, and
doctorship with versioned JSON envelopes, strict typing, and a green gate (lint, mypy strict, tests at ≥90% coverage). This is stable behaviour and contracts — cross-language coverage completeness (e.g. Rust public-surface tagging upstream) is a documented roadmap item, not a 1.0 gate. Formal Weft suite membership / launch-cutover inclusion remains owner-gated. Reframed and renamed from the~/charterprecursor; the backlog lives in this repo's.filigreetracker.
The model — a traceability graph of intent
strategic goal ──▲── requirement ──▲── code SEI (leaf)
(root intent) (obligation) (the thing that exists)Leaves are code entities — Loomweave SEIs (modules + public surfaces). Interior nodes are typed intent nodes (requirement, strategic goal) at any altitude; altitudes are just node types, the graph does not fix the number of levels.
Edges mean "justified by / satisfies."
Requirements are trivially mintable (shells welcome). The corpus tolerates mess by design — value comes from the mess being visible and queryable, then consolidated. Cheap minting feeds the corpus.
Code leaves are keyed by Loomweave SEI, so bindings survive rename/move.
Default trace altitude: modules and public/exported surfaces must trace; private internals inherit their container's justification.
Related MCP server: Codebase Knowledge Graph MCP Server
A thin member — Plainweave builds none of its siblings' machinery
Plainweave is advisory by default and deliberately thin on teeth and audit. It owns the intent graph and the reasoning reads; it delegates everything else.
Tool | Owns | Plainweave does not rebuild |
Plainweave | the intent graph (goals ↔ requirements ↔ SEI bindings) + the reasoning reads. Its domain: accreted, code-grounded intent. | — |
Loomweave | the entity catalog (what exists; public vs internal), SEI identity, the rename feed, and the semantic-search engine. | identity/rename tracking; embeddings |
Legis | the git/CI boundary surfacing, all graded enforcement (advisory default; dial-up per repo via policy cells), and the audit trail. | enforcement engine; override/audit |
Bindings reuse the ADR-029 entity-association contract (SEI-keyed, with
content_hash_at_attach drift detection — the same pattern Filigree uses to
bind issues to code), not a new link store.
Surfaces
Write path — authoring-time binding ("speak SEI at entry," extended to intent). When an agent creates or commits a module / public entity, Plainweave offers an inline bind: link this SEI to a requirement (existing or a freshly minted shell) and optionally ladder that requirement to a goal. Cheap, inline, attributed. Code that skips the bind is exactly what surfaces as an orphan.
Read surfaces — three composable graph primitives (built for unanticipated agent use, not canned reports):
orphans(level)— unlinked nodes at the code / requirement / goal altitude.trace(node)— up to goals, down to code.corpus()— the readable dump of requirements with their code- and goal-links: the artifact a curator reads to spot "these three are the same." Consolidation is agent-driven; Plainweave serves the substrate, not an automated verdict.
Over these three sits coverage() — the self-computed intent-coverage
north-star: the fraction of public surfaces that answer "why does this exist?"
It is honestly qualified in-band (namespace scoping, denominator_complete,
present_plugins, bounded evidence) and never reports a silent clean when the
denominator is partial.
Boundary — coverage facts ride out at the git/CI boundary through Legis ("this change adds N public entities bound to no requirement"). Advisory by default; any repo wanting teeth dials it up through Legis's policy cells. Plainweave adds no enforcement of its own.
Optional similarity hint — Loomweave now ships semantic search, so a thin "these requirements look like the same thing" hint becomes reuse of a proven sibling capability rather than a from-scratch ML build. It assists the curator; it is explicitly not a dedup engine.
Doctrine fit
Coordinate, not gate — advisory default.
Enrich-only — Plainweave absent → Loomweave, Legis, and the code are unaffected; solo mode degrades to manual file/symbol refs.
Speak-SEI-at-entry — binding at authoring keeps code on the moat.
Don't-duplicate — Legis owns teeth + audit; Loomweave owns identity + semantics.
Prescribe-nothing — a general graph + queries; agents compose uses we haven't imagined.
Cross-member seams
The seams (Plainweave → Loomweave catalog/rename/semantic; Plainweave → Legis boundary) are hub-blessed and prove-the-need: built as additive adapters on Plainweave's side, never pre-frozen sibling obligations until the need is shown live (golden vector / live consumption). Each seam ships with a blast-radius map + dated counterpart tickets.
Documentation
docs/design/2026-06-18-plainweave-permission-to-exist.md— the canonical design ("permission for code to exist"). Start here.docs/MODULE-MAP.md— what the precursor core carries forward vs. what the reframe reshapes.docs/README.md— index of canon vs. precursor-era docs.
Installation
pip install plainweaveOr with uv:
uv pip install plainweave # add to an environment
uvx plainweave --help # or run it without installingPlainweave requires Python ≥ 3.12. Installing exposes two console commands:
plainweave— the CLI:init,intent(coverage/orphans/trace/corpus),req,goal,bind,catalog,criterion,verify,status,dossier,baseline,actor,install,doctor, the cross-member peer-facts surfaces (wardline-peer-facts,requirements-enrichment), and the operatorwebUI.plainweave-mcp— the read-only MCP server that mirrors the intent reads for agents (mutates:false,local_only:true).
Plainweave also ships an agent skill — plainweave-workflow (under
src/plainweave/skills/) — the federation-standard SKILL.md + reference sheets
that teach an agent the read/author/verify workflow and the doctrine invariants.
Quick start:
plainweave init # create a local store under .plainweave/
plainweave install # register the plainweave MCP server for agents
plainweave intent coverage # the north-star: how much public surface is justified
plainweave doctor # check store, sibling bindings, MCP surface + registrationDevelopment
Plainweave uses uv, hatchling, ruff, mypy,
and pytest.
uv sync --group dev
make ci # lint + typecheck + test (coverage-gated)The runtime package depends on the official Python MCP SDK for plainweave-mcp.
Web UI (optional)
Install the extra and launch the operator console:
pip install 'plainweave[web]'
plainweave web --actor human:<you>Browse the corpus, author requirements, and ratify agent-proposed drafts and trace links. Local-first, single-operator; advisory only (no release verdicts).
Accessibility (AT gate — manual)
Before shipping the review surface, run an NVDA (Windows) or VoiceOver (macOS)
pass over the /review queue. Each approve / accept / reject action must:
Announce the outcome via the
#sr-statuslive region (role="status" aria-live="polite"), e.g. "Approved: Requirement title".Move focus to the next action button in the queue (or to the "All caught up" heading when the queue empties).
On the last item, announce "Queue is now empty" and place focus on the "All caught up" heading.
Structural contracts (live region presence, skip-link, labelled search input,
per-item aria-label on Approve buttons) are locked by
tests/web/test_a11y_contracts.py. The focus-management and announcement
behaviour above require a live AT session and cannot be automated in the
current test harness.
Available Tools
19 toolsplainweave_baseline_diffB
Read local baseline drift facts. This tool does not make release-readiness decisions.
Inputs: baseline_id (required). Returns: object
plainweave_baseline_getB
Read one local immutable Plainweave baseline snapshot.
Inputs: baseline_id (required). Returns: object
plainweave_baseline_listB
List local immutable Plainweave baselines. This tool is read-only.
Inputs: limit, offset. Returns: object
plainweave_entity_intent_context_getC
Read local entity intent context for peer planning. Live Loomweave resolution is unavailable state.
Inputs: entity_refs (required). Returns: object
plainweave_intent_corpusC
Read local requirement corpus rows with linked goals and code entities.
Inputs: limit, offset. Returns: object
plainweave_intent_coverageA
Report the north-star coverage fact: the fraction of in-scope public surfaces that answer 'why does this exist?' via SEI->requirement->goal. Advisory and read-only; the ratio is qualified by denominator completeness and is never a pass/fail verdict.
exclude_namespaces: namespace prefixes scoped out of the denominator (default: scripts., tests.). surface_classes: restrict the denominator to a subset of {cli-command, entry-point, exported-api, http-route}; omit for all. max_surfaces: cap the justified/unjustified evidence lists at N each (counts are never truncated; surfaces_truncated flags when capping dropped rows).
Inputs: max_surfaces, surface_classes, exclude_namespaces. Returns: object
plainweave_intent_orphansC
List local intent graph nodes with no upward justification edge. This tool is read-only.
Inputs: level (required), limit, offset. Returns: object
plainweave_intent_traceC
Read the local up/down intent neighborhood for a code, requirement, or goal node.
Inputs: level (required), node_id (required). Returns: object
plainweave_loomweave_catalog_listC
List Loomweave catalog identity snapshots from the local read-only adapter.
Inputs: limit, offset. Returns: object
plainweave_preflight_facts_getC
Read scoped Plainweave facts for Legis preflight. This tool returns no governance verdict.
Inputs: base, head, scope_kind, baseline_id, +2 more. Returns: object
plainweave_project_context_getA
Read local Plainweave project context, capabilities, and authority boundaries. This tool is read-only.
Inputs: include_contracts. Returns: object
plainweave_requirement_dossier_getB
Read the local computed requirement dossier. No live peer calls are made in P0.
Inputs: requirement_id (required). Returns: object
plainweave_requirement_getA
Read one local Plainweave requirement without collapsing active drafts into approved truth.
Inputs: requirement_id (required). Returns: object
plainweave_requirement_searchC
Search local Plainweave requirements. This read-only tool preserves requirement authority state.
Inputs: limit, query, offset, status_filter. Returns: object
plainweave_requirements_enrichment_getA
Read local Plainweave requirement facts for Warpline's reserved enrichment slot, per entity as present|absent|unavailable. An identity gap is 'unavailable', never 'absent'.
Inputs: entity_refs (required). Returns: object
plainweave_trace_link_listC
List local trace links while preserving trace state, authority, and freshness.
Inputs: limit, offset, direction, state_filter, +2 more. Returns: object
plainweave_verification_status_getB
Read derived local verification status with reason codes and evidence freshness.
Inputs: requirement_id (required). Returns: object
plainweave_verification_status_listC
List local unverified or stale verification statuses. This tool records no evidence.
Inputs: status_filter (required), limit, offset. Returns: object
plainweave_wardline_peer_facts_listA
Read local Wardline findings as advisory peer facts (active/waived/baselined/judged, defect/non-defect, resolved-or-unseen). Runs no scan and emits no verdict.
Inputs: limit, offset. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Each tool has a clear, distinct purpose within its domain (baselines, intents, requirements, etc.). Even similar-sounding tools like 'plainweave_verification_status_get' and 'plainweave_verification_status_list' are unambiguously differentiated by 'get' vs. 'list'.
All tool names follow the consistent pattern 'plainweave_<area>_<action>[_<qualifier>]' using snake_case. Verbs like 'get', 'list', 'search', 'trace' are used predictably across areas.
19 tools is slightly above the typical ideal range, but the domain covers multiple distinct sub-domains (baselines, intents, requirements, etc.), so the count is still reasonable and each tool serves a specific purpose.
The tool set is comprehensive for read operations: listing and getting baselines, intents, requirements, verification status, etc. However, it lacks write/create/update tools, which may be intentional for a read-only server, leaving minor gaps like intent search beyond corpus.
Maintenance
Related MCP Connectors
Change-impact intelligence for tracing dependencies, stale references and required updates.
Deterministic context layer for your codebase: change impact, blast radius, answers with receipts.
Ask who calls a route, what a change breaks or who reads a field, across a system's repos.
Shared context for your codebase: a hosted code knowledge graph over MCP. Free plan, OAuth sign-up.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI to analyze, query, and manage a graph-based representation of software architecture for impact analysis, dependency tracking, and design.201AGPL 3.0
- AlicenseAqualityDmaintenanceEnables storing and querying structured information about software code entities (classes, functions, files) and their relationships (calls, imports) along with qualitative observations like design decisions and change rationale.918 npm5MIT
- AlicenseAqualityDmaintenanceEnables creating and querying semantic knowledge graphs to model business logic, code relationships, and project structure across multiple projects.111MIT
- FlicenseNot gradedqualityBmaintenanceEnables querying a Neo4j-based code graph for Python projects, providing tools for code structure, call graph, and test coverage analysis.1-