Skip to content

Release 0.2.1: precisely scope "cosmetic" — string literals trip the gate (#21)#26

Merged
Connorrmcd6 merged 1 commit into
mainfrom
docs-cosmetic-scope-v0.2.1
Jun 7, 2026
Merged

Release 0.2.1: precisely scope "cosmetic" — string literals trip the gate (#21)#26
Connorrmcd6 merged 1 commit into
mainfrom
docs-cosmetic-scope-v0.2.1

Conversation

@Connorrmcd6

Copy link
Copy Markdown
Owner

Docs-only patch release. Addresses the documentation half of #21 (the magnitude/--ignore-literals feature stays in the 0.3.0 milestone).

Why

The README framed Surface as ignoring "cosmetic" changes (formatting/comments/renames), which led a dogfooding user to expect string/copy edits to be ignored too. They aren't — a literal value is part of the hashed AST, so editing a string inside an anchored span correctly fires a divergence. The mismatch was in the docs, not the behavior.

What

  • README "how it works" section: precisely scope "cosmetic" (whitespace, comments, consistent renames) and call out that literal values are logic and trip the gate; point at narrower anchoring.
  • New FAQ entry: "Will editing a string literal trip the gate?" → yes.
  • Version bump to 0.2.1 + CHANGELOG entry under Documentation.

docs/examples.md and the authoring guide already enumerated "cosmetic" precisely and showed a literal change firing, so they were left as-is.

Refs #21 (not closed — feature knob is 0.3.0). No code change; surf check/lint green; binary behavior unchanged.

🤖 Generated with Claude Code

Release 0.2.1 (docs-only). The README framed Surface as ignoring "cosmetic"
changes, which led users to expect string/copy edits to be ignored — they are
not, since a literal value is part of the hashed AST. Clarify that "cosmetic"
means only whitespace, comments, and consistent renames, add a FAQ entry, and
point at narrower anchoring so copy churn doesn't re-open a claim.

The magnitude-aware policy / --ignore-literals knob (the feature half of #21)
remains tracked for 0.3.0; refs #21.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Connorrmcd6 Connorrmcd6 merged commit edcd21d into main Jun 7, 2026
2 checks passed
@Connorrmcd6 Connorrmcd6 deleted the docs-cosmetic-scope-v0.2.1 branch June 11, 2026 19:43
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