Skip to main content

atomic review

Review the recorded shape of a change or view: its audit findings, intent and acceptance-criterion context, metrics, and statically resolved consumers.

Synopsis​

atomic review [OPTIONS]
atomic review --change <HASH> [--json | --html | --details]
atomic review --turn <SESSION:TURN> [OPTIONS]
atomic review --intent <ID> [OPTIONS]
atomic review --view <NAME> [OPTIONS]
atomic review --from <SOURCE_VIEW> --to <TARGET_VIEW> [OPTIONS]
atomic review publish [OPTIONS]
atomic review publish <prepare|sign|record|inspect> [OPTIONS]

Local review and signed publication are different operations​

OperationWhat it doesWhat it does not do
atomic reviewRuns the existing local semantic, audit, and metric engines over recorded sourceCall a model, start another agent, require provider credentials, sign approval, insert changes, or push
atomic review publishNatively attests an existing identity's explicit evaluation of the same source-to-target report, including accepted degradationExecute an agent/LLM, create credentials, erase findings, claim clean/independent approval, insert, or push
atomic review publish inspectLists retained native decisions and retrospective reviews with current applicability/validationRe-sign stale evidence or authorize a changed scope
atomic review publish prepare/sign/recordProvides explicit retrospective review-document preparation, signing, and storage primitives under their separate review-intent requirementsTurn a local HTML report into independent signed approval merely by exporting it

Local reports are review evidence, not an independent signed approval. A native publication can retain an evaluated insertion disposition, but accepting risk does not relabel unready code as clean. Unsupported rules, unavailable source, unresolved bindings, and resource limits remain explicit coverage gaps—not passing results.

For a hands-on example, see Review the shape, not the diff. For the full inspect → evaluate → attest → insert workflow, see Evaluate and publish a review.

Select the review scope​

Choose one selector. With no selector, Atomic uses unambiguous current-session governing-intent context when available, otherwise the latest recorded change. The default never silently expands to a whole-view audit.

OptionRecorded scope
--change <HASH>One authored change, using a full hash or unambiguous Base32 prefix and its recorded before/after source
--turn <SESSION:TURN>Exactly one ledger turn; pending or unrecorded work is reported as pending, not fabricated source
--intent <ID>Changes with an actual recorded governing declaration for this intent; creating an intent or assigning its view is not itself such a declaration
--view <NAME>The entire current recorded effective state of one exact named view, including inherited files; not every historical patch
--from <VIEW>The proposed source view, usually a draft; requires --to
--to <VIEW>The destination/base view, usually shared; requires --from

--change, --turn, --intent, --view, and the --from/--to pair are mutually exclusive. Unknown views fail rather than falling back to the active view. Empty views and self-comparisons are valid.

For a draft proposed for a shared view, review in this direction:

# Source -> destination, matching a pull request and the insertion direction.
atomic review --from feature-shipping --to dev --html

# Inspect the actual promotion set separately.
atomic insert preview feature-shipping --to dev

The comparison measures target before / source after. The v5 JSON makes both roles explicit with from/to and before/after pins. It pins both named effective states without switching the working copy, reading dirty/staged/untracked code, or replaying intermediate patches. It is a comparison of the supplied endpoints, not a simulated insertion result. Inspect the insertion preview separately for the actual promotion set and dependencies.

Local review options​

OptionDescription
--jsonEmit the complete canonical report as JSON. Conflicts with --html
--htmlGenerate a self-contained offline viewer and open it in the default browser unless --no-open is supplied. Conflicts with --json and --details
--no-openRequires --html. Do not launch a browser; write HTML to standard output when no output file is specified
-o, --output <FILE>Requires --html. Write the report to this file
--detailsExpand the terminal report with the worklist, intent text, diffs, and detailed observations; not an HTML option
--findings <FILE>Import exact-scope reviewer findings, explicit criterion judgments, and an optional risk assessment. The atomic.review-findings.v1 envelope must match the report's graph.scope; stale, foreign, or unevidenced inputs are rejected. Input is bounded to 1 MiB / 500 supplied findings; oversize inputs are refused, not truncated
--risk-profile <FILE>Override the versioned local risk thresholds with a valid JSON profile. The expanded profile and rule references remain inspectable; a profile cannot downgrade established findings. Input is bounded to 64 KiB
-v, --verboseEmit additional diagnostics
--no-colorDisable ANSI color
-h, --helpPrint help for this command or subcommand
-V, --versionPrint the CLI version

--view and --from/--to reject --findings and --risk-profile, which are change-review inputs. Local review flags cannot be mixed with the publish subcommand; place publication flags after publish.

Examples​

# Terminal review, then the same recorded change in the browser.
atomic review --change <HASH>
atomic review --change <HASH> --html

# Complete structured report or expanded terminal evidence.
atomic review --change <HASH> --json
atomic review --change <HASH> --details

# Select a recorded turn or governing intent explicitly.
atomic review --turn <SESSION>:<TURN> --json
atomic review --intent <INTENT_ID> --html

# A single recorded view has current values, not invented before values.
atomic review --view feature-shipping --html

# Compare two complete recorded states.
atomic review --from feature-shipping --to dev --json

# Headless file export; no browser is launched.
REPORT_DIR=$(mktemp -d "${TMPDIR:-/tmp}/atomic-review.XXXXXX")
atomic review --from feature-shipping --to dev \
--html --no-open --output "$REPORT_DIR/shipping-review.html"

# Without --output, --no-open emits the HTML document to stdout.
atomic review --change <HASH> --html --no-open > "$REPORT_DIR/change-review.html"

# Change-review inputs authored against this exact report scope.
atomic review --change <HASH> --findings findings.json --html
atomic review --change <HASH> --risk-profile team-risk.json --json

Treat exported reports as source-bearing artifacts. Keep sensitive reports private and outside tracked source, or add an appropriate ignore rule.

Read the shape of the work​

The HTML opens on Summary, which owns the report-wide counts, before/after pins, file comparison, all-card coverage tables, conformance context, and risk estimate. Detail tabs start with selected evidence instead of repeating that overview above every file.

SectionInspect
Anti-slopLocal structural observations with rule definitions, source evidence, corrections, and metrics. Paired observations are new, existing, resolved, changed, or unknown
ConformanceIntents explicitly assigned to the reviewed view—From/source for comparisons—with acceptance criteria grouped under intent keys/titles. View assignment does not require a change-plan link and is not proof of governing ownership or acceptance
Blast radiusChanged functions, statically bound callers/callees, supported declaration/access/argument-count checks, and the rule-based review-risk estimate

Conformance retains intents without criteria and supports intent-title, ID, criterion, and related F-number search. Recorded definitions are preferred; unrecorded vault definitions are labelled current context and source-hashed. Actual change-linked context outside the source's assignment is labelled separately. Author completion claims do not become independent acceptance verdicts.

Renames use recorded file identity, not filename similarity. Numeric deltas require comparable measurements; unavailable values are not zeroes. Static call-contract checks do not prove compiler-resolved types, runtime behavior, security, or executed-test coverage. Run the appropriate tests yourself.

Every detected numbered finding in JSON is available in HTML, including beyond F100. Source-text export has separate explicit budgets; an unavailable source pane never removes its finding or evidence. The viewer loads no remote assets, fonts, analytics, or model calls. Downloaded JSON preserves the original numeric precision. Existing exported HTML is immutable: regenerate it after a CLI update or a change to the reviewed scope.

JSON entry points​

  • graph.findings: numbered findings and their evidence; paired findings may include lifecycle metadata.
  • graph.criteria: report-local criterion assessments, including explicit unknowns.
  • graph.risk: risk model, static impact, findings, and coverage limitations.
  • view_snapshot.analysis: a single view's local audit/metric results, with no historical before baseline.
  • view_snapshot.conformance: that view's explicit intent catalogue and criterion context.
  • view_comparison.files: identity-paired files, states, source references, local audits, and before/after measurements.
  • view_comparison.conformance: source-view intent scope, declarations, and separately retained membership/governance context.

review publish — attested native evaluation​

Publication uses the same native review process and scope, not an agent executing against an LLM. It works regardless of whether your company records work with Copilot or another supported integration. No runner, model provider, temporary reviewer identity, delegation, or new credential is created.

The accountable signer evaluates all three passes and explicitly records any accepted degradation. Slop, unmet/unknown conformance, blast-radius findings, risk estimates, and coverage limitations remain in the complete attested report. Code that is not ready is still labelled not_ready; a user's decision to accept that risk is recorded separately as accepted_degradation, not clean approval.

atomic review publish --from <DRAFT_SOURCE> --to <SHARED_TARGET> [OPTIONS]
atomic review publish --view <DRAFT_SOURCE> [--to <SHARED_TARGET>] [OPTIONS]
atomic review publish inspect

With no source selector, the current draft is used; a shared parent may supply the destination. Prefer the explicit pair in scripts. The source must incorporate the target's recorded state before a publication can authorize that insertion; otherwise update the draft and review the combined state first.

OptionDescription
--from <VIEW>Proposed draft source; requires --to and conflicts with --view
--to <VIEW>Shared destination/base; measurements use it as before
--view <VIEW>One source-view convenience, not a collection; its parent is the default destination
--evaluation <FILE>Explicit evaluation bound to the exact current report/scope. Accepts the filled evaluation_template alone or the edited dry-run envelope containing it
--identity <IDENTITY>Existing local signing identity; defaults to the configured default. Repository signer-trust policy still applies; selecting a name does not grant trust
--supersedes <HASH>Repeatable: explicitly replace retained decision heads while preserving their signed history
--dry-runPrint complete evidence, outstanding issues, digests, and an unfilled evaluation template without signing, credential creation, or repository writes. Conflicts with --html
--yesConfirm retention of the supplied evaluation noninteractively; never evaluates passes, accepts issues, or waives integrity checks itself
--jsonEmit the attestation receipt and complete signed decision as JSON; conflicts with --html
--htmlExport/open the attested review viewer, retaining findings and linking accepted-degradation rationales to them
--no-openRequires --html; do not open a browser. Without an output path, emit HTML to stdout
-o, --output <FILE>Requires --html; write the attested viewer to this file
--cancel <JOB_UUID>Cleanup only for an owned job from the former agent publisher; cannot resume or create an agent job. Not combined with a new publication scope

The common verbose, color, help, and version options also apply. Native publication has no --runner, provider, --timeout-seconds, --session, collection, or agent-job --resume option.

Evaluate the report and accept risk explicitly​

REPORT_DIR=$(mktemp -d "${TMPDIR:-/tmp}/atomic-review.XXXXXX")
atomic review publish --from feature-shipping --to dev \
--dry-run --json > "$REPORT_DIR/review-plan.json"

Inspect report and issues, then fill evaluation_template in that file:

  • Keep scope_hash, report_hash, and exact issue IDs unchanged.
  • Evaluate each of anti_slop, intent_conformance, and blast_radius_risk. Set evaluated: true only after doing so, with a meaningful pass rationale.
  • Use ready only when that pass has no outstanding evidence.
  • To accept code-quality debt or uncertainty, use accepted_degradation and account for every issue in that pass with a nonempty rationale. Optional evidence references and follow_up link the decision to checks/remediation.
  • Use not_ready with a rationale and no accepted entries to retain a negative decision. That decision does not permit insertion.

There is no wildcard or “accept all” flag. --yes alone cannot publish an evaluation. Unknown/foreign issue IDs, missing rationales, incomplete pass evaluation, and stale digests fail rather than silently approving code.

# After a responsible user has completed the evaluation_template:
atomic review publish --from feature-shipping --to dev \
--evaluation "$REPORT_DIR/review-plan.json" --identity reviewer --yes --json

# The same attestation in an offline viewer with per-issue acceptance links:
atomic review publish --from feature-shipping --to dev \
--evaluation "$REPORT_DIR/review-plan.json" --identity reviewer --yes \
--html --no-open --output "$REPORT_DIR/evaluated-review.html"

# Inspect retained native decisions and their current applicability:
atomic review publish inspect

An exact repeat reuses the same retained attestation. A changed current evaluation requires explicit --supersedes <HASH>; nothing rewrites or removes the older report. The immutable attestation is retained in the repository vault database, not automatically written into the working copy. The JSON receipt's vault_path is a vault address, not a physical file. Use inspect, --json, or --html for explicit exports; keep exports outside the working copy until insertion is done.

What insertion checks​

The atomic.review-decision.v1 artifact binds the complete native report, every outstanding issue and rationale, source/target states and membership, insertion closure, intent-context digests, signer, and proof. Physical working-directory display fields are excluded from the report digest; source and evidence are not.

On matching shared-view insertion, the repository revalidates applicable retained decisions under its evidence boundary. A valid accepted_degradation disposition can permit knowingly risky code while the report's evidence readiness remains not_ready. The outcome surfaces the accepted debt, and insertion operations retain the decision hash as evidence. An explicit not_ready disposition refuses insertion. Source/target drift, report tampering, invalid/untrusted signatures, and original provenance/integrity blockers are not waivable code degradation.

Publication does not perform the insertion or push:

atomic insert preview feature-shipping --to dev
atomic view switch dev
atomic insert view feature-shipping --to dev

Normal working-copy, conflict, dependency, and provenance rules still apply. Applicable decisions also govern hash-set/cherry-pick insertion; omitting the source-view label is not a review bypass. A preview reports the planned changes, not a guarantee that insertion authority and working-copy checks will pass. The attestation records who evaluated and accepted which risks, not that tests were automatically run or the code is defect-free or independently approved. Keep the source-bearing report private as required by your team's policy.

Explicit signing and retained-review subcommands​

These primitives are for an authorized reviewer with the required review intent, exact-state evidence, identity, and repository trust policy. They do not start a model or silently grant trust. The common help/version/diagnostic flags apply to each subcommand.

review publish prepare​

atomic review publish prepare --review <REVIEW_INTENT> \
--view <SOURCE_VIEW> --change <FULL_CANONICAL_HASH> \
[--change <ANOTHER_FULL_HASH>] [--supersedes <RETAINED_ARTIFACT_HASH>]
OptionDescription
--review <REVIEW_INTENT>Required: the independent review intent
--view <VIEW>Source perspective reviewed; defaults to the current view
--change <HASH>Required and repeatable: full canonical Base32 hashes, not prefixes; dependency closure is pinned too
--supersedes <HASH>Repeatable retained artifact hashes explicitly renewed by this signature

Outputs a JSON envelope with document, Base64 signingBytes, and requiredVerification identifying the exact Merkle and view-set reference. Use those values for the required recorded evidence; do not substitute a current or guessed state. Preparation is not a signature or approval.

review publish sign​

atomic review publish sign --file prepared-review.json --identity reviewer

Both --file <FILE> and --identity <IDENTITY> are required. The selected identity must be the prepared author. This command signs and stores the document and prints an artifact receipt; stdout is not a standalone signed review document to feed into record.

review publish record​

atomic review publish record --file externally-signed-review.json

--file <FILE> is required. Verifies and stores an externally signed review document, or an envelope containing it under document. It never signs as the author and does not change original change bytes or repair original capture.

review publish inspect​

atomic review publish inspect

Revalidates retained review documents against current evidence and trust policy, emitting JSON subjects, documents, and validation results. It has no additional command-specific options.

See also​

  • Review the shape, not the diff — make, inspect, repair, and promote a sample change.
  • Evaluate and publish a review — evaluation fields, retained structure, risk acceptance, and supersession.
  • view — draft and shared perspectives.
  • insert — previewing and inserting the actual promotion set.
  • intent — scope assignments, acceptance evidence, and signatures.
  • provenance — signed provenance projections, distinct from review approval.