loadout-ai 0.7.0 → 0.9.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 (108) hide show
  1. package/CHANGELOG.md +148 -1
  2. package/README.md +160 -315
  3. package/SECURITY.md +21 -1
  4. package/catalog/discovered.json +31269 -26003
  5. package/catalog/packages.json +4 -4
  6. package/dist/src/cli.js +13 -0
  7. package/dist/src/commands/agents.js +3 -1
  8. package/dist/src/commands/catalog-candidate.js +150 -0
  9. package/dist/src/commands/catalog-workflows.js +147 -0
  10. package/dist/src/commands/catalog.js +9 -367
  11. package/dist/src/commands/coordinate.js +586 -0
  12. package/dist/src/commands/coordination-discussions.js +194 -0
  13. package/dist/src/commands/coordination-sessions.js +197 -0
  14. package/dist/src/commands/inventory.js +4 -2
  15. package/dist/src/core/agents/agent-inspection.js +26 -4
  16. package/dist/src/core/{routing → agents}/model-config.js +7 -2
  17. package/dist/src/core/catalog/catalog.js +1 -0
  18. package/dist/src/core/catalog/registry.js +44 -10
  19. package/dist/src/core/catalog/safety.js +36 -7
  20. package/dist/src/core/coordination/adapters/claude-code.js +154 -0
  21. package/dist/src/core/coordination/adapters/codex.js +137 -0
  22. package/dist/src/core/coordination/adapters/types.js +64 -0
  23. package/dist/src/core/coordination/auth.js +59 -0
  24. package/dist/src/core/coordination/bridge-lease.js +79 -0
  25. package/dist/src/core/coordination/conflict-preview.js +167 -0
  26. package/dist/src/core/coordination/contract-diff.js +106 -0
  27. package/dist/src/core/coordination/coordinator.js +552 -0
  28. package/dist/src/core/coordination/crash-recovery.js +169 -0
  29. package/dist/src/core/coordination/daemon.js +667 -0
  30. package/dist/src/core/coordination/discussion.js +340 -0
  31. package/dist/src/core/coordination/events.js +161 -0
  32. package/dist/src/core/coordination/http-api.js +118 -0
  33. package/dist/src/core/coordination/interrupt-policy.js +89 -0
  34. package/dist/src/core/coordination/lock.js +110 -0
  35. package/dist/src/core/coordination/mcp-server.js +424 -0
  36. package/dist/src/core/coordination/redaction.js +85 -0
  37. package/dist/src/core/coordination/replay.js +188 -0
  38. package/dist/src/core/coordination/retention.js +128 -0
  39. package/dist/src/core/coordination/runtime.js +21 -0
  40. package/dist/src/core/coordination/session-manager.js +366 -0
  41. package/dist/src/core/coordination/watcher.js +128 -0
  42. package/dist/src/core/{routing → delegation}/first-party-skills.js +25 -13
  43. package/dist/src/core/{routing → delegation}/handoff.js +130 -63
  44. package/dist/src/core/discovery/candidate-intelligence-evidence.js +108 -0
  45. package/dist/src/core/discovery/candidate-intelligence-types.js +1 -0
  46. package/dist/src/core/discovery/candidate-intelligence-validation.js +108 -0
  47. package/dist/src/core/discovery/candidate-intelligence.js +3 -214
  48. package/dist/src/core/discovery/community.js +12 -4
  49. package/dist/src/core/discovery/github-discovery.js +6 -2
  50. package/dist/src/core/discovery/private-discovery.js +6 -2
  51. package/dist/src/core/install/reconcile.js +1 -1
  52. package/dist/src/core/install/source.js +21 -7
  53. package/dist/src/core/install/uninstall.js +39 -3
  54. package/dist/src/core/reporting/cli-guide.js +10 -6
  55. package/dist/src/core/reporting/completion.js +61 -109
  56. package/dist/src/core/reporting/doctor.js +4 -6
  57. package/dist/src/core/runtime/bounded-json.js +65 -0
  58. package/dist/src/core/runtime/github.js +30 -16
  59. package/dist/src/core/runtime/mcp-recipes.js +1 -1
  60. package/dist/src/core/workspace/active-policy.js +1 -1
  61. package/docs/CANDIDATE_INTELLIGENCE.md +9 -2
  62. package/docs/CATALOG.md +1 -1
  63. package/docs/CREDENTIAL_AND_UPDATE_POLICY.md +1 -1
  64. package/docs/DEMO_SCRIPT.md +19 -23
  65. package/docs/DISCOVERED.md +251 -250
  66. package/docs/FEATURE_TEST_MATRIX.md +10 -263
  67. package/docs/GITHUB_AUTHORIZATION.md +5 -0
  68. package/docs/LIVE_COLLABORATION.md +234 -0
  69. package/docs/PROVENANCE_AND_COMPARISON.md +1 -1
  70. package/docs/REFERENCE.md +163 -0
  71. package/docs/RELEASE_REVIEW.md +1 -2
  72. package/docs/TESTING.md +17 -1
  73. package/docs/USER_TEST_GUIDE.md +138 -3
  74. package/docs/assets/loadout-discover-activate.webp +0 -0
  75. package/docs/assets/loadout-handoff-coordinate.webp +0 -0
  76. package/docs/assets/loadout-social-preview.png +0 -0
  77. package/docs/decisions/001-coordination-jsonl-locking.md +35 -0
  78. package/docs/decisions/002-local-daemon-authentication.md +32 -0
  79. package/docs/decisions/003-bounded-agent-discussions.md +91 -0
  80. package/docs/specs/BOUNDED_AGENT_DISCUSSIONS.md +169 -0
  81. package/docs/superpowers/plans/2026-09-03-coordination-hardening.md +231 -0
  82. package/docs/superpowers/plans/2026-09-03-release-readiness.md +232 -0
  83. package/docs/superpowers/plans/2026-09-04-bounded-agent-discussions.md +121 -0
  84. package/package.json +18 -7
  85. package/skills/loadout-handoff/SKILL.md +238 -0
  86. package/MASTER_PLAN.md +0 -2207
  87. package/dist/src/core/routing/route.js +0 -539
  88. package/docs/ACTIVE_SET.md +0 -53
  89. package/docs/COMPATIBILITY_POLICY.md +0 -22
  90. package/docs/CONVERSION_AND_SANDBOX.md +0 -27
  91. package/docs/EVALUATION_PROTOCOL_V1.md +0 -300
  92. package/docs/HEAD_TO_HEAD_EVALUATION.md +0 -79
  93. package/docs/PROVIDER_CONFIGURATION.md +0 -45
  94. package/docs/README_RESEARCH.md +0 -36
  95. package/docs/REPOSITORY_STABILIZATION.md +0 -190
  96. package/docs/SAFE_UPDATE_DEMO.md +0 -25
  97. package/docs/SCHEMA_DECISIONS.md +0 -25
  98. package/docs/SUBMISSION_COPY.md +0 -90
  99. package/docs/TEAM_POLICY.md +0 -18
  100. package/docs/assets/loadout-workflow.png +0 -0
  101. package/docs/superpowers/plans/2026-07-19-relatable-readme-hero.md +0 -283
  102. package/docs/superpowers/plans/2026-07-20-loadout-readme-explainer.md +0 -116
  103. package/docs/superpowers/plans/2026-07-20-project-activation-safety.md +0 -469
  104. package/docs/superpowers/specs/2026-07-19-relatable-readme-hero-design.md +0 -80
  105. package/docs/superpowers/specs/2026-07-20-loadout-readme-explainer-design.md +0 -55
  106. package/docs/superpowers/specs/2026-07-20-project-activation-safety-design.md +0 -228
  107. package/skills/loadout-router/SKILL.md +0 -120
  108. /package/dist/src/core/{routing → agents}/credentials.js +0 -0
package/CHANGELOG.md CHANGED
@@ -1,6 +1,153 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## 0.9.0 - 2026-09-03
4
+
5
+ ### Removed
6
+
7
+ - Model routing (`loadout route`, policy files, model-config routing). The
8
+ feature was too subjective and prices rotted within weeks. Handoff and the
9
+ factual coordination protocol replace model-selection advice.
10
+
11
+ ### Changed
12
+
13
+ - Moved handoff code from `src/core/routing/` to `src/core/delegation/`, and
14
+ model/credential configuration to `src/core/agents/`. API-access parsing
15
+ remains in `src/core/routing/access.ts` because it still governs setup choices.
16
+ - Renamed the `loadout-router` first-party skill to `loadout-handoff`, stripped
17
+ model advice, and focused it on delegation and factual project coordination.
18
+ - All JSON HTTP responses are now streamed through a bounded reader with
19
+ per-endpoint byte caps and timeouts. Oversized or timed-out responses
20
+ are rejected before parsing.
21
+ - Release workflow runs `verify:full` (includes coverage) instead of `verify`.
22
+ - npm description and keywords aligned with the project's actual scope.
23
+
24
+ ### Fixed
25
+
26
+ - Validated every handoff log entry against a strict Zod schema at parse time.
27
+ Schema-invalid lines are reported as corrupt without hiding valid neighbors.
28
+ - Tracking an existing provider session no longer submits an implicit snapshot
29
+ turn when automatic delivery is disabled. Provider quota is now spent only by
30
+ an explicit start/send operation or the opt-in bridge.
31
+ - Coordination tests now exercise Windows with platform-appropriate permission
32
+ assertions and launch the MCP test process through Node rather than a POSIX
33
+ package shim.
34
+
35
+ ### Added
36
+
37
+ - Bounded Claude Code ↔ Codex design rooms via `loadout coord discuss`. The two
38
+ providers alternate proposal and critique turns on one technical question,
39
+ then record a linked public transcript, final decision, alternatives, and
40
+ unresolved disagreement. Fresh and explicit existing sessions are supported.
41
+ - Discussion safety controls: exact preflight turn accounting, 1-8 rounds, a
42
+ hard paid-turn budget, a bounded per-turn timeout, sequential reply IDs,
43
+ no-edit/no-tool prompts, singleton bridge ownership, kill-switch checks, and
44
+ visible failure without silent provider retries.
45
+
46
+ - Live coordination module (`loadout coordinate`) with typed events for
47
+ contracts, file ownership, decisions, progress updates, and acknowledgements.
48
+ Events use monotonic sequence numbers and cursor-based reads so reconnecting
49
+ agents never miss a message.
50
+ - `loadout serve` starts an MCP server exposing the same coordination tools
51
+ so both Claude Code and Codex can connect to a shared project coordinator.
52
+ The MCP runtime is packaged and smoke-tested as a normal dependency.
53
+ - Provider-session bridge commands backed by Claude Code's print-mode CLI and
54
+ the official Codex SDK. The bridge resumes explicit session IDs and delivers
55
+ relevant events as follow-up turns at safe boundaries; it does not claim
56
+ mid-turn injection or shared private context.
57
+ - Bridge safeguards: one process per project, concurrent cross-provider
58
+ delivery, passive updates, an automatic-turn cap, untrusted-data framing,
59
+ owner-only session state, and provider responses that are displayed but not
60
+ persisted.
61
+ - `loadout daemon start` runs a local HTTP coordination server with REST API,
62
+ SSE push subscriptions, and a live web dashboard showing contracts, file
63
+ ownership, agent activity, and real-time event feed.
64
+ - Automatic secret redaction — API keys, tokens, passwords, JWTs, and other
65
+ credentials are stripped from coordination events at the canonical storage
66
+ boundary before CLI, MCP, or HTTP writes are persisted.
67
+ - Log retention and compaction (`loadout coord compact`) — configurable max
68
+ events and max age, atomic log rewrite with archived backup.
69
+ - Live file watcher (`loadout coord watch`) detects new coordination events
70
+ via `fs.watch` with sub-second latency, no daemon required.
71
+ - `loadout coord status` shows a colored terminal overview of ownership,
72
+ contracts, and acknowledgement state.
73
+ - Conflict preview (`loadout coord conflicts`) — before an agent writes, shows
74
+ what the other agent changed in the same files with git diffs.
75
+ - Contract diffing (`loadout coord diff`) — auto-generates a structured delta
76
+ when a contract revision bumps, showing exactly what changed.
77
+ - Coordination replay (`loadout coord replay`) — plays back the full
78
+ coordination timeline as a formatted narrative story.
79
+
80
+ ## 0.8.0 - 2026-09-02
81
+
82
+ ### Security
83
+
84
+ - Reject a remote registry bundle whose `digest` is not a SHA-256 hex string,
85
+ and verify the resolved cache path stays under the cache root, before any
86
+ recursive delete. A crafted digest could previously escape the cache and
87
+ delete an arbitrary user-accessible directory.
88
+ - Fail closed in the safety scanner. Files that are oversized, unreadable, or
89
+ too deeply nested are reported as a blocking `uninspectable` finding instead
90
+ of being skipped silently, so an unreviewable file can no longer produce a
91
+ clean report.
92
+ - Apply a timeout, byte cap, and file cap to every repository fetch by default
93
+ rather than only when a caller opts in, and bound registry responses by time
94
+ and decoded size.
95
+
96
+ ### Fixed
97
+
98
+ - Parse the handoff log line by line. A single truncated write previously made
99
+ the whole inbox appear empty; good lines now survive and the corrupt line is
100
+ reported.
101
+ - Settle handoff tasks on `error` and `cancel` as well as `done`, via an
102
+ explicit `resolves` field, so a failed task no longer stays pending forever.
103
+ - Migrate handoff instruction blocks already written into `CLAUDE.md` and
104
+ `AGENTS.md` that still name retired commands.
105
+ - Report installed skills as a count of skills rather than a sum of every
106
+ nested file, which overstated 44 skills as 584 items.
107
+
108
+ ### Changed
109
+
110
+ - Generate shell completions from the Commander command tree so they cannot
111
+ advertise commands the CLI does not register.
112
+ - Rebuild `loadout route` around a routing policy the user owns
113
+ (`~/.loadout/routing.json`, three buckets) instead of a fixed phase-to-tier
114
+ table, and narrow the model catalog to the current Claude and GPT-5.6 tiers.
115
+ - Collapse handoff to a single command that sets itself up on first use.
116
+
117
+ ### Added
118
+
119
+ - `scripts/check-documented-commands.mjs` in the evidence gate: documentation
120
+ may no longer reference a command the CLI does not have.
121
+
122
+ ## 0.7.0 - 2026-08-31
123
+
124
+ ### Added
125
+
126
+ - First-party skills (`loadout skills list|install|remove`) shipping
127
+ `loadout-router` and `loadout-curator`, so Loadout is usable from inside an
128
+ agent conversation rather than only from a terminal.
129
+
130
+ ### Changed
131
+
132
+ - Retire 15 redundant or dead-end commands, taking the surface from 66 to 26.
133
+ - Group the 86 flat modules in `src/core` into eight domains.
134
+ - Drop "Boost" from the mode names and explain that Maximum stays disabled.
135
+
136
+ ## 0.6.0 - 2026-08-31
137
+
138
+ ### Added
139
+
140
+ - `loadout route`, recommending a model tier for a task with real pricing.
141
+ - `loadout handoff`, a shared task log between Claude Code and Codex.
142
+
143
+ ### Changed
144
+
145
+ - Rewrite `loadout doctor` output around a health grade and actionable next
146
+ steps rather than a per-component dump.
147
+
148
+ ### Fixed
149
+
150
+ - Resolve `LOADOUT_VERSION` from both source and built layouts.
4
151
 
5
152
  ## 0.5.9 - 2026-07-21
6
153