Skip to content

feat: implement spec 003 specification framework - #5

Merged
jflowers merged 11 commits into
mainfrom
003-specification-framework
Mar 9, 2026
Merged

jflowers merged 11 commits into
mainfrom
003-specification-framework

Conversation

@jflowers

@jflowers jflowers commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Unified two-tier specification framework combining Speckit (strategic, architectural specs) with OpenSpec (tactical, lightweight changes), governed by the org constitution as a shared bridge
  • unbound CLI binary (Go + Cobra + embed.FS) scaffolds 32 files via unbound init -- 22 Speckit + 6 OpenSpec + 4 reviewer agents -- with format-aware version markers, user-owned vs tool-owned file semantics, and idempotent re-run behavior
  • GoReleaser v2 release pipeline with cross-platform builds (macOS/Linux/Windows), Apple Developer ID signing, and Homebrew cask publishing via unbound-force/homebrew-tap
  • Divisor reviewer agents (Guard, Architect, Adversary, Tester) adapted from Gaze-specific to meta-repo context, with constitution-check alignment agent
  • Full Review Council audit -- all 42 findings (2 CRITICAL, 12 HIGH, 18 MEDIUM, 15 LOW) resolved across two iterations

What'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/
  • Custom OpenSpec schema under openspec/schemas/unbound-force/ with constitution alignment in proposals
  • Boundary guidelines (strategic vs tactical) documented in AGENTS.md

Implementation

  • Go binary: cmd/unbound/main.go + internal/scaffold/scaffold.go with ~22 tests across 2 packages
  • Embedded assets: internal/scaffold/assets/ -- 32 files synced from canonical .specify/, .opencode/, openspec/ sources
  • Drift detection: Reverse test (TestEmbeddedAssets_MatchCanonicalSources) catches when canonical files change without updating embedded copies
  • Release pipeline: .github/workflows/release.yml + .goreleaser.yaml

Review Council Fixes (final commit)

  • Shell injection fix (eval to direct variable assignment in bash scripts)
  • Format-aware version markers with extension guard
  • isToolOwned covers full opencode/command/ directory
  • printSummary on error path, hint constants, CLI testability (io.Writer)
  • GoReleaser pinned v2.6.1, secret references, Windows target
  • Default version 0.0.0-dev, knownAssetPrefixes guard
  • Test naming conventions, deduped mapAssetToSource
  • Cross-spec fixes: mcp-tools.md params, machine paths to GitHub URLs

Testing

All tests pass including drift detection, known-prefix validation, format-aware markers, CLI output capture, and printSummary integration.

Specs Affected

  • 003 (primary): Status set to Complete
  • 010: Status set to Complete, mcp-tools.md param fix
  • 001, 002, 005: Machine-specific path fixes

jflowers added 11 commits March 8, 2026 16:54
…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.
@jflowers
jflowers merged commit 6c4eb0f into main Mar 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant