Narrative Commands
The narrative command group manages implementation narratives for controls. Narratives describe how a specific control is implemented within your system.
Create Local Narrative
pretorin narrative create ac-02 fedramp-moderate \
-c "- RBAC enforced via IdP\n\n\`\`\`yaml\nroles:\n admin: ...\n\`\`\`"
Creates a local markdown file at narratives/<framework>/<control>/<slug>.md with YAML frontmatter. Markdown is validated at create time (same rules as push).
Options:
--content / -c— Narrative content (required)--name / -n— Custom name (defaults to<control>-<framework>)--ai-generated— Mark the narrative as AI-generated
List Local Narratives
pretorin narrative list
pretorin narrative list --framework fedramp-moderate
Displays a table of local narrative files: Control, Framework, Name, AI Generated, Synced.
Push Narratives
pretorin narrative push --dry-run
pretorin narrative push
Batch-pushes all unsynced local narratives to the platform. After a successful push, the local file’s platform_synced frontmatter is set to true.
Get Current Narrative
pretorin narrative get ac-02 fedramp-moderate --system "My System"
Returns the current narrative text, status, and AI confidence metadata when present.
Push a Single File (Legacy)
pretorin narrative push-file ac-02 fedramp-moderate "My System" narrative-ac02.md
Reads a markdown or text file and submits it as the implementation narrative for the specified control.
Markdown Quality Requirements
Narratives must be auditor-ready markdown:
- No markdown headings (
#,##, etc.) - At least two rich markdown elements (fenced code blocks, tables, lists, or links)
- At least one structural element (code block, table, or list)
- No markdown images (temporarily disabled pending platform image upload support)
These requirements are validated at create time and before push.
Generating Narratives with AI
To generate narratives using the agent runtime:
pretorin agent run --skill narrative-generation "Generate narrative for AC-02"
Or use the MCP server’s generate_control_artifacts tool for read-only drafts through your AI agent.
See Skills for more on agent-powered narrative generation.
No-Hallucination Requirements
Generated narratives must only document observable facts:
- Treat existing Pretorin narratives, issues, and status fields as a starting point, not proof that a control gap exists.
- Before writing a narrative update or issue, inspect the relevant implementation in the workspace and connected systems.
- If observed implementation is stronger than the current platform record, update the narrative to match the observed implementation and record any remaining evidence gap as an issue.
- Do not include gap lists, missing-information placeholders, unresolved caveats, or remediation backlog in narrative text.