sdd-verify
Verify implementation against specs with structural and behavioral checks. Trigger: When verifying implementation
- License 许可
- MIT
- 最近更新
- 2026-10-22
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- sdd-verify
- scope
- core
- license
- MIT
- metadata
- { "author": "gentleman-programming", "version": "3.0", "delegate_only": true }
- description
- Verify implementation against specs with structural and behavioral checks. Trigger: When verifying implementation
- display_name
- SDD Verify
- user-invocable
- false
- disable-model-invocation
- true
02 资源文件 3
- 参考文档apply-progress.md82 B
- 参考文档references/report-format.md3.7 KB
- 参考文档strict-tdd-verify.md10.6 KB
03 SKILL.md 正文
<!-- Synced from https://raw.githubusercontent.com/Gentleman-Programming/gentle-ai/v1.40.2/internal/assets/skills/sdd-verify/SKILL.md (tag v1.40.2, commit 660917927b4821f5e540dc8fa501d6bee723222c); adapted for Jarvis/Hive runtime semantics. -->
ORCHESTRATOR GATE: If you loaded this skill via the
skill()tool, you are the ORCHESTRATOR — STOP. Do NOT execute these instructions inline. Delegate to the dedicatedsdd-verifyexecutor using your platform's delegation primitive. This skill is for EXECUTORS only.
Executor Override
If you ARE the sdd-verify executor, the gate above does NOT apply to you. Continue with the phase work below. Do NOT delegate. Do NOT call the Skill tool. You are the executor — execute.
Language Domain Contract
Generated technical artifacts default to English. Do not inherit the user's conversational language or the active persona's regional voice for SDD artifacts unless the user explicitly requests that artifact language or the project convention requires it.
If Spanish technical artifacts are explicitly requested, use neutral/professional Spanish unless the user explicitly asks for a regional variant.
Public/contextual comments follow the target context language by default. Explicit user language or tone overrides win; Spanish comments default to neutral/professional Spanish unless the user or target context clearly calls for regional tone.
Activation Contract
Run when the orchestrator launches verification for an SDD change. You are the quality gate: prove completion with source inspection plus real execution evidence when a test runner exists, or with an explicit static review when none exists.
The orchestrator should provide structured status from jarvis sdd status <change> --json (schema: jarvis.sdd-status). Use its actual schema, planningHome, changeRoot, artifactPaths, contextFiles, blockedReasons, dependencies, task progress, phaseInstructions, and actionContext before judging artifacts.
Hard Rules
- Read all available status
contextFilesbefore judging implementation. Full spec-driven verification reads proposal, specs, design, tasks, and apply-progress; partial artifact sets degrade as described below. - Follow
../_shared/apply-progress.mdfor canonical v2 apply-progress validation. - Treat
artifactPathsas the source of artifact locations. Do not assume fixed filenames when structured status provides paths. - Apply the Native Status Gate from
_shared/sdd-phase-common.mdto the forwarded status; runjarvis sdd status <change> --jsonyourself only when no status was forwarded; STOP on any gate failure. Gate phase:sdd-verify;dependencies["sdd-verify"]must be exactlyready. - When reading apply-progress, treat only an exact
status: completemarker as explicit completion. Treatstatus: partial, unknown, malformed, conflicting, or unmarked progress as incomplete unless structured status classified an unmarked artifact as done from deterministic all-complete task evidence. - Inspect only paths under
actionContext.allowedEditRoots. If evidence requires a path outside the allowed roots, STOP and report the unsafe path. - Stop early: if any non-operator implementation task is unchecked or apply-progress is not complete, return
blockedbefore running any command (no suite, no coverage), listing the pending tasks. - When a runnable test command exists, execute it; static analysis alone is never verification.
- With a runnable test command, a spec scenario is compliant only when a covering test passed at runtime.
- Static review applies only when no runnable test command exists and never counts as a test-backed PASS.
- If runtime tests cannot be run, report runtime evidence as skipped and do not claim full PASS for behavior that was not executed.
- Compare specs first, design second, task completion third.
- Do not fix issues; report them for the orchestrator/user.
- Persist
verify-reportaccording to mode: Hive (mcp__hive__mem_save), openspec file, hybrid both, or inline-only fornone. - If Strict TDD is active, load
strict-tdd-verify.mdfrom this skill directory; if inactive, never load it. - Return the Section D envelope from
../_shared/sdd-phase-common.md.
Status Handling and Blockers
| Condition | Action |
|---|---|
Orchestrator says STRICT TDD MODE IS ACTIVE |
Strict TDD verify; treat as authoritative and load strict-tdd-verify.md. |
Orchestrator says TDD MODE: standard |
Standard verify; never load strict-tdd-verify.md, even if cached capabilities suggest strict. Still run available project test commands. |
Nothing forwarded, cached strict_tdd_suggestion: strict, and a runner exists |
Legacy only: Strict TDD verify; load module. Use legacy strict_tdd: true only when the suggestion is absent. |
Nothing forwarded and cached suggestion is standard |
Standard verify; skip TDD-cycle checks, but still run available project test commands. |
No runnable test command exists: cached testing capabilities and a direct check of project files (test script, *_test.go, test_*.py, Makefile test target, and similar) both find none |
Static verify (Verification mode: static). Missing cache alone never selects static mode; check the project files first, and if a real test command exists, run it: no execution; scenarios are static-reviewed; the maximum verdict is PASS WITH WARNINGS, which stays archive-ready. Never load strict-tdd-verify.md. |
applyState is blocked |
STOP and return blocked with the status blocked reasons. |
Native Status Gate fails, including actionContext.mode: workspace-planning |
STOP; unedited linked workspaces are planning-only and cannot prove implementation readiness. |
| Missing required tasks artifact | CRITICAL unless the change is explicitly inline-only or status marks the artifact optional. |
| Missing proposal/spec/design | Continue only for available dimensions and report skipped checks. |
| Only tasks artifact exists | Verify task completion only; skip spec/design correctness and record skipped checks. |
| Tasks + specs exist | Verify completeness and correctness; skip design coherence and record skipped checks. |
| Proposal/specs/design/tasks exist | Verify all dimensions. |
| apply-progress missing or partial while implementation tasks are checked | CRITICAL; return blocked before running any command and route back to sdd-apply for reconciliation. |
| Unchecked implementation/core task | CRITICAL; return blocked before running any command, list the pending tasks, and route to sdd-apply. |
| Unchecked cleanup or explicitly deferred task | WARNING; continue verification. |
Unchecked [operator] task |
Report pending-operator, not CRITICAL. It still blocks archive readiness; route to sdd-apply, which pauses for the developer's acknowledgement. |
| Test command exits non-zero | CRITICAL. |
| Runtime mode: spec scenario has no passing covering test | CRITICAL UNTESTED or FAILING. |
| Static mode: changed code contradicts or omits a spec scenario | CRITICAL. |
| Design deviation exists | WARNING unless it breaks a spec. |
| Unresolved CRITICAL verification finding exists | Final verdict is FAIL; do not recommend archive. |
Runtime Evidence Policy
- Resolve runnable commands from forwarded status, cached testing capabilities, config, or project files. A runnable test command selects
Verification mode: runtime; none selectsVerification mode: static. - When the launch prompt forwards the test command (for example
Test runner: <command>), use it and do not search cached testing capabilities again.Test runner: none detectedstill requires the direct project-file check before static mode.
Runtime mode
- Run the project's test command once for the change and each available quality command (vet, lint, type-check) once. Strict TDD changes the depth of evidence review; it does not make runtime evidence optional for non-strict verification.
- Do not re-run each apply GREEN command individually; a passing suite that includes the covering tests confirms GREEN evidence.
- Coverage, the assertion audit, and the coverage allocation audit are optional and warn-only: run them only when cheap or requested; they never block the verdict.
- Source inspection alone does not prove spec scenario compliance.
Static mode
- Run no commands. Read the changed code against each spec scenario and against the loaded project skills' rules (for example
zoho-delugeconventions). - Report each reviewed scenario as
static-reviewed, neverCOMPLIANTorPASSby test. Scenarios that depend on the tenant follow the[operator]rules below. - Add the WARNING
no test runner: static review only. Missing runtime evidence that cannot exist is not CRITICAL and does not block archive.
Evidence rules
- Strict TDD evidence (RED, GREEN, completion coverage) is validated by reading apply-progress, never by re-executing apply commands; read the safety-net baseline once from the apply return or the first task's red summary.
- A documented manual verification path is not evidence by itself.
- Manual or runtime verification counts as
PASSonly when it was executed and the report records the command or manual action, result, timestamp or session, and operator/evidence source. - Mark a scenario
PASSonly when a covering automated test passed, or when required manual/runtime verification was executed and recorded with evidence for that scenario. - A spec scenario that depends on an
[operator]task is reportedoperator-attested, neverPASSbacked by a test: the developer's acknowledgement is attestation, not runtime evidence. It is neither CRITICAL norUNTESTED. Never ask for screenshots, IDs, or logs, and never use Zoho MCP servers to check it; they point at our own account, never the client tenant. - If tests fail to execute because of infrastructure, missing dependencies, or absent runner configuration, record runtime evidence as
skipped, explain why, and classify behavior that depends on execution asUNTESTEDinstead ofPASS.
Skipped Dimensions
- Report every missing or unavailable verification dimension with the missing artifact/evidence and its consequence.
- Missing specs means spec correctness is skipped; do not infer requirements from tasks alone.
- Missing design means design coherence is skipped; do not claim architecture conformance.
- Tasks-only verification may confirm objective checkbox completion, but if runtime evidence is unavailable the final verdict is at most
PASS WITH WARNINGSfor task completion only. - Unchecked implementation tasks remain CRITICAL even when other dimensions are skipped.
Final Verdict Constraints
PASS: all required tasks are complete, no CRITICAL findings exist, required spec scenarios are covered by passing runtime evidence, and no required verification dimension is skipped. Static mode never yieldsPASS.PASS WITH WARNINGS: no CRITICAL findings exist, but non-critical dimensions were skipped or warnings remain; behavior without runtime evidence must be called out explicitly. It is the maximum verdict in static mode, with the WARNINGno test runner: static review only, and it is archive-ready as**PASS WITH WARNINGS — archive ready.**.FAIL: any CRITICAL finding remains, including partial/missing apply-progress for checked implementation tasks, failing test or quality commands, required spec scenarios without passing runtime evidence in runtime mode, or scenarios the static review finds contradicted or missing.
Execution Steps
- Load relevant skills via shared SDD Section A.
- Read structured status first when provided. Prefer
contextFilesandartifactPaths; otherwise retrieve artifacts via shared Section B for the active persistence mode. - Pass the Native Status Gate (see Hard Rules); STOP on any gate failure.
- Resolve TDD mode: the forwarded TDD mode first (
STRICT TDD MODE IS ACTIVE→ strict;TDD MODE: standard→ standard); only when nothing was forwarded, use the cachedstrict_tdd_suggestion(legacystrict_tddwhen the suggestion is absent). Resolve runnable test commands from forwarded status, cached capabilities, config, or project files either way, and reuse the forwarded test command instead of searching cached capabilities; that selectsVerification mode: runtimeorVerification mode: static. - Count completed and incomplete tasks. Any unchecked implementation task is CRITICAL and blocks archive readiness. An unchecked
[operator]task is reportedpending-operatorinstead, not CRITICAL; it still blocks archive readiness untilsdd-applyrecords the developer's acknowledgement. - Stop early: if any non-operator implementation task is unchecked or apply-progress is not complete, return
blockednow, before running any command, with the pending task IDs andnext_recommended: sdd-apply. - Read apply-progress. In Strict TDD, validate the v2 evidence structure by reading it (
strict-tdd-verify.md); do not re-execute it. - If specs exist, map each spec requirement/scenario to implementation evidence and tests.
- If design exists, check design decisions against changed code. If design is missing, skip design coherence and record why.
- Runtime mode: Run the project's test command once for the change and each available quality command (vet, lint, type-check) once; add coverage or audits only when cheap or requested, as warnings. Static mode: run nothing and review the changed code against each scenario and the loaded project skills' rules.
- Build the compliance matrix from the test results (runtime) or the static review (static) when specs/scenarios exist.
- Persist and return the verification report, including the verification mode and skipped dimensions for missing artifacts.
Canonical Active Verify Report
Persist one active report with these headings exactly once and exactly as written:
## Verdict
**PASS — archive ready.**
## Critical Findings
0
## Blockers
None
PASS WITH WARNINGS is also archive-ready only in this exact verdict form:
**PASS WITH WARNINGS — archive ready.**.
Emit the phrase archive ready only when Critical Findings is 0 and Blockers is None. None, **None**, and _None_ are equivalent blocker values after Markdown normalization. For FAIL, a nonzero critical count, or actual blockers, do not emit archive ready.
The runtime consumes only these three active sections. Each must occur once; do not use a historical, archived-style, YAML, or prose report as a fallback. Any missing or duplicate active heading, missing field, or missing archive-ready marker must be regenerated by sdd-verify with code regenerate_with_sdd_verify.
Output Contract
Return ## Verification Report with change, TDD mode, verification mode (runtime or static), artifact/status source, completeness table, build/tests/coverage evidence, spec compliance matrix, correctness table, design coherence table, skipped dimensions, issues grouped as CRITICAL/WARNING/SUGGESTION, and final verdict PASS, PASS WITH WARNINGS, or FAIL. End the persisted report with the canonical active sections above.
Blocker Reporting
When blocked, return the Section D envelope with:
status:blockedexecutive_summary: one sentence naming the blockerartifacts: any report persisted before the blocker, orNonenext_recommended:sdd-applyfor incomplete/partial apply state, otherwise the phase that can provide the missing evidencerisks: why verification cannot prove archive readiness
References
- references/report-format.md — full report template, compliance statuses, and command evidence fields.
- strict-tdd-verify.md — load only when Strict TDD is active.
../_shared/apply-progress.md— canonical v2 apply-progress validation.../_shared/sdd-phase-common.md— skill loading, retrieval, persistence, and return envelope.
<!-- section:model-capable -->
Capable Model Execution Strategy
- Perform full artifact reconciliation: status JSON, proposal, specs, design, tasks, apply-progress, changed files, and generated-output boundaries.
- Build a requirement-by-requirement compliance matrix that links each scenario to code evidence and runtime command output.
- Run the project's test command and quality commands once each; do not re-run individual apply commands.
- Inspect design decisions deeply enough to identify intentional deviations, missing migrations, unsafe workspace assumptions, and source/generated-artifact boundary violations.
- Preserve detailed command output, skipped-dimension rationale, and archive-readiness reasoning in the persisted verify report. <!-- /section:model-capable -->
<!-- section:model-small -->
Small Model Execution Strategy
- You are a VERIFY sub-agent. Your job: check implemented changes match spec acceptance criteria. Do NOT delegate.
- Start with structured status, task checkboxes, apply-progress state, and spec scenarios when present.
- Keep the report concise, but preserve the neutral contract above: blockers, runtime evidence, skipped dimensions, and final verdict constraints are mandatory.
- Stop with
blockedbefore any command when a non-operator implementation task is unchecked or apply-progress is not complete. - Run the explicit test command from status/config/cached capabilities once when available. If no command can be determined, review statically: scenarios are
static-reviewed, the status is at mostpass_with_warnings, and the warning isno test runner: static review only. - Prefer a compact checklist over prose when reporting checks.
Return Minimal Report
{
"status": "pass|pass_with_warnings|fail|blocked",
"verification_mode": "runtime|static",
"checks": [{"criterion": "text", "result": "pass|fail|static-reviewed|skipped", "evidence": "one-line"}],
"runtime_evidence": {"result": "passed|failed|skipped", "command": "text-or-empty", "reason": "text-or-empty"},
"blocked_by": ["unchecked-task|pending-operator|missing-artifact|partial-apply-progress|workspace-planning|critical-finding"],
"next": "ready-for-archive|sdd-apply|missing-evidence-required"
}
<!-- /section:model-small -->
04 同仓库更多 Skills
work-unit-commits
Plan commits as reviewable work units. Trigger: implementation, commit splitting, chained PRs, or keeping tests and docs with code.
skill-registry
Create or update the skill registry for the current project. Scans user skills and project conventions, writes .jarvis/skill-registry.md, and saves to Hive if available. Trigger: When user says "update skills", "skill registry", "actualizar skills", "update registry", or after installing/removing skills.
skill-improver
Trigger: improve skills, audit skills, refactor skills, skill quality. Audit and upgrade existing LLM-first skills safely.
skill-creator
Trigger: new skills, agent instructions, documenting AI usage patterns. Create LLM-first skills with valid frontmatter.
sdd-tasks
Break down a change into a concrete, ordered implementation checklist. Trigger: When creating task lists
sdd-spec
Write delta requirements and Given/When/Then scenarios for a change. Trigger: When writing specs