Repository navigation
feat: implement spec 003 specification framework - #5
Merged
Merged
Conversation
…lude OpenSpec Rename from 003-speckit-framework to 003-specification-framework. Spec now covers a unified two-tier specification framework: Speckit (strategic) + OpenSpec (tactical) with constitution governance bridge. Revised US1-US4, added US5-US8, expanded FRs (001-022) and SCs (001-010). Updated all cross-references in AGENTS.md and spec 001.
Generate Phase 0 and Phase 1 plan artifacts: research.md (distribution mechanism, OpenSpec schema, boundary guidelines), data-model.md (8 entities), contracts (unbound CLI, OpenSpec schema), and quickstart.md. Update spec.md FRs/SCs for Go binary distribution via embed.FS scaffold pattern (matching Gaze). Binary named 'unbound' to avoid collision with Speckit's 'specify' CLI. Update plan.md with technical context, constitution check (all PASS), and project structure.
…framework Add tasks.md with 67 tasks across 11 phases for the specification framework implementation. Apply 5 remediations from /speckit.analyze: - Defer concurrent execution detection (OpenCode runtime concern) - Add T065: non-hero repo verification (FR-012, SC-007) - Add T066-T067: boundary enforcement documentation (FR-021, FR-022) - Fix SC-001 command count (9 -> 10 commands + 1 agent) - Add .specify/config.yaml to ownership model in installer-cli.md
Implement the unified two-tier specification framework distributed via the unbound CLI binary (Go + Cobra + embed.FS). Scaffolds 29 files (22 Speckit + 6 OpenSpec schema + 1 config) into any repo via 'unbound init' with file ownership model (user-owned skip, tool-owned auto-update). Includes custom unbound-force OpenSpec schema with constitution alignment in proposals, GoReleaser v2 release pipeline with macOS signing, boundary guidelines, and 12 passing tests including drift detection. All 67 tasks across 11 phases and 8 user stories (US1-US8) completed.
Rewrite the three reviewer agents (Guard, Architect, Adversary) from Gaze-specific to unbound-force meta repo context. Replace Gaze package layout, constitution principles, neighborhood checks, and security model with this repo's concerns: org constitution, spec dependency DAG, scaffold engine patterns, file ownership model, and release pipeline safety. Add embedded copies and update asset manifest test (12 tests pass).
Address all 42 findings (2 CRITICAL, 12 HIGH, 18 MEDIUM, 15 LOW) from the four-persona Review Council audit (Guard, Architect, Adversary, Tester) across two iterations. Key fixes: - Shell injection: replace eval-based get_feature_paths with direct vars - Format-aware version markers with markerFileExtensions guard - isToolOwned covers entire opencode/command/ directory via HasPrefix - printSummary on both success and error paths with hint constants - CLI testability: io.Writer + cmd.OutOrStdout() pattern - Release pipeline: pinned GoReleaser v2.6.1, secret refs, Windows target - Default version 0.0.0-dev for valid semver markers - knownAssetPrefixes with TestAssetPaths_KnownPrefixes drift detection - Test naming convention (TestXxx_Description), mapAssetToSource dedup - reviewer-testing.md updated from Gaze-specific to unbound-force context - Stale references removed from plan.md, machine paths fixed in specs - mcp-tools.md parameter names corrected (page_a/page_b to from/to) - AGENTS.md updated with spec 010, correct file counts, opencode.json
- Fixed broken build caused by newly added reviewer-sre.md not being in expectedAssetPaths or embedded assets directory. - Created Makefile with 'check' target that runs vet, test, build, and lint to mirror the CI process (inspired by Gaze). - Added .golangci.yml from Gaze to standardize linting. - Updated AGENTS.md with 'Build & Test Commands' to match Gaze's format. - Updated file counts in tests and documentation from 32 to 33 due to the new reviewer-sre agent.
23 tasks
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
unboundCLI binary (Go + Cobra + embed.FS) scaffolds 32 files viaunbound init-- 22 Speckit + 6 OpenSpec + 4 reviewer agents -- with format-aware version markers, user-owned vs tool-owned file semantics, and idempotent re-run behaviorunbound-force/homebrew-tapWhat's Included
Spec Artifacts (8 commits)
specs/003-specification-framework/-- spec.md, plan.md, tasks.md (67/67 complete), research.md, data-model.md, quickstart.md, contracts/, checklists/openspec/schemas/unbound-force/with constitution alignment in proposalsImplementation
cmd/unbound/main.go+internal/scaffold/scaffold.gowith ~22 tests across 2 packagesinternal/scaffold/assets/-- 32 files synced from canonical.specify/,.opencode/,openspec/sourcesTestEmbeddedAssets_MatchCanonicalSources) catches when canonical files change without updating embedded copies.github/workflows/release.yml+.goreleaser.yamlReview Council Fixes (final commit)
isToolOwnedcovers fullopencode/command/directoryprintSummaryon error path, hint constants, CLI testability (io.Writer)0.0.0-dev,knownAssetPrefixesguardmapAssetToSourceTesting
All tests pass including drift detection, known-prefix validation, format-aware markers, CLI output capture, and printSummary integration.
Specs Affected