Skip to content

feat: additional protection from agent modifying soul front matter#74

Merged
scode merged 1 commit intomainfrom
frontmatter-guard
Mar 1, 2026
Merged

feat: additional protection from agent modifying soul front matter#74
scode merged 1 commit intomainfrom
frontmatter-guard

Conversation

@scode
Copy link
Copy Markdown
Owner

@scode scode commented Mar 1, 2026

The soul-writing guidelines (shared by distill and instill) told the
agent where to place entries but never explicitly said "don't touch
the frontmatter." A sub-agent could theoretically corrupt
soul_version, epoch fields, or last_distilled — especially if session
transcripts happen to discuss those values.

Add a Frontmatter rule to SOUL_WRITING_GUIDELINES that forbids editing
the YAML front matter block, complementing the existing field-specific
last_distilled prohibition in SKILL_DISTILL.

changelog: include

The soul-writing guidelines (shared by distill and instill) told the
agent *where* to place entries but never explicitly said "don't touch
the frontmatter."  A sub-agent could theoretically corrupt
soul_version, epoch fields, or last_distilled — especially if session
transcripts happen to discuss those values.

Add a Frontmatter rule to SOUL_WRITING_GUIDELINES that forbids editing
the YAML front matter block, complementing the existing field-specific
last_distilled prohibition in SKILL_DISTILL.
Copy link
Copy Markdown
Owner Author

scode commented Mar 1, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@scode scode changed the title fix: protect soul frontmatter from agent edits during distillation feat: additional protection from agent modifying soul front matter Mar 1, 2026
@scode scode merged commit 43f54c7 into main Mar 1, 2026
20 of 24 checks passed
@scode scode deleted the frontmatter-guard branch March 4, 2026 03:49
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.

1 participant