Skip to content

chore: retire T3 Code provenance leftovers - #349

Merged
Tryanks merged 1 commit into
mainfrom
t3-leftovers
Sep 7, 2026
Merged

chore: retire T3 Code provenance leftovers#349
Tryanks merged 1 commit into
mainfrom
t3-leftovers

Conversation

@Tryanks

@Tryanks Tryanks commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Why

tcode was ported from T3 Code. Two kinds of leftovers remained on main:

  1. A model-facing defect. crates/agent/src/codex/developer_instructions.rs (since 09714df) told Codex "You are running inside T3 Code. The t3-code MCP server is…". There is no such server; ours is tcode_preview. The module doc also claimed the text was "wire-exact, do not paraphrase" for T3's sake, which is not a real constraint.
  2. ~50 provenance comments ("mirrors T3's foo", "ported from Bar.ts", "T3's exact message", "T3 verbatim prefix") that point at identifiers in a codebase not in this repo and imply frozen text. They misled maintainers about what may be edited.

What

  • Browser section of the Codex developer instructions now names tcode and tcode_preview; substance unchanged. Plan/Default mode bodies untouched. Module doc states the actual coupling: the <proposed_plan> block and request_user_input / update_plan rules are consumed by the Codex adapter and plan UI.
  • Comments across agent, core, services, runtime, preview-mcp and ui rewritten to describe behavior. Tests named after provenance (error_copy_is_t3_verbatim, serialize_matches_t3, token_format_matches_t3, …) renamed after the behavior they assert.

Kept on purpose: SourceTool::T3Code and the T3 transcript import path (real compatibility), README acknowledgement, test fixture ids, and the T0..T3 material tiers in docs/DESIGN.md / material.rs (a surface tier, unrelated to T3 Code).

No behavior change apart from the developer-instructions string sent to Codex.

Checks

cargo fmt --all --check, cargo check --workspace, cargo test -p agent -p tcode-core -p tcode-services -p preview-mcp -p tcode-ui -p tcode-runtime all pass.

Related: #348 moved the preview_status → preview_open guidance into the tool descriptions so non-Codex providers get it too; Codex now receives it in both places, which is harmless.

The Codex developer instructions told the model it was running inside
"T3 Code" and named a nonexistent `t3-code` MCP server; the real server
is `tcode_preview`. Reword that section for tcode and replace the
module's "wire-exact, do not paraphrase" claim with the constraint that
actually exists (the <proposed_plan> / request_user_input / update_plan
contract shared with the Codex adapter and plan UI).

Elsewhere, comments that said "mirrors T3's X" / "T3's exact" /
"verbatim" pointed at identifiers in another codebase and implied the
text was frozen for compatibility that no longer exists. Rewrite them to
describe what the code does. Provenance-named tests are renamed after
the behavior they check.

Kept: SourceTool::T3Code and T3 transcript import compatibility, README
acknowledgement, test fixture ids, and the T0..T3 material tiers from
docs/DESIGN.md (unrelated to T3 Code).
@Tryanks
Tryanks merged commit 232aa2c into main Sep 7, 2026
5 checks passed
@Tryanks
Tryanks deleted the t3-leftovers branch September 7, 2026 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant