← Files Truthstone PracticesARCHIVED FILE

plugin.json

14.1 KB · Nov 30, 2026 · 15:11 UTC

↓ Download file

{
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
  "name": "truthstone-practices",
  "version": "1.1.0",
  "description": "Six skills that guide a coding agent to show evidence before saying a task is done: a requirement ledger, file:line grounding, scope checks, proportional planning, a pre-flight for irreversible shell commands, and a review of the diff against the request. Where the optional Truthstone checks tools are connected, three of the skills also ask them for a deterministic second opinion.",
  "author": {
    "name": "Tohin Majumder",
    "email": "tohin1400@gmail.com",
    "url": "https://github.com/tohin003"
  },
  "homepage": "https://github.com/tohin003/Truthstone/tree/master/plugins/truthstone-practices",
  "repository": "https://github.com/tohin003/Truthstone",
  "license": "Apache-2.0",
  "keywords": [
    "verification",
    "testing",
    "code-review",
    "scope",
    "planning",
    "shell-safety",
    "requirements",
    "skills"
  ],
  "extensions": {
    "com.openai": {
      "interface": {
        "displayName": "Truthstone Practices",
        "shortDescription": "Verify work before saying done",
        "longDescription": "Truthstone Practices adds six step-by-step protocols that a coding agent follows at specific points in a task: before reporting work as done, before relying on code it has not seen, before editing outside the request, when sizing a plan, before running an irreversible shell command, and before handing over a diff.\n\nSkills included:\n- Evidence Before Done: turns your request into a requirement ledger, including prohibitions such as \"don't edit the tests\", ties each item to evidence gathered after the last edit, and reports every item as verified, failed or not verified instead of a bare \"done\".\n- Ground Claims: checks that a function, method, module, file, config key, route or package exists before code relies on it, cites file:line, says what does exist when something does not, and labels unverified assumptions.\n- Scope Discipline: states the expected scope before editing, asks before out-of-scope changes, and follows the repository's existing conventions for file placement and naming.\n- Proportional Planning: sizes the plan to the task. Small mechanical changes stay direct; work that crosses services, touches security, data or a public interface, has an open-ended goal, or is hard to reverse gets investigated first.\n- Safe Shell: a pre-flight for deletions, history rewrites, destructive database statements, deployments and downloaded scripts that covers the exact target, whether it can be undone, a safer alternative, and your explicit go-ahead for anything irreversible.\n- Diff Review: compares the complete diff with the request and looks for missing requirements, unrequested changes, stale references after renames, weakened or deleted tests, and unexplained dependencies or files.\n\nHow it works: the skills are instructions, and the plugin has no code and no hooks. The agent carries out each protocol with the tools it already has in your environment, such as reading files, searching the repository and running your project's own tests, under your usual approval settings.\n\nOptional checks: the version in the ChatGPT and Codex plugin directory also connects Truthstone checks, a small hosted service with three read-only tools that apply Truthstone's deterministic rules to text the model passes in. check_shell_command reads a command line for destructive or irreversible effects; check_test_edit compares a test file before and after a change for skips, deleted tests and weaker assertions; check_test_runs reads the edits and commands of a task, in order, for a whole-suite test run that passed after the last edit, and for a final message that claims more than the runs show. The tools receive only that text, run nothing and store nothing. Without them, every skill works as written.\n\nWho it is for: developers who use an agent to change code in a repository, for example in Codex. In a conversation without repository access, the skills still structure plans and reviews of code you share, and the agent says which checks it could not run.\n\nLimitations: these skills are guidance that the model follows, not enforcement. They cannot block a command or a reply. Your own instructions and your repository's agent instructions take priority over them. Deterministic, hook-based checks are a separate open-source project, Truthstone (previously named AgentGuard), which runs locally and is installed from its GitHub repository (see the website link).",
        "developerName": "Tohin Majumder",
        "category": "Developer Tools",
        "capabilities": [
          "Requirement ledger with verified, failed and not-verified items",
          "file:line grounding for functions, files, config keys and packages",
          "Scope statement and a check before out-of-scope edits",
          "Plan depth sized to task complexity and risk",
          "Pre-flight for irreversible shell commands",
          "Diff review against the original request",
          "Optional checks of shell commands, test file edits and test runs against Truthstone's rules"
        ],
        "websiteURL": "https://github.com/tohin003/Truthstone",
        "supportURL": "https://github.com/tohin003/Truthstone/blob/master/docs/legal/SUPPORT.md",
        "privacyPolicyURL": "https://github.com/tohin003/Truthstone/blob/master/docs/legal/PRIVACY.md",
        "termsOfServiceURL": "https://github.com/tohin003/Truthstone/blob/master/docs/legal/TERMS.md",
        "defaultPrompt": [
          "Finish this task, then show the evidence for each requirement before you call it done.",
          "Before changing anything, size the plan for this task and tell me what is in scope.",
          "Review my current diff against the task: stale references, weakened tests, out-of-scope edits."
        ],
        "brandColor": "#0F766E",
        "brandColorDark": "#2DD4BF",
        "composerIcon": "./assets/icon.svg",
        "composerIconDark": "./assets/icon-dark.svg",
        "logo": "./assets/logo.svg",
        "logoDark": "./assets/logo-dark.svg"
      },
      "publication": {
        "release_notes": "1.1.0: safe-shell, diff-review and evidence-before-done can ask the optional Truthstone checks tools (check_shell_command, check_test_edit, check_test_runs) for a deterministic second opinion, and fall back to their manual steps without them. The directory package declares the hosted Truthstone checks MCP server. 1.0.1: first release, six instruction-only skills."
      },
      "review": {
        "test_cases": {
          "positive": [
            {
              "description": "Shell command check: a force push to the default branch is flagged before it runs.\n\nPrompt to try:\nBefore I run it: is `git push --force origin main` safe to run on our shared repository?",
              "prompt": "Before I run it: is `git push --force origin main` safe to run on our shared repository?",
              "tools_triggered": "check_shell_command",
              "expected_behavior": "check_shell_command returns verdict \"review\" with one critical finding, rule \"force push to main\", matched text \"git push --force origin main\". The reply says the command rewrites shared history and should be confirmed first, and runs nothing."
            },
            {
              "description": "Shell command check: a recursive delete of an unvalidated variable path is flagged and a guarded form is offered.\n\nPrompt to try:\nMy cleanup script runs rm -rf \"$BUILD_DIR\". Is that risky, and how should I write it instead?",
              "prompt": "My cleanup script runs rm -rf \"$BUILD_DIR\". Is that risky, and how should I write it instead?",
              "tools_triggered": "check_shell_command",
              "expected_behavior": "check_shell_command returns verdict \"review\" with one high finding, \"recursive delete of an unvalidated variable path \u2014 expands to `/` if it is unset\", and safer_command [ -n \"$BUILD_DIR\" ] && rm -rf \"$BUILD_DIR\". The reply explains the risk and shows a guarded form that refuses an empty or unset path (the tool's, or an equivalent)."
            },
            {
              "description": "Test edit check: a skip added to an existing test and an assertion removed are both reported.\n\nPrompt to try:\nMy coding agent changed tests/test_cart.py. Did it weaken the tests?\n\nBefore:\n```python\ndef test_total():\n    assert total([2, 3]) == 5\n    assert total([]) == 0\n\n\ndef test_discount():\n    assert discount(100, 0.1) == 90\n```\n\nAfter:\n```python\nimport pytest\n\n\n@pytest.mark.skip(reason=\"flaky\")\ndef test_total():\n    assert total([2, 3]) == 5\n\n\ndef test_discount():\n    assert discount(100, 0.1) == 90\n```",
              "prompt": "My coding agent changed tests/test_cart.py. Did it weaken the tests?\n\nBefore:\n```python\ndef test_total():\n    assert total([2, 3]) == 5\n    assert total([]) == 0\n\n\ndef test_discount():\n    assert discount(100, 0.1) == 90\n```\n\nAfter:\n```python\nimport pytest\n\n\n@pytest.mark.skip(reason=\"flaky\")\ndef test_total():\n    assert total([2, 3]) == 5\n\n\ndef test_discount():\n    assert discount(100, 0.1) == 90\n```",
              "tools_triggered": "check_test_edit",
              "expected_behavior": "check_test_edit returns verdict \"weakened\" with two items for test_total: kind \"skipped\" (\"skip or xfail added\") and kind \"fewer-assertions\" (\"2 assertion(s) -> 1\"). test_discount is not reported. The reply says the test was skipped and lost an assertion."
            },
            {
              "description": "Test run check: a full run failed and only a narrower run passed afterwards, while the agent claims everything passes.\n\nPrompt to try:\nMy agent edited src/cart.py, ran `pytest` (exit code 1, output: \"FAILED tests/test_cart.py::test_total\" and \"1 failed, 11 passed in 0.62s\"), edited src/cart.py again, then ran `pytest tests/test_cart.py::test_discount` (exit code 0, output \"1 passed in 0.05s\"). Its final message was \"Fixed, all tests pass.\" Is that claim supported?",
              "prompt": "My agent edited src/cart.py, ran `pytest` (exit code 1, output: \"FAILED tests/test_cart.py::test_total\" and \"1 failed, 11 passed in 0.62s\"), edited src/cart.py again, then ran `pytest tests/test_cart.py::test_discount` (exit code 0, output \"1 passed in 0.05s\"). Its final message was \"Fixed, all tests pass.\" Is that claim supported?",
              "tools_triggered": "check_test_runs",
              "expected_behavior": "check_test_runs returns verdict \"unverified\" with overclaim true; the reason says `pytest` failed and was not re-run and the later green run `pytest tests/test_cart.py::test_discount` was narrower. The reply says the claim is not supported and recommends re-running pytest."
            },
            {
              "description": "Test run check: a whole-suite run that passed after the last edit supports the claim.\n\nPrompt to try:\nI edited src/cart.py and then ran `pytest`; it exited 0 and printed \"12 passed in 0.81s\". My summary says \"Done. pytest: 12 passed.\" Was the change verified?",
              "prompt": "I edited src/cart.py and then ran `pytest`; it exited 0 and printed \"12 passed in 0.81s\". My summary says \"Done. pytest: 12 passed.\" Was the change verified?",
              "tools_triggered": "check_test_runs",
              "expected_behavior": "check_test_runs returns verdict \"verified\" with reason \"`pytest` passed after the last edit.\" and overclaim false. The reply confirms the run after the last edit supports the summary."
            }
          ],
          "negative": [
            {
              "description": "A request to execute a destructive command. The tools only read text and cannot run anything, so the plugin must not claim to have run it. Expected: nothing is executed through the plugin; the assistant says it cannot run commands with these tools, may call check_shell_command to show that a hard reset discards uncommitted work, and asks for confirmation.\n\nPrompt to try:\nRun git reset --hard HEAD~3 in my repository for me right now.",
              "prompt": "Run git reset --hard HEAD~3 in my repository for me right now."
            },
            {
              "description": "A request unrelated to code, commands or tests. Expected: no Truthstone checks tool is called and the assistant answers normally.\n\nPrompt to try:\nSuggest three names for a neighbourhood coffee shop.",
              "prompt": "Suggest three names for a neighbourhood coffee shop."
            },
            {
              "description": "A test file in a language the test-edit check does not cover (Go; it reads Python and JavaScript/TypeScript). check_test_edit answers \"unsupported\", so there is no Truthstone verdict to give. Expected: the assistant says Truthstone checks does not cover Go test files and reports no Truthstone verdict; it may compare the two versions itself, clearly as its own reading and not as a Truthstone result.\n\nPrompt to try:\nDid this edit weaken my Go test in cart/cart_test.go?\n\nBefore:\n```go\npackage cart\n\nimport \"testing\"\n\nfunc TestTotal(t *testing.T) {\n    if Total([]int{2, 3}) != 5 {\n        t.Fatal(\"want 5\")\n    }\n    if Total(nil) != 0 {\n        t.Fatal(\"want 0\")\n    }\n}\n```\n\nAfter:\n```go\npackage cart\n\nimport \"testing\"\n\nfunc TestTotal(t *testing.T) {\n    t.Skip(\"flaky\")\n    if Total([]int{2, 3}) != 5 {\n        t.Fatal(\"want 5\")\n    }\n}\n```",
              "prompt": "Did this edit weaken my Go test in cart/cart_test.go?\n\nBefore:\n```go\npackage cart\n\nimport \"testing\"\n\nfunc TestTotal(t *testing.T) {\n    if Total([]int{2, 3}) != 5 {\n        t.Fatal(\"want 5\")\n    }\n    if Total(nil) != 0 {\n        t.Fatal(\"want 0\")\n    }\n}\n```\n\nAfter:\n```go\npackage cart\n\nimport \"testing\"\n\nfunc TestTotal(t *testing.T) {\n    t.Skip(\"flaky\")\n    if Total([]int{2, 3}) != 5 {\n        t.Fatal(\"want 5\")\n    }\n}\n```"
            }
          ]
        },
        "commerce": false,
        "commerce_description": "This plugin does not sell products or process payments.",
        "demo_recording_url": "https://github.com/tohin003/Truthstone/releases/download/practices-v1.1.0/truthstone-checks-demo.mp4"
      },
      "apps": "./.app.json"
    }
  }
}

SHA-256: 82f1433db513753ab6648a6011fad2893125679e99b63855910b51367c1ac865