agentleFS
Kastalien-ResearchKastalien-Research/thoughtbox/.agents/skills/test-suite/SKILL.md

test-suite

Skill64 starsChanged 4 months agoMITView on GitHub

Run behavioral smoke tests against the live Thoughtbox Code Mode MCP server. Verifies the public `/mcp` surface (`thoughtbox_search`, `thoughtbox_execute`, `thoughtbox_peer_notebook`) plus the main execution paths behind it.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 4 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run behavioral tests against a live Thoughtbox MCP server whose public surface is Code Mode.

    line 8
  2. Distinctive:

    Every test creates real data in Supabase and verifies it through retrieval.

    line 32
  3. Distinctive:

    Verify the tool list is exactly:

    line 42
  4. Very specific:

    If raw tools like thoughtbox_init, thoughtbox_session, or thoughtbox_hub appear in tools/list, the behavioral suite should fail immediately …

    line 47
  5. Very specific:

    Read the file from .Codex/skills/test-suite/tests/NN-*.md

    line 67
  6. Distinctive:

    If anything fails, list the exact test and the observed discrepancy.

    line 96
  7. Very specific:

    When thoughtbox_search returns a module, operation, prompt, resource, or resource template, verify the returned names/URIs/descriptions …

    line 108
  8. Very specific:

    After tb.thought(...), verify the resulting session is visible through tb.session.list() or tb.session.get(...)

    line 119
  9. Very specific:

    After a protocol init, verify status reports the active session

    line 120
  10. Very specific:

    After console.log(...), verify logs were captured

    line 121
  11. Distinctive:

    If the server exposes more than the intended three tools, or if search/execute exposes an out-of-scope namespace for this release, that is …

    line 129

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Thoughtbox Code Mode Behavioral Test Suite

Run behavioral tests against a live Thoughtbox MCP server whose public surface is Code Mode.

The authoritative hosted contract is:

  • thoughtbox_search
  • thoughtbox_execute
  • thoughtbox_peer_notebook

The legacy progressive-disclosure suite (thoughtbox_init, thoughtbox_operations, raw per-domain tools) is no longer the primary behavioral contract for /mcp. Treat the old 01-09 markdown files in this folder as historical reference only unless you are explicitly auditing legacy behavior.

Test Files

#FileFocusTests
01tests/01-codemode-surface.mdPublic MCP surface and instructions4
02tests/02-codemode-search.mdSearch catalog discovery5
03tests/03-codemode-thought.mdThought workflows: all types, branching, revision, agents15
04tests/04-codemode-sessions.mdSession CRUD, search, resume, export, analysis8
05tests/05-codemode-knowledge.mdKnowledge graph: entities, relations, traversal5
06tests/06-codemode-protocols.mdTheseus, Ulysses, and observability lifecycles8
07tests/07-hub.mdHub coordination via tb.hub.*: identity, workspaces, problems, proposals, consensus, channels15

Total: 60 behavioral tests across the 3-tool Code Mode surface

Every test creates real data in Supabase and verifies it through retrieval. The suite should leave named sessions visible in the web app's Runs view.

How to Run

Step 1: Verify the server is running

Confirm the live MCP server is reachable and using the Code Mode surface:

  1. Connect to the server.
  2. Call tools/list.
  3. Verify the tool list is exactly:
    • thoughtbox_search
    • thoughtbox_execute
    • thoughtbox_peer_notebook

If raw tools like thoughtbox_init, thoughtbox_session, or thoughtbox_hub appear in tools/list, the behavioral suite should fail immediately because the hosted surface is not the intended Code Mode contract.

Step 2: Initialize a test state tracker

Track results in a state object:

{
  "started": "<timestamp>",
  "currentFile": 1,
  "currentTest": 1,
  "results": {},
  "summary": { "pass": 0, "fail": 0, "skip": 0 }
}

Step 3: Execute tests in order

For each test file (01 through 07):

  1. Read the file from .Codex/skills/test-suite/tests/NN-*.md
  2. Execute each test using the live thoughtbox_search and thoughtbox_execute tools
  3. Record pass, fail, or skip
  4. Report progress after each file

Example:

[02/07] thoughtbox_search: 5/5 pass

Step 4: Final report

Produce a concise summary:

Thoughtbox Code Mode Behavioral Suite — Results
==============================================
01-codemode-surface:                  4/4 pass
02-codemode-search:                   5/5 pass
03-codemode-thought:                 15/15 pass
04-codemode-sessions:                 8/8 pass
05-codemode-knowledge:                5/5 pass
06-codemode-protocols:                8/8 pass
07-hub:                              15/15 pass
----------------------------------------------
Total: 60/60 pass

If anything fails, list the exact test and the observed discrepancy.

Verification Discipline

A test is not PASS unless the response proves the claim.

Rule 1: Verify the public surface, not internal implementation details

The first check is always tools/list. The hosted contract is the public surface. Internal handlers or historical resources do not count as proof.

Rule 2: Search tests must prove discovery fidelity

When thoughtbox_search returns a module, operation, prompt, resource, or resource template, verify the returned names/URIs/descriptions match the intended query. "It returned something relevant" is not enough.

Rule 3: Execute tests must prove real behavior

For thoughtbox_execute, verify both:

  • the returned value
  • the side effect or follow-up state when applicable

Examples:

  • After tb.thought(...), verify the resulting session is visible through tb.session.list() or tb.session.get(...)
  • After a protocol init, verify status reports the active session
  • After console.log(...), verify logs were captured

Rule 4: Legacy namespaces must fail cleanly

tb.hub is part of the supported SDK surface (covered by tests/07-hub.md). Retired namespaces such as tb.init or tb.gateway must be absent (undefined), not gracefully shimmed.

Rule 5: Never rationalize mismatches

If the server exposes more than the intended three tools, or if search/execute exposes an out-of-scope namespace for this release, that is a failure against the current Code Mode contract.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.