theseus-protocol-f953ad — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited theseus-protocol-f953ad (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Theseus is a Thoughtbox-owned refactoring protocol.
The server-side Theseus implementation behind tb.theseus(...) owns scope, visa state, audit state, and terminal status. Codex hooks only ask Thoughtbox whether a write should be blocked.
Do not use .theseus/ files or scripts/theseus.sh as authoritative state. Do not rely on implicit git reset --hard recovery in the active workflow. Do not use legacy direct handles like thoughtbox_gateway or thoughtbox_theseus as the interaction surface when Code Mode is available.
The current public Thoughtbox MCP surface is Code Mode:
thoughtbox_searchthoughtbox_executetb.theseus({ ... })Each thoughtbox_execute call should contain at most one state-mutating Theseus operation. Read-only confirmation calls such as tb.theseus({ operation: "status" }) are safe to use for state checks.
thoughtbox_search beforeexecuting.
thoughtbox_execute and call tb.theseus({ operation: ... }) for everyprotocol transition.
tb.theseus.initRequired inputs:
Call:
async () => {
return await tb.theseus({
operation: "init",
scope: ["src/module-a.ts", "src/module-b/"],
description: "<refactor goal>",
});
}After init, test files are write-locked and out-of-scope writes require a visa.
visaRequired inputs:
Call:
async () => {
return await tb.theseus({
operation: "visa",
filePath: "src/dependency.ts",
justification: "<why the scope must expand>",
antiPatternAcknowledged: true,
});
}This is the only supported way to expand scope in the active workflow.
checkpointRequired inputs:
Call:
async () => {
return await tb.theseus({
operation: "checkpoint",
diffHash: "<diff hash>",
commitMessage: "<atomic narrative>",
approved: true,
feedback: "<optional audit rationale>",
});
}Before checkpoint, you may optionally run a reviewer or judge agent to produce the Cassandra-style audit. That agent returns only a verdict and rationale. The coordinator records the outcome with tb.theseus.
outcomeRequired inputs:
Call:
async () => {
return await tb.theseus({
operation: "outcome",
testsPassed: false,
details: "<what failed>",
});
}The protocol records whether the refactor remains in a valid state. Recovery requirements are described by protocol state, not hidden local git resets.
statusCall:
async () => {
return await tb.theseus({
operation: "status",
});
}Use the returned state as the only source of truth for scope, visas, and audit history.
completeCall:
async () => {
return await tb.theseus({
operation: "complete",
terminalState: "complete",
summary: "<what structural yield was achieved>",
});
}Completion should yield protocol closure plus reusable knowledge about successes, audit failures, or scope exhaustion.
Use subagents only at explicit checkpoint phases.
Good uses:
checkpointBad uses:
tb.theseusthoughtbox_search, thoughtbox_executetb.theseus({ operation: ... })operations through Code Mode
src/protocol/theseus-tool.tsreferences/theseus-gate.md~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.