All notable changes to the Spec-Driven Protocol (SDP).
- @build — Post-build
bd closefor beads in WS frontmatter; batch syntax/build 00-XXX-YY..ZZ - @design — Pre-draft check, bead verification, default-in-scope
- @review — Handoff block when CHANGES_REQUESTED
- CLAUDE.md — Sync with sdp_dev/AGENTS.md (placement, "продолжай" convention)
- @build — Step 3b: commit evidence + checkpoint after
sdp-orchestrate --advance - .gitignore —
!.sdp/evidence/,!.sdp/checkpoints/(evidence must be committed with PR) - sdp guard —
deactivatewithout|| true;activatein pre-build without|| true(blocking) - go-ci —
sdp contract validatewithout|| true(blocking)
- install.sh — Fail when no sha256 tool (security); do not skip checksum verification
- install-project.sh — Clear retry command on CLI install failure
- README, QUICKSTART — Document binary-only vs full project install modes
- Release workflow — In sdp repo: protocol-e2e with GLM_API_KEY, then sdp CLI release
- sdp init — Executable-relative paths for global install;
--autoin protocol-e2e Phase 2b - Phase 5 — Fail when GLM_API_KEY not set (opencode LLM required)
- pre-commit —
go build ./...; ws-verdict schema validation whendocs/ws-verdicts/*.jsonchanged - pre-push —
go test -short ./...; evidence validation for feature branches wheninternal/orcmd/changed - install-git-hooks.sh — Symlinks
.git/hooks/pre-commit,.git/hooks/pre-pushtoscripts/hooks/ - Docs — AGENTS.md, runbook for sdp_dev (Go project, evidence, ws-verdict)
New:
- CheckCoverage(ctx) — Coverage checker accepts
context.Contextfor cancellation support. - Intent schema docs —
docs/intent/README.mddocuments intent specification format. - Schema path consistency — Schemas served from
schema/at SDP root. - ws-verdict, review-verdict — JSON schemas for build and review outputs.
Protocol boundary:
- Removed non-protocol docs (workstreams, roadmap, plans, reviews, decisions, specs) — migrated to sdp_dev.
- Kept minimal
docs/reference/(PRINCIPLES, GLOSSARY, build/design/review specs). - Added
docs/README.mdindex for protocol documentation.
Fixes:
- intent.schema.json — Restored valid JSON (was corrupted).
- Windows build — Added
lock_windows.go(no-op flock); evidence layer requires UNIX. - Lint — gofmt, prealloc, gocognit, errcheck nolints.
- TestVerifyCmd — Replaced hanging integration test with
TestVerifyCmdConstructedunit test.
Audit remediation:
- Verifier interface abstraction (CoverageChecker, PathValidator, CommandRunner).
- Parser frontmatter fix (Index for both
---delimiters). - Configurable coverage timeouts, EmitSync docstrings, Writer hash-chain atomicity.
- Guard rules path validation, ParseDependencies safe fallback, ctx propagation.
Install:
SDP_REF=v0.9.8for testing. OpenCode:SDP_IDE=opencodeorSDP_IDE=all.
New:
- Coding Workflow Predicate (in-toto v1) —
schema/coding-workflow-predicate.schema.jsonfor attestations. Predicate type:https://sdp.dev/attestation/coding-workflow/v1. See docs/attestation/coding-workflow-v1.md. - @feature --auto — Generate workstreams directly from roadmap. Skip full discovery for features already in ROADMAP.md.
- @design — Workstream file format with Scope Files, beads mapping, INDEX.md update. Required sections documented.
- PreToolUse constraint enforcement —
sdp-guard --check-constraintsintegration. Reads.sdp/agent-constraints.yamlfor phase-specific rules (scope, force-push, destructive git).
Phase 0:
- Removed phantom guard CLI refs (context, branch, complete, finding)
- Slim @oneshot skill; outer loop via sdp-orchestrate
- Language-agnostic skills: quality gates per AGENTS.md,
masternotdev - @build scope fix; stripped evidence boilerplate
- Deleted
help.md,init.md; compressed deploy, review, implementer
Install:
SDP_REFenv var for branch/ref (e.g.SDP_REF=v0.9.7for testing)- OpenCode/Windsurf:
SDP_IDE=opencodeorSDP_IDE=all
Fixes:
- Fixed installer portability so
curl ... | shworks and installs the CLI binary by default. - Fixed source build path by forcing
CGO_ENABLED=0insdp-plugin/Makefileto avoid Xcode dependency on macOS. - Restored
sdp init --guidedcompatibility as an alias to interactive mode.
Fixes:
- Fixed TempDir cleanup in prototype tests (CI stability)
- Fixed Go Release workflow (GPG signing, goreleaser v2 config)
- Added pre-release dry-run check on every PR
New:
- IDE selection in installer:
SDP_IDE=claude|cursor|opencode - OpenCode/Windsurf integration via
.opencode/directory
Fixes:
- Fixed nil pointer panic in
NewWizard(flaky TestInitCommand)
Improvements:
- One-liner installer:
curl -sSL https://raw.githubusercontent.com/fall-out-bug/sdp/main/install.sh | bash - OpenCode integration:
.opencode/directory with skills, agents, commands - Cross-platform sync: Commands available for Claude Code, Cursor, OpenCode, Windsurf
Fixes:
- Fixed Go version mismatch in
sdp-verify-dogfood.yml(1.24 → 1.26)
Dependencies:
- Bump
github.com/spf13/cobrafrom 1.8.0 to 1.10.2 - Bump
actions/upload-artifactfrom 4 to 6
Theme: Enhanced Developer Experience with Smart Recovery and Guidance
This release focuses on UX improvements, intelligent next-step recommendations, structured error handling, and guided onboarding.
- Next-Step Engine: Intelligent recommendations with confidence scoring
- Error Taxonomy: 38 structured error codes with recovery hints
- Guided Onboarding: Interactive wizard and headless mode
- Self-Healing Doctor: Automatic environment repair
- Enhanced Evidence: Full skills instrumentation
- Features completed: 8
- Workstreams: 57
- Test coverage: 80%+ (all packages)
- M1 Status: ✅ COMPLETE
Guided setup and improved user experience.
Commands:
sdp init --guided- Step-by-step setup wizard with auto-fixsdp init --auto- Safe defaults for quick startsdp demo- Interactive feature walkthroughsdp status --text/--json- Quick status for scripts
Components:
- Preflight checks with auto-repair
- Quickstart templates
- Improved help text with user intent grouping
Intelligent recommendation system for development workflow.
Commands:
sdp next- Get next recommended actionsdp next --json- Machine-readable outputsdp next --alternatives- Show alternative actions
Components:
- Rule-based evaluation with deterministic tie-break
- Confidence scoring (0.0-1.0)
- Categories: execution, recovery, planning, information, setup
- Interactive loop: accept/refine/reject
- Quality metrics: acceptance rate, correction rate
Structured error handling with recovery guidance.
Commands:
sdp diagnose- Show error classes and codessdp diagnose [CODE]- Get recovery steps for errorsdp diagnose --json- Machine-readable output
Error Taxonomy:
| Class | Prefix | Description |
|---|---|---|
| Environment | ENV | Missing tools, permissions, filesystem |
| Protocol | PROTO | Invalid IDs, malformed files |
| Dependency | DEP | Blocked workstreams, cycles |
| Validation | VAL | Coverage, quality gates |
| Runtime | RUNTIME | External failures, timeouts |
Components:
- 38 error codes with messages and recovery hints
- Recovery playbooks with fast/deep path steps
- Diagnostics reports (JSON/text)
Automatic environment repair.
Commands:
sdp doctor --repair- Auto-fix detected issuessdp doctor --deep- Comprehensive diagnostics
Repair Actions:
- Install missing hooks
- Fix permissions
- Repair corrupted config
- Sync stale state
Interactive project initialization.
Commands:
sdp init --guided- Interactive wizardsdp init --headless- CI/CD mode (no prompts)sdp init --project-type go|node|python|mixed- Project type selection
Components:
- Safe defaults per project type
- Skills selection
- Evidence layer configuration
- JSON output for tooling
Evidence tracking for all skills.
Events:
- SkillEvent for @design, @idea, @build
- PlanEvent with approval_data
- DecisionEvent, LessonEvent
Coverage: 84.8%
Git safety with session validation.
Components:
- Session hash verification
- Safe git wrapper
- Branch protection
- Context recovery
Coverage: 83-90%
Unified workflow orchestration.
Coverage: Full integration with all skills
| Command | Purpose |
|---|---|
sdp next |
Next recommended action |
sdp diagnose [CODE] |
Error lookup and recovery |
sdp demo |
Feature walkthrough |
sdp doctor --repair |
Auto-fix environment |
sdp init --guided |
Interactive setup |
sdp init --headless |
CI/CD setup |
Theme: From Python CLI to Intelligent Orchestration System
This release transforms SDP into a multi-agent orchestration system with autonomous execution, strategic planning, codebase analysis, long-term memory, and comprehensive evidence tracking.
- Multi-agent orchestration: 19+ specialized agents
- Strategic planning: @vision skill with 7 expert agents
- Codebase analysis: @reality skill with 8 expert agents
- Long-term memory: SQLite + FTS5 for context recovery
- Evidence layer: Hash-chained event log with CLI tools
- Guard system: Pre-edit scope enforcement
- Parallel execution: ~5x speedup
- Go CLI: Full Go implementation
- Features completed: 16
- Workstreams: 120+
- Test coverage: 68% → 80%+
Workflow optimization and efficiency improvements.
Unified workflow implementation with 18 workstreams covering end-to-end development process.
Components:
- Orchestrator with dependency graph and topological sort
- TeamManager for 100+ role management
- ApprovalGateManager for quality checkpoints
- Checkpoint save/resume for long-running features
- NotificationGateway for team updates
- FeatureCoordinator for @feature integration
Commands:
sdp orchestrate <feature-id>- Execute all workstreams for a featuresdp orchestrate resume <checkpoint-id>- Resume from checkpoint
Packages:
internal/orchestrator/- 83.4% coverageinternal/checkpoint/- 84.4% coverageinternal/notification/- 82.9% coverage
Project memory for avoiding duplicated work.
Commands:
sdp memory index- Index project artifacts into SQLite + FTS5sdp memory search <query>- Full-text searchsdp memory stats- Show index statisticssdp drift detect [ws_id]- Detect code↔docs drift
@vision Skill:
- 7 expert agents: product, market, technical, UX, business, growth, risk
- Generates VISION.md, PRD.md, ROADMAP.md
@reality Skill:
- 8 expert agents: architecture, quality, testing, security, performance, docs, debt, standards
- Generates reality report with tech debt tracking
Parallel Execution:
- Kahn's algorithm for dependency-aware parallelization
- Circuit breaker for fault tolerance
- Atomic checkpoint/resume
Two-Stage Review:
- Stage 1: Spec compliance
- Stage 2: Code quality (coverage >= 80%)
Hash-chained event log for audit trail.
Commands:
sdp log show- Show recent events with filterssdp log trace- Trace evidence chainsdp log export- Export as CSV/JSONsdp log stats- Show statistics
Architecture:
.sdp/log/events.jsonl # Hash-chained event log
- Compliance documentation
- Threat model (THREAT-MODEL.md)
- GDPR/SOC2 compliance reference
Instrumentation for @review, @design, @idea and remaining skills with evidence tracking.
Commands:
sdp plan "feature"- Decompose feature into workstreamssdp apply --ws <id>- Execute workstreamssdp log show/trace/export/stats- Evidence operations
- SDP Verify Action for GitHub Actions
- PR evidence comments
- Release automation
- OpenTelemetry semantic conventions
- Observability integration design
- Cross-feature boundary detection
- Interface contract generation
- Contract-first build workflow
- Metrics collection
- AI failure taxonomy
- Benchmark report generator
Pre-edit scope enforcement for workstreams.
Commands:
sdp guard activate <ws-id>- Enforce edit scopesdp guard check <file>- Verify file is in scopesdp guard status- Show guard status
Unified task ID resolution for workstreams, beads, and issues.
- ID resolution (workstream, beads, issue)
- @review artifact creation
- /issue skill backend
- Git safety modules with structured logging
- Branch protection
- Safe git operations
Quality Gates:
- 80% test coverage threshold in CI
- LOC compliance (all files < 200 lines)
- Go 1.24 across all workflows
Repository Hygiene:
- Removed tracked auto-generated files
- Evidence log policy
- Auto-cleanup patterns
| Command | Purpose |
|---|---|
sdp doctor |
Health check |
sdp status |
Project state |
sdp init |
Initialize SDP |
sdp plan |
Decompose feature |
sdp apply |
Execute workstreams |
sdp guard * |
Scope enforcement |
sdp session * |
Session management |
sdp log * |
Evidence operations |
sdp memory * |
Long-term memory |
sdp drift * |
Drift detection |
sdp telemetry * |
Telemetry management |
sdp skill * |
Skill management |
sdp metrics * |
Metrics reporting |
- Python → Go: Full CLI rewrite
- Test coverage: 68% → 80%+
- File organization: All files < 200 LOC
- Documentation: Complete rewrite
- Data race in circuit breaker tests
- Security: Checkpoint permissions 0644 → 0600
- Go version consistency (1.24)
- Context recovery in Repair()
- Split large files
- Test coverage to 85%+
- Domain layer extraction (Clean Architecture)
sdp statuscommand- Skill discovery via
@help - Legacy code removal (~600 LOC)
- Two-stage review
- Platform adapters
- Extension system
- Oneshot + hooks
- Contract-driven tiers
- SDP infrastructure
- PRD command
See git history for versions prior to 0.4.0.