debug-test
Skill4 starsChanged 9 months agoMITView on GitHub
Diagnose and fix a failing integration test in PilotSwarm. Covers the full call chain from PilotSwarmSession.sendAndWait through duroxide orchestration to CopilotSession, common failure patterns, and how to inspect orchestration and CMS state.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- TzolkinB/skillstheir own version, first seen Aug 4, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- TzolkinB/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository22 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- duroxide-orchestration-versioningSkill
- add-activitySkill
- add-eventSkill
- add-testSkill
- add-toolSkill
- agent-versioningSkill
- azure-ps-test-runner-vmSkill
- debug-orchestrationSkill
- horizondb-idiosyncrasiesSkill
- horizon-facts-eval-sweepSkill
- investigate-duroxide-runtimeSkill
- pilotswarm-aks-deploySkill
- pilotswarm-aks-resetSkill
- pilotswarm-new-env-deploySkill
- pilotswarm-perfSkill
- pilotswarm-portal-app-regSkill
- pilotswarm-portal-auth-assignmentsSkill
- pilotswarm-releaseSkill
- pilotswarm-tuiSkill
- pilotswarm-vpn-client-profileSkill
- schema-migrationSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
No flag means full PostgreSQL.
- Distinctive: line 68
If the bug touches TUI keybindings or keyboard help text, verify that the startup keybinding hint/splash and the help dialog/modal are …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
For machine setup and provider coverage, read
docs/developer/contributing/local-ci-and-tests.md and .github/CI.md.
No flag means full PostgreSQL; --all-providers adds HDB-specific coverage;
--with horizondb runs the complete suite on HDB. Default file concurrency is
8. New SDK test files join additive HDB coverage unless explicitly reviewed in
scripts/provider-test-coverage.json. CI requires real HDB and rejects skips.
Debug a Failed Test
Diagnosis steps
- Run the specific test to reproduce:
npm test -- --test=<name> - Identify the failure layer — the call chain is:
test → PilotSwarmSession.sendAndWait() → PilotSwarmClient._startAndWait() → duroxide orchestration → SessionProxy activity (runTurn) → SessionManager.getOrCreate() → ManagedSession.runTurn() → CopilotSession.send() + on() Common failure causes:
Symptom Likely cause Timeout with no response Orchestration stuck — check duroxide logs Tool handler not called Tools not registered — check setSessionConfigorregisterToolswas calledWrong tool called System message not directive enough — use mode: "replace"Assertion on content fails LLM non-determinism — make assertions flexible ( .includes(), case-insensitive)"Not started" error worker.start()orclient.start()not calledSession not found Session wasn't created in CMS — check catalog.createSession()Warm session missing tools updateConfig()not called — checksession-manager.tswarm pathnondeterministic: custom status mismatchOrchestration code uses Date.now()or other non-deterministic values to branch before yields — useyield ctx.utcNow()instead. Can also happen after redeploying changed orchestration code without resetting the database.- Check CMS events — verify what actually happened:
const events = await session.getMessages(); console.log(events); - Check session info:
const info = await session.getInfo(); console.log(info.status, info.iterations);
Key files
- packages/sdk/test/sdk.test.js — test definitions
- packages/sdk/src/client.ts — client-side orchestration polling
- packages/sdk/src/orchestration.ts — orchestration logic
- packages/sdk/src/managed-session.ts — LLM turn execution
- packages/sdk/src/session-manager.ts — session lifecycle and tool resolution
TUI note
If the bug touches TUI keybindings or keyboard help text, verify that the startup keybinding hint/splash and the help dialog/modal are still synchronized with the actual bound keys.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

