---
name: gated-development
description: >-
  Govern non-trivial development whose outcome requires executable evidence. Agree on the Product outcome and execution packet, then complete independently testable checkpoints. Use contract-scaffold instead when the final outcome is intentionally incomplete source for interface or contract review.
title: gated-development
canonical_url: https://skilld.dev/gh/databyjp/jpstack/gated-development
last_updated: 2026-11-12T03:09:34.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [evals/evals.json](https://skilld.dev/api/skills-raw/databyjp/jpstack/gated-development/evals/evals.json).
>
> If the user asked to install this Skill, run `npx skilld install databyjp/jpstack/gated-development`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/gated-development`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/databyjp/jpstack/gated-development) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/gated-development`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/gated-development --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/gated-development --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Evidence-first gated development

The human approves the Product outcome and an execution packet before the work
covered by that packet. The agent completes independently testable checkpoints
within it, preserving Product boundaries, ask-first decisions, and
evidence-mapped completion. The human may request checkpoint-by-checkpoint
review. Prefer working evidence over speculative design.

## Choose a lane

- **Small:** obvious, low-risk, and easy to review. Implement directly.
- **Gated:** everything else. Follow this skill.

State the recommended lane. When uncertain, use Gated.

## Approve an execution packet

For Gated work, present one execution packet containing:

- the complete Product contract;
- the planned checkpoint sequence and allowed files, components, or operations;
- permitted local and external actions;
- the validation plan and required evidence;
- Product, interface, schema, security, privacy, credential, spending,
  destructive-action, and external-effect conditions that require interruption;
- checkpoint, retry, cost, duration, and no-progress budgets that apply;
- the conditions for completion, interruption, or failure.

Group unresolved decisions before requesting approval. When only investigation
can resolve an uncertainty, the packet may authorize one discovery checkpoint
and require review after it. The human may request checkpoint-by-checkpoint
review for any packet. This changes review cadence, not the safety rules.

State exact providers, targets, regions, cost caps, cleanup duties, and retained
evidence for any authorized external action. Permission for one target or action
does not imply permission for another.

An execution packet applies only to its Product task and the active Pi run. Do
not carry it into a new outcome, session, fork, or restart, and do not reconstruct
it when the approved packet is unavailable. The packet adds no persistence or
automatic settle-loop continuation.

## Development loop

1. Establish the Product contract, group unresolved decisions, and obtain
   approval for the execution packet.
2. Identify the riskiest current assumption or next observable behavior.
3. Define one executable checkpoint, apply the split test, and confirm that it
   fits the approved packet.
4. Implement, validate, and map the evidence to the Product contract.
5. Continue within the packet, or stop under the execution rules below.

If implementation exposes a choice not already settled by the approved contract
or execution packet, ask first when it affects user-visible behavior, a persisted
schema or public interface, introduces a significant dependency or architectural
seam, affects security, privacy, credentials, destructive action, external
effects, or meaningful cost, would materially constrain later retained work or
make rejecting the choice require substantial rework, or affects most of the
proposed change.

Otherwise make and record an assumption that is cheap to reject at the next
review: it creates no unauthorized external effects, does not materially
constrain later work, and can be discarded without substantial rework. Git
reversibility alone does not satisfy this test.

A decision packet contains the decision, recommendation, main trade-off, and one
question. When the decision concerns an interface, schema, or code shape, present
the candidates as short side-by-side code sketches using the `show-me` shapes,
not prose descriptions. Ask the user for concrete choices without repeating
settled background. Clarification is not implementation approval.

## Product contract

Define the Product contract inside the first execution packet:

- **Outcome:** the problem and user-visible result, stated as black-box behavior
  that a user can verify without knowing the implementation
- **Non-goals:** adjacent behavior that this task will not deliver
- **Must-have behaviors:** the complete set of approved behavior that requires
  evidence before claiming the Product outcome is complete
- **Exit predicate:** the checkable condition that establishes the outcome
- **Validation surface:** the intended user-facing entrypoint or closest
  executable surface that can establish the exit predicate

Keep workflow and technical design out unless the user made them Product
constraints. Distinguish must-have behavior from suggestions and optional
follow-ups. Include the Product contract in the first execution packet; approval
of that packet is also Product-contract approval. A later packet for the same
Product task may reference the approved contract.

The Product contract defines the task boundary. Start a new task only when the
outcome or non-goals materially change. A changed checkpoint, implementation
path, or validation method remains in the same task while the outcome and
non-goals remain fixed. Revise the affected contract with approval when the
change crosses an ask-first boundary. Do not carry approval into an adjacent
Product outcome.

## Select verification evidence

For each must-have behavior, choose the cheapest existing executable check whose
observations fully support the claim. Cost includes runtime, external effects,
human judgment, and maintenance. Prefer a compiler or static check for a source
invariant, a unit test for isolated behavior, an integration or acceptance test
for interactions it actually exercises, and the built product entrypoint when
the claim depends on packaging, process I/O, persistence, or external systems.
Do not require a higher-level run merely because behavior is user-visible when a
lower-level check establishes the same observations.

Treat a check as partial evidence when it bypasses behavior named in the Product
contract. Name the uncovered behavior, such as entrypoint wiring, artifact
identity, lifecycle, side effects, or retained state. Add only the smallest check
that closes that gap. Several checks may cover different must-have behaviors;
one broad product run does not compensate for an unobserved behavior.

Use a one-off command or observation for a non-recurring operational check.
Create reusable verification support only when repeated checks depend on
operational knowledge that ordinary tests or commands do not safely capture,
such as exact instance or artifact selection, external infrastructure,
readiness, credentials, retained evidence, stale-state detection, or cleanup. Do
not create a verification skill merely to wrap an existing test suite.

Keep external actions within the Product contract's ask-first boundaries. Revise
the approved validation surface when evidence reveals a gap, but do not create a
new task unless the Product outcome or non-goals change.

## One-checkpoint rule

A checkpoint has one primary executable assertion. It may contribute only part
of the evidence needed for the Product outcome.

Apply this split test when defining a checkpoint:

> Could two claimed results fail independently while either result would still
> provide useful evidence?

If yes, split them and propose only the riskier or prerequisite checkpoint. If a
component can be removed while the primary assertion remains testable, remove it.
Cross seams only when the assertion requires their interaction. Include an
unproven supporting capability only when it is the minimum prerequisite needed
to observe the assertion.

## Checkpoint kinds

- **Capability checkpoint:** proves one uncertain mechanism using the intended
  production stack when known. Keep its behavior narrow and retain the code.
- **Disposable spike:** answers a question whose code should not enter the
  product. Use one only when throwaway work is materially cheaper or production
  concerns would obscure the evidence. Do not use one when a narrow retained
  test can guard an intended dependency or Product invariant.
- **Integration checkpoint:** tests one uncertain interaction between named
  parts. Exercise one behaviorally trivial path; stub parts outside it.
- **Production slice:** delivers one retained observable behavior through the
  minimum path it inherently requires.

Default to retained code. When the intended language, SDK, and lasting
responsibility are known, use them unless the primary assertion concerns a
lower-level protocol. Do not choose raw HTTP, a temporary language, or a
throwaway harness merely to reduce the file or line budget.

Split independently rejectable behavior. Defer generalization, variants,
standalone documentation, migration, cleanup, and hardening unless the primary
assertion requires them.

Interface documentation and comments needed to understand or safely change
retained code are part of the implementation, not deferred documentation.
Prefer clear names and types; use the `code-documentation` skill for interface
contracts, rationale, dependencies, and local constraints.

Checkpoint kinds describe the change, not the implementation. Name retained
modules, interfaces, and directories by their capability, not `Probe` or another
lifecycle term. A disposable spike may use a script entry point without a
reusable interface.

## Conditional design

Use a design packet only when the next checkpoint depends on a contract,
interface, ownership, data location, or failure decision. Use `codebase-design`
when choosing an interface or seam.

Use `contract-scaffold` as the primary skill when the requested outcome is
intentionally incomplete source for review. When a scaffold is one phase of a
working Product outcome, this skill remains primary and `contract-scaffold`
governs that design phase.

Show only the file tree, declarations, invariants, or errors that constrain the
next checkpoint. Prefer a compiling interface with a real caller, contract test,
narrow adapter, dry run, or walking skeleton. Do not add a seam merely to wrap a
checkpoint.

## Checkpoint contract

Define each checkpoint with this compact contract. Include planned checkpoints
in the execution packet; record narrower repair or revalidation checkpoints
before executing them. When the Product contract is approved but no execution
packet is active, place the next checkpoint in a packet with its scope,
permissions, interruption conditions, and budgets, then request one approval:

- **Kind:** capability checkpoint, disposable spike, integration checkpoint, or
  production slice
- **Primary assertion:** one falsifiable pass/fail claim
- **Implementation path:** intended language and significant dependencies;
  explain any departure from the planned production stack
- **Validation:** one primary command or observation
- **Expected files:** closed list
- **Do not implement:** named adjacent and downstream behavior
- **Stop when**: evidence passes, fails, scope must materially expand, or an unresolved choice crosses the ask-first boundary
- **Disposition:** retain, or discard with a concrete reason retained code would
  cost more or weaken the evidence
- **Review target:** approximate size of normally formatted maintained code;
  name generated artifacts excluded from review

The expected-file list constrains scope, not project structure. Include ordinary
configuration, dependency, source, and test files when retained code needs them.
The review target estimates cognitive load after the checkpoint passes the split
test.

For a disposable spike, prefer the smallest experiment that answers its one question. For uncertain retained work, roughly 100–200 changed lines is a useful review target, but size varies with language and scaffolding. The target is not a quota.

Do not compress formatting or choose a less suitable implementation to
meet it. A modest overrun does not require approval. Stop when growth introduces
a new responsibility, independently rejectable behavior, unexpected file
category, or materially larger review surface.

## Execution

For each checkpoint, restate or record its contract, then:

1. Implement only what the primary assertion requires.
2. Track actual files and the approximate maintained-code review surface.
3. Stop before further edits if the primary assertion, approved constraints, or
   conceptual scope must expand. Ordinary scaffolding and modest size variance
   do not require approval.
4. Run the approved validation, or state why it cannot run.
5. Map every changed file to the primary assertion. Revert unrelated changes.
6. Classify each approved constraint as passed, failed, or deferred. Confirm that
   every `Do not implement` item remains absent.
7. Map the checkpoint evidence to the must-have behaviors it supports. Name each
   must-have behavior that still lacks evidence.
8. Claim that the Product outcome is complete only when the exit predicate
   passes and every must-have behavior has current evidence from the approved
   validation surface.

Continue without another approval only when the next checkpoint is listed in the
packet or is a narrower repair or revalidation of a listed checkpoint, all
actions remain within the approved scope and permissions, no ask-first condition
is unresolved, and every applicable budget remains. Before continuing, record
the completed checkpoint's contract, artifact changes, evidence result, consumed
budgets, retries, and reason for continuing. For grouped external actions, record
the result and consumed budget of each action separately.

If the human requested checkpoint-by-checkpoint review, report the completed
checkpoint and stop before investigating or starting the next one.

An artifact change already approved by the packet may make earlier evidence
stale. Require fresh validation for the changed artifact, but do not interrupt
when that validation is listed in the packet and its budgets remain.

An execution iteration records progress only when it changes an in-scope
artifact or produces new evidence that changes what is known. Stop after two
consecutive iterations without progress, or sooner when the approved packet has
a stricter limit. Do not offer an equivalent retry as recovery unless new
evidence makes it materially different. A failed or inconclusive check permits
another attempt only when the packet allows the repair and its retry budget
remains.

Interrupt execution when:

- the Product outcome or non-goals change;
- the next useful checkpoint is outside the packet;
- an unresolved choice crosses an ask-first boundary;
- an external action lacks exact permission or would exceed its limit;
- evidence invalidates an approved safety, scope, or validation assumption;
- progress, retry, cost, duration, or checkpoint budget is exhausted; or
- the user interrupts.

When execution completes or interrupts, report all checkpoint results, the
evidence mapped to each must-have behavior, consumed budgets, the stop reason,
and any decision now required.

## Split example

Too broad: prove corpus growth, map budgeting, omitted-detail recovery, and
provenance in one checkpoint.

Focused: using the intended SDK, prove that filtered hybrid retrieval returns one
expected source-linked KI within a limit of three. Defer growth and maps. Test
their interaction later only when that interaction becomes the primary
uncertainty.

## Review report

Treat the reporting requirements below as coverage checks, not mandatory headings.
Keep detailed checkpoint and evidence records available; summarize related results
and reference those records rather than repeating them. Use a compact table or
ledger for checkpoint status, file-surface comparison, and budgets so the prose
focuses on reading order, risks, and decisions. Keep approval conditions,
failures, and unverified behavior explicit in the reader-facing summary.

Use `jp-coding-preferences-reporting`. In addition, compare approved and actual
files and review surface, report each primary assertion as passed, failed, or
unverified, map new evidence to the Product contract, name must-have behavior
that remains unverified, and confirm excluded behavior remains absent. Report
why each continuation was permitted and which budget stopped or completed the
run. Do not claim Product completion unless the exit predicate and every
must-have behavior have current evidence from the approved validation surface.
