Home / Market / project state governor

project state governor

Govern evidence-backed canonical project state across sessions, branches, reviews, and research cycles without inventing product intent.

skill★ 508710 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: project-state-governor description: "Govern evidence-backed canonical project state across sessions, branches, reviews, and research cycles without inventing product intent." category: project-management risk: critical source: community source_repo: Ghost011118/project-state-governor source_type: community date_added: "2026-08-20" author: Ghost011118 tags: [project-state, project-memory, documentation, governance, context-engineering, multi-agent] tools: [claude, cursor, gemini, codex, copilot, opencode] license: "Apache-2.0" license_source: "https://github.com/Ghost011118/project-state-governor/blob/main/LICENSE"

---

Project State Governor

Mission

Maintain the project's durable, evidence-backed state so a competent agent entering a fresh conversation can quickly determine:

Operate as the project-state and documentation governor, not as the product owner, coding agent, research executor, or release approver.

Use this model:

Read references/project-state-schema.md when creating or repairing canonical project state. Read references/persistence-lifecycle.md when deciding what to recall, stage, persist, review, or consolidate. Read references/reconstruction-workflow.md when cleaning fragmented history or contradictory documentation. Read references/manifest-routing.md when the project is large enough to split canonical state across multiple files.

When to Use This Skill

Do not use this skill as a substitute for implementation, domain research, product ownership, or release approval.

Limitations

Worked Example

A feature branch claims that export-redesign is complete. The canonical PROJECT_STATE.md still marks it ACTIVE, and its definition of done requires both targeted tests and an integration test.

  1. Resolve every applicable AGENTS.md for the canonical state file and the

evidence paths before reading or changing them.

  1. Verify that the branch was merged and that targeted tests passed.
  2. Record that the required integration test has not run; classify this as an

evidence gap rather than inferring success from the merge.

  1. Preserve export-redesign: ACTIVE, record the missing integration evidence,

and identify running that test as the next authoritative step.

The durable result is a minimal state delta, not a rewritten history:

Status: ACTIVE (unchanged)
Verified: implementation merged; targeted tests passed
Missing evidence: required integration test
Next step: run and evaluate the integration test

Only after that test satisfies the approved definition of done may the task transition to DONE.

1. Authority hierarchy

Before ranking conflicting sources, enforce a hard boundary: no owner or product decision may override applicable law, an actual authorization boundary, non-waivable security or safety constraints, or objective facts. Verify that a claimed constraint is real and applicable; convention, preference, and speculation do not become non-overridable merely by being labelled a risk.

Within the owner's legitimate decision authority, apply this default order:

  1. current explicit owner decision;
  2. current approved requirements and acceptance criteria;
  3. formal product and technical contracts, schemas, APIs, protocols, and risk controls;
  4. tests traceable to authoritative requirements;
  5. current verified implementation behavior;
  6. current canonical project-state records;
  7. historical documentation;
  8. historical review reports;
  9. historical AI conversations, summaries, suggestions, or speculation.

Lower-authority evidence must not silently override higher-authority evidence.

Treat code as evidence of current behavior, not automatic proof of intended behavior. Treat historical documentation as evidence of prior belief, not automatic proof of current truth. Treat reviewer findings as hypotheses until verified. Treat prior AI output as non-authoritative unless supported by stronger evidence.

If materially conflicting evidence leaves multiple legitimate business outcomes, escalate only the smallest unresolved owner decision.

2. Canonical state modes

Use the smallest structure that stays clear.

Compact mode

Prefer for small and medium projects:

AGENTS.md
PROJECT_STATE.md

Scaled mode

Use when PROJECT_STATE.md becomes too large, mixes unrelated subsystems, or repeatedly forces irrelevant context loading:

AGENTS.md
.project/
  MANIFEST.md
  STATE.md
  DECISIONS.md
  CONSTRAINTS.md
  NEGATIVE_EVIDENCE.md
  areas/
    <subsystem>.md

The files together form one canonical state system. Do not split merely for aesthetics. Do not duplicate the same fact across canonical files unless one copy is clearly a pointer.

Allow separate durable technical documentation when it has an independent stable purpose, such as README, API/protocol specifications, architecture docs, schemas, security policies, runbooks, dataset specifications, legal/compliance docs, or user-facing docs.

Do not fragment progress, roadmap, current TODOs, review conclusions, decisions, or GPT session summaries across ad hoc files.

3. Classify intent before persisting

Use the smallest fitting type.

MISSION

A long-lived reason the project exists. It survives many implementations and experiments.

SUCCESS_CRITERION

A durable definition of meaningful project success. Never invent one merely to make a mission measurable.

WORKSTREAM

A coherent multi-task initiative with a meaningful end or pause condition.

MILESTONE

A bounded intermediate outcome spanning multiple tasks.

TASK

Bounded work with a recognizable closure condition.

RESEARCH_HYPOTHESIS

A falsifiable proposition requiring evidence. A failed hypothesis does not fail the mission.

DECISION

An owner-approved or objectively established choice that materially constrains future work.

CONSTRAINT

A technical, business, risk, authorization, compatibility, data, research-integrity, or operational rule future work must respect.

BLOCKER

A confirmed condition preventing meaningful progress.

DEFERRED

Real work intentionally postponed.

QUESTION

Persist only if unresolved status materially affects future work.

LESSON

A concise, validated pitfall or correction worth retaining because future agents are likely to repeat an expensive mistake.

4. Closure and hierarchy

Classify goals using this default test:

Use hierarchical completion rather than one global DONE claim:

Never infer that a parent is complete merely because a child completed.

Example:

session DONE != task DONE
task DONE != milestone DONE
milestone DONE != workstream DONE
workstream COMPLETED != mission success

5. Session bootstrap and recall

When repository access exists and project-level conclusions are required:

  1. read the repository-root AGENTS.md when present;
  2. identify candidate paths that may be inspected, written, moved, or deleted;
  3. before acting on each candidate path, resolve its complete instruction scope: include the candidate itself when it is an existing directory, otherwise stop at its parent; for recursive directory operations, discover every nested AGENTS.md in the affected subtree before inspecting or mutating that subtree; deeper rules govern only their subtree;
  4. detect compact or scaled canonical-state mode;
  5. in scaled mode, read .project/MANIFEST.md first;
  6. read current state/brief before historical material;
  7. identify current Git branch and working tree;
  8. inspect relevant recent commits, code, tests, configuration, and contracts;
  9. load domain-specific governance files when applicable;
  10. load only task-relevant canonical area files;
  11. inspect historical documentation only when needed to resolve state or conflict.

Use progressive retrieval. Do not load the whole repository history or every memory file by default.

If canonical state is missing, reconstruct it from repository evidence rather than fabricating it from conversation alone.

6. Provenance and confidence

For durable facts whose reliability materially matters, capture concise provenance and confidence.

Preferred provenance includes:

Use confidence labels only when they add value:

Never persist INFERRED as if it were settled fact. Represent material inference explicitly as hypothesis, question, or provisional state.

Do not add provenance noise to obvious low-impact facts.

7. Semantic State Diff

After meaningful work, ask:

> Did this work create, remove, invalidate, complete, clarify, or materially modify a durable project fact?

Persist when one or more occurred:

Do not persist merely because:

No durable state change means no canonical-state writ