Skip to content

fix(workspace): harden runbook init template embed filter (#325)#72

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

fix(workspace): harden runbook init template embed filter (#325)#72
advancedresearcharray wants to merge 9 commits into
mainfrom
feat/issue-325-runbook-init-hands-on

Conversation

@advancedresearcharray

Copy link
Copy Markdown
Owner

Summary

  • Add filteredTemplatesFS so go:embed all:templates does not ship dev-only legacy runbook dirs (incidents/, postmortems/, procedures/) that break schema.Lint / kiwifs check on generated workspaces
  • Add service stub pages (services/api-service.md, services/monitoring.md) and index links so example-high-cpu.md frontmatter wiki-links resolve
  • Add regression tests for embed filtering, scaffold lint, schema validation, and TestRunbookInitCheckPasses

Closes kiwifs#325

Test plan

  • go test ./internal/workspace/... ./cmd/... -count=1 -run 'Runbook|Embed|Filtered|InitCheck'
  • go test ./internal/workspace/... ./cmd/... -count=1
  • TestRunbookInitCheckPasseskiwifs check exit 0 on generated scaffold
  • TestRunbookEmbedUsesUC6ScaffoldOnly — legacy paths excluded from embed
  • TestExampleRunbookHasSevenSections — all 7 UC-6 sections + fenced bash blocks
  • TestRunbookSchemaValidatesExample / TestRunbookSchemaRejectsInvalidFrontmatter — JSON Schema for trigger, severity, owner, services

Made with Cursor

Array Fleet and others added 9 commits July 3, 2026 06:44
…-03)

Re-confirms UC-6 runbook scaffold, schema validation, and kiwifs check
regression tests before fleet PR closing kiwifs#325.

Co-authored-by: Cursor <cursoragent@cursor.com>
Filter dev-only template paths from go:embed so kiwifs init --template runbook
stays lint-clean. Add service stubs for example runbook wiki links and regression
tests for embed visibility and scaffold paths.

Closes kiwifs#325

Co-authored-by: Cursor <cursoragent@cursor.com>
Wire service stubs and playbook into index.md so kiwifs check reports
fewer orphan info issues on generated runbook scaffolds.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Rebase embed-filter branch onto main and record test verification for
fleet publish of UC-6 runbook init scaffold (closes kiwifs#325).

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

Log hands-on delivery after embed-filter and service-stub fixes; update fix doc.

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

Record hands-on delivery after fleet agent failed delivery check; tests
green on embed filter, service stubs, and init check regressions.

Co-authored-by: Cursor <cursoragent@cursor.com>
Service wiki-link targets in the runbook init scaffold lacked next-review
dates, causing janitor info noise on fresh kiwifs check runs. Document
hands-on final delivery and update fix doc verification timestamp.

Co-authored-by: Cursor <cursoragent@cursor.com>
Record mkdocs.go restore and full test suite pass after fleet delivery
check failure; update fix doc with verified timestamp and test commands.

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