Skip to content

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

Open
advancedresearcharray wants to merge 6 commits into
mainfrom
feat/issue-325-runbook-init-hands-on-verified
Open

feat(workspace): ship runbook init template and frontmatter schema#80
advancedresearcharray wants to merge 6 commits into
mainfrom
feat/issue-325-runbook-init-hands-on-verified

Conversation

@advancedresearcharray

Copy link
Copy Markdown
Owner

Summary

Closes kiwifs#325.

Ships UC-6 runbook init template hardening so kiwifs init --template runbook scaffolds a lint-clean workspace:

  • Embed filter (filteredTemplatesFS) excludes legacy runbook dirs and dev-only paths with placeholder wiki links
  • Service stubs for [[api-service]] and [[monitoring]] wiki links in example runbook
  • JSON Schema validates required frontmatter: trigger, severity, owner, services
  • Example runbook with all 7 UC-6 sections and fenced bash blocks
  • Regression tests for embed filter, scaffold paths, schema validation, and kiwifs check

Test plan

  • go test ./internal/workspace/... ./cmd/... -run 'Runbook|Embed|Filtered|InitCheck' -count=1 — PASS
  • go test ./... -count=1 — PASS
  • go run . init --root /tmp/runbook-test-ws --template runbook — scaffolds workspace
  • go run . check --root /tmp/runbook-test-ws — exit 0

Made with Cursor

Array Fleet and others added 5 commits July 3, 2026 14:45
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.

Closes kiwifs#325

Co-authored-by: Cursor <cursoragent@cursor.com>
Record passing test output and peer review pass for embed filter
hardening with Stat() and absent-path regression assertions.

Signed-off-by: Array Fleet <fleet@advancedresearcharray.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
…iwifs#325)

Hands-on delivery after fleet agent failed peer review. Confirms embed
filter hides legacy template paths, service stubs resolve wiki links,
and kiwifs check passes on generated runbook scaffold.

Signed-off-by: Array Fleet <fleet@advancedresearcharray.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
Update episodic run log with commit 342c104 after hands-on verification
of embed filter, service stubs, and passing test suite.

Signed-off-by: Array Fleet <fleet@advancedresearcharray.local>
@advancedresearcharray advancedresearcharray force-pushed the feat/issue-325-runbook-init-hands-on-verified branch from 60e0be2 to a4882e5 Compare July 3, 2026 14:52
Signed-off-by: Array Fleet <fleet@advancedresearcharray.local>
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