ID:WORK-153Status:done
Rename RuneInfo.prompt → authoringHints and surface in reference output
Priority:mediumComplexity:simpleAssignee:claudeSource:SPEC-041
08be0624b9df5aRuneInfo.prompt is currently optional LLM-instruction text that refrakt write appends to its prompts. SPEC-041 promotes the same data to general agent-facing reference docs — the field is no longer write-specific. Rename to authoringHints, audit the ~5 existing values to read for both human and LLM audiences, and surface the content under a "Authoring notes" block in describeRune output.
RuneInfo.prompt renamed to RuneInfo.authoringHints in packages/runes/src/reference.ts (after WORK-149)RunePackage.prompt (or wherever the per-package extension currently lives) renamed to authoringHints in packages/types/src/package.tsdescribeRune() renders authoringHints under a clear Authoring notes: heading rather than appending it to the description blockprompt field is updated to use authoringHints and its content is rephrased to read naturally for both human readers and LLMs (no leading "When generating this rune..." imperatives)refrakt write continues to use authoringHints in its prompt construction — no behaviour change for the write command other than the field renameprompt field name in the codebasenpm run build and npm test passprompt: and prompt?: in package definitions and rune declarations to find every consumer.describeRune in packages/runes/src/reference.ts to render authoringHints as a separate section in the markdown output.refrakt write still produces sensible prompts (snapshot test on a representative rune).RuneInfo type)packages/ai/src/prompt.ts:18 (current prompt field definition)packages/ai/src/prompt.ts:85-87 (current rendering path)Completed: 2026-04-19
Branch: claude/scaffold-landing-docs-cli-DB31i
RuneInfo.prompt → RuneInfo.authoringHints in packages/runes/src/reference.ts (also RuneDescriptor.prompt and Rune.prompt in packages/runes/src/rune.ts, and RunePackageEntry.prompt in packages/types/src/package.ts).describeRune now emits the hints under a dedicated Authoring notes: heading line instead of appending them flat to the description.packages/runes/src/packages.ts so loaded community packages feed entry.authoringHints into defineRune.packages/cli/src/commands/package-validate.ts now validates authoringHints instead of prompt.site/content/docs/packages/authoring.md to use authoringHints.packages/ai/test/prompt.test.ts (rewrote the four prompt extension cases to assert the new "Authoring notes" section is emitted/omitted correctly), packages/runes/test/packages.test.ts (propagation assertion), and the packages/runes/test/fixtures/mock-community-package/index.ts fixture.refrakt write continues to feed authoringHints through the same generateSystemPrompt path, so behaviour is preserved.prompt identifiers remaining in the codebase (packages/cli/src/bin.ts, packages/cli/src/commands/write.ts) refer to the user-supplied prompt string passed into refrakt write, not the rune metadata field — intentionally left unchanged.runes/plan/test/build.test.ts > generates static HTML files times out under full-suite parallelism but passes in isolation. Pre-existing flake, unrelated to this change.