Repository navigation
fix(gen-skill-docs): quote YAML inline scalars containing '...' (strict parsers reject bare ellipsis) - #2589
Closed
sneakygriff wants to merge 1 commit into
Closed
sneakygriff wants to merge 1 commit into
sneakygriff wants to merge 1 commit into
Conversation
…strict parser breaks on bare ellipsis) A bare ... inside a plain YAML scalar is a document-end marker that strict YAML parsers (Bun.YAML among them) reject mid-scalar. catalog-trim truncation appends '...' to any description whose lead exceeds 200 chars, so any truncated description would generate a SKILL.md with unparseable frontmatter. Add the ellipsis test to toYamlInlineScalar's needsQuote so such scalars are emitted double-quoted, plus unit coverage for the quoting rules. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
sneakygriff
added a commit
to sneakygriff/gstack
that referenced
this pull request
Aug 16, 2026
…y preamble sections, Claude host only Full port of the shared-preamble carve (5422e28, preserved on local-fixes-pre-1.64) per the restoration audit's file map. Upstream v1.62-v1.64.1 never built an equivalent: main still composed the full inline preamble per skill. Mechanism: tier-2+ Claude-host skills get a '## Preamble Section Index' pointing at shared preamble/sections/{onboarding,ask-user-questions, artifacts-sync}.md (one copy for the whole suite, read on demand via {{PREAMBLE_SECTION:id}} / carved-sections.ts). Every other host keeps the full inline preamble. bin/gstack-artifacts-preamble carries the always-run artifacts-sync bash (KEEP-IN-SYNC with generate-brain-sync-block.ts). Ported with the audit's adaptations: - KEPT upstream's mandatory preamble-tier throw (no '?? 4' fallback) - brain-sync arithmetic guard + _GBRAIN_HOST sanitize applied on top of upstream's quoteSafePath (also PR'd upstream separately as garrytan#2588) - toYamlInlineScalar '...' quoting + catalog-trim coverage (also garrytan#2589) - deleted dead generate-writing-style-migration (WRITING_STYLE_PENDING was never echoed); migration v1.0.0.0.sh rewritten to a one-line notice - bin/gstack-config explain_level honesty block re-anchored into the refactored set path - autoplan lazy per-phase review-skill loading merged with upstream's scope-gate skip line - carve-guards floors re-derived from the post-carve regen (design- consultation 52k/69k, cso 58k/68k measured 2026-08-15), NOT copied - fresh parity baseline parity-baseline-v1.64.1.0-carve.json captured and union-normalized for the 9 carved skills; skill-size-budget and parity-suite repointed - ship goldens re-blessed; regen verified 0 STALE across all 10 hosts; non-Claude hosts confirmed inline (with the arithmetic guard); tier-1 index confirmed AUQ-row-free, tier-3 carries it Verification: 638 carve-critical + 778 adjacent tests green. Co-Authored-By: Claude Fable 5 <[email protected]>
4 of 9 tasks
Owner
|
Thank you — this landed in v1.67.0.0 (credited in the CHANGELOG). Closing since the fix is on main. 🙏 |
1 similar comment
Owner
|
Thank you — this landed in v1.67.0.0 (credited in the CHANGELOG). Closing since the fix is on main. 🙏 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
toYamlInlineScalardoesn't quote scalars containing...— a YAML document-end marker that strict parsers (includingBun.YAML) reject mid-scalar. The catalog-trim path appends...to any >200-char description lead, so the first skill whose description gets truncated generates a SKILL.md with unparseable frontmatter.Fix
One condition added to
needsQuote(/\.\.\./), plus atoYamlInlineScalarunit-test describe intest/catalog-trim.test.tscovering ellipsis quoting, interior-colon quoting (#1778), plain-scalar passthrough, leading-indicator, and trailing-whitespace cases.Verification
bun test test/catalog-trim.test.ts test/gen-skill-docs.test.ts: 426/426 pass.gen:skill-docs --host all --dry-run: 0 STALE (no current description truncates, so generated output is byte-identical — the fix is prophylactic until the first long description lands).🤖 Generated with Claude Code