mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-14 17:05:28 +02:00
chore: zero-heads warning names the benign cause too; digest path declaration made load-bearing; ratchet re-capture
- The ls-remote zero-heads warning no longer accuses an empty remote of running a laundering shim. - instructionTier.rulesFile now must equal the generator's DIGEST_RELPATH (and setup must print it) — the declaration fails with the real path instead of lying silently. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
5ed46193f1
commit
cb8bd9b98d
@@ -97,10 +97,16 @@ describe('agents-digest', () => {
|
||||
}
|
||||
});
|
||||
|
||||
test('instruction-tier hosts declare the digest in host config', () => {
|
||||
test('instruction-tier hosts declare the digest in host config — and the declaration tracks the real path', () => {
|
||||
// This is what makes instructionTier.rulesFile load-bearing instead of
|
||||
// config nobody reads: the declared string must equal the generator's
|
||||
// DIGEST_RELPATH, and setup's explainer must print that same path. If
|
||||
// the digest ever moves, all three surfaces fail together.
|
||||
const setup = fs.readFileSync(path.join(ROOT, 'setup'), 'utf-8');
|
||||
expect(setup).toContain(DIGEST_RELPATH);
|
||||
for (const host of ['openclaw', 'hermes']) {
|
||||
const src = fs.readFileSync(path.join(ROOT, 'hosts', `${host}.ts`), 'utf-8');
|
||||
expect(src).toContain("instructionTier: { rulesFile: 'agents-digest/gstack-AGENTS.md' }");
|
||||
expect(src).toContain(`instructionTier: { rulesFile: '${DIGEST_RELPATH}' }`);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user