@hecer/yoke 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/.claude-plugin/plugin.json +13 -13
  2. package/.codex-plugin/plugin.json +7 -7
  3. package/CHANGELOG.md +398 -379
  4. package/README.md +915 -915
  5. package/TODOS.md +5 -5
  6. package/agents/docs.toml +6 -6
  7. package/agents/implementer.toml +6 -6
  8. package/agents/reviewer.toml +6 -6
  9. package/agents/security.toml +6 -6
  10. package/bench/README.md +86 -86
  11. package/bench/RESULTS.md +35 -35
  12. package/bench/output-compaction.mjs +65 -65
  13. package/bench/result-schema.mjs +12 -12
  14. package/bench/results/claude-2026-07-27T18-03-26.json +50 -50
  15. package/bench/results/codex-unavailable-1785175418318.json +15 -15
  16. package/bench/results/gemini-2026-07-27T18-03-44.json +46 -46
  17. package/bench/run-matrix.mjs +26 -26
  18. package/bench/run.mjs +106 -106
  19. package/canon/AGENTS.md +30 -30
  20. package/canon/context/DECISIONS.md +4 -4
  21. package/canon/context/GLOSSARY.md +11 -11
  22. package/canon/context/KNOWLEDGE.md +4 -4
  23. package/canon/context/PROJECT.md +15 -15
  24. package/canon/loop/loop-spec.md +65 -65
  25. package/canon/loop/prd.schema.md +41 -41
  26. package/canon/manifest.yaml +59 -59
  27. package/canon/policy/gates.md +7 -7
  28. package/canon/policy/roles.md +9 -9
  29. package/canon/skills/ATTRIBUTION.md +99 -99
  30. package/canon/skills/authoring-prd/SKILL.md +56 -56
  31. package/canon/skills/brainstorming/SKILL.md +164 -164
  32. package/canon/skills/codebase-design/DEEPENING.md +15 -15
  33. package/canon/skills/codebase-design/DESIGN-IT-TWICE.md +12 -12
  34. package/canon/skills/codebase-design/SKILL.md +39 -39
  35. package/canon/skills/dispatching-parallel-agents/SKILL.md +182 -182
  36. package/canon/skills/document-release/SKILL.md +302 -302
  37. package/canon/skills/domain-modeling/ADR-FORMAT.md +19 -19
  38. package/canon/skills/domain-modeling/CONTEXT-FORMAT.md +39 -39
  39. package/canon/skills/domain-modeling/SKILL.md +35 -35
  40. package/canon/skills/executing-plans/SKILL.md +70 -70
  41. package/canon/skills/finishing-a-development-branch/SKILL.md +200 -200
  42. package/canon/skills/health/SKILL.md +177 -177
  43. package/canon/skills/maintaining-context/SKILL.md +34 -34
  44. package/canon/skills/minimal-code/SKILL.md +21 -21
  45. package/canon/skills/no-ai-slop/SKILL.md +103 -103
  46. package/canon/skills/no-ai-slop/eval.md +43 -43
  47. package/canon/skills/plan-ceo-review/SKILL.md +541 -541
  48. package/canon/skills/plan-eng-review/SKILL.md +362 -362
  49. package/canon/skills/receiving-code-review/SKILL.md +213 -213
  50. package/canon/skills/requesting-code-review/SKILL.md +105 -105
  51. package/canon/skills/resolving-merge-conflicts/SKILL.md +18 -18
  52. package/canon/skills/retro/SKILL.md +397 -397
  53. package/canon/skills/review/SKILL.md +246 -246
  54. package/canon/skills/ship/SKILL.md +691 -691
  55. package/canon/skills/subagent-driven-development/SKILL.md +277 -277
  56. package/canon/skills/systematic-debugging/SKILL.md +296 -296
  57. package/canon/skills/tdd/SKILL.md +371 -371
  58. package/canon/skills/unslop-ui/SKILL.md +34 -34
  59. package/canon/skills/using-git-worktrees/SKILL.md +218 -218
  60. package/canon/skills/verification-before-completion/SKILL.md +139 -139
  61. package/canon/skills/visual-verification/SKILL.md +54 -54
  62. package/canon/skills/workflow/SKILL.md +22 -22
  63. package/canon/skills/writing-for-agents/SKILL-MECHANICS.md +27 -27
  64. package/canon/skills/writing-for-agents/SKILL.md +42 -42
  65. package/canon/skills/writing-plans/SKILL.md +152 -152
  66. package/canon/skills/writing-skills/SKILL.md +655 -655
  67. package/canon/skills/yoke-retrofit/SKILL.md +26 -26
  68. package/canon/skills/yoke-workflow/SKILL.md +20 -20
  69. package/canon/tools/codex-rtk-hook.mjs +35 -35
  70. package/canon/tools/gemini-rtk-hook.mjs +25 -25
  71. package/canon/tools/graphify.md +3 -3
  72. package/canon/tools/playwright-mcp.md +3 -3
  73. package/canon/tools/rtk.md +7 -7
  74. package/canon/tools/serena.md +6 -6
  75. package/dist/agents/contracts.js +1 -1
  76. package/dist/agents/host.js +4 -0
  77. package/dist/agents/providers.js +13 -0
  78. package/dist/agents/telemetry.js +33 -0
  79. package/dist/canon/manifest.js +1 -1
  80. package/dist/cli.js +9 -9
  81. package/dist/dashboard/discovery.js +73 -0
  82. package/dist/dashboard/page.js +122 -122
  83. package/dist/dashboard/panels.js +91 -91
  84. package/dist/goals/command.js +2 -2
  85. package/dist/loop/claims.js +1 -1
  86. package/dist/loop/decision.js +2 -2
  87. package/dist/loop/prd.js +1 -1
  88. package/dist/prd/command.js +17 -17
  89. package/dist/quality/types.js +1 -1
  90. package/dist/retrofit/plan.js +2 -0
  91. package/dist/retrofit/planners/claude.js +14 -14
  92. package/dist/retrofit/planners/qwen.js +73 -0
  93. package/dist/retrofit/preserve.js +2 -2
  94. package/dist/retrofit/skill-actions.js +1 -0
  95. package/dist/review/command.js +1 -1
  96. package/dist/routing/capability.js +1 -1
  97. package/dist/routing/router.js +1 -1
  98. package/dist/setup/command.js +9 -3
  99. package/docs/CAPABILITY-ROUTING.md +51 -51
  100. package/docs/DASHBOARD-EVOLUTION.md +33 -33
  101. package/docs/MIGRATING-TO-1.0.md +33 -33
  102. package/docs/MIGRATING-TO-1.1.md +27 -27
  103. package/docs/MIGRATING-TO-1.4.md +70 -70
  104. package/docs/PRODUCT-DIRECTION-2026-09-05.md +210 -210
  105. package/docs/PUBLISHING.md +114 -114
  106. package/docs/VERIFIED-PROJECTS-VALIDATION.md +29 -29
  107. package/docs/VERIFIED-PROJECTS.md +167 -167
  108. package/docs/community-outreach-2026-08-20.md +85 -0
  109. package/docs/launch-copy-2026-08-21.md +193 -0
  110. package/docs/superpowers/plans/2026-06-28-baustein-e-context-layer.md +981 -981
  111. package/docs/superpowers/plans/2026-06-29-baustein-f-routing.md +258 -258
  112. package/docs/superpowers/plans/2026-06-29-baustein-g-loop-observability.md +1006 -1006
  113. package/docs/superpowers/plans/2026-06-29-baustein-h-loop-robustness.md +374 -374
  114. package/docs/superpowers/plans/2026-06-30-baustein-i-visual-design-verification.md +450 -450
  115. package/docs/superpowers/plans/2026-07-02-baustein-k-zero-to-100-bootstrap.md +1024 -1024
  116. package/docs/superpowers/plans/2026-07-02-baustein-m-flow-smoke-proofs.md +574 -574
  117. package/docs/superpowers/plans/2026-08-13-gauntlet-quality-loop.md +537 -537
  118. package/docs/superpowers/plans/2026-08-16-artifact-backed-output-compaction.md +329 -329
  119. package/docs/superpowers/plans/2026-09-05-verified-projects.md +83 -83
  120. package/docs/superpowers/specs/2026-06-28-baustein-e-context-layer-design.md +146 -146
  121. package/docs/superpowers/specs/2026-06-29-baustein-f-routing-design.md +106 -106
  122. package/docs/superpowers/specs/2026-06-29-baustein-g-loop-observability-design.md +186 -186
  123. package/docs/superpowers/specs/2026-06-29-baustein-h-loop-robustness-design.md +113 -113
  124. package/docs/superpowers/specs/2026-06-30-baustein-i-visual-design-verification-design.md +98 -98
  125. package/docs/superpowers/specs/2026-07-02-baustein-k-zero-to-100-bootstrap-design.md +200 -200
  126. package/docs/superpowers/specs/2026-07-02-baustein-m-flow-smoke-proofs-design.md +155 -155
  127. package/docs/superpowers/specs/2026-08-13-gauntlet-quality-loop-design.md +422 -422
  128. package/docs/superpowers/specs/2026-08-16-artifact-backed-output-compaction-design.md +166 -166
  129. package/gemini-extension.json +6 -6
  130. package/hooks/hooks.json +19 -19
  131. package/package.json +87 -87
@@ -60,9 +60,9 @@ export const DecisionResumeSchema = z.object({
60
60
  answered: z.boolean().optional(),
61
61
  /** Absent preserves the default unlimited run across a critical-decision resume. */
62
62
  maxIterations: z.number().int().positive().optional(),
63
- agent: z.enum(['claude', 'codex', 'gemini']).optional(),
63
+ agent: z.enum(['claude', 'codex', 'gemini', 'qwen']).optional(),
64
64
  isolate: z.boolean().optional(),
65
- reviewer: z.enum(['claude', 'codex', 'gemini']).optional(),
65
+ reviewer: z.enum(['claude', 'codex', 'gemini', 'qwen']).optional(),
66
66
  review: z.boolean().optional(),
67
67
  allowSelfReview: z.boolean().optional(),
68
68
  timeoutMinutes: z.number().nonnegative().optional(),
package/dist/loop/prd.js CHANGED
@@ -42,7 +42,7 @@ export const StorySchema = z.object({
42
42
  area: z.string().min(1).optional(),
43
43
  /** Advisory relative file/directory scopes; not a filesystem permission boundary. */
44
44
  writes: z.array(z.string().min(1).max(500).refine(validWriteScope, 'Write scopes must be relative non-glob paths without traversal')).max(100).optional(),
45
- agent: z.enum(['claude', 'codex', 'gemini']).optional(),
45
+ agent: z.enum(['claude', 'codex', 'gemini', 'qwen']).optional(),
46
46
  /** Inbox request that created this story. Used for idempotent append-only intake. */
47
47
  sourceChange: z.string().min(1).optional(),
48
48
  quality: StoryQualityDeclarationSchema.optional(),
@@ -10,23 +10,23 @@ import { acquireLock, releaseLock } from '../loop/lock.js';
10
10
  import { agentInvocation, buildWatchdogInvocation, runAgent, isAgentAvailable, } from '../loop/runner.js';
11
11
  import { resolveIdleMs } from '../loop/run-command.js';
12
12
  import { detectHostAgent, resolveRunnerAgent } from '../agents/host.js';
13
- export const PRD_TEMPLATE = `# Yoke PRD — the loop picks the lowest-priority open story each iteration.
14
- # Story format (see canon/loop/prd.schema.md):
15
- # - id: STORY-1
16
- # title: scaffold the project with a runnable test suite
17
- # priority: 1
18
- # needs: [] # optional story IDs that must pass first
19
- # area: foundation # optional collision domain for parallel runs
20
- # agent: codex # optional claude|codex|gemini affinity
21
- # acceptance:
22
- # - id: suite-runs
23
- # text: "the project test suite can run"
24
- # verify: ["npm run test:suite-runs"]
25
- # - id: scaffold-starts
26
- # text: "the scaffolded application starts"
27
- # verify: ["npm run test:scaffold-starts"]
28
- # passes: false
29
- []
13
+ export const PRD_TEMPLATE = `# Yoke PRD — the loop picks the lowest-priority open story each iteration.
14
+ # Story format (see canon/loop/prd.schema.md):
15
+ # - id: STORY-1
16
+ # title: scaffold the project with a runnable test suite
17
+ # priority: 1
18
+ # needs: [] # optional story IDs that must pass first
19
+ # area: foundation # optional collision domain for parallel runs
20
+ # agent: codex # optional claude|codex|gemini affinity
21
+ # acceptance:
22
+ # - id: suite-runs
23
+ # text: "the project test suite can run"
24
+ # verify: ["npm run test:suite-runs"]
25
+ # - id: scaffold-starts
26
+ # text: "the scaffolded application starts"
27
+ # verify: ["npm run test:scaffold-starts"]
28
+ # passes: false
29
+ []
30
30
  `;
31
31
  export const MAX_PLANNING_BRIEF_CHARS = 20_000;
32
32
  export const MAX_PLANNING_BRIEF_BYTES = MAX_PLANNING_BRIEF_CHARS * 4;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  const QualityPolicySchema = z.enum(['blocking', 'advisory']);
3
- const QualityAgentSchema = z.enum(['claude', 'codex', 'gemini']);
3
+ const QualityAgentSchema = z.enum(['claude', 'codex', 'gemini', 'qwen']);
4
4
  const RelativePathSchema = z.string().min(1).refine(value => !/^(?:[A-Za-z]:[\\/]|[\\/])/.test(value) && !value.split(/[\\/]+/).includes('..'), 'path must stay within the project');
5
5
  const QualityReferenceSchema = z.object({
6
6
  name: z.string().min(1),
@@ -1,6 +1,7 @@
1
1
  import { planClaude } from './planners/claude.js';
2
2
  import { planCodex } from './planners/codex.js';
3
3
  import { planGemini } from './planners/gemini.js';
4
+ import { planQwen } from './planners/qwen.js';
4
5
  import { baseContextActions } from './context-actions.js';
5
6
  export function planClaudeRetrofit(canonDir, targetDir) {
6
7
  return planClaude(canonDir, targetDir);
@@ -9,6 +10,7 @@ export const PLANNERS = {
9
10
  claude: (c, t, cg) => planClaude(c, t, undefined, cg),
10
11
  codex: planCodex,
11
12
  gemini: planGemini,
13
+ qwen: planQwen,
12
14
  };
13
15
  export function planRetrofit(canonDir, targetDir, agents, codeGraph = 'graphify') {
14
16
  const seen = new Set();
@@ -6,21 +6,21 @@ import { hasWsl } from '../wsl.js';
6
6
  import { detectGstack } from '../gstack.js';
7
7
  import { PRESERVE_SCAFFOLD } from '../preserve.js';
8
8
  import { skillPackageActions } from '../skill-actions.js';
9
- const GSTACK_COMPOSE = `## Composed tools (gstack detected)
10
-
11
- This project also has [gstack](https://github.com/garrytan/gstack) installed. For capabilities Yoke does not ship, prefer gstack's skills:
12
-
13
- - Live-browser QA → \`/qa\`
14
- - Security audit → \`/cso\`
15
- - Ship / deploy → \`/ship\`, \`/land-and-deploy\`
9
+ const GSTACK_COMPOSE = `## Composed tools (gstack detected)
10
+
11
+ This project also has [gstack](https://github.com/garrytan/gstack) installed. For capabilities Yoke does not ship, prefer gstack's skills:
12
+
13
+ - Live-browser QA → \`/qa\`
14
+ - Security audit → \`/cso\`
15
+ - Ship / deploy → \`/ship\`, \`/land-and-deploy\`
16
16
  `;
17
- const claudeMd = (rtkNote, composeNote) => `# Project Instructions
18
-
19
- This project uses the Yoke harness. Baseline instructions:
20
-
21
- @AGENTS.md
22
- ${rtkNote ? `\n${rtkNote}\n` : ''}${composeNote ? `\n${composeNote}\n` : ''}
23
- ${PRESERVE_SCAFFOLD}
17
+ const claudeMd = (rtkNote, composeNote) => `# Project Instructions
18
+
19
+ This project uses the Yoke harness. Baseline instructions:
20
+
21
+ @AGENTS.md
22
+ ${rtkNote ? `\n${rtkNote}\n` : ''}${composeNote ? `\n${composeNote}\n` : ''}
23
+ ${PRESERVE_SCAFFOLD}
24
24
  `;
25
25
  export function planClaude(canonDir, targetDir, wslAvailable = hasWsl(), codeGraph = 'graphify', gstackDetected = detectGstack(targetDir)) {
26
26
  const manifest = loadManifest(join(canonDir, 'manifest.yaml'));
@@ -0,0 +1,73 @@
1
+ import { readFileSync } from 'node:fs';
2
+ import { join } from 'node:path';
3
+ import { loadManifest } from '../../canon/manifest.js';
4
+ import { parseFrontmatter } from '../../canon/frontmatter.js';
5
+ import { mcpServers, rtkInstruction } from '../tools.js';
6
+ import { PRESERVE_SCAFFOLD } from '../preserve.js';
7
+ import { skillPackageActions } from '../skill-actions.js';
8
+ function tomlString(s) {
9
+ return '"""\n' + s.replace(/\\/g, '\\\\').replace(/"""/g, '\\"\\"\\"') + '\n"""';
10
+ }
11
+ export function planQwen(canonDir, _targetDir, codeGraph = 'graphify') {
12
+ const manifest = loadManifest(join(canonDir, 'manifest.yaml'));
13
+ const actions = [];
14
+ // QWEN.md: baseline + instruction for commands outside the rewrite hook.
15
+ const baseline = readFileSync(join(canonDir, 'AGENTS.md'), 'utf8');
16
+ const autoSkillIndex = manifest.skills
17
+ .filter(skill => skill.invocation === 'auto')
18
+ .map(skill => {
19
+ const source = readFileSync(join(canonDir, skill.path, 'SKILL.md'), 'utf8');
20
+ const description = String(parseFrontmatter(source)?.description ?? skill.id).replace(/\s+/gu, ' ').trim();
21
+ return `- \`/${skill.id}\` — ${description}`;
22
+ })
23
+ .join('\n');
24
+ actions.push({
25
+ kind: 'write',
26
+ target: 'QWEN.md',
27
+ content: `${baseline}\n${rtkInstruction()}\n\n## Yoke automatic skills\n\nUse the matching command when its capability is relevant:\n\n${autoSkillIndex}\n\n${PRESERVE_SCAFFOLD}\n`,
28
+ reason: 'baseline + rtk instruction',
29
+ });
30
+ // One TOML slash command per skill.
31
+ for (const skill of manifest.skills) {
32
+ const body = readFileSync(join(canonDir, skill.path, 'SKILL.md'), 'utf8');
33
+ const fm = parseFrontmatter(body) ?? {};
34
+ // Collapse any newlines so the single-line TOML `description = "..."` stays valid
35
+ // even for ported skills whose frontmatter description spans multiple lines.
36
+ const description = String(fm.description ?? skill.id).replace(/\s*\r?\n\s*/g, ' ').trim();
37
+ const skillBody = body.replace(/^---\r?\n[\s\S]*?\r?\n---\r?\n?/, '').trim();
38
+ const prompt = `You are using the "${skill.id}" skill.\n\n${skillBody}\n\nFollow it for the current task.`;
39
+ actions.push({
40
+ kind: 'write',
41
+ target: `.qwen/commands/${skill.id}.toml`,
42
+ content: `description = "${description.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}"\nprompt = ${tomlString(prompt)}\n`,
43
+ reason: `qwen command: ${skill.id}`,
44
+ });
45
+ actions.push(...skillPackageActions(canonDir, skill, 'qwen'));
46
+ }
47
+ actions.push({
48
+ kind: 'write',
49
+ target: '.qwen/hooks/qwen-rtk-hook.mjs',
50
+ content: readFileSync(join(canonDir, 'tools/gemini-rtk-hook.mjs'), 'utf8'),
51
+ reason: 'portable RTK BeforeTool argument adapter',
52
+ });
53
+ // Merge to preserve user MCP servers, context and unrelated hooks.
54
+ actions.push({
55
+ kind: 'write',
56
+ target: '.qwen/settings.json',
57
+ merge: true,
58
+ content: JSON.stringify({
59
+ mcpServers: mcpServers(codeGraph),
60
+ context: { fileName: ['AGENTS.md', 'QWEN.md'] },
61
+ hooks: { BeforeTool: [{ matcher: '^run_shell_command$', hooks: [{ name: 'yoke-rtk', type: 'command', command: 'node .qwen/hooks/qwen-rtk-hook.mjs' }] }] },
62
+ }, null, 2) + '\n',
63
+ reason: 'MCP servers + AGENTS.md context',
64
+ });
65
+ // Also ship AGENTS.md so the context.fileName entry resolves.
66
+ actions.push({
67
+ kind: 'write',
68
+ target: 'AGENTS.md',
69
+ content: baseline,
70
+ reason: 'baseline instructions (shared)',
71
+ });
72
+ return actions;
73
+ }
@@ -1,7 +1,7 @@
1
1
  export const PRESERVE_START = '<!-- yoke:preserve:start -->';
2
2
  export const PRESERVE_END = '<!-- yoke:preserve:end -->';
3
- export const PRESERVE_SCAFFOLD = `${PRESERVE_START}
4
- <!-- Project-specific instructions go here. Yoke keeps this block across retrofits. -->
3
+ export const PRESERVE_SCAFFOLD = `${PRESERVE_START}
4
+ <!-- Project-specific instructions go here. Yoke keeps this block across retrofits. -->
5
5
  ${PRESERVE_END}`;
6
6
  /**
7
7
  * Extract the inner content of every balanced preserve-marker pair, in order.
@@ -4,6 +4,7 @@ const roots = {
4
4
  claude: '.claude/skills',
5
5
  codex: '.agents/skills',
6
6
  gemini: '.gemini/skills',
7
+ qwen: '.qwen/skills',
7
8
  };
8
9
  function manualClaudeSkill(content, skill) {
9
10
  const source = content.toString('utf8');
@@ -5,7 +5,7 @@ import { loadConfig } from '../retrofit/config.js';
5
5
  import { parseReviewVerdict } from './verdict.js';
6
6
  // Resolve to the first available agent, preferring a *second* model so the review
7
7
  // is genuinely cross-model. claude last => a Claude-only box degrades to self-review.
8
- const RESOLUTION_ORDER = ['codex', 'gemini', 'claude'];
8
+ const RESOLUTION_ORDER = ['codex', 'gemini', 'qwen', 'claude'];
9
9
  export function runReview(targetDir, opts = {}) {
10
10
  const available = opts.isAvailable ?? isAgentAvailable;
11
11
  const implementer = opts.implementer ?? loadConfig(targetDir)?.agents[0] ?? 'claude';
@@ -68,7 +68,7 @@ export function chooseCapability(input) {
68
68
  const worker = reliable[0];
69
69
  const blocked = !worker && (input.fallback === 'block' || input.maxTier !== undefined);
70
70
  const provider = worker?.agent ?? input.story.agent ?? input.parent;
71
- const selection = worker ? { model: worker.model, reasoningEffort: worker.reasoningEffort, nativeMultiAgent: false, ...(provider !== 'gemini' && input.parentSelection?.bare !== undefined ? { bare: input.parentSelection.bare } : {}) }
71
+ const selection = worker ? { model: worker.model, reasoningEffort: worker.reasoningEffort, nativeMultiAgent: false, ...(provider !== 'gemini' && provider !== 'qwen' && input.parentSelection?.bare !== undefined ? { bare: input.parentSelection.bare } : {}) }
72
72
  : { ...(provider === input.parent ? input.parentSelection : {}), nativeMultiAgent: false };
73
73
  const reason = `${role}: ${tiers[level]}; ${input.assessment.reason}${failures.length ? `; ${failures.length} verified failure(s), ${failures.length === 1 ? 'one targeted repair' : 'escalated'}` : ''}${worker ? '' : '; no eligible profile, parent/provider fallback'}`;
74
74
  return { worker, provider, selection, reason: blocked ? `${role}: no eligible profile within routing limits; execution blocked` : reason, blocked, requiredTier: baseTier, selectedTier: tiers[level], failures: failures.length, exhausted, next: input.maxTier && level >= tiers.indexOf(input.maxTier) ? 'stop at configured tier limit' : level < 3 ? tiers[level + 1] : 'stop after bounded attempts' };
@@ -247,7 +247,7 @@ function routingSteps(options) {
247
247
  return blocked('Selected routing profile exceeds configured limits; execution blocked');
248
248
  const provider = worker?.agent ?? options.parent;
249
249
  const selection = worker
250
- ? { model: worker.model, reasoningEffort: worker.reasoningEffort, nativeMultiAgent: false, ...(provider !== 'gemini' ? { bare: options.parentSelection?.bare } : {}) }
250
+ ? { model: worker.model, reasoningEffort: worker.reasoningEffort, nativeMultiAgent: false, ...(provider !== 'gemini' && provider !== 'qwen' ? { bare: options.parentSelection?.bare } : {}) }
251
251
  : { ...(options.parentSelection ?? {}), nativeMultiAgent: false };
252
252
  const workerStarted = now();
253
253
  const result = yield () => makeWorker(provider, selection)(ctx);
@@ -4,7 +4,7 @@ import { detectHostAgent } from '../agents/host.js';
4
4
  import { loadConfig, saveConfig } from '../retrofit/config.js';
5
5
  import { detectProject } from '../retrofit/detect.js';
6
6
  import { runRetrofit } from '../retrofit/command.js';
7
- const ALL_AGENTS = ['claude', 'codex', 'gemini'];
7
+ const ALL_AGENTS = ['claude', 'codex', 'gemini', 'qwen'];
8
8
  export function defaultRoutingWorkers(agents) {
9
9
  const workers = {
10
10
  claude: [
@@ -25,6 +25,12 @@ export function defaultRoutingWorkers(agents) {
25
25
  { id: 'gemini-strong', agent: 'gemini', model: 'gemini-2.5-pro', tier: 'strong', costTier: 'medium', capabilities: ['debugging'] },
26
26
  { id: 'gemini-frontier', agent: 'gemini', model: 'gemini-2.5-pro', tier: 'frontier', costTier: 'high', capabilities: ['architecture'] },
27
27
  ],
28
+ qwen: [
29
+ { id: 'qwen-light', agent: 'qwen', model: 'qwen-turbo-latest', tier: 'light', costTier: 'low', capabilities: ['mechanical', 'tests'] },
30
+ { id: 'qwen-standard', agent: 'qwen', model: 'qwen3-coder-plus', tier: 'standard', costTier: 'medium', capabilities: ['implementation'] },
31
+ { id: 'qwen-strong', agent: 'qwen', model: 'qwen3-coder-plus', tier: 'strong', costTier: 'medium', capabilities: ['debugging'] },
32
+ { id: 'qwen-frontier', agent: 'qwen', model: 'qwen3-235b-a22b', tier: 'frontier', costTier: 'high', capabilities: ['architecture'] },
33
+ ],
28
34
  };
29
35
  return agents.flatMap(agent => workers[agent]);
30
36
  }
@@ -75,12 +81,12 @@ export async function runSetup(targetDir, opts = {}) {
75
81
  let decisionPolicy = defaultPolicy;
76
82
  let routing = defaultRouting;
77
83
  if (interactive && ask) {
78
- agents = parseAgents(await ask(`Agents [${defaultAgents.join(',')}] (claude,codex,gemini|all): `), defaultAgents);
84
+ agents = parseAgents(await ask(`Agents [${defaultAgents.join(',')}] (claude,codex,gemini,qwen|all): `), defaultAgents);
79
85
  const graphAnswer = (await ask(`Code graph [${defaultGraph}] (graphify|serena): `)).trim().toLowerCase();
80
86
  if (graphAnswer === 'graphify' || graphAnswer === 'serena')
81
87
  codeGraph = graphAnswer;
82
88
  loop = yes(await ask(`Enable autonomous loop? [${defaultLoop ? 'yes' : 'no'}]: `), defaultLoop);
83
- const runnerAnswer = (await ask(`Default runner [${runner}] (claude|codex|gemini): `)).trim().toLowerCase();
89
+ const runnerAnswer = (await ask(`Default runner [${runner}] (claude|codex|gemini|qwen): `)).trim().toLowerCase();
84
90
  if (ALL_AGENTS.includes(runnerAnswer))
85
91
  runner = runnerAnswer;
86
92
  const policyAnswer = (await ask(`Decision mode [${decisionPolicy}] (auto|critical): `)).trim().toLowerCase();
@@ -1,17 +1,17 @@
1
- # Routing by task requirements
2
-
1
+ # Routing by task requirements
2
+
3
3
  Capability routing is available in Yoke 1.9.0. Batch preparation, separate planning settings and routing limits described below are local, unreleased additions.
4
-
5
- New setups use `routing.strategy: capability`. Existing explicit strategies and profiles remain unchanged. To opt an existing project into capability routing with its current profiles:
6
-
7
- ```sh
8
- yoke setup . --yes --routing --routing-strategy=capability
9
- ```
10
-
11
- Give each existing worker a `tier: light|standard|strong|frontier`. Profiles without a tier remain usable with legacy strategies but are not candidates for capability selection. To explicitly replace worker profiles with the supplied provider presets, add `--routing-preset`. This replaces customized worker profiles; omit it to retain them.
12
-
13
- ## Planning and selection
14
-
4
+
5
+ New setups use `routing.strategy: capability`. Existing explicit strategies and profiles remain unchanged. To opt an existing project into capability routing with its current profiles:
6
+
7
+ ```sh
8
+ yoke setup . --yes --routing --routing-strategy=capability
9
+ ```
10
+
11
+ Give each existing worker a `tier: light|standard|strong|frontier`. Profiles without a tier remain usable with legacy strategies but are not candidates for capability selection. To explicitly replace worker profiles with the supplied provider presets, add `--routing-preset`. This replaces customized worker profiles; omit it to retain them.
12
+
13
+ ## Planning and selection
14
+
15
15
  The start provider/model remains the planning default. Optional `planning.agent`, `planning.model` and `planning.reasoningEffort` select a separate planner without changing the execution model. Draft and change-inbox planning request complete assessments in the same pass that creates the tasks. The inbox still performs its separate coverage review.
16
16
 
17
17
  New setups use `routing.assessmentPolicy: prepared` and `routing.fallback: block`. Before dispatch, each unfinished task must have 2–5 executable criteria and a current assessment. No per-task planning call runs in this mode. Existing configurations retain `on-demand` and `parent` unless explicitly changed; on-demand routing makes a read-only planning call for an unassessed task and caches its result.
@@ -41,42 +41,42 @@ routing:
41
41
  ```
42
42
 
43
43
  `maxTier` limits automatic execution and escalation, including routing-rule selections. If a task needs frontier while the ceiling is strong, it blocks; Yoke does not lower the required capability. Planning itself may still use Astra. Explicit quality-role model overrides retain precedence. Goal execution retains its own protected manifest and budgets, uses the configured planner on demand, and honors routing fallback/tier limits; PRD preparation policy does not apply to synthetic goal tasks.
44
-
45
- An assessment is a planning judgment, not a measured success probability. High testability means executable checks can detect an incorrect implementation. High uncertainty, architecture work or high risk require the frontier tier; difficult or broadly coupled work requires strong; routine implementation requires standard. Light is reserved for clear, low-risk mechanical work with strong checks. Weak testability raises the minimum tier. Reviews and critics have a standard minimum even for light tasks.
46
-
47
- ```yaml
48
- assessment:
49
- taskClass: implementation
50
- difficulty: medium
51
- uncertainty: low
52
- risk: low
53
- scope: low
54
- testability: high
55
- reason: Existing handler pattern and executable contract tests
56
- approach: Extend the handler, cover the boundary cases, run contract tests
57
- ```
58
-
44
+
45
+ An assessment is a planning judgment, not a measured success probability. High testability means executable checks can detect an incorrect implementation. High uncertainty, architecture work or high risk require the frontier tier; difficult or broadly coupled work requires strong; routine implementation requires standard. Light is reserved for clear, low-risk mechanical work with strong checks. Weak testability raises the minimum tier. Reviews and critics have a standard minimum even for light tasks.
46
+
47
+ ```yaml
48
+ assessment:
49
+ taskClass: implementation
50
+ difficulty: medium
51
+ uncertainty: low
52
+ risk: low
53
+ scope: low
54
+ testability: high
55
+ reason: Existing handler pattern and executable contract tests
56
+ approach: Extend the handler, cover the boundary cases, run contract tests
57
+ ```
58
+
59
59
  Yoke chooses an eligible profile at or above the required tier, then compares declared cost tiers. Optional `roles: [implementation, reviewer, critic, repair]` limits a profile's uses. Task `agent` affinity restricts implementation to that provider. Explicit routing rules and explicit quality role models retain precedence. With legacy `fallback: parent` and no tier ceiling, a missing suitable profile falls back to the start model (or the explicitly bound provider's default) and labels the fallback; it does not prove sufficient capability. `fallback: block` or a configured tier ceiling prevents that fallback. An invalid assessment blocks implementation.
60
-
61
- ## Initial profiles
62
-
63
- | Tier | Codex | Claude | Gemini |
64
- | --- | --- | --- | --- |
65
- | light | gpt-5.6-luna, low | haiku | gemini-2.5-flash |
66
- | standard | gpt-5.6-terra, medium | sonnet | gemini-2.5-pro |
67
- | strong | gpt-5.6-sol, high | sonnet, high effort | gemini-2.5-pro |
68
- | frontier | gpt-6-astra, high | opus | gemini-2.5-pro |
69
-
70
- These are editable starting hypotheses, not measured equivalences or price claims. The Codex names follow the requested profile family. Account access is not established by finding an installed CLI. Gemini uses documented explicit model IDs and receives no unsupported reasoning-effort parameter. Several Gemini tiers deliberately share Pro; moving between those tiers alone is not a stronger-model transition. Adjust the presets to the models available to your account. Claude aliases can resolve to different concrete models over time. Provider-reported model identity remains separate from requested identity.
71
-
72
- Provider references: [Claude model configuration](https://code.claude.com/docs/en/model-config), [Gemini model selection](https://geminicli.com/docs/cli/model/).
73
-
74
- ## Repair, escalation and evidence
75
-
76
- After an independent mechanical failure, capability routing permits one targeted repair at the initial tier, then raises the required tier on further failures. Attempts retain the current worktree and receive the previous gate findings. Every returned candidate still passes the normal acceptance, protection, quality, review and integration gates. Critical decisions, pause/cancellation and protected-acceptance violations stop retries. Provider process failures are classified conservatively as infrastructure; they do not count as evidence that a stronger model is needed.
77
-
78
- `routing.maxAttempts` limits implementation calls per unchanged task contract (default 5, configurable 1–8). The initial tier imposes an additional bound: light at most 5, standard 4, strong 3, frontier 2. An exhausted task blocks and requires a revised plan. These are inner implementation attempts; the outer loop's iteration count still counts task dispatches. Existing quality repair rounds and time limits remain separate bounds, and quality repairs can raise their profile tier by round. Goal execution keeps its existing global attempt, time and token budgets.
79
-
80
- Routing observations record task class, required tier, requested and reported models, effort, independent result, duration and available consumption. Selection considers matching project/task-class/tier history from the last 30 days within the bounded registry read. At least ten matching observations are required before an observed success rate below 80% excludes a profile. History is scoped to the concrete reported model to avoid mixing changed aliases. This is a conservative exclusion rule; it does not lower the planner's safety floor or claim calibrated probabilities. Missing usage remains unknown. Financial optimization and cross-provider performance require authenticated benchmarks.
81
-
82
- The dashboard's Now view shows the last recorded implementation profile, requested model/effort, rationale and next escalation tier. Usage & time retains reported model and role consumption, including assessment calls. Cached planning has no new model-call charge. Routing state is local runtime data and excluded from Yoke story commits.
60
+
61
+ ## Initial profiles
62
+
63
+ | Tier | Codex | Claude | Gemini |
64
+ | --- | --- | --- | --- |
65
+ | light | gpt-5.6-luna, low | haiku | gemini-2.5-flash |
66
+ | standard | gpt-5.6-terra, medium | sonnet | gemini-2.5-pro |
67
+ | strong | gpt-5.6-sol, high | sonnet, high effort | gemini-2.5-pro |
68
+ | frontier | gpt-6-astra, high | opus | gemini-2.5-pro |
69
+
70
+ These are editable starting hypotheses, not measured equivalences or price claims. The Codex names follow the requested profile family. Account access is not established by finding an installed CLI. Gemini uses documented explicit model IDs and receives no unsupported reasoning-effort parameter. Several Gemini tiers deliberately share Pro; moving between those tiers alone is not a stronger-model transition. Adjust the presets to the models available to your account. Claude aliases can resolve to different concrete models over time. Provider-reported model identity remains separate from requested identity.
71
+
72
+ Provider references: [Claude model configuration](https://code.claude.com/docs/en/model-config), [Gemini model selection](https://geminicli.com/docs/cli/model/).
73
+
74
+ ## Repair, escalation and evidence
75
+
76
+ After an independent mechanical failure, capability routing permits one targeted repair at the initial tier, then raises the required tier on further failures. Attempts retain the current worktree and receive the previous gate findings. Every returned candidate still passes the normal acceptance, protection, quality, review and integration gates. Critical decisions, pause/cancellation and protected-acceptance violations stop retries. Provider process failures are classified conservatively as infrastructure; they do not count as evidence that a stronger model is needed.
77
+
78
+ `routing.maxAttempts` limits implementation calls per unchanged task contract (default 5, configurable 1–8). The initial tier imposes an additional bound: light at most 5, standard 4, strong 3, frontier 2. An exhausted task blocks and requires a revised plan. These are inner implementation attempts; the outer loop's iteration count still counts task dispatches. Existing quality repair rounds and time limits remain separate bounds, and quality repairs can raise their profile tier by round. Goal execution keeps its existing global attempt, time and token budgets.
79
+
80
+ Routing observations record task class, required tier, requested and reported models, effort, independent result, duration and available consumption. Selection considers matching project/task-class/tier history from the last 30 days within the bounded registry read. At least ten matching observations are required before an observed success rate below 80% excludes a profile. History is scoped to the concrete reported model to avoid mixing changed aliases. This is a conservative exclusion rule; it does not lower the planner's safety floor or claim calibrated probabilities. Missing usage remains unknown. Financial optimization and cross-provider performance require authenticated benchmarks.
81
+
82
+ The dashboard's Now view shows the last recorded implementation profile, requested model/effort, rationale and next escalation tier. Usage & time retains reported model and role consumption, including assessment calls. Cached planning has no new model-call charge. Routing state is local runtime data and excluded from Yoke story commits.
@@ -1,33 +1,33 @@
1
- # Dashboard evolution
2
-
3
- The local dashboard is an actionable workspace for registered Yoke projects. It reads the same saved project, loop, goal, acceptance, and measurement data as the CLI. Project-controlled text is rendered through `textContent`, and the server remains bound to the loopback interface with same-origin authorization for pause requests.
4
-
5
- ## Overview
6
-
7
- Project status is derived from both the saved goal and the latest loop report. A blocked or running loop is not hidden by a completed goal. When goal and loop states differ, the card displays both. Blocked, failed, paused, unavailable, and stale active reports need attention; those projects are ordered before active projects, followed by the remaining projects.
8
-
9
- Cards also show the reported current task and saved blocker reason when available, so the overview explains why a project needs attention before opening it.
10
-
11
- An active loop report more than 20 minutes old is labeled **unconfirmed**. This means Yoke has an old active report, not evidence that the process is still live. The overview can be searched by project name, canonical path, or goal objective and filtered to All, Active, or Needs attention. A no-match state explains the result and provides a clear action that resets both search and filter.
12
-
13
- ## Durable navigation
14
-
15
- The URL hash stores the current screen, project, project tab, period, UTC grouping, and complete custom date range. Supported screens are the overview, workspace comparison, and project detail. Supported project tabs are Now, Usage & time, and Results; periods are 1, 7, 30, 90, or 365 days; groupings are day, week, or month. Custom dates must be real ISO calendar dates in chronological order and cover at most 366 inclusive days.
16
-
17
- Invalid hash state returns to the overview with the 30-day/day defaults. Browser back and forward, a page reload, and Refresh restore the validated state. Refresh reloads data without resetting the selected view or controls. Starting any navigation aborts earlier fetches and changes a request generation, so an older response cannot replace the current screen.
18
-
19
- The workspace comparison schedules at most three project analytics requests at once. If navigation changes, in-flight fetches are aborted and no additional obsolete project requests are scheduled. All projects and individual project links remain available in the navigation while viewing the comparison.
20
-
21
- ## Usage comparisons
22
-
23
- Usage & time compares the selected period with the immediately preceding period of exactly the same duration. A single time boundary is captured before either analytics request is made. The comparison covers recorded input plus output tokens, recorded acceptance events, and reported cost.
24
-
25
- When the preceding value is zero, the dashboard describes no change or new recorded activity instead of calculating an infinite percentage. A cost percentage is shown only when both periods have fully measured cost. Otherwise the dashboard says the percentage is unavailable. Current and previous missing-usage coverage is displayed from calls with unknown usage and unmeasured attempts. Recorded portions remain recorded portions; missing tokens or charges are not estimated as zero.
26
-
27
- Charts and their tables include periods that contain recorded events. Empty UTC calendar buckets are omitted and the chart explains that a gap means no recorded activity, not a measured zero. Detailed provider/model/role, model timeline, task, and phase tables remain below the comparison.
28
-
29
- ## Design findings and limitations
30
-
31
- Goal state and loop state describe different durable facts and need independent presentation. Freshness is also separate from state: a saved `running` value can become unconfirmed without being rewritten. Navigation state belongs in the URL because the dashboard has several independently useful views and time controls. Analytics fan-out needs cancellation as well as a concurrency bound because registered workspaces may contain many projects.
32
-
33
- The dashboard combines local saved evidence with process-identity checks for supervised providers (see [Windows runner validation](WINDOWS-RUNNER-VALIDATION.md)). Unverified process identity remains unknown. It does not reconstruct activity that predates retained measurements, estimate missing provider usage or prices, or turn requested model names into proof of models used. Parallel call durations can overlap, so summed call time is consumption intensity rather than generation speed. The 20-minute freshness threshold is a presentation rule, not a process-health guarantee. No provider performance benchmark is implied by these views.
1
+ # Dashboard evolution
2
+
3
+ The local dashboard is an actionable workspace for registered Yoke projects. It reads the same saved project, loop, goal, acceptance, and measurement data as the CLI. Project-controlled text is rendered through `textContent`, and the server remains bound to the loopback interface with same-origin authorization for pause requests.
4
+
5
+ ## Overview
6
+
7
+ Project status is derived from both the saved goal and the latest loop report. A blocked or running loop is not hidden by a completed goal. When goal and loop states differ, the card displays both. Blocked, failed, paused, unavailable, and stale active reports need attention; those projects are ordered before active projects, followed by the remaining projects.
8
+
9
+ Cards also show the reported current task and saved blocker reason when available, so the overview explains why a project needs attention before opening it.
10
+
11
+ An active loop report more than 20 minutes old is labeled **unconfirmed**. This means Yoke has an old active report, not evidence that the process is still live. The overview can be searched by project name, canonical path, or goal objective and filtered to All, Active, or Needs attention. A no-match state explains the result and provides a clear action that resets both search and filter.
12
+
13
+ ## Durable navigation
14
+
15
+ The URL hash stores the current screen, project, project tab, period, UTC grouping, and complete custom date range. Supported screens are the overview, workspace comparison, and project detail. Supported project tabs are Now, Usage & time, and Results; periods are 1, 7, 30, 90, or 365 days; groupings are day, week, or month. Custom dates must be real ISO calendar dates in chronological order and cover at most 366 inclusive days.
16
+
17
+ Invalid hash state returns to the overview with the 30-day/day defaults. Browser back and forward, a page reload, and Refresh restore the validated state. Refresh reloads data without resetting the selected view or controls. Starting any navigation aborts earlier fetches and changes a request generation, so an older response cannot replace the current screen.
18
+
19
+ The workspace comparison schedules at most three project analytics requests at once. If navigation changes, in-flight fetches are aborted and no additional obsolete project requests are scheduled. All projects and individual project links remain available in the navigation while viewing the comparison.
20
+
21
+ ## Usage comparisons
22
+
23
+ Usage & time compares the selected period with the immediately preceding period of exactly the same duration. A single time boundary is captured before either analytics request is made. The comparison covers recorded input plus output tokens, recorded acceptance events, and reported cost.
24
+
25
+ When the preceding value is zero, the dashboard describes no change or new recorded activity instead of calculating an infinite percentage. A cost percentage is shown only when both periods have fully measured cost. Otherwise the dashboard says the percentage is unavailable. Current and previous missing-usage coverage is displayed from calls with unknown usage and unmeasured attempts. Recorded portions remain recorded portions; missing tokens or charges are not estimated as zero.
26
+
27
+ Charts and their tables include periods that contain recorded events. Empty UTC calendar buckets are omitted and the chart explains that a gap means no recorded activity, not a measured zero. Detailed provider/model/role, model timeline, task, and phase tables remain below the comparison.
28
+
29
+ ## Design findings and limitations
30
+
31
+ Goal state and loop state describe different durable facts and need independent presentation. Freshness is also separate from state: a saved `running` value can become unconfirmed without being rewritten. Navigation state belongs in the URL because the dashboard has several independently useful views and time controls. Analytics fan-out needs cancellation as well as a concurrency bound because registered workspaces may contain many projects.
32
+
33
+ The dashboard combines local saved evidence with process-identity checks for supervised providers (see [Windows runner validation](WINDOWS-RUNNER-VALIDATION.md)). Unverified process identity remains unknown. It does not reconstruct activity that predates retained measurements, estimate missing provider usage or prices, or turn requested model names into proof of models used. Parallel call durations can overlap, so summed call time is consumption intensity rather than generation speed. The 20-minute freshness threshold is a presentation rule, not a process-health guarantee. No provider performance benchmark is implied by these views.
@@ -1,33 +1,33 @@
1
- # Migrating to Yoke 1.0
2
-
3
- Yoke 1.0 changes unsafe implicit behavior into explicit policy.
4
-
5
- ## Runner permissions
6
-
7
- The default is `runner.permissions: safe`. Automation that intentionally requires a full
8
- sandbox bypass must pass `--unsafe` or configure `runner.permissions: unsafe`. Use
9
- `read-only` for planning and probing.
10
-
11
- ## Reviews
12
-
13
- Reviewers write `.yoke/review-verdict.json`; Yoke validates and consumes it. The reviewer must
14
- differ from the implementer unless `--allow-self-review` is explicit. CI can add `--json`.
15
-
16
- ## Commit ownership
17
-
18
- Yoke resolves identity before implementation. Configure it when Git has no identity:
19
-
20
- ```yaml
21
- commit:
22
- authorName: HECer
23
- authorEmail: hec_er@web.de
24
- allowCoAuthors: false
25
- ```
26
-
27
- ## PRDs, audit, and cleanup
28
-
29
- Existing PRDs remain valid. Optional `needs`, `area`, and `agent` fields add dependencies,
30
- collision domains, and affinity. Enable the story audit gate with `audit.enabled: true` and
31
- version suppressions with `suppressionsVersion: 1`.
32
-
33
- `yoke loop cleanup` now reports retained worktrees. Add `--remove-worktrees` for deletion.
1
+ # Migrating to Yoke 1.0
2
+
3
+ Yoke 1.0 changes unsafe implicit behavior into explicit policy.
4
+
5
+ ## Runner permissions
6
+
7
+ The default is `runner.permissions: safe`. Automation that intentionally requires a full
8
+ sandbox bypass must pass `--unsafe` or configure `runner.permissions: unsafe`. Use
9
+ `read-only` for planning and probing.
10
+
11
+ ## Reviews
12
+
13
+ Reviewers write `.yoke/review-verdict.json`; Yoke validates and consumes it. The reviewer must
14
+ differ from the implementer unless `--allow-self-review` is explicit. CI can add `--json`.
15
+
16
+ ## Commit ownership
17
+
18
+ Yoke resolves identity before implementation. Configure it when Git has no identity:
19
+
20
+ ```yaml
21
+ commit:
22
+ authorName: HECer
23
+ authorEmail: hec_er@web.de
24
+ allowCoAuthors: false
25
+ ```
26
+
27
+ ## PRDs, audit, and cleanup
28
+
29
+ Existing PRDs remain valid. Optional `needs`, `area`, and `agent` fields add dependencies,
30
+ collision domains, and affinity. Enable the story audit gate with `audit.enabled: true` and
31
+ version suppressions with `suppressionsVersion: 1`.
32
+
33
+ `yoke loop cleanup` now reports retained worktrees. Add `--remove-worktrees` for deletion.
@@ -1,27 +1,27 @@
1
- # Migrating to Yoke 1.1
2
-
3
- Yoke 1.1 makes Claude, Codex, and Gemini share the same setup, planning, runner-selection, and decision behavior.
4
-
5
- Run the setup wizard once in an existing project:
6
-
7
- ```bash
8
- npx @hecer/yoke@1.1.0 setup .
9
- ```
10
-
11
- It preserves existing Yoke configuration and asks for target agents, code graph, loop state, default runner, and decision mode. A non-interactive agent can apply explicit choices with `--yes`.
12
-
13
- The new config fields are optional and backward-compatible:
14
-
15
- ```yaml
16
- runner:
17
- agent: codex
18
- permissions: safe
19
- loop:
20
- enabled: true
21
- timeoutMinutes: 30
22
- decisionPolicy: critical # auto | critical
23
- ```
24
-
25
- `loop.onAmbiguity: resolve|abort` and `--on-ambiguity=` still work. Prefer `decisionPolicy` for new projects: `auto` resolves routine choices without asking; `critical` pauses only for high-impact decisions and continues after `yoke loop answer`. Resume restores the original isolation, review, runner, permissions, timeout, and policy flags instead of silently weakening the run. If the restart cannot begin, `yoke loop resume` retries from the request-bound state stored under Git's private state directory.
26
-
27
- Restart an already-open Codex task after retrofit if it does not discover the newly generated `.agents/skills/yoke-workflow/SKILL.md`.
1
+ # Migrating to Yoke 1.1
2
+
3
+ Yoke 1.1 makes Claude, Codex, and Gemini share the same setup, planning, runner-selection, and decision behavior.
4
+
5
+ Run the setup wizard once in an existing project:
6
+
7
+ ```bash
8
+ npx @hecer/yoke@1.1.0 setup .
9
+ ```
10
+
11
+ It preserves existing Yoke configuration and asks for target agents, code graph, loop state, default runner, and decision mode. A non-interactive agent can apply explicit choices with `--yes`.
12
+
13
+ The new config fields are optional and backward-compatible:
14
+
15
+ ```yaml
16
+ runner:
17
+ agent: codex
18
+ permissions: safe
19
+ loop:
20
+ enabled: true
21
+ timeoutMinutes: 30
22
+ decisionPolicy: critical # auto | critical
23
+ ```
24
+
25
+ `loop.onAmbiguity: resolve|abort` and `--on-ambiguity=` still work. Prefer `decisionPolicy` for new projects: `auto` resolves routine choices without asking; `critical` pauses only for high-impact decisions and continues after `yoke loop answer`. Resume restores the original isolation, review, runner, permissions, timeout, and policy flags instead of silently weakening the run. If the restart cannot begin, `yoke loop resume` retries from the request-bound state stored under Git's private state directory.
26
+
27
+ Restart an already-open Codex task after retrofit if it does not discover the newly generated `.agents/skills/yoke-workflow/SKILL.md`.