Skip to content

chore(sync): merge T3 Code tip 3fac5b2ad2 into m3code - #7

Merged
SynurDevelopers merged 2602 commits into
mainfrom
sync/t3-2026-12-03
Dec 4, 2026
Merged

SynurDevelopers merged 2602 commits into
mainfrom
sync/t3-2026-12-03

Conversation

@SynurDevelopers

@SynurDevelopers SynurDevelopers commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

MiaAI-Lab/m3code is 2571 commits behind pingdotgg/t3code and has stopped tracking it closely. So this branch merges T3 Code's tip (3fac5b2ad2, 2026-12-02) straight into Synur main. It is a merge (--no-ff); no history is rewritten. The policy: T3's code wins by default, and the fork's deltas are re-applied on top of it. Those deltas are M3 naming and paths, the telemetry/Clerk/feedback removal, Synur's security hardening, fork CI, and MiaAI's feature work.

Conflicts (392 files)

Area Files How they were resolved
apps/server 89 (22 delete/modify) T3 code. Telemetry, feedback, routineSpan and MCP analytics stripped. Security deltas re-applied. Migrations renumbered (below).
apps/web 90 T3 code (tagged-template i18n) with the fork's sidebar, settings, inference, Vikunja and M3 branding put back.
apps/mobile 73 (4 delete/modify) T3 code. Tech Moca fonts merged into T3's new font picker. M3 identity kept. Clerk, expo-observe and feedback removed.
docs 50 T3's rewrites, then M3 branding (~/.m3). Fork-only sections kept. Telemetry and feedback docs left out.
packages/* 61 T3 code. Contracts keep the fork's settings defaults, inference, and both Vikunja baseUrl and T3's credential fields.
apps/desktop 22 T3 code with M3 home and app-identity isolation. OTel export removed.
i18n catalogs (30) Union of both sides' keys (T3 wins on the same key). Regenerated with i18n:generate in 3b3d902.
root, lockfile, infra, scripts, evals, marketing 13 Clerk, axiom and expo-observe dropped from the workspace catalog, overrides and patches.

Lockfile. This is T3's pnpm-lock.yaml with these changes: Clerk, axiom, expo-observe, expo-auth-session, aws4fetch and dm-sans pruned; the fork-only workspace importers added (provider-omp, provider-noname, issue-tracker-vikunja, m3-server); and the Tech Moca fonts added from the fork's lockfile. It was edited by script, not by pnpm, because a local pnpm install would have fetched about 600 new upstream packages and that needs approval. CI's frozen install is the first real check of it. packageExtensions keeps upstream's two inert Clerk entries so that packageExtensionsChecksum matches.

Migrations. Fork id = T3 id + 23. T3's new migrations 116–126 are fork 139–149. T3 121 AgentFeedbackErrorCode alters the removed agent_feedback table, so it is not included and 144 is left empty, matching the existing gap at 131. Existing fork ids are unchanged.

Judgement calls that need review

Security / Synur invariants

  1. apps/desktop/src/electron/ElectronUpdater.ts (new in T3) passes ...process.env to pkexec/sudo when installing the .deb update. It is added to reviewed_env_spreads in a separate commit.
  2. WorkspaceFileSystem: T3 lets a workspace-relative path follow a symlink out of the root, read-only. The fork's rule stays: that is refused unless allowOutOfWorkspaceFileReads is on.
  3. AssetAccess: T3's out-of-root link grant now also goes through isAllowedByWorkspacePolicy.
  4. Claude OAuth usage and reset-credit tests from T3 are dropped, and the no-scraping test is kept.

Telemetry, feedback, Clerk (removed again where T3 added them)
5. Removed: T3's agent-feedback Labs row, feedback_request cards, Codex /feedback, the MCP ToolFailures analytics, withToolAnalytics/withToolSpans, the WelcomePage TelemetryNotice, the telemetry managed-policy key, relay account-deletion emails (AccountEmails.ts), mobile connection-traces and crash-report settings, and the desktop OTel export.
6. T3's resourceTelemetry/* imports now point at the fork's renamed resourceMonitor/* (HostResources, NativeMonitorClient).
7. T3CODE_FEATURE_FLAGS is forwarded to the desktop backend again. The fork had dropped it along with telemetry, but feature flags and GitHub App sign-in read it.

Fork features rebuilt on T3's code
8. Antigravity: T3 shipped its own agy usage probe, so it replaces the fork's (88bcc1c, b1a1fbb). T3's removal of the Zed client impersonation and its managed-update path were also taken.
9. Forgejo: T3 did a fuller tea→gt migration, which replaces the fork's (c2621b9).
10. Issue trackers: T3's probeCredential(credential) with {token, fields} is merged with Vikunja's separate base URL into probeCredential(credential, baseUrl?). credentials.get returns Option<IssueTrackerCredential> and the optional getBaseUrl is kept. In web settings, Vikunja's server URL is now one field of T3's credential form.
11. Mobile fonts: Inter and JetBrains Mono are the defaults on both platforms (T3 defaulted to SF Pro on iOS). T3's Meslo stays as an option, and the fork's monospace switch still applies.
12. Mobile style conflicts went to the fork's Tech Moca classes (ReadOnlyComposerBar, ProposedPlanCard, ComposerAttachmentStrip, environment rows). The mobile app version is 2.4.0 (raised from 2.3.1 in 41a5295; T3 is at 2.4.1).
13. Web: the command palette's add-project uses T3's draft-aware flow, and the fork's Add project dialog also adopts drafts.
14. Startup shell probe: T3's FNM_MULTISHELL_PATH is taken, with the fork's 15 s timeout (T3 uses 5 s).
15. apps/server/src/provider/agentContextBudget.json combines T3's three values with the fork's mcpLeanToolListJsonBytes. It needs regenerating from AgentContextBudget.test.ts.

Branding
16. New T3 strings are rebranded "M3 Code" in agent-facing text, CLI messages, docs and UI. cli/update.ts names Synur-Tech/m3code (10eea9a).
17. Mobile and client-runtime keep the fork's "M3 Connect" copy, while docs use "T3 Connect". This mismatch predates the merge.
18. Left as they were: the HandoffGit commit identity (T3 Code), SSH ~/.t3/runtime on remote hosts (the launcher still uses it), and marketing site copy.

Patch queue

origin/synur/patch-queue holds one commit, 3175a95. It is a cherry-pick of 5c1c346, which main already contains, so it was empty on top of the merge and was skipped. It is obsolete.

Verification

  • scripts/check-synur-invariants.sh passes, after the reviewed-env commit.
  • CI on the head commit: Build and Typecheck, Test, Test Web 1–2, Test Server 1–8, Release Smoke, Rust, Mobile Native Static Analysis and Native fingerprint diff all pass. The frozen install from the script-edited lockfile succeeded.
  • The two checks that failed on the merge commit are settled:
    • Lint → Check i18n catalogs: the catalogs in apps/web, apps/mobile and apps/desktop were regenerated and the new keys translated in 3b3d902.
    • Agent context budget: the agent context grew by +147, +341 and +701 bytes (claudeSystemAppendBytes, codexAdditionalContextBytes, mcpToolListJsonBytes) because of T3's new tool and instruction text. CI's measured values are committed, and the PR carries the agent-context-increase label.

Follow-up commits after the merge (fixes for CI fallout):

  • Fixes to the merge:
    • client-runtime: gt v12 tagged templates and the M type, plus a duplicate import.
    • server: a missing StandaloneIssueTrackerApi import, the isMcpInvalidParams guard, and the HostResources test the merge left empty.
    • web: the unclosed Vikunja icon <svg>, the Plural fallback, the add-project onClick, and a duplicate sidebar empty state.
    • mobile: SettingsRow navigates with CommonActions, because TypeScript stops resolving a union of more than 25 route names.
  • Tests moved to fork behaviour:
    • Server: the fork's release repo, the m3code.service name, the opt-in for out-of-workspace reads, the fork's text-fallback policy and order, and Claude's new enabled field.
    • Web: M3 copy, local-first provider order, and the removed trace diagnostics.
    • client-runtime: no connection params.
  • Connect troubleshooting: two headings keep the T3 wording, because in-app help links use the upstream guide's anchors.

Extra judgement calls from CI fixes (please review): the sidebar's second "No projects yet" empty state was removed. It was a leftover the merge kept, and it was already duplicated on main. The projectGrouping test fixture names the real t3tools/t3code repo "T3 Code" again.

Review fixes

Finding Commit Change
F1 privileged .deb install env 0ae806b pkexec/sudo/dpkg resolved from fixed system dirs, argv spawn without a shell, allowlisted env plus fixed PATH. gksudo/kdesudo/beesu are no longer tried.
F2 + senior-dev #4 out-of-root symlinks 6924d9d, d45315e WorkspaceEntries follows out-of-root links only when allowOutOfWorkspaceFileReads is on, and its four entry points check the cwd against known workspaces. One fail-closed helper reads the setting for WorkspaceEntries, WorkspaceFileSystem and AssetAccess. Adds an AssetAccess gate test.
F3 MCP ${VAR} expansion 9caed29, b21d623 Expansion withholds host secrets that provider sanitizing strips. Agent t3_mcp_server_update writes containing ${…} ask for approval through the existing MCP approval flow, and are refused when the client cannot ask.
F4 handoff branch names 8e22e18 Branch names are validated against check-ref-format --branch rules in the contract and again in HandoffGit. -- is passed before worktree paths, because --end-of-options isn't supported by worktree add before git 2.44. Worktree folder names are sanitized. The ref-write scope is documented in SECURITY.md instead of using a handoff/ prefix, which would break same-branch moves. Adds a rollback test.
F5 invariants e1737b0, 6a5f732 host_env_handover now catches HostProcess.Environment spreads and ?? process.env/?? hostEnvironment. The Codex and Claude fallbacks are narrowed, and the remaining hits are allowlisted with reasons. New checks cover telemetry/Clerk SDKs, the file-read default, the release repo and MCP env expansion. The ElectronUpdater entry is removed.
F6 supply chain none All minimumReleaseAgeExclude entries match upstream and are pinned in the lockfile, so they are kept. The @clerk/expo packageExtensions are kept, because removing them changes packageExtensionsChecksum and breaks the frozen install. apps/docs configures no Blume analytics, so nothing is injected.
F7 + senior-dev #5 issue trackers 8365c44 Jira and Vikunja URLs require https and refuse private, link-local, loopback and metadata hosts. No docs rely on a local Vikunja, so there is no loopback exception. The Vikunja URL moves to credential.fields.url, with fallback field → legacy secret → T3CODE_VIKUNJA_URL. Removes probeCredential baseUrl, getBaseUrl and requiresBaseUrl.
F8 startup recovery releases link 7fd20f3 Uses the shared CLI_RELEASES_PAGE_URL.
Senior-dev #7 mobile version 41a5295 2.3.1 → 2.4.0
Decision: Vikunja opt-in a3be12c Vikunja is off unless T3CODE_FEATURE_FLAGS includes vikunja (the flag system that already gates TanStack Source), and connecting still needs its server URL and token. While off, the registry leaves it out, so settings (web and mobile) and the MCP issue tools never list it. A connect is refused with unknown-tracker, and the message names the flag. Issue calls report tracker-unsupported. Saved credentials and bindings stay in storage, unused. The strict URL policy (https only, no private hosts) is unchanged.
Decision: release repo 10eea9a CLI_RELEASE_REPOSITORY in cliRelease.ts is the one exported constant, set to Synur-Tech/m3code. The CLI, t3 update errors, the startup-recovery link and the web desktop-update fallback all use it. install.sh, install.ps1 and the npm launcher can't import it, so they name the same repo. Both invariant scripts require exactly Synur-Tech/m3code. Upstream-only references are left as they are: upstream-gated workflows, AUR packaging, marketing site, triage prompt, issue templates, docs links and test fixtures.
Installer home 601a097 install.sh, install.ps1 and the npm launcher default to ~/.m3 (matching DEFAULT_HOME_DIRNAME), so the launcher they write, runtime/versions, runtime/launchers and the <home>/bin/t3 ownership check agree with the app, service and t3 update. T3CODE_HOME still overrides; the t3 command name and ~/.local/bin are unchanged. An existing ~/.t3/runtime/versions gets a one-line note and is not moved. check-fork-invariants.sh now also guards the installers and launcher. Tests cover the default home with and without ~/.t3; user docs and MIA_CHANGELOG updated.

Left out:

  • Lockfile regeneration, pending install approval. This also covers removing the dead @clerk/expo packageExtensions.
  • Connect branding, pending a product decision.

Decided: private hosts stay blocked for Vikunja, which is now opt-in. Releases come from Synur-Tech/m3code.

Review round 1 fixes (0a73ad4)

Codex's four blocking findings (review 6180555416) and most of the own review's suggestions are fixed in one commit. No tests ran locally (no node_modules); CI is the check. Three follow-up commits fixed CI: knip flagged exports in provider-omp and provider-pi once knip covered the fork's workspaces (b1e407b, 7542ea3), and oxfmt formatting plus one lint rename (6f36977). CI is green on 6f36977.

Finding Change
Tracker requests reach internal addresses Jira and Vikunja requests refuse redirects. Before each request, probe or saved token, the server resolves the host name and refuses it if any address is internal. IPv6 forms that hide an IPv4 address (::7f00:1, ::ffff:0:…, 64:ff9b::/96, 2002::/16) and site-local fec0::/10 now count as internal. The connection still does its own DNS lookup, so a DNS answer that changes in between (DNS rebinding) is not blocked. SECURITY.md says so.
MCP approval skips kept secrets The approval scan now reads the values a { stored: true } entry keeps, so moving a kept ${VAR} header to a new URL asks first. The approval is bound to that full config and re-checked before saving. The prompt names the field that holds each variable, such as headers.Authorization.
Handoff through a symbolic branch ref A branch name that is a symbolic ref is refused. Branch writes and rollbacks use update-ref --no-deref with the expected old value. The worktree folder is checked to stay inside the worktrees directory after symlinks are resolved.
Install guide points at upstream The one-line installers in the docs, CLI fallback, service preflight, web install card and SSH hint use Synur-Tech/m3code scripts/install.sh / install.ps1. Advice to run npx t3@latest (upstream's npm package) is removed. The Android APK links are unchanged.
N4 Vikunja token stuck while its flag is off Disconnect now works with the flag off. Connect stays gated. Settings does not list a switched-off tracker, so removal works through RPC and MCP only.
N6 DO_NOT_TRACK Forwarded to provider CLIs and WSL again. T3CODE_TELEMETRY_ENABLED stays out.
N7 knip Checks apps/m3-server, provider-noname, provider-omp and issue-tracker-vikunja again.
N8, N9 invariant script The MCP-references check fails when its file is missing. Check F5's message now says it covers only the inline HostProcess.Environment spread.
N11 AssetAccess links A link out of the workspace is followed only when allowOutOfWorkspaceFileReads is on, as in WorkspaceFileSystem. This also refuses links into other known workspaces, which upstream allowed.
N14 docs Removed links to the deleted telemetry.md and the t3 feedback row.

Follow-ups. Issues are disabled on this repository, so these are listed here instead of filed:

  1. N3: WorkspaceEntries checks known workspaces on every list and search call, after reading the path from disk.
  2. N5: MCP servers dropped for withheld variables are only logged; the user is not told.
  3. N8: check F5 should also catch const env = yield* HostProcess.Environment followed by ...env.
  4. N10: install.sh downloads before it checks who owns ~/.local/bin/t3, so an upstream launcher fails the install only after the download.
  5. N12: useAddProjectAtPath duplicates the command palette's add-project logic and lacks upstream fix(web): keep the current thread open when a folder add finishes pingdotgg/t3code#44930's navigation guards; the palette also drops addProjectDraftId.
  6. N15: apps/docs/blume.config.ts still points at t3.codes and pingdotgg/t3code.
  7. Translated strings waiting on catalog regeneration: N17 (mobile disk warning says "T3 Code"), N13 (errorPresentation.ts:92 says "M3 Chat", should be "T3 Chat"), and DesktopHomeOwner.ts:99 (still advises npx t3@latest).
  8. cli/pair.ts:548 builds npx t3@<version> pair for remote hosts, which resolves to upstream's npm package; the fork has no npm package. (docs/user/triage.md is fixed in round 2.)
  9. N18: two tests build the expected URL from the constant under test; one German string uses the formal register; some docs still say "T3"; three mobile comments mention DM Sans.
  10. R6 (round 2): Settings still shows no row for a switched-off tracker that holds a saved credential, such as Vikunja with its flag off, so its Disconnect is reachable only through RPC and MCP. A fix needs a disabled field on IssueTrackerConnection, list returning those trackers, and web and mobile rows that offer only Disconnect for them. That is a contract change plus new UI branches, so it is left out of this sync.
  11. R5 (round 2): docs/operations/03_release.md:15 still says npx t3@<version>. The whole runbook describes upstream's release pipeline (pingdotgg/t3code, app.t3.codes, the npm nightly tag), so it needs a fork-specific rewrite rather than a one-line change.
  12. Upstream links left in docs: docs/user/workflows.md:15, docs/user/t3-connect-troubleshooting.md:80 (where to open issues), the link text "Install T3 Code" in docs/user/cli.md:5, and the clone URL in docs/operations/00_development.md, which the Intel Mac steps now link to.

Review round 2 fixes (34ba318)

The round 2 own review (6181379216) had three blocking findings, and all are fixed in one commit. That review also carried Codex's re-review, which was not posted to GitHub. No tests ran locally (no node_modules); CI is the check.

Finding Change
R1 DNS rebinding on tracker requests Jira, Linear and Vikunja connections now use a DNS lookup that refuses a name when any address it resolves to is internal. So the address the connection uses is the address that was checked. The URL keeps its hostname, so TLS still verifies the certificate. The pre-flight check stays, for its clearer error message. SECURITY.md no longer describes a known rebinding window. Built-in git hosts keep their own client.
R2 MCP kept ${…} values checked outside the write lock The settings service builds and saves one MCP server entry inside its serialized write (updateMcpServer, updateProjectMcpServer). The approved-references check runs inside that write, against the settings it saves over, for both the project path and the environment path. Tests change the saved entry between approval and save, and expect the write to be refused.
R3 install guide points at upstream The Intel Mac runbook link, clone URL, folder name and desktop Releases link use Synur-Tech/m3code. A note says the Homebrew, winget, Scoop, AUR and Nix packages install upstream T3 Code. The Android APK links are unchanged.
R4 handoff upload left behind The upload cleanup now wraps the whole bundle import, so a refused worktree path also removes the uploaded bundle.
R5 npx t3 triage docs/user/triage.md uses t3 triage and links to the install steps. 03_release.md is follow-up 11.
R7 local-use NAT64 Every address in 64:ff9b:1::/48 (RFC 8215) counts as internal.
R6 switched-off tracker has no Disconnect row Not changed; follow-up 10.

🤖 Generated with Claude Code

StiensWout and others added 30 commits December 2, 2026 07:48
…cts partway (pingdotgg#47535)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Codex <codex@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ckticks (pingdotgg#47494)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ngdotgg#47542)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
… stopped (pingdotgg#47519)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ngdotgg#47549)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ads slowly (pingdotgg#47609)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ingdotgg#47550)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#47559)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…47553)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…turn ends (pingdotgg#47545)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…age search matches (pingdotgg#47555)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…tup details (pingdotgg#47530)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…votes (pingdotgg#47567)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…at replies stream (pingdotgg#47579)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ms (pingdotgg#47584)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…utoff (pingdotgg#47585)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ollow-up (pingdotgg#47563)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
… vertically (pingdotgg#47588)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…tgg#47600)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…nds prices on unmapped ones (pingdotgg#47605)

Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
SynurDevelopers and others added 2 commits December 3, 2026 21:24
The opted-in tests reused the layer the shared test setup had already built,
so the setting never reached the gate.

Follow-up to review finding F2 (CI).

yokoten: not-applicable

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follow-up to review finding F5 (CI).

yokoten: not-applicable

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SynurDevelopers SynurDevelopers added the agent-context-increase Accept agent context budget increase from upstream or approved MCP changes label Dec 3, 2026
SynurDevelopers and others added 7 commits December 4, 2026 06:58
…S=vikunja

Vikunja is not needed by default. The registry now offers it only when the
operator adds `vikunja` to T3CODE_FEATURE_FLAGS (the same flag system that
gates TanStack Source). While off it is absent from the standalone tracker
list, so web and mobile settings and the MCP issue tools never see it, a
connect is refused with an expected unknown-tracker error naming the flag,
and issue reads report tracker-unsupported. Saved Vikunja credentials and
bindings stay in storage untouched. The https-only, public-address URL
policy is unchanged when it is on.

yokoten: git grep -i vikunja (registry, connections, IssueService, web/mobile settings, client-runtime issueLinks, MCP toolkit) — every listing and call path reads IssueTrackerRegistry, so gating the registry covers them; no other changes needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…3code

CLI updates, service installs, the desktop startup-recovery link, and the
web desktop-update fallback pulled from MiaAI-Lab/m3code or
pingdotgg/t3code. CLI_RELEASE_REPOSITORY in cliRelease.ts is now the one
exported constant (Synur-Tech/m3code) used by the CLI, update errors,
startup recovery and the web release links. The standalone installers
(install.sh, install.ps1, npm launcher) cannot import it and now name the
same repository. Both invariant scripts require exactly Synur-Tech/m3code.

yokoten: git grep "MiaAI-Lab/m3code|pingdotgg/t3code" — release/update/download paths fixed; upstream-only workflows, packaging/aur, marketing site, triage prompt, issue templates, docs and test fixtures left as upstream references.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nstaller tests

The SSH tunnel test now reads the expected URL from CLI_RELEASES_PAGE_URL,
and the install.sh fixture serves the Synur-Tech/m3code release paths.

yokoten: git grep "MiaAI-Lab/m3code|pingdotgg/t3code/releases" across tests — only the tunnel and install fixtures exercise the changed repo; desktop updater, marketing and AUR fixtures use their own upstream data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
install.sh, install.ps1 and the npm launcher download this fork's CLI from
Synur-Tech/m3code but still unpacked it into ~/.t3, upstream T3 Code's home,
while the app, service and `t3 update` use ~/.m3. The t3 launcher, runtime
launchers list and ownership checks now all derive from ~/.m3; T3CODE_HOME
still overrides. An existing ~/.t3 install gets a one-line note and is not
moved. check-fork-invariants.sh now also guards the installers and launcher.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@SynurDevelopers SynurDevelopers left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

[Codex gpt-6.2-sol review]

Changes needed: 4 blocking

This pull request merges upstream T3 Code and restores the fork's security controls and release defaults. Fix the tracker network policy, MCP approval, handoff ref writes, and advertised install sources before merging.

# Label Problem Why it matters What to change
1 issue (blocking) Check the address each tracker request connects to The Jira and Vikunja checks inspect the hostname text. A hostname that resolves to a private address still passes and receives the authenticated request if TLS succeeds. The HTTP client also follows redirects by default. Enforce the public address policy at connection time and reject redirects or reapply the policy at every hop. Cover both tracker probes and requests made with saved credentials. outboundHost.ts:14
2 issue (blocking) Include retained environment references in MCP approval The approval scan skips { stored: true }, but the settings service restores that value before launching the MCP server. An agent can keep a sensitive header containing an environment reference and change the server URL without approval. Scan the effective configuration with retained values resolved, and bind the approval to that configuration. Add a test that changes the destination while retaining a stored reference. handlers.ts:121
3 issue (blocking) Reject symbolic branch refs before applying a handoff The checkout check looks for the submitted branch name. If that name is a symbolic ref, Git's update-ref follows it and can move the branch checked out in another worktree. Reject symbolic refs and use non-dereferencing, conditional ref writes for both the handoff and its rollback. HandoffGit.ts:392
4 issue (blocking) Point M3 install instructions at M3 artifacts The documented one-line installers still name pingdotgg/t3code and default to ~/.t3 when fetched. The npm registry also identifies t3@latest as upstream T3 Code, so users following the guide miss the fork's release and home defaults. Point the guide and the CLI install fallback at Synur's published installers. List an npm command only if it resolves to the fork's launcher. install.md:23

Non-blocking suggestions

What I checked
  • Round 1 at cb6cc66169f415a51799b845b6237fcfb0c44672, with 417b1e56cfd76bb6eab83184f39669b318047d46 as the comparison base. Used the remerge diff for 6f4b4c15c8 and the follow-up diff from that merge to head.
  • Traced the prioritized paths for F1–F8, including the exact electron-updater version, workspace entry/file/asset checks, MCP expansion and stored values, handoff branch writes, and the tracker registry and credential flow. Compared the release-age exclusions to upstream and checked that all retained entries appear in the lockfile. Checked the recovery links, installer defaults, and public installer and npm sources.
  • The Synur invariant script, shell and launcher syntax checks, and focused git diff --check passed. Ran the fork invariant script as well, whose result is affected by the documented dependency deferral. GitHub reported 27 completed checks with zero failures or pending checks. The findings are based on source traces and read-only checks. I did not run the app, install packages, or rerun the test suites.
  • Coverage is partial. I did not audit upstream-only changes, translation catalogs, lockfile contents beyond the exclusion check, or all merge resolutions outside the prioritized paths. In particular, I did not review the mobile native and font stack, relay and Connect changes, provider adapters outside the environment paths above, database upgrade behavior, or every web, documentation, and telemetry-removal hunk.

Comment thread apps/server/src/cli/update.ts Resolved
@SynurDevelopers

Copy link
Copy Markdown
Collaborator Author

[Codex gpt-6.2-sol review] Changes needed: 4 blocking

This pull request merges upstream T3 Code and restores the fork's security controls and release defaults. Fix the tracker network policy, MCP approval, handoff ref writes, and advertised install sources before merging.

@SynurDevelopers SynurDevelopers left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

[Own review — Claude Opus 5.5]

Approved, not auto-approved: an own review cannot approve a PR, and Codex's 4 blocking findings (review 6180555416) are confirmed and still stand.

This PR merges upstream T3 Code into the fork and fixes up the result. It should not merge until Codex's 4 blocking findings are fixed; this review adds no blocking items of its own.

The orchestrator checked each of Codex's 4 blocking findings against the code at cb6cc66169 and confirmed all of them. Two notes below add detail to Codex's threads rather than opening new ones.

Notes on Codex's threads

  • Codex #1, outbound host check (packages/source-control-core/src/shared/outboundHost.ts:14): besides redirects and DNS, these IPv6 literal forms are not treated as private: ::7f00:1, ::ffff:0:7f00:1, 64:ff9b::/96 (NAT64), 2002::/16 (6to4, which can embed a private IPv4 address), and fec0::/10 (site-local). For rejecting redirects there is a precedent: FetchHttpClient with RequestInit {redirect: "error"} in UsageLimitSources.ts:187 and textGeneratorDrivers.ts:87. If DNS results are not checked, SECURITY.md and the PR body should say the check covers literal hosts only.
  • Codex #2, MCP approval message (apps/server/src/mcp/toolkits/environment/handlers.ts:164-169): the message shows only command ?? url and the variable names. Name the field that holds each ${…} reference (args, env, headers, or oauth) so the user knows where the secret goes.

Non-blocking suggestions

Most items have an inline comment on the code. GitHub cannot attach comments to files past the first 3,000 in this PR, so items marked "details below" are written out in full in the next section. N16 and N18 appear only here.

  • N3: workspace check runs on every search keystroke and after a disk read.
  • N4: Vikunja token cannot be removed while its flag is off.
  • N5: MCP servers dropped for withheld variables are only logged.
  • N6: DO_NOT_TRACK no longer reaches provider CLIs.
  • N7: knip skips four fork-only workspaces. (details below)
  • N8: invariant check F5 misses the two-step HostProcess.Environment spread. (details below)
  • N9: MCP-references check passes if its file is renamed. (details below)
  • N10: installer fails after a full download when an upstream launcher exists. (details below)
  • N11 (question): AssetAccess and WorkspaceFileSystem disagree on cross-workspace symlinks.
  • N12: duplicated add-project logic misses upstream's navigation guards. (details below)
  • N13: "M3 Chat" should be "T3 Chat". (details below)
  • N14: user docs link to the deleted telemetry.md and a missing t3 feedback command. (details below)
  • N15: apps/docs still points at upstream's site and repo.
  • N17: mobile disk warning still says "T3 Code".
  • N16: the PR body is out of date. Item 12 says mobile stays at 2.3.1, but the head is 2.4.0 (41a529560d). Item 16 says cli/update.ts names MiaAI-Lab, but it now names Synur-Tech (10eea9a978).
  • N18 (low): pinnedRuntime.test.ts:613 and tunnel.test.ts:398 build the expected URL from the constant under test, so they cannot catch a wrong constant. The German string for allowAgentAutoEnableScheduledTasks mixes in the formal register ("bis Sie"). Some docs still say "T3" for the product (background-service.md:29, updating.md:51, thread-sidebar.md:16,28, remote-access.md:70,111, terminal.md:7, devices.md:49,62, html-renders.md:15). Three mobile comments still mention DM Sans.

Findings GitHub could not attach to a line

N7 (scripts/knip-check.ts:20) suggestion (non-blocking): EXPORT_WORKSPACES lost the fork-only workspaces in the upstream merge.

Why it matters: Knip (the unused-export checker) no longer scans provider-noname, provider-omp, issue-tracker-vikunja, or apps/m3-server. Dead exports in those packages will go unnoticed.

What to change: Add those four workspaces back to the list.


N8 (scripts/check-synur-invariants.sh:229) suggestion (non-blocking): Check F5 only catches the inline spread of HostProcess.Environment.

Why it matters: It flags ...(yield* HostProcess.Environment) but not const environment = yield* HostProcess.Environment; followed by ...environment. That two-step form exists today, for example LocalDeviceHost.ts:181,734, SimlockDeviceHost.ts:316, DocumentText.ts:81, TaskFolders.ts:531, GitVcsDriverCore.ts:1382, and externalLauncher.ts:901-904. So the check promises more than it enforces.

What to change: Flag the binding itself and keep an allowlist of reviewed files, or narrow the F5 description to the inline form only.


N9 (scripts/check-synur-invariants.sh:115) suggestion (non-blocking): The MCP-references check passes silently if mcpEnvironmentReferences.ts is moved or renamed.

Why it matters: If the file is gone, the grep finds nothing and the check reports success. The guard turns off without anyone noticing.

What to change: Fail when the file does not exist, the same way the cliRelease.ts check does.


N10 (scripts/install.sh:274) suggestion (non-blocking): A user with an old ~/.local/bin/t3 that points into ~/.t3 downloads everything, then hits a hard failure.

Why it matters: The ownership check at scripts/install.sh:334 runs after the download and stops with "another t3 is already at…". The user wastes the download and gets no hint that the old launcher came from upstream T3 Code.

What to change: Check launcher ownership before downloading, or name the upstream launcher in the error and say how to remove or replace it. Add a test that starts with an existing ~/.t3 launcher.


N12 (apps/web/src/hooks/useAddProjectAtPath.ts:98) suggestion (non-blocking): This hook duplicates the add-project logic in CommandPalette.tsx and misses upstream pingdotgg#44930's navigation guards.

Why it matters: Upstream added captureProjectOpen / isCurrent() and only navigates if the pathname has not changed. Without them, this hook can navigate the user away up to 3 seconds after createProject, even if they have moved on. DraftHeroHeadline.tsx:77 uses this unguarded hook. Separately, apps/web/src/components/CommandPalette.tsx:1772 calls openAddProjectDialog() without addProjectDraftId, so the draft is dropped.

What to change: Make the hook the single copy, port the upstream guards into it, and have CommandPalette.tsx (around line 2131) call it. Pass the draft id at line 1772.


N13 (packages/client-runtime/src/relay/errorPresentation.ts:92) suggestion (non-blocking): The message says "link a paid M3 Chat account"; it should say "T3 Chat".

Why it matters: The tunnel limits come from T3CHAT_PLAN_TUNNEL_LIMITS. M3 Chat does not exist, so the user cannot act on the message.

What to change: Change "M3 Chat" back to "T3 Chat" and regenerate the catalogs.


N14 (docs/user/README.md:118) suggestion (non-blocking): The docs index links to telemetry.md, which this PR deletes, and advertises features the fork removed.

Why it matters: This line promises telemetry opt-outs, agent feedback, and OTLP export. docs/user/diagnostics.md:22 has the same dead link, and docs/user/cli.md:52 documents a t3 feedback command that does not exist.

What to change: Remove the line here and the link in diagnostics.md, and drop the t3 feedback row from cli.md.

Not raised on purpose: the "M3 Connect" rename in registry.ts:1085 (Connect branding waits on an owner decision) and the Android APK links to MiaAI-Lab in docs/user/install.md:74,78 (waiting on an owner question).

What I checked
  • Seven parallel read-only reviewers (code-review skill) covered:
    • P1: post-merge commits 6f4b4c15c8..cb6cc66169 in apps/server and packages (68 files).
    • P2: post-merge commits in desktop, web, mobile, client-runtime, scripts, installers, and docs (52 files), plus all 33 regenerated i18n catalogs (key parity checked).
    • P3a, P3b, P4a, P4b: every conflict resolution in merge 6f4b4c15c8, via git show --remerge-diff (449 files, excluding i18n JSON and pnpm-lock.yaml).
    • P5: invariant sweep of upstream code that merged without conflict, across the head tree.
  • Upstream T3 code itself was not reviewed line by line.
  • Not read in full: Orchestrator.ts, ClaudeAdapterV2.ts, CodexAdapterV2.ts, terminal/Manager.ts, ScheduledTaskService.ts, AgentSessionScanner.ts, ws.ts, McpHttpServer.ts, server.ts, antigravityUsageLimits.ts, contracts rpc.ts / orchestrationV2.ts / settings.ts (hunks only), the opencode v2 adapter, DesktopBackendManager.ts, Forgejo CLI and provider files, and HostResources.test.ts (skimmed). Docs remerge hunks were checked by script after normalising branding.
  • Static review plus read-only scripts: check-synur-invariants.sh exits 0; check-fork-invariants.sh exits 1 only on the deferred @clerk/expo packageExtensions.
  • No test suites were run locally (no node_modules). CI is green on the head.

Comment thread apps/server/src/assets/AssetAccess.ts Resolved
Comment thread apps/docs/blume.config.ts Resolved
SynurDevelopers and others added 4 commits December 4, 2026 11:05
- Trackers: Jira and Vikunja requests refuse redirects and refuse a host
  whose DNS answers include an internal address; embedded-IPv4 and
  site-local IPv6 forms count as internal. DNS rebinding between lookup
  and connect is documented in SECURITY.md, not claimed closed.
- Vikunja credentials can be removed while its flag is off.
- MCP approval scans the effective config with kept { stored: true }
  values resolved, binds the digest to it, re-checks inside the lock,
  and names the field that holds each ${VAR}.
- Handoff refuses symbolic branch refs, writes and rolls back with
  update-ref --no-deref and old-value conditions, and checks the
  resolved worktree folder stays under the worktrees directory.
- Install instructions and CLI fallbacks point at the fork's
  installers; npx t3@latest advice removed (one translated desktop
  string left for catalog regeneration).
- DO_NOT_TRACK forwarded again; knip covers fork-only workspaces;
  invariant check fails closed when its file is missing and F5's
  message says it covers the inline spread only; AssetAccess refuses
  out-of-root links unless out-of-workspace reads are allowed.
- Docs: drop dead telemetry links and the nonexistent t3 feedback row.

Trade-offs (senior-dev Mode B): the tracker check is a deny-list beside
McpWebhookTransport's allow-list and leaves the shared host classifier
unchanged to keep upstream merges clean; trackers on hosts that resolve
to private addresses (VPN, split DNS) are now refused; AssetAccess now
refuses links into other known workspaces when out-of-workspace reads
are off.

Not run locally (no node_modules): tests, typecheck, lint. CI is the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
knip now checks provider-omp: stop exporting its internal OMP_PROVIDER and
OMP_FLAVOR, and drop the unused OmpAdapterV2Driver.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
knip: drop the provider-pi entry re-export of createPiAdapterV2Driver,
unused now that provider-omp no longer builds an adapter V2 driver.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Apply oxfmt formatting to four changed files, and import node:dns/promises
under the namespace name the t3code lint rule expects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SynurDevelopers

Copy link
Copy Markdown
Collaborator Author

cursor review

Fixed this round:

  • packages/source-control-core/src/shared/outboundHost.ts, server/outboundAddress.ts, JiraApi.ts, VikunjaApi.ts: tracker requests refuse redirects and hosts that resolve to internal addresses; embedded-IPv4 and site-local IPv6 count as internal (thread: tracker network policy)
  • apps/server/src/mcp/toolkits/environment/handlers.ts: approval scans kept { stored: true } values, binds to the effective config, names each variable's field (thread: retained MCP references)
  • apps/server/src/peer/handoff/HandoffGit.ts: symbolic branch refs refused; update-ref --no-deref with old values for write and rollback (thread: symbolic refs)
  • apps/server/src/peer/handoff/HandoffImport.ts: resolved worktree folder checked against the worktrees directory (thread: resolved parent)
  • docs/user/install.md, cli/install.ts, servicePreflight.ts, InstallT3Commands.tsx, tunnel.ts, serverOwnership.ts, DesktopWslBackend.ts: installers point at Synur-Tech/m3code; npx t3@latest advice removed (thread: install instructions)
  • apps/server/src/issue/IssueTrackerConnections.ts: Vikunja disconnect allowed while its flag is off (thread: one-way door)
  • apps/desktop/src/shell/DesktopShellEnvironment.ts, packages/contracts/src/resourceMonitor.ts: DO_NOT_TRACK forwarded again (thread: DO_NOT_TRACK)
  • apps/server/src/assets/AssetAccess.ts: out-of-root links need allowOutOfWorkspaceFileReads (thread: AssetAccess symlinks)
  • scripts/knip-check.ts, scripts/check-synur-invariants.sh, provider-omp, provider-pi: knip covers fork workspaces; invariant check fails closed; unused exports removed

@SynurDevelopers SynurDevelopers left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

[Own review — Claude Opus 5.5, round 2]

Changes needed: 3 blocking

This head fixes most of round 1. The tracker address check, saved MCP secrets and the install docs still need work before merge, so it is not safe to merge yet.

Blocking

# Label Problem Why it matters What to change
R1 issue The tracker address check resolves DNS, then the HTTP client resolves it again on its own. A name that changes its answer between the two lookups (DNS rebinding) can still reach an internal address, and the request carries the credential. Do the address check inside the connection's own lookup and keep TLS hostname checks, as apps/server/src/mcp/McpWebhookTransport.ts:102 does. packages/source-control-core/src/server/outboundAddress.ts:36
R2 issue Kept ${…} values are checked before the settings write lock, and not at all when there is no thread lock. A concurrent write can change what the saved {stored: true} markers keep, so values nobody approved get stored. Check approved references inside the same serialized settings write (apps/server/src/serverSettings.ts:1473) for both the project and environment paths. apps/server/src/mcp/toolkits/environment/handlers.ts:479
R3 issue The Intel Mac source steps and the desktop Releases link point at pingdotgg/t3code. M3 users install upstream T3 Code instead of this fork. Point them at Synur-Tech/m3code, label upstream package-manager options as T3 Code, and leave the Android APK links for now. docs/user/install.md:39

Non-blocking

What I checked
  • Re-reviewed cb6cc66169..6f3697794b: 45 files, and I read every changed line.
  • Confirmed fixed from round 1: B1, B2, B3, B4, N4, N6, N7, N8, N9, N11, N14.
  • Ran 25 address edge cases against scratch copies of outboundHost.ts. That is how I found R7.
  • Codex (gpt-6.2-sol) also re-reviewed this head. Its review was not posted to GitHub, so this review carries its findings: R1, R2 (which I also confirmed), R3 and R4.
  • Limits: I did not run vitest, because node_modules is not installed in this worktree. Tests and typecheck rely on CI.

Findings on files GitHub cannot comment on

This PR changes more than 3,000 files, and GitHub accepts inline comments only on the first 3,000. These findings are here instead, each with a link to the line.

R1: packages/source-control-core/src/server/outboundAddress.ts:36

issue (blocking): The address check and the real connection each look up the hostname separately.

Why it matters: reachesInternalNetwork resolves the name, and then the HTTP client resolves it again when it connects. A server that changes its DNS answer between the two lookups (called DNS rebinding) can pass the check with a public address and then receive the request, credential included, at an internal one such as 127.0.0.1 or a cloud metadata address. The doc comment above says this gap stays open.

What to change: Run the same check inside the connection's own lookup option, so the address that was checked is the address that gets used. Keep the hostname for TLS so certificate checks still work. The repo already does this in apps/server/src/mcp/McpWebhookTransport.ts:102.

R3: docs/user/install.md:39

issue (blocking): The Intel Mac source steps and the desktop "GitHub Releases" link still point at pingdotgg/t3code.

Why it matters: M3 users who follow these steps clone and install the upstream T3 Code app, not this fork. That gives them a different build, and it does not have this fork's fixes.

What to change: Point the runbook link, the git clone URL and the folder name (lines 39–43), and the Releases link (line 49) at Synur-Tech/m3code. Label any upstream package-manager options that stay as T3 Code. Leave the Android APK links as they are until the owner answers that question.

R5: docs/user/triage.md:14

suggestion (non-blocking): npx t3 triage downloads the upstream t3 package from npm, not this fork.

Why it matters: An M3 user who is trying to fix a broken install would run triage from a different product.

What to change: Use t3 triage on lines 14, 16 and 17, and point to the fork's installer. Also check npx t3@<version> in docs/operations/03_release.md:15, if that line describes M3's own release.

R7: packages/source-control-core/src/shared/outboundHost.ts:40

suggestion (non-blocking): The local-use NAT64 prefix 64:ff9b:1::/48 is not treated as internal.

Why it matters: NAT64 is a way to reach IPv4 hosts through IPv6 addresses. RFC 8215 sets aside 64:ff9b:1::/48 for networks to use internally. Today 64:ff9b:1::a00:1, which maps to 10.0.0.1, returns false, so a private address gets through.

What to change: Treat every address in 64:ff9b:1::/48 as internal.

SynurDevelopers and others added 2 commits December 4, 2026 12:07
- Tracker connections resolve through a lookup that refuses internal
  addresses, closing the DNS rebinding gap after the pre-flight check (R1).
- MCP server writes validate kept ${...} references inside the serialized
  settings write, for both project and environment paths (R2).
- Install docs point Intel Mac source builds and desktop releases at the
  fork and label upstream package-manager builds (R3).
- Handoff import removes the uploaded bundle on every exit, including the
  worktree-path refusal (R4).
- Triage docs use the installed t3 command instead of npx (R5).
- Local-use NAT64 64:ff9b:1::/48 is treated as internal (R7).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gsUpdate)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@SynurDevelopers

Copy link
Copy Markdown
Collaborator Author

Replies to the round 2 findings that sit in the review body (review 6181379216), because GitHub cannot take inline comments on those files:

  • R1 — Fixed in 34ba318: Jira, Linear and Vikunja connections now resolve through a DNS lookup that refuses any internal address (internalAddressRefusingLookup in outboundAddress.ts, wired in IssueTrackerRegistry.ts). The address checked is the address connected to, and TLS still verifies the hostname. New tests cover the refusing lookup in both callback forms.
  • R3 — Fixed in 34ba318: docs/user/install.md points the Intel Mac runbook link, clone URL, folder name and desktop Releases link at Synur-Tech/m3code, and notes that the package-manager builds install upstream T3 Code. Android APK links are unchanged.
  • R5 — Fixed in 34ba318: docs/user/triage.md uses t3 triage and links to the install steps. Not changing docs/operations/03_release.md:15: that whole runbook describes upstream's release pipeline, so it is follow-up 11 in the PR body.
  • R7 — Fixed in 34ba318: every address in 64:ff9b:1::/48 counts as internal; new cases in outboundHost.test.ts.

CI is green on d04e11c (one lint fix commit after the round's push).

@SynurDevelopers

Copy link
Copy Markdown
Collaborator Author

cursor review

Fixed this round:

  • packages/source-control-core/src/server/outboundAddress.ts, apps/server/src/issue/IssueTrackerRegistry.ts — tracker connections use a DNS lookup that refuses internal addresses (R1: DNS rebinding)
  • apps/server/src/serverSettings.ts, apps/server/src/mcp/toolkits/environment/handlers.ts — MCP reference approval checked inside the serialized settings write (R2: race before the write lock)
  • docs/user/install.md — fork links for Intel Mac source build and desktop releases (R3)
  • apps/server/src/peer/handoff/HandoffImport.ts — upload cleaned up on every exit (R4)
  • docs/user/triage.md — t3 triage instead of npx (R5)
  • packages/source-control-core/src/shared/outboundHost.ts — 64:ff9b:1::/48 treated as internal (R7)

@SynurDevelopers SynurDevelopers left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

[Codex gpt-6.2-sol review]

Approved

This round fixes all four earlier findings: tracker connections check resolved addresses, MCP writes check retained references under the settings lock, the install links point to M3 Code, and rejected handoff uploads are cleaned up. The reviewed changes are ready to merge, with one optional documentation improvement.

Non-blocking suggestions

suggestion (non-blocking): Make the M3 Code download path clear before the package commands.

Why it matters: The opening line presents package managers as another way to install M3 Code. A reader who copies the first command before reaching the note below the table installs upstream T3 Code.

What to change: Lead with the M3 Code release downloads and label the Homebrew, winget, Scoop, AUR, and Nix commands as upstream T3 Code before readers reach them.

What I checked
  • Reviewed all 17 files in 6f3697794bd1fd1bb6998af36fc7f7cb632eb562..d04e11cab287d2c3981fb14c24c6081b87271301.
  • Traced the Jira, Linear, and Vikunja clients through the issue tracker registry to the Node connection lookup. The checked addresses go to the connection, and TLS still verifies the original hostname.
  • Traced environment and project MCP writes through the settings lock. Checked the new tests for a retained reference changing before the save.
  • Checked the desktop and Intel Mac links, plus cleanup of pending handoff uploads when path validation fails.
  • git diff --check passed. GitHub showed 27 passing checks on this commit. I reviewed the code and tests without running the local suites because dependencies were absent.

@SynurDevelopers

Copy link
Copy Markdown
Collaborator Author

[Codex gpt-6.2-sol review] Approved

This round fixes all four earlier findings: tracker connections check resolved addresses, MCP writes check retained references under the settings lock, the install links point to M3 Code, and rejected handoff uploads are cleaned up. The reviewed changes are ready to merge, with one optional documentation improvement.

@SynurDevelopers SynurDevelopers left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

[Own review — Claude Opus 5.5, round 3]

Approved, not auto-approved: the own review is not an approval source for the merge gate.

The round-3 changes (6f3697794b..d04e11cab2, 17 files) fix all three blocking findings from round 2: tracker DNS rebinding is closed by a checked lookup on the connection itself, MCP approval is re-checked inside the serialized settings write, and the install.md links work. They also fix R4, R5 and R7, so no blocking findings remain, and the two suggestions below can wait for a later PR.

Non-blocking suggestions

  1. suggestion (non-blocking): The redirect tests check a setting that production no longer uses. The Jira and Vikunja trackers now run on Effect's node:http client. That client ignores FetchHttpClient.RequestInit { redirect: "error" }. Production is still safe: the node client does not follow redirects, and a 3xx response (a redirect) is refused. But the code comment names the wrong mechanism, and the tests (JiraIssueTracker.test.ts:209-223, VikunjaApi.test.ts:111) would still pass if someone later added HttpClient.followRedirects. What to change: add a test that a 302 response sends exactly one request and fails, and reword the comment to name the real reason redirects are refused. JiraApi.ts#L346, VikunjaApi.ts#L357
  2. todo (non-blocking): No test checks how the refusing client is wired in. IssueTrackerRegistry.ts:109-116 depends on the order in which layers are provided, because the drivers read HttpClient when their layer is built. A later reorder could silently drop the protection. What to change: add one registry-level test with a stubbed DNS lookup that resolves to 127.0.0.1, and assert that no request is sent. IssueTrackerRegistry.ts#L109
What I checked
  • Every changed line of the 17 files in the round-3 changes.
  • R1 (DNS rebinding): reproduced in Node 24.10. An https/http Agent with the custom lookup refuses localhost, and the TLS servername is still the original hostname. No new dependency: @effect/platform-node was already a dependency.
  • R2 (MCP approval): no deadlock. The approval prompt is awaited before any lock is taken, and locks are always taken in the same order (thread, then settings). The approval digest is bound to the settings snapshot read under the lock.
  • R3–R5, R7: verified against the code.
  • SECURITY.md matches the code.
  • Not run: typecheck and Vitest (no node_modules in this checkout). CI is green on this head.
  • Coverage carried forward: round 1 covered seven partitions over the post-merge commits, all 449 conflict resolutions, and an invariant sweep of auto-merged upstream code. Rounds 2 and 3 reviewed each delta on top of that.

@SynurDevelopers SynurDevelopers left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

[Gemini 4 Neon review]

Independent review of d04e11cab287d2c3981fb14c24c6081b87271301 across three areas: security & trust boundaries, fork invariants / migrations / CI, and Round 2 fixes (R1–R7) & client surfaces. No blocking defects found.

Verified

  • Security & trust boundaries: internalAddressRefusingLookup wired for Jira/Linear/Vikunja (closing DNS rebinding while keeping TLS hostname verification); outboundHost.ts blocks internal IPv4/IPv6, embedded IPv4, site-local, and 64:ff9b:1::/48; MCP server writes validate retained ${VAR} references inside writeSemaphore.withPermits(1) with Effect.catchTags preserving OrchestratorMcpFailure; HandoffGit refuses symbolic branch refs and uses update-ref --no-deref; HandoffImport validates managed worktree paths and cleans up pending uploads on every exit; WorkspaceFileSystem and AssetAccess enforce known-workspace containment and gate out-of-root symlinks on allowOutOfWorkspaceFileReads; ElectronUpdater uses PrivilegedDebInstall.privilegedEnv (explicit allowlist) rather than spreading process.env.
  • Invariants & migrations: scripts/check-synur-invariants.sh exits 0; migrations 139–149 (with clean gap at 144 for dropped AgentFeedbackErrorCode) have no collisions with fork IDs 081, 082, 125; zero active Clerk/Sentry/PostHog/OTel/expo-observe/axiom dependencies in package.json or pnpm-lock.yaml; DEFAULT_RUNTIME_MODE stays "approval-required"; Claude OAuth scraper stays disabled; ci.yml uses GitHub-hosted runners and 20/20 CI checks are green.
  • Round 2 & client surfaces: docs/user/install.md and docs/user/triage.md updated to Synur-Tech/m3code / t3 triage; DO_NOT_TRACK and T3CODE_FEATURE_FLAGS forwarded in desktop shell env; Web and Mobile Security & isolation settings remain gated on access:write.

Non-blocking suggestions (address in this PR or a follow-up)

  1. scripts/check-fork-invariants.sh:22 vs pnpm-workspace.yaml:209,212 (suggestion, non-blocking): Running scripts/check-fork-invariants.sh locally exits 1 because pnpm-workspace.yaml retains the two inert Clerk packageExtensions entries (@clerk/expo@*, @clerk/expo-native-components@*) for upstream packageExtensionsChecksum parity. Not a runtime or CI blocker (ci.yml runs check-synur-invariants.sh, which exits 0, and upstream-sync.yml is manual workflow_dispatch), but manual upstream-sync.yml runs will fail verify until either those entries are removed on the next pnpm install or check-fork-invariants.sh ignores inert packageExtensions.
  2. apps/server/src/serverSettings.ts:1579-1587 (suggestion, non-blocking): updateMcpServerEntry runs build(settings) (which can consume a one-time secretRef) before persistSettingsUpdate checks Option.isSome(parseFailure). Failing immediately after the initial reloadSettings when parseFailure is Some avoids consuming a secretRef on a corrupt settings.json.
  3. packages/source-control-core/src/shared/outboundHost.ts:68-71 (suggestion, non-blocking): Consider also blocking IPv4 multicast/reserved (224.0.0.0/4, 240.0.0.0/4) and IPv6 multicast (ff00::/8) to align with hostClassification.ts.
  4. docs/user/install.md:76,80 (suggestion, non-blocking): Mobile APK release links still point to MiaAI-Lab/m3code (update to Synur-Tech/m3code if APKs are published from this fork).

@SynurDevelopers

Copy link
Copy Markdown
Collaborator Author

[Gemini 4 Neon review] Approved — good to go.

Independent three-area review (security & trust boundaries, fork invariants/migrations/CI, and Round 2 delta/client surfaces) on d04e11cab2 found 0 blocking defects. scripts/check-synur-invariants.sh exits 0, all 20 CI checks are green, and all 15 review threads are resolved. Four non-blocking follow-up suggestions are noted in the review comment.

@SynurDevelopers SynurDevelopers self-assigned this Dec 4, 2026
@SynurDevelopers
SynurDevelopers merged commit c537104 into main Dec 4, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-context-increase Accept agent context budget increase from upstream or approved MCP changes 📱 Native Change Changes the native fingerprint; merging blocks production OTAs until a new store build ships.

Projects

None yet

Development

Successfully merging this pull request may close these issues.