Language: English | 简体中文
Current Spec Version: projitive-spec v1.1.0
Projitive is a governance model + MCP toolchain for Agent-driven software delivery.
It helps teams turn "AI can code" into "AI can continuously ship with traceability".
- Ship faster with guardrails: standard task states, evidence rules, and stable execution loops.
- Keep repos auditable: every transition links to design/report evidence.
- Stay tool-agnostic: works with Copilot, Claude Code, and other MCP-compatible agents.
- Scale across projects: same conventions and method family (
List/Context/Next/Scan/Locate).
- A complete governance spec under
design/ - A production MCP server under
packages/mcp/ - Built-in Resources + Prompts + Tools for agent workflow consistency
- Release-driven CI publishing pipeline for MCP package
Projitive is designed to solve a common failure mode in AI delivery: agents can edit code, but cannot reliably manage project state over time.
Its design uses four constraints to make agent execution stable:
- State machine first: task statuses (
TODO,IN_PROGRESS,BLOCKED,DONE) define explicit progress semantics. - Evidence first: transitions are valid only when artifacts (
designs/,reports/) prove the change. - Context first: agents resolve governance root and read canonical files before acting.
- Loop first: delivery is iterative, not one-shot (
discover -> decide -> execute -> verify -> next).
In practice, this lets an agent manage projects like a lightweight operator:
- Discover what to do (
taskNext/projectNext) - Build actionable context (
taskContext/projectContext) - Execute updates in governed artifacts
- Re-verify consistency and move to next cycle
This is the core idea: convert ad-hoc coding into auditable, repeatable project progression.
- Read
design/README.mdfor governance conventions. - Add
.projitivemarker file in your governance root. - Prepare governance artifacts:
README.md,roadmap.md,tasks.md,designs/,reports/,hooks/. - Start MCP server from
packages/mcp. - Let agent run:
taskNext -> taskContext -> update -> verify.
It defines three capability layers:
- Rules layer: unified semantics for projects, tasks, states, and evidence
- Process layer: a consistent Discover → Plan → Execute → Validate → Sync loop
- Tool layer: MCP Server tools for discovery and updates under governance rules
- Domain-agnostic: rules apply across project types
- Structure-agnostic: no hard dependency on repository layout
- Actor-agnostic: supports agents and human collaborators
- Traceability-first: every state change should have evidence
- Long-term oriented: built for continuous project evolution instead of one-off task execution
- Agent-agnostic: works across different agent systems (such as Claude Code, Copilot, and other AI tools)
- General-purpose governance: reusable across project domains and team structures
- Self-propelling workflow: enables agents to discover, plan, execute, validate, and sync with minimal manual orchestration
Each governed project is identified by a .projitive marker file:
- locate the governance root by finding
.projitive - the directory containing
.projitiveis the governance directory
Recommended artifacts under the governance directory:
README.md: scope, terminology, contextroadmap.md: stage goals and milestonestasks.md: task pool and statusesdesigns/: design decisionsreports/: execution evidence and summarieshooks/: event-based AI guidance prompts (assignment/completion/block/reopen)
design/: governance design specifications and writing conventionspackages/mcp/: MCP Server implementationpackages/skill/: reserved extension package
Key design specs include:
design/HOOKS.md: hook prompt conventions and lifecycle eventsdesign/ROADMAP.mdanddesign/TASKS.md: integrated ID allocation and reference rules
- English is the default document language
- Chinese versions use
_CNsuffix
- Spec version:
projitive-spec v1.1.0 - Alignment rule: implementation major versions (including MCP) must match the spec major version (
v1.xwithv1.x) - Release policy:
- Breaking spec upgrade (e.g.
v1→v2) requires MCP major upgrade first (e.g.2.0.0) - Backward-compatible feature additions use minor upgrades (e.g.
1.1.0) - Bug-fix only changes use patch upgrades (e.g.
1.0.1)
- Breaking spec upgrade (e.g.
- Read design specifications in
design/ - Add
.projitiveto your target governance directory - Prepare governance artifacts (
README.md,roadmap.md,tasks.md,designs/,reports/,hooks/) - In governance
README.md, defineRequired Reading for Agents(local + external guides) - Configure MCP client with npm package and operate through MCP tools
Use the published package directly:
npx -y @projitive/mcpLocal build/start is not provided as the recommended usage path in this guide.
In your MCP client config (for example mcp.json), register the npm package as a stdio server:
{
"mcpServers": {
"projitive": {
"command": "npx",
"args": ["-y", "@projitive/mcp"],
"env": {
"PROJITIVE_SCAN_ROOT_PATHS": "/workspace/a:/workspace/b",
"PROJITIVE_SCAN_MAX_DEPTH": "3"
}
}
}
}Environment variables (required):
PROJITIVE_SCAN_ROOT_PATHS: required scan root directories used by discovery methods (for exampleprojectNext/taskNext).- Use platform delimiter string (
:on Linux/macOS,;on Windows) - Fallback: legacy
PROJITIVE_SCAN_ROOT_PATHis still supported whenPROJITIVE_SCAN_ROOT_PATHSis unset
- Use platform delimiter string (
PROJITIVE_SCAN_MAX_DEPTH: required scan depth used by discovery methods (integer0-8).
After connecting the server in your MCP client, run this minimal sequence:
projectLocate -> projectContext -> taskNext -> taskContext
Then execute updates in governed artifacts (tasks.md, designs/, reports/) and re-check with taskContext.
For full method references and outputs, see packages/mcp/README.md.
Spec Version: projitive-spec v1.1.0
MCP Package: @projitive/mcp@1.1.0
This release enhances agent autonomy while maintaining full backward compatibility with v1.0.0.
- Sub-state Metadata: Optional metadata for IN_PROGRESS tasks
phase: discovery|design|implementation|testingconfidence: 0.0-1.0 agent confidence scoreestimatedCompletion: ISO timestamp for ETA
- Backward Compatible: All v1.0.0 tasks continue to work
- Structured Blocker Metadata: Detailed information for BLOCKED tasks
type: internal_dependency|external_dependency|resource|approvaldescription: Human-readable explanationblockingEntity: What's blocking the taskunblockCondition: Condition to resolve the blockescalationPath: What to do if blocked too long
- Validation Rules: 6 new lint codes for blocker/sub-state validation
- Confidence Scoring Algorithm: Three-factor calculation
confidence_score = context_completeness * 0.4 + similar_task_history * 0.3 + specification_clarity * 0.3- Auto-create threshold: >= 0.85
- Requires review: 0.60 - 0.85
- Must not create: < 0.60
- Validation Hooks: New governance artifact
.projitive/hooks/task_auto_create_validation.md - New MCP Tools:
taskCalculateConfidence: Calculate confidence score for auto-creationtaskCreateValidationHook: Create validation hook template
- 6 New Test Files: confidence.test.ts, design-context.test.ts, reports.test.ts, designs.test.ts, readme.test.ts, mcp-workflow.test.ts
- Total Test Files: 17
- Spec v1.1 Coverage: Full coverage for all new features
- Security Fix: Fixed 1 low-severity vulnerability (hono < 4.11.10)
- Updated Dependencies: All dependencies to latest stable versions
- Test Verification: 240 tests, 228 passing (all non-failing)
All changes are additive only - existing v1.0.0 projects continue to work without modification.
To adopt v1.1.0 features:
- Update
@projitive/mcpto 1.1.0 - (Optional) Add sub-state metadata to IN_PROGRESS tasks
- (Optional) Categorize BLOCKED tasks with blocker metadata
- (Optional) Create validation hook for auto-discovery
| Task ID | Description | Status |
|---|---|---|
| TASK-0008 | Implement Spec v1.1 - Phase 1: Sub-state Metadata Support | ✅ DONE |
| TASK-0009 | Implement Spec v1.1 - Phase 2: Blocker Categorization | ✅ DONE |
| TASK-0010 | Implement Spec v1.1 - Phase 3: Confidence Scoring & Validation Hooks | ✅ DONE |
| TASK-0011 | Enhance MCP Test Coverage - Add Unit and Integration Tests | ✅ DONE |
| TASK-0012 | Dependency Audit and Security Update | ✅ DONE |
| TASK-0013 | Prepare Spec v1.1.0 Release | ✅ DONE |
- ROADMAP-0001: Governance baseline and task loop operational (In Progress)
- ROADMAP-0002: Spec v1.1 proposal and release checklist prepared ✅
- ROADMAP-0003: Continuous governance quality checks integrated (Pending)
- ROADMAP-0004: MCP self-iteration optimization (In Progress)
- ✅ All v1.0.0 tasks continue to work unchanged
- ✅ All existing MCP tools function as before
- ✅ New features are opt-in and additive only
- ✅ No breaking changes to the spec or API