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
fix: Phase 2 patches part 2 — F1 (slug truncation), F8 (closed_at), drift wildcard glob (#84)
Second round of patches surfaced by Sentinel CHARTER-02..05 telemetry
(issue #81 update). After fw-4.6.1/cli-3.7.1 fixed F3/F4/F6, executing
four more Charters re-prioritized the remaining frictions: F1 reproduced
4/4× consecutively (was UX polish, now top reproducibility), F8 required
manual workaround on every Charter close (4× consecutive), wildcard glob
in drift script was a new finding from CHARTER-04 that any future bulk
Charter would hit. O1 ("always in scope" rule) validated empirically as
a feature in CHARTER-04 (caught real scope expansion).
F1 (CLI, charter new):
- slugify() now truncates at the last `-` boundary at-or-before the
50-char limit, never producing mid-word fragments. Conservative —
when the next char in the original is `-` (or end), the truncated
view is already at a word boundary and is kept verbatim.
- New --slug flag for explicit override (CHARTER-05 case where a long
title's meaningful suffix gets dropped). Override is normalized
through the same slugifier so it cannot smuggle in characters that
break the filename.
F8 (CLI, charter close):
- charter close now writes `closed_at: <today>` to the frontmatter
alongside `status: closed` bump. If the Charter already had a
closed_at (e.g. prior close that was reverted), the value is
refreshed to today rather than left stale.
Drift wildcard glob (framework, check-charter-drift.sh):
- Bash drift script already supported `prefix...suffix` ellipsis
wildcards. Now also resolves the more conventional `prefix*suffix`
glob form: `*` is converted to `.*` for the regex match. Same
logic in both directions (declared glob suppresses missing-files
warnings; modified path matching declared glob suppresses
scope-expansion warnings). CHARTER-04 declared `AILOG-*.md` for a
bulk set; pre-fix the script extracted the literal and reported
spurious drift.
O1 documentation (framework, CLI-REFERENCE.md):
- New "Wildcard support" subsection in the drift section documenting
both ellipsis and glob forms.
- New "Designed: governance paths are always in scope" subsection
with empirical citation to CHARTER-04 W2 in issue #81. A
--strict-scope flag remains on the table for cli-3.8.0.
Tests: 11 new (4 unit + 7 integration); 393/393 passing across 16
test groups.
What's NOT in this release: F2/F5/F7 (UX bundle for cli-3.8.0); O3
(design discussion); Phase 3 (separately scoped).
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments