You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9af9f7d
Browse filesBrowse the repository at this point in the historyBrowse files
fix: strip leading BOM before SKILL.md frontmatter detection (#471)
* fix(build_context): strip leading BOMs before manifest frontmatter detection
decode_text() decodes with plain utf-8, which never strips a byte-order
mark, so a BOM-prefixed SKILL.md left content[0] == U+FEFF and the
content.startswith("---") sniff in _parse_manifest returned an empty
manifest. Every manifest-gated analyzer then early-exits as
not_applicable/manifest_absent, so LP1-LP4 and TP1-TP4 stop contributing
findings for that skill.
Strip leading BOMs in a loop, scoped to delimiter detection. decode_text()
itself is left alone because P2/TP1/P9 treat U+FEFF in file bodies as a
hidden-character injection signal.
Signed-off-by: Mohammed Alkindi <[email protected]>
* fix(multi_skill): strip leading BOM before raw-byte frontmatter sniff
_extract_skill_name checks prefix.startswith(b"---") on raw bytes before
decoding, so a BOM-prefixed sub-skill fell through to the fallback and was
listed under its directory name instead of the name: declared in its
frontmatter. Byte-level counterpart to the same strip in
build_context._parse_manifest.
Signed-off-by: Mohammed Alkindi <[email protected]>
* fix(excessive_agency): match leading BOM in SKILL.md frontmatter bounds
_frontmatter_bounds anchored on \A---, so a BOM-prefixed SKILL.md returned
None and EA5 silently reported no frontmatter model pin. This is the third
frontmatter sniff in the same class as the two already fixed on this branch.
The BOM is absorbed into the opening match rather than stripped, because the
offsets this function returns index the caller's original content: _ea5_findings
slices it and derives line numbers and context from it, so removing characters
would shift every reported position by one.
Signed-off-by: Narendran Raghavan <[email protected]>
---------
Signed-off-by: Mohammed Alkindi <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
0 commit comments