Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/assets/clients/claude.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/clients/cursor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/clients/githubcopilot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/clients/googlegemini.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/clients/mcp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/clients/openai.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/assets/clients/windsurf.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/concepts/safety-model.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Nothing in the gate path reads or writes your real working tree. Refactron build
/>
</Frame>

For [`verify-diff`](/verification/verify-diff) and the [MCP `verify_change` tool](/verification/mcp-server), this is the whole story: the shadow tree is built, the gates run, the verdict is returned, and the copy is cleaned up. **Your repo is never mutated.** Landing the change is the caller's decision.
For [`verify-diff`](/verification/verify-diff) and the [MCP `verify_change` tool](/mcp/index), this is the whole story: the shadow tree is built, the gates run, the verdict is returned, and the copy is cleaned up. **Your repo is never mutated.** Landing the change is the caller's decision.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

# Locate shadow-tree construction and test-process launch behavior.
rg -n -C 8 --type ts \
  'linkSync|link\(|copyFile|copyFileSync|chmod|mkdtemp|shadow' src
rg -n -C 8 --type ts \
  'testCmd|spawn\(|exec\(|execa|child_process' src

Repository: Refactron-ai/Refactron_Lib_TS

Length of output: 50386


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

# Inspect the only implementation path that builds the shadow tree.
sed -n '1,130p' src/verify/shadow-tree.ts

# Search for any chmod/chown/read-only/namespace/container/test-write protection around test execution.
rg -n --type ts 'chmod|fchmod|chown|fchown|readonly|read-only|readonlyFs|noexec|nosuid|namespace|container|mockFs|writeFile|createWriteStream|access\(' src docs

Repository: Refactron-ai/Refactron_Lib_TS

Length of output: 15243


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

# Inspect the only implementation path that builds the shadow tree.
sed -n '1,130p' src/verify/shadow-tree.ts

# Search for any chmod/chown/read-only/namespace/container/test-write protection around test execution.
rg -n --type ts 'chmod|fchmod|chown|fchown|readonly|read-only|readonlyFs|noexec|nosuid|namespace|container|mockFs|writeFile|createWriteStream|access\(' src docs

Repository: Refactron-ai/Refactron_Lib_TS

Length of output: 15243


Add write isolation before promising an unchanged repository.

Unchanged files can be hardlinked by fs.link(), and test execution in the shadow tree has no documented copy-on-write, read-only enforcement, or separate write namespace. Add that isolation or reword these docs to only promise verification writes to an isolated shadow copy.

Apply to:

  • docs/concepts/safety-model.mdx#L22
  • docs/mcp/index.mdx#L9
  • docs/mcp/index.mdx#L239
  • docs/mcp/quickstart.mdx#L132
📍 Affects 3 files
  • docs/concepts/safety-model.mdx#L22-L22 (this comment)
  • docs/mcp/index.mdx#L9-L9
  • docs/mcp/index.mdx#L239-L239
  • docs/mcp/quickstart.mdx#L132-L132
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/concepts/safety-model.mdx` at line 22, Reword the repository-safety
claims to promise only that verification writes occur in an isolated shadow
copy, without asserting that the repository is never mutated. Apply this wording
consistently at docs/concepts/safety-model.mdx:22, docs/mcp/index.mdx:9,
docs/mcp/index.mdx:239, and docs/mcp/quickstart.mdx:132; no write-isolation
implementation change is requested.


## The three gates

Expand Down
136 changes: 86 additions & 50 deletions docs/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,61 +31,97 @@
"dark": "/logo/refactron-symbol-dark.svg"
},
"navigation": {
"groups": [
"tabs": [
{
"group": "Getting Started",
"pages": ["overview", "quickstart", "faq"]
},
{
"group": "Verification",
"pages": [
"verification/verify-diff",
"verification/mcp-server",
"verification/verdicts",
"verification/preflight"
"tab": "Documentation",
"icon": "book-open",
"groups": [
{
"group": "Getting Started",
"pages": ["overview", "quickstart", "faq"]
},
{
"group": "Verification",
"pages": [
"verification/verify-diff",
"verification/mcp-server",
"verification/verdicts",
"verification/preflight"
]
},
{
"group": "Concepts",
"pages": ["concepts/safety-model", "concepts/why-no-llm"]
},
{
"group": "CLI",
"pages": ["cli/reference"]
},
{
"group": "Configuration",
"pages": ["configuration", "configuration/refactronrc"]
},
{
"group": "Migration mode",
"pages": [
"transforms/index",
"transforms/callback-to-async-await",
"transforms/format-to-fstring",
"transforms/manual-typecheck-to-hints",
"transforms/deprecated-api-requests-to-httpx",
"transforms/class-to-dataclass",
"transforms/var-to-const-let",
"transforms/promise-chains-to-async",
"transforms/implicit-any",
"transforms/commonjs-to-esm",
"transforms/promise-constructor-to-async",
"transforms/super-no-args",
"transforms/lru-cache-to-cache",
"transforms/pep585-generics",
"transforms/pep604-optional-union",
"transforms/datetime-utc-alias",
"transforms/yield-from-for-loop",
"transforms/indexof-to-includes",
"transforms/object-assign-to-spread",
"transforms/string-concat-to-template-literal",
"transforms/vue-set-delete-to-assignment"
]
},
{
"group": "Reference",
"pages": ["changelog", "reference/performance", "reference/citations"]
}
]
},
{
"group": "Concepts",
"pages": ["concepts/safety-model", "concepts/why-no-llm"]
},
{
"group": "CLI",
"pages": ["cli/reference"]
},
{
"group": "Configuration",
"pages": ["configuration", "configuration/refactronrc"]
},
{
"group": "Migration mode",
"pages": [
"transforms/index",
"transforms/callback-to-async-await",
"transforms/format-to-fstring",
"transforms/manual-typecheck-to-hints",
"transforms/deprecated-api-requests-to-httpx",
"transforms/class-to-dataclass",
"transforms/var-to-const-let",
"transforms/promise-chains-to-async",
"transforms/implicit-any",
"transforms/commonjs-to-esm",
"transforms/promise-constructor-to-async",
"transforms/super-no-args",
"transforms/lru-cache-to-cache",
"transforms/pep585-generics",
"transforms/pep604-optional-union",
"transforms/datetime-utc-alias",
"transforms/yield-from-for-loop",
"transforms/indexof-to-includes",
"transforms/object-assign-to-spread",
"transforms/string-concat-to-template-literal",
"transforms/vue-set-delete-to-assignment"
"tab": "MCP",
"icon": "/assets/clients/mcp.svg",
"groups": [
{
"group": "Get started",
"pages": ["mcp/index", "mcp/quickstart"]
},
{
"group": "Connect your client",
"pages": [
{
"group": "Claude",
"icon": "/assets/clients/claude.svg",
"pages": ["mcp/claude-code", "mcp/claude-desktop"]
},
"mcp/codex",
"mcp/cursor",
"mcp/vscode",
"mcp/gemini-cli",
"mcp/windsurf",
"mcp/other-clients"
]
},
{
"group": "Reference",
"pages": ["mcp/tool-reference"]
}
]
},
{
"group": "Reference",
"pages": ["changelog", "reference/performance", "reference/citations"]
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion docs/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ It's the honest verdict, and the reason to trust the other two. `UNPROVEN` means

## Does it work with my AI agent?

Yes, that's the point. Refactron ships an [MCP server](/verification/mcp-server) with a `verify_change` tool. Your agent proposes an edit, calls `verify_change`, and gets back the `SAFE` / `UNSAFE` / `UNPROVEN` report before it lands anything. Refactron doesn't replace Cursor, Claude Code, Copilot, or Codex; it's the deterministic gate they call to check their own work.
Yes, that's the point. Refactron ships an [MCP server](/mcp/index) with a `verify_change` tool. Your agent proposes an edit, calls `verify_change`, and gets back the `SAFE` / `UNSAFE` / `UNPROVEN` report before it lands anything. Refactron doesn't replace Cursor, Claude Code, Copilot, or Codex; it's the deterministic gate they call to check their own work.

---

Expand Down
Loading
Loading