Skip to main content

Review authority map

Status: accepted, 2026-10-08

This record answers one question for every Review decision: which code owns it. It also fixes the rule that later trust work must follow. That work covers validity explanations, a trust summary, incremental re-verification, external evidence, a richer signed record, promotion profiles, outcome history and earned autonomy.

Decision​

Each concern has exactly one authority. New trust capabilities are projections over these authorities or extensions of them. None of them adds a second Review state machine, policy engine, evidence model, history store, job queue or model client.

A change that creates a second authoritative home for a concern below is rejected unless the same change migrates the existing home and removes it.

Rules​

  1. Readiness decides. readiness.py is the only code that computes whether a change may progress. Everything else contributes conditions to it.
  2. Projections derive. A projection may group, explain or order state. It reads the authorities and stores nothing authoritative. Anything it caches can be rebuilt from them.
  3. AI is evidence, never authority. AI review findings, narration and Project Knowledge statements can inform a reviewer. They never satisfy a human-judgment or required-check condition.
  4. Unknown is a state. A missing, truncated, stale, unsupported or over-budget input yields unknown, or runs more work. It never yields a silent pass or a silent skip.
  5. Policy comes from the trusted base. A policy edit on the head side of a change applies only to future changes, never to the change that makes it.

Authority map​

Paths are relative to src/lemoncrow/pro/capabilities/review/.

ConcernAuthorityRule
Immutable reviewed codeSnapshot (ReviewRevision in session_models.py, persisted by store.py)Authoritative; never rewritten
Reviewable identityunits.py unit keysReuse
Human judgment validityrevisions.py (reconciliation, marks, frontier)Reuse; explanations may be generalized
EvidenceReviewEvidence in session_models.pyOne evidence model
Typed check authoritycheck_ingest.py and its attestation classesExternal verifiers feed it; they do not bypass it
Evidence freshnessfreshness.pyReuse
Runtime validationruntime_validation.py and its execution recordsReuse
Review compute selectionrun_plan.py, run_plan_service.py, capability_catalog.pyExtend; no second planner
Incremental test impacttest_impact.pyExtend
Cross-Snapshot check carryincremental.pyHarden; never a silent carry
Shared base executionbase_results.pyReuse
Trusted policytrusted_base.py and policy_generation in readiness.pyReuse
Readiness decisionreadiness.pySole decision authority
AI reviewai_review.pyEvidence and context only
Author and reviewer independenceindependence.py, model_identity.pyReuse
Agent and model track recordtrack_record.pyExtend over Project Knowledge, not a new store
Signed Review Recordreview_record.py, record_signing.py, review_record_api.pyEvolve compatibly; old records stay verifiable
Deployment and outcome factsoutcomes/ (deployments.py, deployment_outcomes.py, observation_outcomes.py)Facts feed track record and promotion reasoning
Change-set readinesschange_sets.pyA readiness condition, not a second decision
Workflow state (where the work stands)workflow_state.pySole workflow-state authority
Next-action owner (who acts next)hosted Review attention; locally, the Inbox inputsSole next-owner authority
Review ordering (what to open first)review_priority.pySole ordering authority
Intelligence routesintelligence_policy.pyRoute authority for every AI call through the internal_llm facade; direct provider-client lanes (owned execution, agent sessions, the live reviewer, verified work, reranking, the coding runtime, the gateway proxy, embeddings, provider setup) are listed exceptions it does not govern
Background spendbackground_budget.pyOne spend ledger; hosted settles against the same contract
Project Knowledgeproject_knowledge.pyDerived and rebuildable; never an authority
Product statusthe capability status index, published as the support matrixSole present-tense statement of what ships

What each trust capability extends​

Trust capabilityExtends
Validity explanationsvalidity.py (the reason vocabulary and its adapters) over revisions.py, freshness.py, incremental.py, check_ingest.py and readiness.py (explanation only; no new state)
Trust summary on a Reviewreadiness.trust_section on Review Status, over readiness.py and the Inbox row's workflow_state.py decision and next-action owner, which it copies through register_review_api(review_workflow=...) and never derives
Incremental re-verificationincremental.py (carry, including the executor environment), test_impact.py (selection and its coverage) and run_plan.py; the run plan's re-verification summary (run_plan_reverification.py) explains them and decides nothing
External evidence adaptersevidence_adapters.py (the adapter interface, its server-side grants and the in-toto/DSSE adapter) over check_ingest.py; an adapter produces only the classes its grant allows, and nothing check_ingest.py would not accept
Richer signed recordreview_record.py, record_signing.py
Promotion profilesreadiness.py with another policy profile, plus outcomes/ facts (shadow only until policy opts in)
Outcome-linked historytrack_record.py reading Project Knowledge
Earned autonomyindependence.py, track_record.py, auto_approval.py (shadow evaluation first)

Consequences​

  • An automated inventory test checks that each primitive above exists and has a production caller, so the map cannot name a component that does not exist.
  • A trust feature that needs state no row above can hold must first propose a new row and say which existing home it replaces.
  • See lc review for the user-facing Review concepts.