Skip to content

Draft: adapt upstream parameterless Claude tool calls (partial sync) - #1

Merged
sofyan48 merged 1 commit into
mainfrom
maintenance/upstream-20261125
Nov 27, 2026
Merged

sofyan48 merged 1 commit into
mainfrom
maintenance/upstream-20261125

Conversation

@sofyan48

Copy link
Copy Markdown
Owner

Upstream maintenance review — 2026-11-25

Scope and ancestry

Fork baseline: 1bb9115b on sofyan48/AI48Proxy:main.
Upstream inspected: router-for-me/CLIProxyAPI default main, tip
85225381d89915595598ed13766cd79890c03a84.

The Rust fork and Go upstream have independent root commits. Git ancestry and
patch IDs therefore cannot establish semantic coverage: git cherry reports
4,242 unmatched non-merge commits, not 4,242 proven missing features. Do not merge
unrelated histories or copy the Go tree into this Home-managed Rust worker.

This is a partial adaptation of upstream d2b7dbbdbc9ceeee0312b08c48867ec2789fde30
(missing Claude tool input). It does not claim coverage of the upstream tip.
The shared Claude call adapter now emits the JSON object string "{}" for omitted
input. Explicit null, string, array and boolean values remain invalid. Existing
object arguments and tool-result ownership checks remain intact. This applies
only to existing supported translation paths; it does not expand Codex source
format support or relax unsupported-feature gates.

Features preserved and conflict handling

No textual merge was attempted because the histories and languages differ.
Adapted the upstream improvement to the existing strict Rust translation boundary
without replacing the fork architecture. Preserved AI48 branding, Home-selected
credentials, mTLS/RESP lifecycle, database-backed control-plane ownership,
accounting, plugin startup guards, payload-rule ordering, existing API routes and
fail-closed validation. No Home or UI API shape changes are introduced.

Database

No worker schema migration is involved. Home origin/main schema version is 29;
upstream Home schema version is 20. Home stays 29 -> 29. No migration was
renumbered, removed, added or executed. Production databases were not accessed.

Pending upstream review

  • 85225381: credential-scoped signature cache; fork docs explicitly exclude full
    signed reasoning replay. Do not infer that enabled config implies cache parity.
  • bffe6e7e: credential-replacement transport pool isolation needs a Rust-specific
    pool identity audit, not a copied Go implementation.
  • e049c336: Imagen predict normalization; specialized Vertex Imagen operations
    are explicitly outside the worker's current supported matrix.
  • Recent Gemini/Antigravity terminal, filter-error, tool and thinking fixes require
    path-specific regression review. This PR does not mark those fixes as covered.

Verification

Added a regression for omitted input producing string-valued {}, retained object
arguments, rejection of explicit invalid input and rejection of unmatched tool
results.

  • cargo test --locked --all-targets: 525 passed, 0 failed, 1 ignored.
  • cargo fmt --all --check: passed after installing rustfmt.
  • git diff --check: passed.
  • cargo clippy --locked --all-targets -- -D warnings: failed under Rust 1.100.0
    in unchanged codex_catalog.rs, ws_recovery.rs, websocket.rs,
    codex_multiagent_tests.rs and gateway_client_tests.rs (six lint errors).
    These unrelated baseline issues were not silenced or refactored. PR must remain
    draft until required verification succeeds.

Fixtures are synthetic; no live provider, deployment, service restart or production
migration is authorized.

@sofyan48

Copy link
Copy Markdown
Owner Author

Daily review 2026-11-26: upstream main now 38fe929502f19f7cce03c69c19aacddf30f1ef5e. Fork/upstream histories remain unrelated (28 vs 5201 commits; 4331 patch-unmatched non-merge commits are NOT proof of missing semantic features). Recent upstream adds null/tool-argument/snake_case translation fixes and Windows Modern Standby OAuth deferral. No new semantic coverage claimed; existing partial adaptation retained, no duplicate PR. cargo fmt --all --check passed today. cargo test --locked --all-targets and strict clippy retries failed during dependency compilation due No space left on device, not a passing test run. Existing CI Windows jobs passed; Rust CI failed with six strict-Clippy errors (confirmed log). Keep draft. Home DB origin baseline now 30 (not prior 29); worker has no new schema migration, no production database accessed. Rust/Home ownership, mTLS/RESP, accounting and unsupported-provider guards unchanged.

@sofyan48

Copy link
Copy Markdown
Owner Author

Daily reconciliation: fresh origin/main 1bb9115, integration 33093b0; normal merge origin/main already up to date. Original clean main merge-mode pull succeeds (unchanged). Latest upstream main is now 47f18e4d, beyond previously inspected 38fe9295; new Gemini follow-up ordering, cancellation/truncation reporting, Claude/Responses/tool-choice, Codex websocket and Antigravity fixes still need Rust-specific semantic review. Plugin-host changes cannot be imported wholesale: worker intentionally disables plugins. git cherry currently reports 4405 unmatched non-merge patches with unrelated Go/Rust roots, NOT 4405 proven missing features. Identical-environment cargo clippy --locked --offline --all-targets -- -D warnings on exact origin/main isolated baseline AND maintenance reproduces the same six lint errors in codex_catalog, ws_recovery (2), websocket, codex_multiagent_tests and gateway_client_tests. cargo fmt --all --check passes on integration. Current cargo test --locked --offline --all-targets could not complete: ENOSPC while compiling dependencies; this is an environment blocker, not a failed behavior test. No claim of a fresh 525-test pass. Disk is full; no unsafe cleanup, architecture replacement, DB changes or new integration attempted. Home baseline schema is now 30 (old PR text mentioning 29 is historical); no worker migration or additional schema bump. Draft and failed Rust CI retained; Windows checks green. No production action.

@sofyan48
sofyan48 marked this pull request as ready for review November 27, 2026 05:45
@sofyan48
sofyan48 merged commit 1e1b2b6 into main Nov 27, 2026
5 of 7 checks passed
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