Skip to content

fix(workspace): harden runbook init with embed filter and service stubs (#325)#73

Open
advancedresearcharray wants to merge 5 commits into
mainfrom
feat/issue-325-runbook-init-delivery
Open

fix(workspace): harden runbook init with embed filter and service stubs (#325)#73
advancedresearcharray wants to merge 5 commits into
mainfrom
feat/issue-325-runbook-init-delivery

Conversation

@advancedresearcharray

@advancedresearcharray advancedresearcharray commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add filteredTemplatesFS to exclude legacy runbook dirs (incidents/, postmortems/, procedures/) and other dev-only paths from kiwifs init embeds — fixes broken-link lint failures on generated workspaces
  • Add services/api-service.md and services/monitoring.md stubs so [[api-service]] / [[monitoring]] wiki links in example-high-cpu.md resolve cleanly
  • Extend regression tests: embed filter unit tests, TestRunbookEmbedUsesUC6ScaffoldOnly, service stub paths in init/scaffold assertions

Closes kiwifs#325

Acceptance criteria

  • kiwifs init --template runbook creates the UC-6 scaffold (SCHEMA, index, example, schema, blank template, service stubs)
  • example-high-cpu.md has all 7 sections with fenced bash blocks and expected output
  • runbook.json validates required fields: type, title, trigger, severity, owner, services
  • kiwifs check passes on generated scaffold (info-level orphans only on README/SCHEMA/playbook)

Test plan

  • go test ./internal/workspace/... ./cmd/... -count=1
  • go test ./internal/workspace/... -run 'Runbook|runbook|Embed|Filtered' -count=1
  • go test ./... -count=1
  • Manual: kiwifs init --root /tmp/runbook-test-ws-325 --template runbook then kiwifs check --root /tmp/runbook-test-ws-325 (exit 0)

Array Fleet and others added 2 commits July 3, 2026 14:00
…bs (kiwifs#325)

Filter legacy runbook scaffold paths from the embedded template FS so
placeholder wiki links never ship via init. Add api-service and monitoring
service stubs so example runbook frontmatter links resolve cleanly.

Co-authored-by: Cursor <cursoragent@cursor.com>
…on (kiwifs#325)

Co-authored-by: Cursor <cursoragent@cursor.com>
@advancedresearcharray advancedresearcharray force-pushed the feat/issue-325-runbook-init-delivery branch from 6e26526 to 1a0ed40 Compare July 3, 2026 14:02
@advancedresearcharray advancedresearcharray changed the title feat(workspace): ship runbook init template and frontmatter schema fix(workspace): harden runbook init with embed filter and service stubs (#325) Jul 3, 2026
Array Fleet and others added 3 commits July 3, 2026 14:02
Peer review follow-up: mirror memory template absent-list pattern so
init embed regression is guarded at the CLI layer.

Co-authored-by: Cursor <cursoragent@cursor.com>
…eview pass (kiwifs#325)

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(workspace): ship runbook init template and frontmatter schema

1 participant