360 Secure SkillHub
360 安全技能中心

dr-checkpoint-implementation

把生产发布、外部交付、密钥权限与客户数据变更、破坏性操作等高风险实施拆成可独立审查的小检查点:每步先定验收标准,再实现、跑针对性验证并记录证据,按审批策略决定继续或暂停,并给出只读预检、干跑、停止条件与计划调整规则。

分类:开发
daniel-refahi-ikara
daniel-refahi-ikara
热度 19.43
最近更新 2026-11-24 08:20:17

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add daniel-refahi-ikara/dr-checkpoint-implementation
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
dr-checkpoint-implementation
description
Guide Codex through consequential multi-stage implementation work in small validated checkpoints. Use for production rollouts or mutations, external delivery, scheduled automation, secrets/permissions/billing/customer-data changes, destructive work, major dependency or rollback risk, or explicit step review. Avoid routine direct work.

dr-checkpoint-implementation

Implement complex work in small validated checkpoints instead of one large change.

Trigger Gate

Use checkpointed implementation only for:

  • production rollouts or mutations;
  • external delivery;
  • scheduled automation;
  • secrets, permissions, billing, or customer-data changes;
  • destructive actions;
  • major multi-stage changes with meaningful dependency or rollback risk; or
  • explicit user-requested step review.

Do not use it merely because work is reporting-related, operational, an integration, or may evolve. Explicit exclusions include questions, research, drafts, reports, read-only checks, routine validation, and ordinary reversible non-production local code or workspace changes.

Core Rule

For a triggered task, do not perform consequential multi-stage implementation as one big change. Break it into independently reviewable checkpoints, validate each checkpoint, revise the remaining plan, and apply the approval policy before continuing.

Workflow

  1. Restate the objective, constraints, and non-goals.
  2. Break the work into small checkpoints.
  3. Define acceptance criteria before coding each checkpoint.
  4. Implement only the current checkpoint.
  5. Run focused tests, validation, or dry-run evidence for that checkpoint.
  6. Record the checkpoint using the template below at meaningful phase boundaries. Keep it internal unless user approval is required or the user requested progress updates.
  7. Update the remaining plan if discovery changed anything.
  8. Continue only when the current checkpoint is valid and the approval policy allows it.
  9. Keep live rollout as a separate gate when it is not already authorised.

Step Review Template

After every checkpoint, record:

  • Implemented:
  • Evidence:
  • Learned:
  • Remaining work:
  • Plan changes:
  • Approval decision: self-approved / needs user approval
  • Reason:

For a triggered long-running task, persist checkpoint records in task-local state and continue automatically when self-approved. Do not record micro-steps. A user-facing reply is reserved for a required approval, a concrete blocker, a requested update, or final completion.

Approval Policy

Default to self-approval between checkpoints when:

  • acceptance criteria are met
  • focused tests or validation pass
  • no materially increased risk or unauthorised external side effect is introduced
  • the remaining plan still matches the user's objective
  • the user did not explicitly request manual review before continuing

Approval persists across checkpoints and turns for its agreed target, scope, method, and risk. A checkpoint is not itself a reason to ask again. Continue safe, validated work within that scope, including approved live effects. Do not infer approval for a distinct live effect merely because another was approved.

For a bounded live change, use one decision point:

  1. Run a read-only preflight or dry-run.
  2. Confirm that Daniel or an already-authorised requester has authorised the batch; obtain confirmation only if that authorisation is missing.
  3. Execute the approved batch once.
  4. Immediately read back the result.

Do not request repeat approval unless the target, scope, method, or risk materially changes.

Stop for user approval when:

  • the user explicitly asked to review each step before proceeding
  • enabling a new, unauthorised live external side effect, such as notifications, writes, cron delivery, emails, public posts, production mutations, or production data changes
  • changing scope, architecture, data model, rollout strategy, or user-visible behavior materially
  • validation remains missing, weak, flaky, or contradictory after reasonable attempts to resolve it
  • real-data calibration reveals unresolved uncertainty or materially increased risk
  • a secrets, permissions, billing, customer-data, or production change exceeds the authorised scope or applicable approval gate

Read-only diagnostics and no-save checks do not require approval merely because they access production. Assess their actual effects: a nominally read-only check may cause disruptive load, trigger automation, expose data, or have other side effects. Do not run a check whose effects exceed the authorised scope. For example, inspecting an approved production migration's status is normally safe; writing a new production configuration outside the approved migration is not. If validation fails, investigate and fix it within scope; pause when it remains unresolved, a genuine blocker arises, or a new approval is actually required.

Production Safety Gates

  • Prefer read-only discovery before write behavior.
  • Treat real-data runs as calibration, not proof, until evidence quality is confirmed.
  • For alerts, notifications, or other side effects, build dry-run rendering and cooldown/suppression tests before enabling delivery.
  • Do not enable external side effects until approved within the applicable scope.
  • If data is missing or confidence is low, report that clearly instead of forcing a decision.

Testing Expectations

Run the smallest useful test after each checkpoint. If a test or run reveals a flawed assumption, fix the assumption and add regression coverage before proceeding.

Use focused validation for narrow changes. Broaden testing when a checkpoint touches shared behavior, cross-module contracts, data pipelines, monitoring, alerting, integrations, or production-facing workflows.

Plan Adjustment Rules

Revise the remaining plan whenever discovery changes data shape, API behavior, risk, acceptance criteria, rollout approach, or user-visible behavior.

Keep unrelated dirty worktree changes untouched.

Stop Conditions

Stop and ask for user approval when the approval policy requires it, when safety gates cannot be satisfied, when validation cannot be made meaningful, or when the next checkpoint would exceed the user's requested scope.

Apply To Workspace

To make this procedure mandatory instead of advisory, apply the policy block in references/APPLY.md to the workspace instructions.