Skip to content

fix(workspace): filter legacy embed paths for lint-clean runbook init#53

Open
advancedresearcharray wants to merge 1 commit into
mainfrom
feat/issue-325-runbook-embed-filter-clean
Open

fix(workspace): filter legacy embed paths for lint-clean runbook init#53
advancedresearcharray wants to merge 1 commit into
mainfrom
feat/issue-325-runbook-embed-filter-clean

Conversation

@advancedresearcharray

Copy link
Copy Markdown
Owner

Summary

  • Wrap go:embed all:templates with filteredTemplatesFS to exclude legacy runbook paths (incidents/, postmortems/, procedures/) that contain placeholder wiki links failing kiwifs check
  • Add service stub pages for [[api-service]] and [[monitoring]] wiki links referenced by the example runbook
  • Add regression tests: TestRunbookEmbedUsesUC6ScaffoldOnly, embed filter unit tests, and existing runbook lint/init check tests pass

Closes kiwifs#325

Test plan

  • go test ./internal/workspace/... -run 'Runbook|Embed|Filtered' -count=1
  • go test ./cmd/... -run 'Runbook|InitCheck' -count=1
  • go test ./internal/workspace/... ./cmd/... -count=1
  • TestRunbookInitCheckPasses exits 0 (info-level orphans only, no errors)
  • TestRunbookTemplateLintClean passes on generated scaffold

Made with Cursor

go:embed all:templates ships every file on disk under templates/, including
legacy runbook scaffolds (incidents/, postmortems/, procedures/) with placeholder
wiki links that fail kiwifs check on generated workspaces. Wrap the embed FS with
filteredTemplatesFS to exclude those paths and other dev-only dirs. Add service
stubs for [[api-service]] and [[monitoring]] wiki links.

Closes 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