opencode-swarm 7.13.1 → 7.13.2

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 (213) hide show
  1. package/dist/cli/index.js +1 -1
  2. package/dist/config/evidence-schema.d.ts +13 -13
  3. package/dist/config/schema.d.ts +4 -4
  4. package/dist/index.js +151 -108
  5. package/dist/tools/convene-council.d.ts +3 -3
  6. package/dist/tools/submit-phase-council-verdicts.d.ts +3 -3
  7. package/package.json +1 -1
  8. package/dist/__tests__/acknowledge-spec-drift.test.d.ts +0 -1
  9. package/dist/__tests__/cli-version.adversarial.test.d.ts +0 -1
  10. package/dist/__tests__/cli-version.test.d.ts +0 -1
  11. package/dist/__tests__/conflict-resolution.test.d.ts +0 -1
  12. package/dist/__tests__/convene-general-council.test.d.ts +0 -12
  13. package/dist/__tests__/critic_drift_verifier-whitelist.test.d.ts +0 -1
  14. package/dist/__tests__/critic_hallucination_verifier-whitelist.test.d.ts +0 -1
  15. package/dist/__tests__/disagreement-detector.test.d.ts +0 -7
  16. package/dist/__tests__/evidence-lock.adversarial.test.d.ts +0 -8
  17. package/dist/__tests__/evidence-lock.test.d.ts +0 -6
  18. package/dist/__tests__/gate-evidence.adversarial.test.d.ts +0 -7
  19. package/dist/__tests__/general-council-service.test.d.ts +0 -7
  20. package/dist/__tests__/lint-spec.test.d.ts +0 -1
  21. package/dist/__tests__/preflight-phase.test.d.ts +0 -1
  22. package/dist/__tests__/qa-gate-hardening.test.d.ts +0 -12
  23. package/dist/__tests__/req-coverage.test.d.ts +0 -1
  24. package/dist/__tests__/security-adversarial.test.d.ts +0 -1
  25. package/dist/__tests__/sounding-board-parser.test.d.ts +0 -1
  26. package/dist/__tests__/spec-hash.test.d.ts +0 -1
  27. package/dist/__tests__/spec-schema.test.d.ts +0 -1
  28. package/dist/__tests__/web-search-provider.test.d.ts +0 -6
  29. package/dist/__tests__/write-drift-evidence-requirement-coverage.test.d.ts +0 -4
  30. package/dist/adversarial-tests.test.d.ts +0 -1
  31. package/dist/agents/architect-permission.adversarial.test.d.ts +0 -5
  32. package/dist/agents/architect.commands-list.adversarial.test.d.ts +0 -1
  33. package/dist/agents/architect.commands-list.test.d.ts +0 -1
  34. package/dist/agents/architect.dark-matter.test.d.ts +0 -1
  35. package/dist/agents/architect.designer-gate.test.d.ts +0 -1
  36. package/dist/agents/architect.skip-aliases.test.d.ts +0 -1
  37. package/dist/agents/coder.test.d.ts +0 -1
  38. package/dist/agents/council-prompts.test.d.ts +0 -9
  39. package/dist/agents/council-registration.test.d.ts +0 -23
  40. package/dist/agents/explorer-consumer-contract.test.d.ts +0 -1
  41. package/dist/agents/explorer-role-boundary.test.d.ts +0 -1
  42. package/dist/agents/prompt-namespace.test.d.ts +0 -1
  43. package/dist/agents/reviewer.test.d.ts +0 -1
  44. package/dist/agents/test-engineer.adversarial.test.d.ts +0 -5
  45. package/dist/agents/test-engineer.security.test.d.ts +0 -1
  46. package/dist/background/trigger.vulnerability.test.d.ts +0 -1
  47. package/dist/commands/archive.error-handling.test.d.ts +0 -9
  48. package/dist/commands/benchmark.error-handling.test.d.ts +0 -7
  49. package/dist/commands/brainstorm.test.d.ts +0 -1
  50. package/dist/commands/clashes-with-native-cc.test.d.ts +0 -10
  51. package/dist/commands/command-adapters.security.test.d.ts +0 -14
  52. package/dist/commands/command-names.test.d.ts +0 -1
  53. package/dist/commands/commands.test.d.ts +0 -1
  54. package/dist/commands/conflict-registry.structural.test.d.ts +0 -1
  55. package/dist/commands/conflict-registry.test.d.ts +0 -5
  56. package/dist/commands/council.test.d.ts +0 -4
  57. package/dist/commands/curate.test.d.ts +0 -1
  58. package/dist/commands/dark-matter.error-handling.test.d.ts +0 -1
  59. package/dist/commands/first-run.test.d.ts +0 -11
  60. package/dist/commands/full-auto-config-guard.test.d.ts +0 -7
  61. package/dist/commands/full-auto-discoverability.test.d.ts +0 -8
  62. package/dist/commands/full-auto-registration.test.d.ts +0 -5
  63. package/dist/commands/full-auto-sessionid.test.d.ts +0 -5
  64. package/dist/commands/full-auto.regression.test.d.ts +0 -10
  65. package/dist/commands/full-auto.test.d.ts +0 -6
  66. package/dist/commands/handoff.error-handling.adversarial.test.d.ts +0 -1
  67. package/dist/commands/handoff.error-handling.test.d.ts +0 -1
  68. package/dist/commands/index.help-text.test.d.ts +0 -1
  69. package/dist/commands/index.not-found.adversarial.test.d.ts +0 -12
  70. package/dist/commands/index.not-found.test.d.ts +0 -11
  71. package/dist/commands/qa-gates.test.d.ts +0 -1
  72. package/dist/commands/registration-parity.test.d.ts +0 -1
  73. package/dist/commands/registry-documentation.test.d.ts +0 -1
  74. package/dist/commands/registry-type.test.d.ts +0 -1
  75. package/dist/commands/registry.find-similar.adversarial.test.d.ts +0 -1
  76. package/dist/commands/registry.find-similar.test.d.ts +0 -1
  77. package/dist/commands/registry.test.d.ts +0 -1
  78. package/dist/commands/shortcut-routing.test.d.ts +0 -11
  79. package/dist/commands/simulate.report-write.adversarial.test.d.ts +0 -1
  80. package/dist/commands/simulate.report-write.test.d.ts +0 -1
  81. package/dist/commands/turbo-registration.test.d.ts +0 -5
  82. package/dist/commands/turbo-sessionid.test.d.ts +0 -5
  83. package/dist/commands/turbo.regression.test.d.ts +0 -11
  84. package/dist/commands/turbo.test.d.ts +0 -5
  85. package/dist/config/constants.architect-whitelist.test.d.ts +0 -1
  86. package/dist/config/constants.security.test.d.ts +0 -1
  87. package/dist/council/__tests__/council-evidence-writer.adversarial.test.d.ts +0 -6
  88. package/dist/db/global-db.test.d.ts +0 -7
  89. package/dist/db/project-db.test.d.ts +0 -4
  90. package/dist/db/qa-gate-profile.test.d.ts +0 -4
  91. package/dist/diff/__tests__/semantic-classifier.test.d.ts +0 -1
  92. package/dist/diff/__tests__/summary-generator.test.d.ts +0 -1
  93. package/dist/gate-evidence.test.d.ts +0 -1
  94. package/dist/hooks/__tests__/repo-graph-builder.test.d.ts +0 -12
  95. package/dist/hooks/__tests__/semantic-diff-injection.test.d.ts +0 -1
  96. package/dist/hooks/agent-activity.test.d.ts +0 -1
  97. package/dist/hooks/cc-command-intercept.test.d.ts +0 -1
  98. package/dist/hooks/curator-drift-advisory.test.d.ts +0 -1
  99. package/dist/hooks/delegation-gate.evidence.test.d.ts +0 -4
  100. package/dist/hooks/delegation-gate.getEvidenceTaskId.test.d.ts +0 -20
  101. package/dist/hooks/delegation-gate.plan-fallback-security.test.d.ts +0 -13
  102. package/dist/hooks/delegation-gate.plan-fallback.test.d.ts +0 -5
  103. package/dist/hooks/delegation-gate.seed-state.test.d.ts +0 -1
  104. package/dist/hooks/delegation-gate.turbo-evidence.test.d.ts +0 -8
  105. package/dist/hooks/delegation-gate.verify.test.d.ts +0 -11
  106. package/dist/hooks/delegation-ledger.test.d.ts +0 -11
  107. package/dist/hooks/diff-scope.test.d.ts +0 -1
  108. package/dist/hooks/incremental-verify.test.d.ts +0 -1
  109. package/dist/hooks/loop-detector.test.d.ts +0 -1
  110. package/dist/hooks/scope-guard-throw-behavior.test.d.ts +0 -15
  111. package/dist/hooks/scope-guard.adversarial.test.d.ts +0 -1
  112. package/dist/hooks/scope-guard.test.d.ts +0 -14
  113. package/dist/hooks/self-review.test.d.ts +0 -14
  114. package/dist/hooks/slop-detector.adversarial.test.d.ts +0 -1
  115. package/dist/hooks/slop-detector.test.d.ts +0 -1
  116. package/dist/hooks/spawn-helper.test.d.ts +0 -1
  117. package/dist/hooks/watchdog.integration.test.d.ts +0 -9
  118. package/dist/index.adversarial-bootstrap.test.d.ts +0 -1
  119. package/dist/index.bootstrap-adversarial.test.d.ts +0 -1
  120. package/dist/index.bootstrap-directory.test.d.ts +0 -1
  121. package/dist/model-fallback.adversarial.test.d.ts +0 -22
  122. package/dist/model-fallback.test.d.ts +0 -12
  123. package/dist/mutation/__tests__/engine.adversarial.test.d.ts +0 -1
  124. package/dist/mutation/__tests__/engine.test.d.ts +0 -1
  125. package/dist/mutation/__tests__/equivalence.adversarial.test.d.ts +0 -1
  126. package/dist/mutation/__tests__/equivalence.test.d.ts +0 -1
  127. package/dist/mutation/__tests__/gate.adversarial.test.d.ts +0 -1
  128. package/dist/mutation/__tests__/gate.test.d.ts +0 -1
  129. package/dist/mutation/__tests__/generator.test.d.ts +0 -1
  130. package/dist/parallel/dispatcher/noop-dispatcher.test.d.ts +0 -10
  131. package/dist/plan/checkpoint.test.d.ts +0 -1
  132. package/dist/plan/ledger-integrity.test.d.ts +0 -5
  133. package/dist/plan/ledger-snapshot-adversarial.test.d.ts +0 -1
  134. package/dist/plan/ledger.test.d.ts +0 -1
  135. package/dist/plan/manager.cas-backoff.test.d.ts +0 -10
  136. package/dist/plan/manager.ledger-aware.test.d.ts +0 -1
  137. package/dist/plan/manager.loadplan-validation-guard.test.d.ts +0 -13
  138. package/dist/plan/manager.update-task-status.test.d.ts +0 -1
  139. package/dist/plan/migration-revert.regression.test.d.ts +0 -8
  140. package/dist/prm/__tests__/course-correction.test.d.ts +0 -1
  141. package/dist/prm/__tests__/escalation-queue-drain.test.d.ts +0 -1
  142. package/dist/prm/__tests__/escalation.test.d.ts +0 -1
  143. package/dist/prm/__tests__/index.test.d.ts +0 -1
  144. package/dist/prm/__tests__/integration.test.d.ts +0 -1
  145. package/dist/prm/__tests__/pattern-detector.test.d.ts +0 -5
  146. package/dist/prm/__tests__/replay.test.d.ts +0 -1
  147. package/dist/prm/__tests__/trajectory-store.test.d.ts +0 -7
  148. package/dist/sast/semgrep.test.d.ts +0 -1
  149. package/dist/scope/scope-persistence.test.d.ts +0 -13
  150. package/dist/services/compaction-service.test.d.ts +0 -1
  151. package/dist/services/config-doctor.security.test.d.ts +0 -1
  152. package/dist/services/config-doctor.test.d.ts +0 -1
  153. package/dist/services/status-service.turbo-indicator.test.d.ts +0 -5
  154. package/dist/services/tool-doctor.test.d.ts +0 -1
  155. package/dist/state.agent-run-context.test.d.ts +0 -10
  156. package/dist/state.rehydrate.test.d.ts +0 -1
  157. package/dist/state.rehydration-adversarial.test.d.ts +0 -1
  158. package/dist/state.rehydration-integration.test.d.ts +0 -1
  159. package/dist/state.session-restart.test.d.ts +0 -7
  160. package/dist/state.telemetry.test.d.ts +0 -1
  161. package/dist/telemetry.test.d.ts +0 -1
  162. package/dist/test-impact/__tests__/analyzer-import-fix.adversarial.test.d.ts +0 -1
  163. package/dist/test-impact/__tests__/analyzer-import-fix.test.d.ts +0 -1
  164. package/dist/test-impact/__tests__/analyzer.adversarial.test.d.ts +0 -1
  165. package/dist/test-impact/__tests__/analyzer.test.d.ts +0 -1
  166. package/dist/test-impact/__tests__/council-fixes.test.d.ts +0 -1
  167. package/dist/test-impact/__tests__/failure-classifier.adversarial.test.d.ts +0 -1
  168. package/dist/test-impact/__tests__/failure-classifier.test.d.ts +0 -1
  169. package/dist/test-impact/__tests__/flaky-detector.adversarial.test.d.ts +0 -1
  170. package/dist/test-impact/__tests__/flaky-detector.test.d.ts +0 -1
  171. package/dist/test-impact/__tests__/history-store.adversarial.test.d.ts +0 -1
  172. package/dist/test-impact/__tests__/history-store.test.d.ts +0 -1
  173. package/dist/test-impact/__tests__/test-impact.adversarial.test.d.ts +0 -1
  174. package/dist/test-impact/__tests__/test-impact.test.d.ts +0 -1
  175. package/dist/tools/__tests__/barrel-exports.test.d.ts +0 -1
  176. package/dist/tools/__tests__/diff-ast-fallback.test.d.ts +0 -1
  177. package/dist/tools/__tests__/diff-markdown-summary.test.d.ts +0 -1
  178. package/dist/tools/__tests__/diff-semantic.test.d.ts +0 -1
  179. package/dist/tools/__tests__/diff-summary.adversarial.test.d.ts +0 -1
  180. package/dist/tools/__tests__/diff-summary.test.d.ts +0 -1
  181. package/dist/tools/__tests__/mutation-test.adversarial.test.d.ts +0 -1
  182. package/dist/tools/__tests__/mutation-test.sourcefiles.test.d.ts +0 -1
  183. package/dist/tools/__tests__/mutation-test.test.d.ts +0 -1
  184. package/dist/tools/__tests__/repo-graph-walk.test.d.ts +0 -16
  185. package/dist/tools/__tests__/test-runner-history.test.d.ts +0 -1
  186. package/dist/tools/__tests__/test-runner-impact.adversarial.test.d.ts +0 -1
  187. package/dist/tools/__tests__/test-runner-impact.test.d.ts +0 -1
  188. package/dist/tools/__tests__/test-runner-source-files.test.d.ts +0 -1
  189. package/dist/tools/barrel-export-check-gate-status.test.d.ts +0 -6
  190. package/dist/tools/batch-symbols.test.d.ts +0 -1
  191. package/dist/tools/check-gate-status.adversarial.test.d.ts +0 -1
  192. package/dist/tools/check-gate-status.gates.test.d.ts +0 -1
  193. package/dist/tools/check-gate-status.plugin-registration.test.d.ts +0 -1
  194. package/dist/tools/curator-analyze.test.d.ts +0 -1
  195. package/dist/tools/knowledge-tools.integration.test.d.ts +0 -1
  196. package/dist/tools/mutation-test.security.test.d.ts +0 -1
  197. package/dist/tools/plugin-registration-adversarial.test.d.ts +0 -1
  198. package/dist/tools/resolve-working-directory.test.d.ts +0 -1
  199. package/dist/tools/save-plan.subdirectory-rejection.test.d.ts +0 -1
  200. package/dist/tools/search.adversarial.test.d.ts +0 -1
  201. package/dist/tools/search.test.d.ts +0 -1
  202. package/dist/tools/suggest-patch.adversarial.test.d.ts +0 -1
  203. package/dist/tools/suggest-patch.test.d.ts +0 -1
  204. package/dist/tools/test-runner.security-adversarial.test.d.ts +0 -5
  205. package/dist/tools/update-task-status.adversarial.test.d.ts +0 -13
  206. package/dist/tools/update-task-status.gates.test.d.ts +0 -1
  207. package/dist/tools/update-task-status.test.d.ts +0 -1
  208. package/dist/tools/update-task-status.turbo-bypass.test.d.ts +0 -1
  209. package/dist/tools/verify-six-tools-registration.test.d.ts +0 -9
  210. package/dist/tools/write-mutation-evidence.test.d.ts +0 -1
  211. package/dist/transient-retry.test.d.ts +0 -10
  212. package/dist/utils/__tests__/bun-compat.test.d.ts +0 -11
  213. package/dist/utils/__tests__/timeout.test.d.ts +0 -12
@@ -1,20 +0,0 @@
1
- /**
2
- * delegation-gate.getEvidenceTaskId.test.ts
3
- *
4
- * Verification tests for the async conversion of getEvidenceTaskId.
5
- * Tests the function behavior by recreating its logic in isolation since
6
- * the function is private (not exported) and depends on fs.promises.
7
- *
8
- * Covers:
9
- * 1. Function returns a Promise (is async)
10
- * 2. Function resolves to correct task ID when currentTaskId is set
11
- * 3. Function resolves to correct task ID when lastCoderDelegationTaskId is set
12
- * 4. Function falls back to taskWorkflowStates when above are null
13
- * 5. Function returns null when plan.json doesn't exist (ENOENT)
14
- * 6. Function returns null when plan.json has no in_progress tasks
15
- * 7. Function returns null when session has direct task_id (early return path via currentTaskId)
16
- * 8. Path traversal is blocked (security hardening)
17
- * 9. Malformed JSON returns null
18
- * 10. Empty/invalid directory returns null
19
- */
20
- export {};
@@ -1,13 +0,0 @@
1
- /**
2
- * Adversarial security tests for getEvidenceTaskId plan.json fallback.
3
- *
4
- * Tests security-hardened fallback mechanism that reads .swarm/plan.json only after
5
- * exhausting live task state. Focuses on attack vectors:
6
- * - Path traversal via plan.json path
7
- * - Malformed durable state (JSON bombs, circular refs)
8
- * - Invalid directory inputs
9
- * - Oversized/hostile inputs
10
- * - Boundary violations
11
- * - Symlink attacks
12
- */
13
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Tests for getEvidenceTaskId plan.json fallback behavior.
3
- * Verifies durable task ID recovery from .swarm/plan.json when in-memory state is empty.
4
- */
5
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- /**
2
- * Tests for Task 3.16: Propagate turboMode through evidence recording
3
- *
4
- * This verifies that when a session has turboMode enabled, the turbo flag is
5
- * recorded in the evidence JSON files for all agent delegations (reviewer,
6
- * test_engineer, docs, designer, critic, explorer, sme, coder).
7
- */
8
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * Verification tests for callID→evidenceTaskId map in delegation-gate.ts
3
- *
4
- * Tests verify the map behavior indirectly through evidence recording outcomes:
5
- * 1. Map stores callID→evidenceTaskId after determining the taskId
6
- * 2. Map is checked first before getEvidenceTaskId fallback
7
- * 3. Map entry is cleaned up after successful evidence recording
8
- * 4. Map entry is cleaned up even when evidence recording errors
9
- * 5. Fallback works when storedTaskId is not in map
10
- */
11
- export {};
@@ -1,11 +0,0 @@
1
- /**
2
- * delegation-ledger.test.ts
3
- *
4
- * Tests for delegation-ledger hook (Task 3.2):
5
- * 1. toolAfter records entries in ledgerBySession
6
- * 2. onArchitectResume generates DELEGATION SUMMARY when non-architect tool calls exist
7
- * 3. onArchitectResume is no-op when no entries exist
8
- * 4. Success is false when output starts with 'Error:'
9
- * 5. Success is true for normal output
10
- */
11
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,15 +0,0 @@
1
- /**
2
- * Smoke test: documents the confirmed behavior that tool.execute.before hook
3
- * throws propagate as tool rejection, not session crash.
4
- *
5
- * VERIFIED from src/hooks/guardrails.ts existing patterns:
6
- * - Loop circuit breaker (count >= 5): throw new Error('CIRCUIT BREAKER...')
7
- * - Full test suite block: throw new Error('BLOCKED: Full test suite...')
8
- * - Plan state violation: throw new Error('PLAN STATE VIOLATION...')
9
- * All throw in toolBefore, and the plugin propagates as tool rejection.
10
- *
11
- * SAFE MECHANISM for scope-guard.ts:
12
- * throw new Error(`SCOPE VIOLATION: [agent] attempted to modify [file] not in task [id] scope`)
13
- * This is the CORRECT blocking pattern. DO NOT use return-value signals.
14
- */
15
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- /**
2
- * scope-guard.test.ts
3
- *
4
- * Tests for scope-guard hook (Task 3.1):
5
- * 1. Returns early (no throw) when guard is disabled (config.enabled = false)
6
- * 2. Returns early when tool is not in WRITE_TOOLS set (e.g., 'read')
7
- * 3. Returns early when session is the architect (agentName = 'Architect')
8
- * 4. Returns early when declaredCoderScope is null (no scope declared)
9
- * 5. Throws 'SCOPE VIOLATION' when non-architect writes file outside declared scope
10
- * 6. Does NOT throw when non-architect writes file INSIDE declared scope
11
- * 7. Sanitizes path with \r\n to prevent log injection (SEC-1 fix)
12
- * 8. isFileInScope correctly handles exact match and directory containment
13
- */
14
- export {};
@@ -1,14 +0,0 @@
1
- /**
2
- * self-review.test.ts
3
- *
4
- * Tests for self-review hook (Task 4.1):
5
- * 1. Advisory injected when architect calls update_task_status with status=in_progress
6
- * 2. NOT injected when status=completed (not in_progress)
7
- * 3. NOT injected when calling session is not architect
8
- * 4. Turbo-skip: NOT injected when session.turboMode=true and skip_in_turbo=true
9
- * 5. Disabled: NOT injected when enabled=false
10
- * 6. Advisory text contains self-review focus items
11
- * 7. injectAdvisory errors are caught (non-blocking)
12
- * 8. No advisory for other tools (not update_task_status)
13
- */
14
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- /**
2
- * WATCHDOG INTEGRATION TEST (v6.31 Task 3.5)
3
- *
4
- * Integration test covering coordinated watchdog behaviour across:
5
- * - scope-guard (3.1): toolBefore hook blocks out-of-scope writes by throwing
6
- * - delegation-ledger (3.2): toolAfter hook records tool calls, onArchitectResume generates DELEGATION SUMMARY
7
- * - loop-detector enhancement (3.3): at count=3, structured escalation message includes loop pattern + accomplishment + alternative suggestion
8
- */
9
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,22 +0,0 @@
1
- /**
2
- * Adversarial tests for model fallback schema and state (v6.33)
3
- *
4
- * Tests attack vectors against:
5
- * 1. AgentOverrideConfigSchema fallback_models field
6
- * 2. AgentSessionState model_fallback_index and modelFallbackExhausted
7
- *
8
- * ADVERSARIAL TEST CASES:
9
- * 1. fallback_models with 1000 entries — should Zod-reject (max 3)
10
- * 2. fallback_models with non-string values (numbers, objects, null)
11
- * 3. fallback_models with empty strings ""
12
- * 4. fallback_models with extremely long model name strings (10K chars)
13
- * 5. model_fallback_index set to NaN — should it be NaN or coerced?
14
- * 6. model_fallback_index set to -1 — negative index
15
- * 7. model_fallback_index set to MAX_SAFE_INTEGER — overflow risk?
16
- * 8. modelFallbackExhausted set to undefined in deserialization — should default to false
17
- * 9. Circular reference in fallback_models array elements
18
- * 10. Prototype pollution via __proto__ in fallback_models
19
- * 11. AgentOverrideConfigSchema.parse with all fields including fallback_models, verify no field collision
20
- * 12. Serialization with model_fallback_index as a float (3.14) — should survive round-trip
21
- */
22
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * Tests for model fallback schema and state (v6.33)
3
- *
4
- * Covers:
5
- * 1. AgentOverrideConfigSchema fallback_models field parsing
6
- * 2. State initialization of model_fallback_index and modelFallbackExhausted
7
- * 3. Serialization round-trip for both fields
8
- * 4. Deserialization defaults when fields are missing
9
- * 5. Migration safety via ensureAgentSession
10
- * 6. Edge cases for schema and state
11
- */
12
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * Tests for the no-op dispatcher (Phase 5 dark foundation).
3
- *
4
- * Proves:
5
- * - disabled config → reject with 'parallelization_disabled'
6
- * - no file I/O, no side effects on dispatch
7
- * - handles() always empty
8
- * - shutdown() is a no-op
9
- */
10
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Tests for ledger integrity functions: readLedgerEventsWithIntegrity,
3
- * quarantineLedgerSuffix, and replayWithIntegrity
4
- */
5
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * Tests for retryCasWithBackoff — Phase 4 (CAS retry with exponential backoff).
3
- *
4
- * Verifies:
5
- * - Backoff schedule: 5ms start, doubles each attempt, cap 250ms, ±25% jitter
6
- * - plan_ledger_cas_retry telemetry is emitted on each retry (hash prefixes only)
7
- * - PlanConcurrentModificationError is thrown when retries are exhausted
8
- * - verifyValid returning false causes early exit without error
9
- */
10
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- /**
2
- * Tests for the migration-aware identity guard in loadPlan()'s validation-failure
3
- * catch path (lines ~299-323 of manager.ts).
4
- *
5
- * When plan.json fails schema validation, the old code unconditionally called
6
- * replayFromLedger(). This allowed a post-migration ledger (old identity) to
7
- * overwrite a schema-invalid but correctly migrated plan.json.
8
- *
9
- * The fix: extract swarm+title from the raw JSON (even if schema validation
10
- * fails), compare against the first ledger event's plan_id, and only replay
11
- * when identities match.
12
- */
13
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- /**
2
- * Regression tests for GitHub issues #383/#384:
3
- * PlanSyncWorker Aggressively Reverts Plan Files
4
- *
5
- * These tests verify that the fixes introduced in the debug-issues-383-384 branch
6
- * prevent the destructive revert behavior and related edge cases.
7
- */
8
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * PRM Pattern Detector Tests
3
- * Comprehensive tests for all 5 pattern detectors and orchestration function
4
- */
5
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * TRAJECTORY STORE TESTS
3
- *
4
- * Unit tests for the session-level trajectory storage module.
5
- * Uses real file operations in a temp directory to verify behavior.
6
- */
7
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,13 +0,0 @@
1
- /**
2
- * Tests for scope-persistence (#519 v6.71.1).
3
- *
4
- * Covers:
5
- * - Atomic write + read round-trip
6
- * - Schema-version fail-closed on unknown version
7
- * - TTL expiry returns null
8
- * - lstat symlink guard
9
- * - Plan.json fallback (files_touched) for active task
10
- * - Resolve chain order: memory → disk → plan.json → pending-map
11
- * - Invalid taskId rejection
12
- */
13
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * Tests for Task 3.18: Turbo Mode indicator in status output
3
- * Verifies that the status-service surfaces the current bypass mode
4
- */
5
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- /**
2
- * Tests for AgentRunContext and getRunContext (Phase 3 — dark foundation).
3
- *
4
- * Verifies:
5
- * 1. swarmState maps are the same objects as defaultRunContext maps (facade equivalence).
6
- * 2. Distinct AgentRunContext instances do not share per-run maps.
7
- * 3. toolAggregates is intentionally process-global (shared reference).
8
- * 4. getRunContext with no arg / unknown runId returns defaultRunContext.
9
- */
10
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,7 +0,0 @@
1
- /**
2
- * Adversarial security tests for Task 2.15: Session restart rehydration
3
- *
4
- * ONLY attack vectors - malformed inputs, oversized payloads, injection attempts, boundary violations
5
- * Tests the security hardening of rehydrateSessionFromDisk, readPlanFromDisk, and readGateEvidenceFromDisk
6
- */
7
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,16 +0,0 @@
1
- /**
2
- * Regression coverage for the repo-graph walker (issue #704).
3
- *
4
- * Each test installs a fresh fixture under a tmp dir and asserts the walker
5
- * cannot be tricked into:
6
- * - infinite recursion via symlink cycles,
7
- * - exceeding the wall-clock budget on a slow filesystem,
8
- * - exceeding the file cap during traversal (vs. post-truncation),
9
- * - scanning a refused top-level workspace root.
10
- *
11
- * Symlink-loop coverage is POSIX-only; the test bails on Windows because
12
- * creating a directory symlink there requires Developer Mode. The walker's
13
- * cycle defense itself is platform-agnostic — see `seenRealPaths` in
14
- * src/tools/repo-graph.ts.
15
- */
16
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * Adversarial tests for barrel export of check_gate_status in src/tools/index.ts
3
- * Tests for: duplicate export collisions, broken module path, missing symbol,
4
- * and accidental export-surface divergence
5
- */
6
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,5 +0,0 @@
1
- /**
2
- * ADVERSARIAL SECURITY TESTS FOR test-runner.ts
3
- * Testing ONLY attack vectors - identifies which inputs are REJECTED vs ACCEPTED
4
- */
5
- export {};
@@ -1,13 +0,0 @@
1
- /**
2
- * ADVERSARIAL SECURITY TESTS for src/tools/update-task-status.ts
3
- *
4
- * Tests attack vectors against the fallbackDir parameter which bypasses
5
- * the working_directory validation guards.
6
- *
7
- * Attack vectors tested:
8
- * 1. Null byte injection in fallbackDir
9
- * 2. Path traversal sequences (../../etc) in fallbackDir
10
- * 3. Empty string fallbackDir (falsy check edge case)
11
- * 4. Command injection via path.join with malicious fallbackDir
12
- */
13
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};