mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-13 08:29:04 +02:00
Every tier-2+ skill's preamble gains one directive distilled from nine live
release failures in two days on the fork: a claimed limitation or
requirement ('the API can't do this', 'X requires a credential',
'impossible on this platform') is a material claim, stated only with the
verbatim error, the documented statement, or a live probe in hand —
pattern-matching a failure to a familiar story is not evidence, and a cheap
probe runs BEFORE asking the user or declaring a step blocked. ONE directive
adapted into the preamble resolver; the fork's full judgment contract is
deliberately not imported. Full regen (46 files), ship goldens refreshed,
parity guards bumped with the measured ~0.45KB/skill (investigate, autoplan,
plan-design-review, office-hours), Step 0.9 registered as an intentional
sub-step.
Approved deferrals filed: persona-fleet hostile-user harness + answer-key
methodology in TODOS; the fork's question-budget ACCOUNTING judgment (never
its 5/8/12 constants) folded into the V1.1 pacing design doc; the Apple
adapter added to #1882's coverage note.
Ported from time-attack/gstack (GStack 2).
Co-authored-by: Sina Matian <sina@time-attack.dev>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
19 lines
1.1 KiB
TypeScript
19 lines
1.1 KiB
TypeScript
import type { TemplateContext } from '../types';
|
|
|
|
/**
|
|
* Evidence-before-claimed-limitations (fork port wave 2, D1).
|
|
*
|
|
* The single highest-leverage judgment clause from the fork's live App Store
|
|
* releases: nine release failures in two days shared one root — the agent
|
|
* asserting folklore as fact ("the API can't do this", "X requires a
|
|
* password") instead of running the ten-second check that would have
|
|
* disproven it. Adapted as ONE directive into the shared preamble (the
|
|
* fork's full SHARED-JUDGMENT contract is deliberately not imported).
|
|
*/
|
|
export function generateEvidenceDirective(ctx?: TemplateContext): string {
|
|
if (ctx?.explainLevel === 'terse') return '';
|
|
return `## Claimed Limitations Need Evidence
|
|
|
|
A claimed limitation or requirement ("the API can't do this", "X requires a credential", "that's impossible on this platform") is a material claim. State one only with the verbatim error, the documented statement, or a live probe in hand — pattern-matching a failure to a familiar story is not evidence. When a cheap probe settles the question, run it BEFORE asking the user anything or declaring a step blocked.`;
|
|
}
|