fix(preamble): progress notes on phase changes, not a [PROGRESS] cadence (s01 M2)

Context Health told the model to periodically write a tagged [PROGRESS]
summary. No code reads that tag; the line now says when to tell the user
(finishing a phase or changing direction). Loop detection stays.

W7a pin: test/terse-build.test.ts:103 pinned 'PROGRESS'; it now checks the
default build emits a non-empty Context Health body (terse still emits '').
This commit is contained in:
garrytan committed 2026-10-02 23:42:38 +00:00
1 parent 949200ec8f
commit d4fba5beb4
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ describe('terse build — per-resolver behavior', () => {
test('default: emits full section', () => {
const out = generateContextHealth(makeCtx('default'));
expect(out).toContain('## Context Health');
expect(out).toContain('PROGRESS');
expect(out.replace(/^## Context Health.*$/m, '').trim().length).toBeGreaterThan(80);
});
test('terse: returns empty string', () => {