diff --git a/docs/external/ecosystem/TRIAGE-2026-10.md b/docs/external/ecosystem/TRIAGE-2026-10.md new file mode 100644 index 0000000..4eaeee7 --- /dev/null +++ b/docs/external/ecosystem/TRIAGE-2026-10.md @@ -0,0 +1,76 @@ +# Ecosystem triage, 2026-10 (lane E1) + +Scope: refresh four Tier-1 projects, rank open contribution opportunities, pick ONE. +Phase 1 was read-only: no inference, no GPU, no Ollama, no upstream action. +Evidence tags: observed (gh output or file:line read), inferred, hypothesized. + +## Pinned default-branch commits (all shallow clones in ~/workspace/external/) + +| Project | Canonical repo | Pinned SHA | Commit date | +|---|---|---|---| +| Jan | janhq/jan | 14a720628f9592c8e60f7e081ef733076db8a6a9 | 2026-10-02 | +| OpenHands app | OpenHands/OpenHands | 35dc8aafaad2d883cf0c6629dea857eb2235895e | 2026-10-04 | +| OpenHands SDK | OpenHands/software-agent-sdk | b66c724361571aa5c982883173c71b04739b247d | 2026-10-04 | +| goose | aaif-goose/goose | 591edd47cf2cfea4957d720c607cf2a4def8673d | 2026-10-04 | +| Open Interpreter | openinterpreter/open-interpreter | 2767e5f20d6927500b8f1938c773c61afb823245 | 2026-10-02 | + +## goose ownership (observed) +- `gh repo view block/goose` resolves to `aaif-goose/goose` (redirect; org `aaif-goose` created 2026-03-25, `gh api orgs/aaif-goose`). +- goose/README.md:29 at 591edd4: "goose is part of the [Agentic AI Foundation (AAIF)](https://aaif.io/) at the Linux Foundation." +- Maintainers: goose/MAINTAINERS.md (Alex Hancock, Bradley Axen, Douwe Osinga, ...). Governance: goose/GOVERNANCE.md. + +## AI-contribution policy (hard filter) + +| Project | Verdict | Exact source | +|---|---|---| +| Jan | SILENT (allowed by default; we disclose anyway) | Checked at 14a7206: CONTRIBUTING.md, src-tauri/CONTRIBUTING.md, .github/pull_request_template.md, no AGENTS.md, CLAUDE.md or CODE_OF_CONDUCT.md anywhere in the tree (find, excluding node_modules). No AI line in any. Local norm: maintainers and contributors disclose AI use in comments (e.g. janhq/jan#8743 comment by Jokasa7, "Disclosure: I used AI-assisted code search"). | +| OpenHands app | Allowed, with a human section | OpenHands/AGENTS.md:49 "The `HUMAN:` section in PR descriptions is reserved for human contributors only. AI agents must not add to, edit, move, or remove it." PR template (.github/pull_request_template.md:17): AGENT section needs evidence the code "runs properly end-to-end. Just running unit tests is NOT sufficient." Prepared text must leave HUMAN for Drake. | +| OpenHands SDK | Same pattern | software-agent-sdk/.github/PULL_REQUEST_TEMPLATE.md:12 "AI agents: you must not edit this section."; :20 end-to-end evidence required. | +| goose | Allowed, no disclosure needed | goose/CONTRIBUTING.md:80-83 "There's no need to tell us you used AI in your work... you are responsible for the final code... We'll close any vibe coded submissions that obviously skip this step." (We disclose anyway.) | +| Open Interpreter | SILENT on AI; routes core changes to Codex | open-interpreter/.github/pull_request_template.md:4 "We generally do not accept changes to core Codex behavior in this repository." No AI line found in AGENTS.md, template, or CONTRIBUTING (none exists). | + +Nobody forbids AI-assisted work. Every prepared PR text discloses AI assistance regardless. + +## Competition method +For each finalist: `gh issue view` (assignees, comments), GraphQL `closedByPullRequestsReferences`, `linkedBranches`, `timelineItems(CROSS_REFERENCED_EVENT)`, and `gh pr list --state all --search `. For the two Jan finalists (#8743, #8975) I ran GraphQL `closedByPullRequestsReferences`, `linkedBranches`, cross-reference timeline and a closed-issue search. For the other projects I used `gh issue view` plus `gh pr list --state all --search ` per issue. Run 2026-10-04. +Finding: the OpenHands repos and goose are saturated; most low-risk bugs have 1-4 competing open PRs, many from AI-driven accounts. + +## Shortlist and scores (0-5 each; total = impact + repro + review + relevance + need - competition - scope) + +Components: Impact, Repro (on this aarch64 headless box, no GPU for now), Review (small, testable), Rel (INTERPLANE relevance), Need (maintainer demand), Comp (competition penalty), Scope (scope-risk penalty). + +| # | Issue | Imp | Repro | Rev | Rel | Need | Comp | Scope | Total | +|---|---|---|---|---|---|---|---|---|---| +| 1 | **Jan #8975** duplicate MCP tool names advertised twice (Rust agent) | 3 | 5 | 4 | 5 | 3 | 2 | 2 | **16** | +| 2 | Jan #8743 MCP tools missing for self-added remote provider | 4 | 2 | 3 | 5 | 4 | 1 | 2 | 15 | +| 3 | OpenHands SDK #5458 MCP server instructions dropped | 3 | 3 | 3 | 3 | 3 | 4 | 1 | 10 | +| 4 | SDK #4965 blank text blocks rejected by strict OpenAI-compat | 4 | 4 | 4 | 4 | 4 | 5 | 1 | 14 | +| 5 | SDK #5354 validation errors split tool-call response | 4 | 4 | 4 | 4 | 3 | 5 | 1 | 13 | +| 6 | goose #12544 reasoning effort not passed to llama.cpp | 2 | 1 | 3 | 2 | 3 | 1 | 3 | 7 | +| 7 | goose #12533 tool-result PDF never reaches model | 3 | 3 | 3 | 3 | 3 | 5 | 1 | 9 | +| 8 | goose #12449 ACP provider switch not atomic | 3 | 2 | 2 | 3 | 3 | 1 | 4 | 8 | +| 9 | OI #1938 desktop ignores function-calling disablement (Ollama) | 3 | 1 | 1 | 4 | 3 | 1 | 3 | 8 | + +Reasons (one line each): +1. #8975: pure function `assemble_tool_array` (src-tauri/src/core/agent/upstream.rs:919) pushes both tools and keeps one map entry; an existing test already asserts the duplicate (advertised names `["search","search"]`); fully headless, no model. Comp 2: no linked PR or branch (GraphQL), no assignee, but commenter DeepanshuPal (2026-09-27) offered to "take the fix once you pick" and the issue author thinhlpg is active on the epic #8956. Scope 2: issue lists three options and says "Not decided here". +2. #8743: only one reporter (macOS, LM Studio); Jokasa7's trace of web-app/src/lib/custom-chat-transport.ts (refreshTools :963, shouldEnableTools :1521-1523) found no code path that drops tools; maintainers asked for logs 2026-08-29, no reply. Reproduction on source is not possible yet (hypothesized capability-persistence or list_tools timing). Comp 1: no PR; cross-referenced only by #8793. +3. SDK #5458: open PR #5468 (2026-10-03) already covers it. +4. SDK #4965: open PR #4981 (2026-09-12) covers it; OpenHands template needs end-to-end evidence (likely needs inference). +5. SDK #5354: open PR #5355 covers it. +6. goose #12544: feature-shaped, needs a live llama.cpp. +7. goose #12533: PR #12534 open. +8. goose #12449: design problem across ACP sessions, no repro recipe. +9. OI #1938: Windows desktop app plus Ollama inference; OI PR template routes core Codex behavior to openai/codex. + +HELD, out of ranking despite the scores above (open PR found): SDK #4965 (PR #4981), SDK #5354 (PR #5355), SDK #5458 (PR #5468), goose #12533 (PR #12534). Rows 3, 4, 5, 7 are kept only to show the scoring; effective ranking is #8975 (16), #8743 (15), goose #12449 (8), OI #1938 (8), goose #12544 (7). + +Not scored (assigned or has PRs, so out per rule 4): goose #12590, #12556, #12513, #12598, #12669 (all have assignees); OpenHands app #17733 (PR #17735), #17748 (PR #17749), #16978 (4 PRs), #17803 (maintainer drafts SDK#5382/#5383); SDK #5290 (PR #5291). + +## INTERPLANE relevance map +- #8975: Lenshift/Crossveil style invariant (one name, one target, one definition on the wire), Probe fixture. +- #8743: capability advertisement must survive provider routing (Lenshift, Probe). +- #4965 / #5354: wire-shape validity for strict providers (Crossveil), tool-call batch integrity (RelayLine). + +## Pick +Jan #8975. Reason: only candidate that is unclaimed by any PR, reproducible headless without a model, in the preferred project, and generically valuable. Risks named above (soft interest by DeepanshuPal; design choice left to maintainers). #8743 stays the mission-named follow-up if more reporter data appears. +No qualification/ecosystems/ entry is added: no real test evidence against an INTERPLANE build exists yet. diff --git a/docs/external/jan/8975/PR-TEXT.md b/docs/external/jan/8975/PR-TEXT.md new file mode 100644 index 0000000..d2d358d --- /dev/null +++ b/docs/external/jan/8975/PR-TEXT.md @@ -0,0 +1,29 @@ +Title: fix(agent): advertise one definition per MCP tool name + +Target: janhq/jan, base `main`, head aien-dev/jan `fix/mcp-duplicate-tool-names-8975`. + +## Describe Your Changes + +- `assemble_tool_array` now advertises each MCP tool name once. When two servers expose the same name, only the definition from the server that `tool_to_server` already routes to is sent (last in sort order, unchanged), and a warning names both servers. +- Added `the_advertised_array_has_unique_names_and_matches_the_routing_table` (fails on main with `["read","search","search"]`) and updated the earlier collision test, which had asserted the duplicate. +- This is the "single winner" option from #8975 (the warning is a log line only, so a shadowed tool still silently disappears from the model's view). Cross-server collisions only; a server listing one name twice is not handled. +- No renaming, so saved prompts, permission lists and the byte-stable array order from #8974 are unaffected. Namespacing (option 1 in #8975) would be a separate decision. + +## Fixes Issues + +- Closes #8975 + +## How it was checked + +`cd src-tauri && cargo test --locked --no-default-features --features cli --lib -- --test-threads=1`: 2316 passed, 1 failed. The failure (`reload_system_prompt_reads_agents_md_fallback`) also fails on the base commit on my machine and is unrelated. +Not run end to end against a live provider. + +## AI disclosure + +This change was prepared with an AI assistant (Claude Code, Sonnet 5.5) and reviewed by the submitter. + +## Self Checklist + +- [x] Added relevant comments, esp in complex areas +- [ ] Updated docs (for bug fixes / features) +- [ ] Created issues for follow-up changes or refactoring needed diff --git a/docs/external/jan/8975/REPORT.md b/docs/external/jan/8975/REPORT.md new file mode 100644 index 0000000..a54df17 --- /dev/null +++ b/docs/external/jan/8975/REPORT.md @@ -0,0 +1,45 @@ +# Jan #8975: duplicate MCP tool names advertised twice + +Project: janhq/jan, default branch pinned at 14a720628f9592c8e60f7e081ef733076db8a6a9 (2026-10-02). +Issue: https://github.com/janhq/jan/issues/8975 (open, no assignee, no linked PR or branch as of 2026-10-04). +Fork branch: aien-dev/jan `fix/mcp-duplicate-tool-names-8975` (test 27a66f0, fix c13dfa0, tidy 40b96aa). +Evidence level: reproduced (unit level), fixed, tested. Not submitted. Drake is the submitter. + +## Observed +- `assemble_tool_array` (src-tauri/src/core/agent/upstream.rs:919 at the pinned SHA) flattens every server's tools into the advertised array and inserts each into `tool_to_server`, a `HashMap`. Two servers exposing `search` give two `search` entries in the array and one map entry (last server by sort order wins). +- The repo's own test `a_tool_name_exposed_by_two_servers_routes_the_same_way_every_run` asserted `advertised_names == ["search","search"]` (upstream.rs:2134 at the pinned SHA), i.e. the duplicate was recorded as known behavior. +- Reach (observed by grep at the pinned SHA): every Rust request path builds its tool list via `collect_mcp_openai_tools` (upstream.rs:961, which ends in `assemble_tool_array`, :1030): agent loop loop.rs:2964 and :3313, local API proxy proxy.rs:1303. So the fix covers all of them. +- The web UI path (web-app/src/lib/custom-chat-transport.ts:1098) keys tools by name and warns on collision, so it cannot send duplicates. + +## Reproduction (exact commands, aarch64 Linux, headless, no model, no GPU) +``` +cd ~/workspace/external/jan && git checkout 27a66f0 # test only, on top of 14a7206 +cd src-tauri +nice -n 19 cargo test --locked --no-default-features --features cli --lib -j4 \ + the_advertised_array_has_unique -- --test-threads=1 +``` +Result before the fix (observed): FAILED, `left: ["read", "search", "search"] right: ["read", "search"]` "duplicate function names on the wire". Receipt (observed, red.log): `left: [\"read\", \"search\", \"search\"]`, `right: [\"read\", \"search\"]`, `test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 2316 filtered out`. + +## Root cause +Proven by the red test plus source read: no uniqueness step between flatten and push (upstream.rs:919-940 at the pinned SHA). The provider-side effects (strict provider rejects, lenient provider keeps one) are from the issue text and are hypothesized here; not exercised against a real provider. + +## Fix (smallest) +After sorting, record the winning server per tool name (last in sort order, which is exactly what `tool_to_server` already did), advertise only the winner's definition, warn naming both servers. Order stays sorted and byte-stable, nothing depends on HashMap iteration, no listing is dropped on server hiccups (reuse path untouched). The old test now asserts `["search"]`. +Design note for the maintainers: the issue lists three options (namespace, reject-and-warn, first-wins) and says "Not decided here". This branch keeps today's routing winner and removes the shadowed duplicate; it does not rename tools (no breaking change). If maintainers prefer namespacing, the new test (unique names, array matches routing table) still applies unchanged. + +## Regression +Full lib suite in cli mode: 2316 passed, 1 failed. Receipt (observed, green.log): `test result: FAILED. 2316 passed; 1 failed`, the one failure being the unrelated test named below. The one failure, `core::cli::tui::tests::reload_system_prompt_reads_agents_md_fallback`, also fails on the unmodified base 14a7206 on this machine (observed), so it is unrelated (likely an AGENTS.md in a parent directory of this box). `cargo fmt --check` shows no diff in lines touched by this change; other files and lines already differ at the base. +Command: `cargo test --locked --no-default-features --features cli --lib -- --test-threads=1` (the exact CI command, jan .github/workflows/rust-check.yml:121). + +## Scope +Cross-server collisions only. Two edits in one file: `assemble_tool_array` and one test (+ old test assertion). No API, schema or naming change. + +## Design choice, stated plainly +This is the issue's "single winner" option, not "reject and warn": the warning is only a log line, so a shadowed tool still disappears from the model's view without a user-visible error. Maintainers may prefer namespacing or a visible error. Also not covered: one server listing the same name twice (invalid per MCP, not addressed). + +## Not done / waiting +- No end-to-end run through `jan` against a real or fake provider with two MCP servers. A fake OpenAI-compatible endpoint recording the request body (no model) could add that; needs a built `jan` CLI plus two stdio MCP servers. Optional follow-up, no INFERENCE OK needed. +- Upstream submission: Drake's button (buttons row 4). + +## INTERPLANE lesson (one generic invariant) +A tool namespace must be injective on the wire: the advertised tool list must contain each callable name once, and the definition the model reads must be the one the call routes to.