feat(uwf-agent-kit): frontmatter fast path + prompt injection — #355 #356

Merged
xiaomo merged 1 commits from feat/355-uwf-frontmatter into main 2026-05-19 06:21:36 +00:00

1 Commits

Author SHA1 Message Date
xiaoju 892ccab8d5 feat(uwf-agent-kit): frontmatter fast path + prompt injection
Port RFC #351 frontmatter markdown to uwf-* path:
- tryFrontmatterFastPath(): parse → validate → JSON Schema check via json-cas
- Happy path skips LLM extract, fallback to existing extract()
- buildOutputFormatInstruction(): generates deliverable format from JSON Schema
- Injected into agent context before execution
- Scope reminder: 'Focus exclusively on YOUR role's deliverable'
- 14 new tests (vitest)

Closes #355
2026-05-19 06:20:15 +00:00