mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-13 03:48:06 +01:00
revert(digest): keep the agents digest at main's bytes; an unstamped head cannot change a release output (GSTA-96)
CI 'Check VERSION is not stale vs queue' classified #3434 as stamped because it touched agents-digest/gstack-AGENTS.md (a release_outputs path), while regenerating only the generator fails the digest freshness test. The first-run intro rewording stays. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
47dc19fa52
commit
4da2eba959
4 files changed
+4
-18
No files matched your search
@@ -14,7 +14,6 @@ import {
|
||||
DIGEST_RELPATH,
|
||||
DIGEST_BYTE_BUDGET,
|
||||
} from '../scripts/gen-agents-digest';
|
||||
import { expectAbsent, expectMentions } from './helpers/prompt-structure';
|
||||
|
||||
const ROOT = path.resolve(import.meta.dir, '..');
|
||||
const digestPath = path.join(ROOT, DIGEST_RELPATH);
|
||||
@@ -54,19 +53,6 @@ describe('agents-digest', () => {
|
||||
// The ladder must keep the completeness reconciliation clause.
|
||||
});
|
||||
|
||||
// Generated by /ship Step 7 coverage audit (GSTA-96).
|
||||
// Value: protects=the digest's Boil the Ocean bullet says complete coverage, minimal code: the whole requirement and no code beyond it;
|
||||
// fails_when=the generator's Ethos bullet returns to "do the complete thing" or drops the no-code-beyond half;
|
||||
// why_new=the freshness and section tests above pass for any Ethos wording;
|
||||
// seam=none; no_claim=that agents reading the digest act on it (an eval question)
|
||||
test('the Ethos bullet measures completeness in coverage, not code', () => {
|
||||
const ethos = fs.readFileSync(digestPath, 'utf-8').split('## Ethos')[1]!.split('\n## ')[0]!;
|
||||
const bullet = ethos.split('\n').find(line => line.startsWith('- **Boil the Ocean**'));
|
||||
expect(bullet).toBeDefined();
|
||||
expectMentions(bullet!, [['complete coverage', 'minimal code'], ['whole requirement', 'no code beyond']], 'digest Boil the Ocean bullet');
|
||||
expectAbsent(bullet!, ['do the complete thing', 'completeness cheap'], 'digest Boil the Ocean bullet');
|
||||
});
|
||||
|
||||
test('setup never copies the digest onto a user AGENTS.md (print-path only)', () => {
|
||||
const setup = fs.readFileSync(path.join(ROOT, 'setup'), 'utf-8');
|
||||
// The explainer arms print the digest path, anchored to the script's own
|
||||
|
||||
Reference in new issue
Block a user