@hecer/yoke 1.19.0 → 1.20.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 (51) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.codex-plugin/plugin.json +1 -1
  3. package/CHANGELOG.md +27 -0
  4. package/README.md +4 -1
  5. package/bench/RESULTS.md +30 -0
  6. package/bench/analyze-codex-comparison.mjs +22 -0
  7. package/bench/compare-codex.mjs +71 -0
  8. package/bench/fixtures/independent-utils/.yoke/prd.yaml +30 -0
  9. package/bench/fixtures/independent-utils/bench-verify.mjs +4 -0
  10. package/bench/fixtures/independent-utils/package.json +1 -0
  11. package/bench/fixtures/independent-utils/src/chunk.mjs +1 -0
  12. package/bench/fixtures/independent-utils/src/range.mjs +1 -0
  13. package/bench/fixtures/independent-utils/src/unique.mjs +1 -0
  14. package/bench/fixtures/independent-utils/tests/STORY-1.test.mjs +8 -0
  15. package/bench/fixtures/independent-utils/tests/STORY-2.test.mjs +8 -0
  16. package/bench/fixtures/independent-utils/tests/STORY-3.test.mjs +8 -0
  17. package/bench/probe-goal-integration.mjs +93 -0
  18. package/bench/probe-parallel-gate-context.mjs +29 -0
  19. package/bench/results/codex-comparison-2026-09-29.json +305 -0
  20. package/bench/results/goal-integration-probes-2026-09-29.json +107 -0
  21. package/bench/results/native-goal-validation-2026-09-30.json +122 -0
  22. package/bench/results/parallel-validation-2026-09-30.json +86 -0
  23. package/dist/agents/process-record-identity.js +33 -0
  24. package/dist/check/command.js +218 -0
  25. package/dist/cli.js +11 -7
  26. package/dist/dashboard/server.js +26 -6
  27. package/dist/goals/codex-native.js +340 -0
  28. package/dist/goals/command.js +230 -29
  29. package/dist/loop/cleanup.js +10 -1
  30. package/dist/loop/dispatcher.js +82 -10
  31. package/dist/loop/git.js +1 -1
  32. package/dist/loop/parallel-adapters.js +53 -7
  33. package/dist/loop/parallel-command.js +8 -1
  34. package/dist/loop/recovery.js +81 -2
  35. package/dist/loop/reporter.js +3 -0
  36. package/dist/loop/resource-pool.js +21 -15
  37. package/dist/loop/run-command.js +91 -25
  38. package/dist/loop/run-state.js +116 -0
  39. package/dist/prd/explore.js +12 -4
  40. package/dist/retrofit/config.js +1 -0
  41. package/dist/retrofit/gitignore.js +3 -0
  42. package/docs/CODEX-COMPARISON-2026-09-29.md +27 -0
  43. package/docs/CONTINUOUS-EXPLORATION.md +6 -2
  44. package/docs/GOALS-RESOURCE-AUDIT-2026-09-29.md +92 -0
  45. package/docs/GOALS.md +109 -0
  46. package/docs/RELEASE-VALIDATION-1.20.0.md +100 -0
  47. package/docs/VERIFIED-PROJECTS.md +4 -4
  48. package/docs/parallel-execution.md +15 -0
  49. package/docs/superpowers/plans/2026-09-30-goals-resources-release.md +78 -0
  50. package/gemini-extension.json +1 -1
  51. package/package.json +5 -1
@@ -0,0 +1,78 @@
1
+ # Goals, verification and recovery implementation plan
2
+
3
+ > **For agentic workers:** Implement independent parallel and resume components with dispatching-parallel-agents; integrate goal policy centrally. Write each regression before changing production behavior.
4
+
5
+ **Goal:** Correct the reproduced completion/resource/integration failures, provide optional persistent native Codex Goals, and prepare a validated 1.20.0 release.
6
+
7
+ **Architecture:** Yoke owns objective-specific executable acceptance and project integration. A negotiated optional native adapter owns a Codex thread, paused at verification boundaries. All actual provider calls use the same admission pool; local goal checks have abortable execution and a separate shared check budget. Durable run identity restores the correct mode and limits.
8
+
9
+ **Tech stack:** TypeScript, Node 20+, Zod, Vitest, native CLI/app-server stdio; no new dependency.
10
+
11
+ **Spec:** docs/GOALS-RESOURCE-AUDIT-2026-09-29.md and docs/CODEX-COMPARISON-2026-09-29.md. Recommendations in those dated reports become implementation scope here; historic results remain historic.
12
+
13
+ ## Constraints and decisions
14
+
15
+ - Preserve the original dirty checkout; use the existing codex/benchmark-goals-2026-09-29 worktree.
16
+ - Native goals remain optional, capability negotiated, and never required for other providers. No global CLI configuration changes.
17
+ - Bind each goal to explicitly selected criterion IDs and a stable objective/contract digest. Old unbound goals require explicit binding before accepting completion; provide CLI migration command.
18
+ - Preserve --minutes as cumulative agent-time budget; add explicit cumulative wall-time budget. Report token overshoot and unknown consumption, never silently reset them.
19
+ - Disable unmanaged native multi-agent delegation for managed provider calls; reserve one pool unit per actual call, not an outer unit plus nested units.
20
+ - Keep protected acceptance, scope controls, commits and safe-boundary exploration semantics. No weaker test gates or fabricated CPU/USD savings.
21
+ - Prepare the release locally; tagging, npm publication and GitHub release are not performed by a preparation request.
22
+
23
+ ## Review focus
24
+
25
+ Goal contract unrelated to new objective; stale/edited contracts; abort while admission is queued; planner/worker token accounting; dashboard resuming a stale goal instead of active explore run; expired exploration deadline; unavailable native protocol versus genuine authentication errors; native complete while Yoke check fails; retained worktree ownership; Windows full generated path length.
26
+
27
+ ## Task 1 — Parallel integration and recoverable candidates
28
+
29
+ Files: src/loop/dispatcher.ts, parallel-command.ts, parallel-adapters.ts, merge-queue.ts; tests/loop parallel/dispatcher suites; reporter integration centrally.
30
+
31
+ - [x] Add failing story-environment regression using independent scopes and an environment-dependent verifier.
32
+ - [x] Preserve verification environment across worker and integration phases and restore previous environment on errors.
33
+ - [x] Persist concrete rejection reasons and recoverable candidate ownership; retain implemented work safely and enable existing recovery paths.
34
+ - [x] Shorten generated worktree names without weakening ownership validation; test Windows path failure handling.
35
+ - [x] Run covering tests and deterministic control probe.
36
+
37
+ ## Task 2 — Durable run identity and resume
38
+
39
+ Files: src/loop/run-state.ts, run-command.ts, src/dashboard/server.ts, run-state/dashboard tests.
40
+
41
+ - [x] Add failing mode/provider/selection/deadline and unrelated-goal resume tests.
42
+ - [x] Persist validated safe run options under owned project lock; restore the interrupted run's mode.
43
+ - [x] Preserve absolute exploration deadline and user pauses; explicitly fresh CLI run gets a new deadline.
44
+ - [x] Verify expired deadline starts no provider and unsafe permissions do not silently carry over.
45
+
46
+ ## Task 3 — Objective acceptance, policy and budgets
47
+
48
+ Files: src/goals/command.ts, contracts.ts/admission.ts as needed, src/check/command.ts async counterpart, src/cli.ts, src/retrofit/config.ts, goals/check tests.
49
+
50
+ - [x] Add failing unrelated-green-contract test, explicit binding/digest mutation tests, saturated pool and configured-selection tests.
51
+ - [x] Bind goal objective to selected criteria and contract revision; add goal bind CLI and documented legacy migration.
52
+ - [x] Resolve explicit provider/model/effort/bare overrides then project runner configuration; centrally disable unmanaged delegation.
53
+ - [x] Admit actual implementation and planner calls through the pool and release in finally.
54
+ - [x] Add abortable checks with shared local check admission; preserve fingerprints and protected contract evidence.
55
+ - [x] Add cumulative wall-time option and post-attempt overshoot/unknown-usage accounting, streamed cancellation where supported; preserve safe pause and interrupted work.
56
+
57
+ ## Task 4 — Optional native Codex adapter
58
+
59
+ Files: src/goals/codex-native.ts, tests/goals/codex-native.test.ts; central goal integration/config.
60
+
61
+ - [x] Test initialized RPC transport, unsupported capability, malformed replies, thread start/resume, abort and bounded cleanup.
62
+ - [x] Persist objective-bound thread identity; execute bounded turns with native goals paused between turns so independent checks arbitrate continuation.
63
+ - [x] Synchronize completion/pause/budget/blocker states after Yoke checks; unavailable method can fall back, real execution/auth errors cannot silently downgrade.
64
+ - [x] Test provider switches and existing-thread/model mismatch; prevent competing auto-continuation.
65
+
66
+ ## Task 5 — Review, measurements and release preparation
67
+
68
+ - [x] Review merged components, fix covering regressions and rerun deterministic audit probes with updated expected outcomes.
69
+ - [x] Run authenticated corrected parallel benchmark and report accepted quality/time/tokens with original sample limits.
70
+ - [x] Run TypeScript/build, full tests, metadata checks and package dry run in isolated state.
71
+ - [x] Add dated 1.20.0 CHANGELOG entry with implemented behavior, binding migration, default/native limits and actual validation limits.
72
+ - [x] Synchronize package/lock/provider manifest/README versions; link compact guides for goals/resources/recovery.
73
+ - [x] Read-only provenance audit for changed reports; prepare matching release notes and build archive.
74
+
75
+ ## Progress ledger
76
+
77
+ - 2026-09-30: Plan created; three independent implementers assigned parallel correctness, durable resume, native adapter. Controller owns goal policy, check execution, integration, release preparation. Historic benchmark failures remain in reports.
78
+ - 2026-09-30: Implementation and review complete. Final prepublish pipeline passed (1,418 tests, 2 skipped, 155 files), lint/build/Canon/metadata/package checks and zero-vulnerability audit passed. Authenticated parallel and native accounting fixtures succeeded with their stated limits. Local 1.20.0 archive and changelog-derived notes prepared; publication remains out of scope.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yoke",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "Cross-agent coding harness for eight supported CLIs: curated skill canon, mechanical safety gates, autonomous loop with proof artifacts. CLI: npm i -g @hecer/yoke",
5
5
  "contextFileName": "GEMINI-EXTENSION.md"
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hecer/yoke",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "One harness, eight agents, zero trust in \"done\" — cross-agent coding harness for Claude Code, Codex CLI, Gemini CLI, Qwen Code, OpenCode, Kilo, Pi and Hermes: one skill canon, mechanical safety gates, an autonomous loop with screenshot/video proofs.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -23,6 +23,10 @@
23
23
  "bench/run-matrix.mjs",
24
24
  "bench/run-parallel-matrix.mjs",
25
25
  "bench/analyze-routing-study.mjs",
26
+ "bench/compare-codex.mjs",
27
+ "bench/analyze-codex-comparison.mjs",
28
+ "bench/probe-goal-integration.mjs",
29
+ "bench/probe-parallel-gate-context.mjs",
26
30
  "bench/fixtures",
27
31
  "bench/results",
28
32
  "docs",