mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-18 06:04:33 +01:00
feat(skill-start): ARTIFACTS_SYNC attention lines for a stuck sync
Skill start now prints one fixed attention line per sync-status-table row that applies (held, blocked, push_failed, error, unknown, stale-push, stale-drain), each naming gstack-brain-sync by absolute path. Values from the status file are clamped (status code to the table, counts to digits, timestamps to their shape), so the status message, file paths and scanner output never reach the line. The preamble tells the model to surface the line in one sentence and continue. Skill-start tests are generated from the table in bin/gstack-brain-sync, and docs/gbrain-sync-errors.md carries the same table. Co-authored-by: v639dragoon <matthewsbrickley@gmail.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
f5896acc2c
commit
b0ece62e2d
57 files changed
+654
-401
No files matched your search
@@ -20,14 +20,15 @@ export function generateBrainSyncBlock(ctx: TemplateContext): string {
|
||||
const isBrainHost = ctx.host === 'gbrain' || ctx.host === 'hermes';
|
||||
return `## Artifacts Sync (skill start)
|
||||
|
||||
The skill-start output above already ran artifacts sync. Act on its lines:
|
||||
GBrain hint text (if present) tells you when to prefer \`gbrain\` over Grep;
|
||||
\`ARTIFACTS_SYNC:\` reports sync health (\`off\`, \`mode=... | queue=N\`,
|
||||
\`remote-mode\`, or a restore hint naming \`gstack-brain-restore\`).
|
||||
Skill-start already ran artifacts sync. GBrain hint text (if any) says
|
||||
when to prefer \`gbrain\` over Grep. \`ARTIFACTS_SYNC:\` reports sync health
|
||||
(\`off\`, \`mode=... | queue=N\`, \`remote-mode\`, or a \`gstack-brain-restore\`
|
||||
hint). On an \`attention:\` line, tell the user in one sentence what
|
||||
it says and the command it names, then continue.
|
||||
|
||||
${isBrainHost ? `If output shows \`ARTIFACTS_SYNC: artifacts repo detected\`, offer \`gstack-brain-restore\` via AskUserQuestion; otherwise continue.
|
||||
|
||||
` : ''}The one-time privacy stop-gate (artifacts-sync consent) arrives as a
|
||||
\`GSTACK_INSTRUCTION\` block from skill-start when consent is actually pending
|
||||
— fire it via AskUserQuestion exactly as the block instructs.`;
|
||||
` : ''}The one-time privacy stop-gate arrives as a \`GSTACK_INSTRUCTION\` block
|
||||
from skill-start when consent is pending; fire it via AskUserQuestion
|
||||
exactly as instructed.`;
|
||||
}
|
||||
Reference in new issue
Block a user