bchanot
9d5530af89
fix(project-rules): physical parent check, emit write guard, extract keeps both copies
...
_rules_out_path_ok resolves the first existing ancestor with cd -P and
refuses an out that escapes the project; emit goes through it and checks
mkdir and the write; an extract rewrite failure keeps tmp and out and
names both. Callers (onboarder, scaffolder) stop on any rc 2 but exists.
2026-11-13 13:14:24 +01:00
bchanot
14a93e3f19
feat(rules): extract refuses an absolute, .. or existing out path and checks the mkdir and rule-write rc before rewriting the source
...
A failed rule write used to remove the section with rc 0. Split S0.3 prose follows the lib's heading case order.
2026-10-27 20:03:28 +01:00
bchanot
ab5049e5b1
feat(rules): extract accepts a ### heading, sections --depth 3 lists subsections, split mode names the ### row
...
A ### section ends at the next heading of level <= 3 outside a fence; a last ### gives its parent's trailing --- back. Bare headings stay ##.
2026-10-27 14:38:57 +01:00
bchanot
0b59687e1e
fix(rules): extract rc 2 on a failed rewrite, H1 ends a section, split S0 ordered with row allowlist, stage per row
2026-10-26 21:53:49 +01:00
bchanot
89334f2901
fix(rules): named dep-dir globs match, inline-paths error names the form, gitignore newline guard, no | in globs
2026-10-26 18:04:15 +01:00
bchanot
dbd20dd575
feat(generators): onboarder and scaffolder emit docker/testing/ci path rules from templates/project-rules
2026-10-26 17:55:01 +01:00
bchanot
433c10d78f
refactor(claude-md): four sections become .claude/rules path rules (phase 0)
2026-10-26 17:47:53 +01:00
bchanot
e7d800f053
feat(hooks): InstructionsLoaded logger, the proof channel for path rules
2026-10-26 17:44:17 +01:00
bchanot
abfa4167ea
feat(rules): lib/project-rules.sh check/matches/sections/extract + suite
2026-10-26 17:41:07 +01:00