Nacl tl review

From ITSalt/NaCl · View interactive version

Nacl tl review is an AI agent skill from the GitHub repository ITSalt/NaCl. Review NaCl TL implementation against task specs, API contracts, tests, stubs, and quality checklists. Use when reviewing backend, frontend, or full UC/TECH implementation, requesting changes, approving work, or when the user says `/nacl-tl-review`.

How to use this skill

Skill file

NaCl TL Review For Codex

Read ../nacl-tl-core/SKILL.md and ../nacl-tl-core/references/tl-codex-contract.md before executing this workflow.

Review is a gate between implementation and downstream sync, QA, docs, or ship

phases. Read ../nacl-tl-core/SKILL.md before reviewing.

Workflow

  1. Resolve task ID, layer, changed files, task specs, API contracts, tests, and

implementation results.

  1. Run the nav-actions consumer check for every affected UC (see

"Nav-actions consumer check" below). If the check refuses, emit

Status: BLOCKED with workflow detail nav-actions-missing or

nav-actions-no-natural-entrypoint-evidence and stop. No quality

review proceeds.

  1. Run the repo-wide check gate on the wave-tip commit (see "Repo-wide

Check Gate" below). If the gate refuses, emit Status: BLOCKED with

workflow detail repo-checks-RED, repo-checks-UNRUN, or

repo-checks-UNRUNNABLE and stop. No quality review proceeds.

  1. Compare implementation against task requirements and acceptance criteria.

Enumerate every acceptance criterion as its own row (not the category

groups), and score each on three axes — implemented? (the change

actually produces the behaviour, confirmed by the Step 5 cross-file trace,

not by a plausibly-named function or dead config), reachable? (the

behaviour is reachable end-to-end from a real entrypoint — for UI-affecting

criteria reuse the nav-actions natural-entrypoint evidence as the

reachability witness), and tested? (a test or QA path exercises it).

Per criterion record PASS / PARTIAL / FAIL: a criterion implemented

but unreachable, or untested where the spec demands a test, is at most

PARTIAL; a criterion not implemented or implemented against the wrong

runtime is FAIL. Category-grouped scoring lets one missing requirement

(e.g. an audit-log row the spec demands but no code writes) hide inside a

mostly-passing group — per-criterion rows are the cheapest defence. If any

of the three facts (implemented / reachable / tested) cannot be **positively

confirmed** from the code or tests, score the criterion at most PARTIAL and

record the unconfirmed fact — never PASS on absence of evidence.

  1. Trace cross-file, not just the diff. Judge the change in context using

the actual repo: for each symbol the change calls, open the callee/runtime

that produces the data and confirm the change's assumptions hold (signature,

return shape, side effects, any hardcoded value that silently overrides a

parameter, and dead config — a field declared in the contract or config yet

never set by the runtime). For each symbol the change modifies (renamed

field, new return shape, changed enum), grep the source roots for its

callers/consumers and confirm each still works. Cross-file and

missing-integration defects are exactly what review must catch. A blocking

finding may be refuted only with positive cross-file evidence (the

guard/consumer/runtime that makes it a non-issue), never on the strength of

the diff alone or on uncertainty.

  1. Run or inspect relevant tests when available.
  2. Check stubs, mocks, error handling, API contract alignment, security, and

data persistence expectations.

  1. Produce findings ordered by severity with file references. A finding's

severity may be lowered, or the finding dropped, **only on positive evidence

it is a non-issue** (you read the guard/handler/consumer/requirement that

resolves it); on uncertainty, keep it at its assessed severity and flag the

open question rather than silently dropping or downgrading it.

8a. Self-adversarial pass (mandatory for blocking findings). Before

assigning the status in step 9, take each blocking finding and try to

refute your own claim: re-read the cited code path — and its

callers/consumers/runtime (step 5) — once more, asking "what would make this

a non-issue?". This is the single-agent analogue of an independent verifier:

a cheap second look that kills false positives. Drop a finding here only

if the second read produces positive evidence it is wrong (a guard/consumer

you missed); on uncertainty, keep it (the step 8 evidence rule — never

drop on doubt). Log what you re-read for each finding you drop.

  1. Update review reports or TL tracking files when available and confirmed.

Nav-actions consumer check

Before any PASS-family status is emitted, run a consumer-side

reachability check for every UC affected by the current review. This

skill does not own the W7 graph rule, the HAS_INBOUND_ACTION edge,

or the Cypher template (those live in nacl-sa-ui/SKILL.md and

nacl-sa-ui/references/reachability.cypher); this skill owns the

consumer-side refusal that prevents an unreachable UC from clearing

review. The primary-owner exception for this consumer touch is

declared in the W7 plan scope_in.

Two conditions must hold for every non-exempt affected UC:

  1. The UC's Form has at least one HAS_INBOUND_ACTION edge from a

reachable Component (W7 "Nav Actions" subsection in the source

sa-ui skill).

  1. QA evidence for the UC references at least one natural entrypoint

path — i.e. a route reached by clicking a captured affordance, not

a direct URL paste.

Exemptions (must be set on the UseCase node OR carried by a signed

exception under the W4 schema):

invitation links, embed-only access.

spec (splash / 404 / landing); self-justifying (no signed exception),

the nav_actions_consumer_check query excludes it. Condition 2 still

applies against the screen route (route='/' → direct entry counts).

Record nav-actions-EXEMPT:<uc-id>:formless.

Run the consumer query scoped to the affected UCs:

nav_actions_consumer_check  (see nacl-sa-ui/references/reachability.cypher § 4)
parameters: $affected_uc_ids = [list of UC ids under review]

Outcomes:

nav-actions-GREEN:<uc-id>,<uc-id>,…; record

nav-actions-EXEMPT:<uc-id>:<reason> per exempt UC; proceed to the

repo-wide check gate.

nav-actions-missing. VERIFIED is refused.

nav-actions-no-natural-entrypoint-evidence. VERIFIED is refused.

**VERIFIED refused if nav-actions are missing or the QA evidence

does not reference a natural entrypoint — override requires signed

exception (W4).** No inline operator-prompt override. Strict is the

single, unconditional mode for this gate.

project_kind: prototype does not relax this gate. A prototype that

ships an actor-triggered UC without populated nav-actions still has

VERIFIED refused. project_kind governs only the W4 PR/CI carve-outs.

Worked example — Project-Beta UC-100 "missing upload button". The

catalog page at /catalog had no upload button; users could only

reach /upload by URL paste. With this gate running,

nav_actions_consumer_check for $affected_uc_ids = ['UC-100']

returns one row `{uc_id: 'UC-100', form_id: 'FORM-Upload',

reason: 'no-inbound-action'}. Status: BLOCKED`, workflow detail

nav-actions-missing. The review halts before the false PASS.

Repo-wide Check Gate

Before any quality review, run the repo-wide lint, typecheck, and test

commands on the wave-tip commit (the HEAD commit of the branch under review).

This gate is strict-only — strict is the single, unconditional mode for

this gate. There is no fallback branch, no per-project opt-out, and no

inline operator-prompt override. The only override path is a signed

exception under the schema defined by W4.

Commands, in this order, all on the wave-tip commit:

pnpm -r lint
pnpm -r typecheck
pnpm -r test

The commands are literal. Do not substitute npm, do not drop -r, do not

skip a stage because a workspace lacks the script. A missing script counts

as unrunnable, not as pass.

Outcomes:

and proceed to the stub gate and the rest of the review.

repo-checks-RED. VERIFIED is refused.

scripts.test, or runner crash before any check completes) — report

Status: BLOCKED with workflow detail repo-checks-UNRUN. VERIFIED is

refused.

workspace root, no pnpm-workspace.yaml) — report Status: BLOCKED with

workflow detail repo-checks-UNRUNNABLE. VERIFIED is refused.

**VERIFIED refused if repo checks are red/unrun on wave-tip — override

requires signed exception (W4).** Strict is the single, unconditional

mode for this gate. Every project moves through it the same way; there

is no fallback branch.

config.yaml may declare project_kind: standard (default) or

project_kind: prototype. The repo-wide check gate applies in both modes.

project_kind: prototype only governs the W4 PR/CI carve-outs for

direct-strategy releases; it does not relax local repo-check expectations.

The evidence taxonomy entry is in

../references/verification-evidence.md. The project_kind field is

specified in ../../nacl-tl-core/references/config-schema.md (or its Claude

mirror at nacl-tl-core/references/config-schema.md).

Source-Parity Requirements

with their distinct input files, review artifacts, and phase fields.

changed files for TODO, FIXME, STUB, MOCK, and HACK.

persistence, security, error handling, and test author independence.

output, missing result files, or missing task specs blocks or downgrades the

review.

Without confirmation, report findings inline and leave state unchanged.

Capabilities

May Do

Must Not Do

Conditional Tools And Actions

confirmation.

Blocked Or Unverified Reporting

missing, when the repo-wide check gate refuses (workflow detail

repo-checks-RED, repo-checks-UNRUN, or repo-checks-UNRUNNABLE),

or when the nav-actions consumer check refuses (workflow detail

nav-actions-missing or nav-actions-no-natural-entrypoint-evidence).

Source Comparison

Preserved Methodology

Removed Claude Mechanics

Codex Replacement Behavior

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.