mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-21 07:33:14 +01:00
fix: gstack-doctor finds the Codex model patch in the hoisted shared preamble (ship Step 11, run 4)
The doctor's patch row grepped only the Codex review SKILL.md for the
"Model-Specific Behavioral Patch (" heading. The hoist moves that section
into sections/preamble.md, so the required row (for ship, review, the plan
reviews, office-hours, investigate and more) would fail on every correct
post-hoist Codex install and block install.sh's "gstack: ok". It now checks
the SKILL.md and then its shared preamble and names the file it found. A
new doctor test covers a hoisted render.
preamble-hoist's variantSubsections also returns null when no subsection
differs, instead of emitting a replacing heading with no subsections.
Every host's render is unchanged.
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
4699573a92
commit
3858703ac9
4 files changed
+15
-1
No files matched your search
@@ -528,6 +528,14 @@ describe('gstack-doctor --check', () => {
|
||||
expect(noPatch.trailer).toBe('gstack: fail patch');
|
||||
});
|
||||
|
||||
test('--for autoplan: a hoisted Codex render carries the patch in its shared sections/preamble.md', () => {
|
||||
const f = makeFixture();
|
||||
const dest = installCodex(f, false);
|
||||
write(path.join(dest, 'gstack-review/sections/preamble.md'), '# gstack shared preamble 0123456789ab\n\n## Model-Specific Behavioral Patch (gpt-6-astra)\n');
|
||||
const r = row(f, ['--for', 'autoplan']);
|
||||
expect(r.rows.patch, r.out).toEqual({ status: 'PASS', rest: 'gpt-6-astra (gstack-review/sections/preamble.md)' });
|
||||
});
|
||||
|
||||
test('an empty installed-host set is never ok: claude is required and FAILs', () => {
|
||||
const f = makeFixture();
|
||||
write(path.join(f.state, 'installs.tsv'), '');
|
||||
|
||||
Reference in new issue
Block a user