Fix: ignore hook cache artifact (#189)

This commit is contained in:
Abdul Wahab
2026-06-01 12:32:53 -07:00
committed by GitHub
parent ea3e66b984
commit ab3a13245c
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -47,6 +47,7 @@ Thumbs.db
.impeccable/live/manual-edit-events.jsonl
.impeccable/live/manual-edit-evidence/
.impeccable/live/pending-manual-edits.json
.impeccable/hook.cache.json
.impeccable/history/
# Per-run critique snapshots are local artifacts. ignore.md (also under
# this dir) carries deferrals the user may want to share, so it's
+3 -1
View File
@@ -93,14 +93,16 @@ async function stashManualEdit(server, entry) {
return res.json();
}
it('gitignores local manual Apply runtime artifacts', () => {
it('gitignores local Impeccable runtime artifacts', () => {
const ignored = execFileSync('git', [
'check-ignore',
'.impeccable/live/manual-edit-apply-transaction.json',
'.impeccable/live/manual-edit-evidence/example.json',
'.impeccable/hook.cache.json',
], { cwd: REPO_ROOT, encoding: 'utf-8' });
assert.match(ignored, /\.impeccable\/live\/manual-edit-apply-transaction\.json/);
assert.match(ignored, /\.impeccable\/live\/manual-edit-evidence\/example\.json/);
assert.match(ignored, /\.impeccable\/hook\.cache\.json/);
});
async function readSseUntil(reader, decoder, needle, maxReads = 12) {