opencode-swarm 7.13.1 → 7.14.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.
- package/dist/cli/index.js +144 -15
- package/dist/commands/deep-dive.d.ts +5 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/registry.d.ts +14 -0
- package/dist/config/evidence-schema.d.ts +13 -13
- package/dist/config/schema.d.ts +4 -4
- package/dist/index.js +422 -123
- package/dist/tools/convene-council.d.ts +3 -3
- package/dist/tools/submit-phase-council-verdicts.d.ts +3 -3
- package/package.json +1 -1
- package/dist/__tests__/acknowledge-spec-drift.test.d.ts +0 -1
- package/dist/__tests__/cli-version.adversarial.test.d.ts +0 -1
- package/dist/__tests__/cli-version.test.d.ts +0 -1
- package/dist/__tests__/conflict-resolution.test.d.ts +0 -1
- package/dist/__tests__/convene-general-council.test.d.ts +0 -12
- package/dist/__tests__/critic_drift_verifier-whitelist.test.d.ts +0 -1
- package/dist/__tests__/critic_hallucination_verifier-whitelist.test.d.ts +0 -1
- package/dist/__tests__/disagreement-detector.test.d.ts +0 -7
- package/dist/__tests__/evidence-lock.adversarial.test.d.ts +0 -8
- package/dist/__tests__/evidence-lock.test.d.ts +0 -6
- package/dist/__tests__/gate-evidence.adversarial.test.d.ts +0 -7
- package/dist/__tests__/general-council-service.test.d.ts +0 -7
- package/dist/__tests__/lint-spec.test.d.ts +0 -1
- package/dist/__tests__/preflight-phase.test.d.ts +0 -1
- package/dist/__tests__/qa-gate-hardening.test.d.ts +0 -12
- package/dist/__tests__/req-coverage.test.d.ts +0 -1
- package/dist/__tests__/security-adversarial.test.d.ts +0 -1
- package/dist/__tests__/sounding-board-parser.test.d.ts +0 -1
- package/dist/__tests__/spec-hash.test.d.ts +0 -1
- package/dist/__tests__/spec-schema.test.d.ts +0 -1
- package/dist/__tests__/web-search-provider.test.d.ts +0 -6
- package/dist/__tests__/write-drift-evidence-requirement-coverage.test.d.ts +0 -4
- package/dist/adversarial-tests.test.d.ts +0 -1
- package/dist/agents/architect-permission.adversarial.test.d.ts +0 -5
- package/dist/agents/architect.commands-list.adversarial.test.d.ts +0 -1
- package/dist/agents/architect.commands-list.test.d.ts +0 -1
- package/dist/agents/architect.dark-matter.test.d.ts +0 -1
- package/dist/agents/architect.designer-gate.test.d.ts +0 -1
- package/dist/agents/architect.skip-aliases.test.d.ts +0 -1
- package/dist/agents/coder.test.d.ts +0 -1
- package/dist/agents/council-prompts.test.d.ts +0 -9
- package/dist/agents/council-registration.test.d.ts +0 -23
- package/dist/agents/explorer-consumer-contract.test.d.ts +0 -1
- package/dist/agents/explorer-role-boundary.test.d.ts +0 -1
- package/dist/agents/prompt-namespace.test.d.ts +0 -1
- package/dist/agents/reviewer.test.d.ts +0 -1
- package/dist/agents/test-engineer.adversarial.test.d.ts +0 -5
- package/dist/agents/test-engineer.security.test.d.ts +0 -1
- package/dist/background/trigger.vulnerability.test.d.ts +0 -1
- package/dist/commands/archive.error-handling.test.d.ts +0 -9
- package/dist/commands/benchmark.error-handling.test.d.ts +0 -7
- package/dist/commands/brainstorm.test.d.ts +0 -1
- package/dist/commands/clashes-with-native-cc.test.d.ts +0 -10
- package/dist/commands/command-adapters.security.test.d.ts +0 -14
- package/dist/commands/command-names.test.d.ts +0 -1
- package/dist/commands/commands.test.d.ts +0 -1
- package/dist/commands/conflict-registry.structural.test.d.ts +0 -1
- package/dist/commands/conflict-registry.test.d.ts +0 -5
- package/dist/commands/council.test.d.ts +0 -4
- package/dist/commands/curate.test.d.ts +0 -1
- package/dist/commands/dark-matter.error-handling.test.d.ts +0 -1
- package/dist/commands/first-run.test.d.ts +0 -11
- package/dist/commands/full-auto-config-guard.test.d.ts +0 -7
- package/dist/commands/full-auto-discoverability.test.d.ts +0 -8
- package/dist/commands/full-auto-registration.test.d.ts +0 -5
- package/dist/commands/full-auto-sessionid.test.d.ts +0 -5
- package/dist/commands/full-auto.regression.test.d.ts +0 -10
- package/dist/commands/full-auto.test.d.ts +0 -6
- package/dist/commands/handoff.error-handling.adversarial.test.d.ts +0 -1
- package/dist/commands/handoff.error-handling.test.d.ts +0 -1
- package/dist/commands/index.help-text.test.d.ts +0 -1
- package/dist/commands/index.not-found.adversarial.test.d.ts +0 -12
- package/dist/commands/index.not-found.test.d.ts +0 -11
- package/dist/commands/qa-gates.test.d.ts +0 -1
- package/dist/commands/registration-parity.test.d.ts +0 -1
- package/dist/commands/registry-documentation.test.d.ts +0 -1
- package/dist/commands/registry-type.test.d.ts +0 -1
- package/dist/commands/registry.find-similar.adversarial.test.d.ts +0 -1
- package/dist/commands/registry.find-similar.test.d.ts +0 -1
- package/dist/commands/registry.test.d.ts +0 -1
- package/dist/commands/shortcut-routing.test.d.ts +0 -11
- package/dist/commands/simulate.report-write.adversarial.test.d.ts +0 -1
- package/dist/commands/simulate.report-write.test.d.ts +0 -1
- package/dist/commands/turbo-registration.test.d.ts +0 -5
- package/dist/commands/turbo-sessionid.test.d.ts +0 -5
- package/dist/commands/turbo.regression.test.d.ts +0 -11
- package/dist/commands/turbo.test.d.ts +0 -5
- package/dist/config/constants.architect-whitelist.test.d.ts +0 -1
- package/dist/config/constants.security.test.d.ts +0 -1
- package/dist/council/__tests__/council-evidence-writer.adversarial.test.d.ts +0 -6
- package/dist/db/global-db.test.d.ts +0 -7
- package/dist/db/project-db.test.d.ts +0 -4
- package/dist/db/qa-gate-profile.test.d.ts +0 -4
- package/dist/diff/__tests__/semantic-classifier.test.d.ts +0 -1
- package/dist/diff/__tests__/summary-generator.test.d.ts +0 -1
- package/dist/gate-evidence.test.d.ts +0 -1
- package/dist/hooks/__tests__/repo-graph-builder.test.d.ts +0 -12
- package/dist/hooks/__tests__/semantic-diff-injection.test.d.ts +0 -1
- package/dist/hooks/agent-activity.test.d.ts +0 -1
- package/dist/hooks/cc-command-intercept.test.d.ts +0 -1
- package/dist/hooks/curator-drift-advisory.test.d.ts +0 -1
- package/dist/hooks/delegation-gate.evidence.test.d.ts +0 -4
- package/dist/hooks/delegation-gate.getEvidenceTaskId.test.d.ts +0 -20
- package/dist/hooks/delegation-gate.plan-fallback-security.test.d.ts +0 -13
- package/dist/hooks/delegation-gate.plan-fallback.test.d.ts +0 -5
- package/dist/hooks/delegation-gate.seed-state.test.d.ts +0 -1
- package/dist/hooks/delegation-gate.turbo-evidence.test.d.ts +0 -8
- package/dist/hooks/delegation-gate.verify.test.d.ts +0 -11
- package/dist/hooks/delegation-ledger.test.d.ts +0 -11
- package/dist/hooks/diff-scope.test.d.ts +0 -1
- package/dist/hooks/incremental-verify.test.d.ts +0 -1
- package/dist/hooks/loop-detector.test.d.ts +0 -1
- package/dist/hooks/scope-guard-throw-behavior.test.d.ts +0 -15
- package/dist/hooks/scope-guard.adversarial.test.d.ts +0 -1
- package/dist/hooks/scope-guard.test.d.ts +0 -14
- package/dist/hooks/self-review.test.d.ts +0 -14
- package/dist/hooks/slop-detector.adversarial.test.d.ts +0 -1
- package/dist/hooks/slop-detector.test.d.ts +0 -1
- package/dist/hooks/spawn-helper.test.d.ts +0 -1
- package/dist/hooks/watchdog.integration.test.d.ts +0 -9
- package/dist/index.adversarial-bootstrap.test.d.ts +0 -1
- package/dist/index.bootstrap-adversarial.test.d.ts +0 -1
- package/dist/index.bootstrap-directory.test.d.ts +0 -1
- package/dist/model-fallback.adversarial.test.d.ts +0 -22
- package/dist/model-fallback.test.d.ts +0 -12
- package/dist/mutation/__tests__/engine.adversarial.test.d.ts +0 -1
- package/dist/mutation/__tests__/engine.test.d.ts +0 -1
- package/dist/mutation/__tests__/equivalence.adversarial.test.d.ts +0 -1
- package/dist/mutation/__tests__/equivalence.test.d.ts +0 -1
- package/dist/mutation/__tests__/gate.adversarial.test.d.ts +0 -1
- package/dist/mutation/__tests__/gate.test.d.ts +0 -1
- package/dist/mutation/__tests__/generator.test.d.ts +0 -1
- package/dist/parallel/dispatcher/noop-dispatcher.test.d.ts +0 -10
- package/dist/plan/checkpoint.test.d.ts +0 -1
- package/dist/plan/ledger-integrity.test.d.ts +0 -5
- package/dist/plan/ledger-snapshot-adversarial.test.d.ts +0 -1
- package/dist/plan/ledger.test.d.ts +0 -1
- package/dist/plan/manager.cas-backoff.test.d.ts +0 -10
- package/dist/plan/manager.ledger-aware.test.d.ts +0 -1
- package/dist/plan/manager.loadplan-validation-guard.test.d.ts +0 -13
- package/dist/plan/manager.update-task-status.test.d.ts +0 -1
- package/dist/plan/migration-revert.regression.test.d.ts +0 -8
- package/dist/prm/__tests__/course-correction.test.d.ts +0 -1
- package/dist/prm/__tests__/escalation-queue-drain.test.d.ts +0 -1
- package/dist/prm/__tests__/escalation.test.d.ts +0 -1
- package/dist/prm/__tests__/index.test.d.ts +0 -1
- package/dist/prm/__tests__/integration.test.d.ts +0 -1
- package/dist/prm/__tests__/pattern-detector.test.d.ts +0 -5
- package/dist/prm/__tests__/replay.test.d.ts +0 -1
- package/dist/prm/__tests__/trajectory-store.test.d.ts +0 -7
- package/dist/sast/semgrep.test.d.ts +0 -1
- package/dist/scope/scope-persistence.test.d.ts +0 -13
- package/dist/services/compaction-service.test.d.ts +0 -1
- package/dist/services/config-doctor.security.test.d.ts +0 -1
- package/dist/services/config-doctor.test.d.ts +0 -1
- package/dist/services/status-service.turbo-indicator.test.d.ts +0 -5
- package/dist/services/tool-doctor.test.d.ts +0 -1
- package/dist/state.agent-run-context.test.d.ts +0 -10
- package/dist/state.rehydrate.test.d.ts +0 -1
- package/dist/state.rehydration-adversarial.test.d.ts +0 -1
- package/dist/state.rehydration-integration.test.d.ts +0 -1
- package/dist/state.session-restart.test.d.ts +0 -7
- package/dist/state.telemetry.test.d.ts +0 -1
- package/dist/telemetry.test.d.ts +0 -1
- package/dist/test-impact/__tests__/analyzer-import-fix.adversarial.test.d.ts +0 -1
- package/dist/test-impact/__tests__/analyzer-import-fix.test.d.ts +0 -1
- package/dist/test-impact/__tests__/analyzer.adversarial.test.d.ts +0 -1
- package/dist/test-impact/__tests__/analyzer.test.d.ts +0 -1
- package/dist/test-impact/__tests__/council-fixes.test.d.ts +0 -1
- package/dist/test-impact/__tests__/failure-classifier.adversarial.test.d.ts +0 -1
- package/dist/test-impact/__tests__/failure-classifier.test.d.ts +0 -1
- package/dist/test-impact/__tests__/flaky-detector.adversarial.test.d.ts +0 -1
- package/dist/test-impact/__tests__/flaky-detector.test.d.ts +0 -1
- package/dist/test-impact/__tests__/history-store.adversarial.test.d.ts +0 -1
- package/dist/test-impact/__tests__/history-store.test.d.ts +0 -1
- package/dist/test-impact/__tests__/test-impact.adversarial.test.d.ts +0 -1
- package/dist/test-impact/__tests__/test-impact.test.d.ts +0 -1
- package/dist/tools/__tests__/barrel-exports.test.d.ts +0 -1
- package/dist/tools/__tests__/diff-ast-fallback.test.d.ts +0 -1
- package/dist/tools/__tests__/diff-markdown-summary.test.d.ts +0 -1
- package/dist/tools/__tests__/diff-semantic.test.d.ts +0 -1
- package/dist/tools/__tests__/diff-summary.adversarial.test.d.ts +0 -1
- package/dist/tools/__tests__/diff-summary.test.d.ts +0 -1
- package/dist/tools/__tests__/mutation-test.adversarial.test.d.ts +0 -1
- package/dist/tools/__tests__/mutation-test.sourcefiles.test.d.ts +0 -1
- package/dist/tools/__tests__/mutation-test.test.d.ts +0 -1
- package/dist/tools/__tests__/repo-graph-walk.test.d.ts +0 -16
- package/dist/tools/__tests__/test-runner-history.test.d.ts +0 -1
- package/dist/tools/__tests__/test-runner-impact.adversarial.test.d.ts +0 -1
- package/dist/tools/__tests__/test-runner-impact.test.d.ts +0 -1
- package/dist/tools/__tests__/test-runner-source-files.test.d.ts +0 -1
- package/dist/tools/barrel-export-check-gate-status.test.d.ts +0 -6
- package/dist/tools/batch-symbols.test.d.ts +0 -1
- package/dist/tools/check-gate-status.adversarial.test.d.ts +0 -1
- package/dist/tools/check-gate-status.gates.test.d.ts +0 -1
- package/dist/tools/check-gate-status.plugin-registration.test.d.ts +0 -1
- package/dist/tools/curator-analyze.test.d.ts +0 -1
- package/dist/tools/knowledge-tools.integration.test.d.ts +0 -1
- package/dist/tools/mutation-test.security.test.d.ts +0 -1
- package/dist/tools/plugin-registration-adversarial.test.d.ts +0 -1
- package/dist/tools/resolve-working-directory.test.d.ts +0 -1
- package/dist/tools/save-plan.subdirectory-rejection.test.d.ts +0 -1
- package/dist/tools/search.adversarial.test.d.ts +0 -1
- package/dist/tools/search.test.d.ts +0 -1
- package/dist/tools/suggest-patch.adversarial.test.d.ts +0 -1
- package/dist/tools/suggest-patch.test.d.ts +0 -1
- package/dist/tools/test-runner.security-adversarial.test.d.ts +0 -5
- package/dist/tools/update-task-status.adversarial.test.d.ts +0 -13
- package/dist/tools/update-task-status.gates.test.d.ts +0 -1
- package/dist/tools/update-task-status.test.d.ts +0 -1
- package/dist/tools/update-task-status.turbo-bypass.test.d.ts +0 -1
- package/dist/tools/verify-six-tools-registration.test.d.ts +0 -9
- package/dist/tools/write-mutation-evidence.test.d.ts +0 -1
- package/dist/transient-retry.test.d.ts +0 -10
- package/dist/utils/__tests__/bun-compat.test.d.ts +0 -11
- 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 +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 +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 +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 +0,0 @@
|
|
|
1
|
-
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 +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 {};
|
package/dist/telemetry.test.d.ts
DELETED
|
@@ -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 +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 +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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
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 {};
|