mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-12 07:59:02 +02:00
* fix: default cross-model workflows to frontier models * chore: bump version and changelog (v1.82.1.0) Co-Authored-By: OpenAI Codex <noreply@openai.com> * fix: repair frontier eval budgets and workflow instructions Preserve frontier models and quality thresholds while fixing truncated judge output, ordered section expansion, consent checks, QA scoring, and ship audit gates. Add regression coverage and refresh generated docs. Co-Authored-By: OpenAI Codex <noreply@openai.com> * fix: resolve workflow gaps exposed by frontier evals Clarify plan-review ordering and fallback modes, preserve deploy readiness gates, honor configured merge methods, correct benchmark and canary contracts, and restore vendored installs on setup failure. Cover recovery with real-shell regressions. Co-Authored-By: OpenAI Codex <noreply@openai.com> * fix: use agent capture budgets for deploy evals Multi-turn deploy and benchmark sessions were incorrectly limited to the single-call judge timeout. Use the existing capture tier and leave outer-test cleanup headroom, with a free policy regression test. Keep all behavioral assertions and frontier models unchanged. Co-Authored-By: OpenAI Codex <noreply@openai.com> * fix: clarify retro workflow and evaluate compare instructions Include compare mode in the frontier judge excerpt, define metric sources and snapshot ordering, and preserve the existing prompt-size budget. Co-authored-by: OpenAI Codex <noreply@openai.com> * fix: make documentation release review and publication consistent Review before commit, clarify changelog safeguards and unavailable reviewer modes, and preserve raw PR bodies across separate shell calls. Keep title sync in one shell and add regression coverage. Co-authored-by: OpenAI Codex <noreply@openai.com> --------- Co-authored-by: OpenAI Codex <noreply@openai.com>
25 lines
1.2 KiB
TypeScript
25 lines
1.2 KiB
TypeScript
import * as fs from 'fs';
|
|
import * as path from 'path';
|
|
|
|
const ROOT = path.resolve(import.meta.dir, '..', '..');
|
|
|
|
// Same generated two-line pointer consumed by setup-gbrain-fixture.ts.
|
|
const STOP_POINTER =
|
|
/^> \*\*STOP\.\*\* Before [^\n]*sections\/([a-z0-9-]+\.md)[^\n]*\n> in full\.[^\n]*/gm;
|
|
|
|
/** Expand on-demand sections where the agent reads them, then take the requested excerpt. */
|
|
export function readWorkflowExcerpt(skillPath: string, startMarker: string, endMarker: string | null): string {
|
|
const secDir = path.join(ROOT, path.dirname(skillPath), 'sections');
|
|
const content = fs.readFileSync(path.join(ROOT, skillPath), 'utf-8').replace(STOP_POINTER, (_pointer, file: string) => {
|
|
const body = fs.readFileSync(path.join(secDir, file), 'utf-8')
|
|
.replace(/^<!--[^\n]*-->\n/gm, '').trim();
|
|
if (body.length < 200) throw new Error(`${skillPath}: section ${file} is empty/stub`);
|
|
return body;
|
|
});
|
|
const start = content.indexOf(startMarker);
|
|
if (start < 0) throw new Error(`Start marker not found in ${skillPath}: "${startMarker}"`);
|
|
const end = endMarker ? content.indexOf(endMarker, start) : content.length;
|
|
if (end < 0) throw new Error(`End marker not found in ${skillPath}: "${endMarker}"`);
|
|
return content.slice(start, end);
|
|
}
|