Repository navigation
Conversation
Add the RTM roadmap exec-plan and a proposed ADR keeping SmolAgents behind a project-owned reliability layer. Framework rewrite, multi-agent-first expansion, and status-quo patching are recorded as rejected alternatives.
Raise smolagents[mcp] floor to >=1.21.2 (the only verified version), install from the lockfile in CI with uv sync --locked, and pin every workflow action to a full commit SHA. uv.lock changes only the requirement specifier; no resolved versions change.
Add fake-only characterization tests pinning current InternetAgent, ResearchAgent, CLI, and MultiModelSerpAPISystem behavior, including known defects tagged with the RTM phase expected to change them. No source changes.
Add tests/conftest.py that disables dotenv loading and clears provider/MCP env vars before importing agentic_internet, redirects the import-time settings cache dir to a temp dir, blocks non-loopback network for tests not marked integration (stdlib only), and offers an opt-in fresh_settings fixture. Add a local stdio MCP echo server fixture and lifecycle tests (start, list, call, shutdown, no leaked process) in the default lane. Enable --strict-markers. No source or dependency changes.
# Conflicts: # docs/exec-plans/active/2026-12-04-evaluation-driven-agent-runtime.md
# Conflicts: # docs/exec-plans/active/2026-12-04-evaluation-driven-agent-runtime.md
Brings in PR #7 (stabilization baseline). Conflicts resolved: take upstream's setup-uv v10.3.3 with pinned uv 0.13.7; combine plan-index rows in upstream table format; keep upstream tests/test_internet_agent.py and move the RTM-0 characterization tests to tests/test_internet_agent_characterization.py. Characterization tests are re-pinned in a follow-up commit.
…line merge Re-verify every code citation against merge commit 55566a7 (upstream PR #7). Point citations at agents/multi_model/{system,tools,context,model_manager}.py and current cli.py/internet_agent.py lines, mark InternetAgent max_steps/planning and tools=[] as fixed upstream, CI lockfile/uv pin and LiteLLM 1.108.3 as done, ModelManager duplication as partially addressed, and reword RTM-6 to build on the Plan 004 package split. ADR status stays proposed; decision and alternatives unchanged.
- InternetAgent: re-pin behavior fixed upstream in PR #7 (max_steps and planning_interval forwarded to ToolCallingAgent and CodeAgent; only tools=None loads defaults). Drop the tools=[] test duplicated by upstream tests/test_internet_agent.py; add a tools=None pin. Remaining RTM-5 defect pins (error strings, stateless chat, research findings) unchanged. - Multi-model: patch fakes in agentic_internet.agents.multi_model.system where CodeAgent/ToolCallingAgent are now looked up, with guards proving the fakes apply. Timeout message (system.py:444) and shared current_task_context (system.py:306) defects still present; RTM-6 tags kept. - Hermetic: check the load_dotenv no-op binding in multi_model.system (the shim no longer calls it). Fix racy IPv4 loopback test: listen(1) with never-accepted connections overflows the macOS accept queue and new SYNs get RST (ECONNRESET 54); accept each connection and use a backlog of 8.
The SHA-pinned trufflehog action defaults its 'version' input to 'latest', so the first PR #8 run pulled trufflehog:latest. Pin the scanner image to match the pinned action release.
This was referenced Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RTM-0 of the Evaluation-Driven Agent Runtime Modernization roadmap: pin today's runtime behavior with tests, make the default test lane hermetic, lock CI dependencies, and propose the architecture decision that later phases build on. No production code changes in
agentic_internet/.The ADR, Keep SmolAgents behind a project-owned reliability layer, is proposed, not accepted. It is here for review. Approval is tracked as
agentic-internet-8xh.Summary
ADR decision. Keep SmolAgents as the execution engine. Add a thin
runtime/control plane that owns typed results, terminal states, budgets, cancellation, retries, fallback recording, and run isolation. Rejected alternatives:Characterization tests. They pin current behavior. Defects that are still present are tagged with the phase meant to fix them, so those future changes show up as intentional test updates:
Nonesecondsmulti_model/system.py:444current_task_context; overlapping runs overwrite itmulti_model/system.py:306required=Trueworkers skipped without errormulti_model/system.py:136-138multi_model/tools.py:441--workersaccepted but never usedcli.py:184run()returns failures as strings; CLI exits 0 on theminternet_agent.py:186-191Behavior fixed upstream in PR #7 (
max_steps/planning_intervalforwarding,tools=[]honored) is pinned as fixed.Hermetic default lane (
tests/conftest.py, standard library only):.envis never loaded, and provider/MCP credentials are cleared before the package is imported and before every test.integrationcannot open non-loopback connections or do DNS lookups; loopback and pipes stay allowed.--strict-markersis enabled.CI and dependencies:
uv sync --locked.actions/checkout,actions/setup-python, andtrufflehogpinned to full commit SHAs. trufflehog moves offmainto v3.100.1, and its scanner image is pinned to3.100.1because the action'sversioninput otherwise pullslatest.setup-uvwas already pinned upstream.smolagents[mcp]>=0.1.0→>=1.21.2, the version whose APIs were verified.uv.lockchanges only that specifier; no resolved versions change.Evidence
Measured locally with uv 0.13.7 on macOS, Python 3.11. "Before" is
masterat589a0c1; "after" is this branch atb400485. Tests and code are unchanged since6f18a40;b400485only adds the scanner pin.master)uv run pytest -W error::DeprecationWarninguv run pytest -m "not integration"--cov=agentic_internet)ruff check agentic_internet testsruff format --check agentic_internet testsmypy agentic_internetuv lock --check/uv sync --locked --dry-rungolden_principles.pyCI on this PR (run 47445452500) reproduces it:
uv sync --lockedinstalls cleanly, 325 passed and 1 skipped, lint, format, mypy and golden checks pass, and the secret scan runstrufflehog:3.100.1.The full suite passed on 3 repeated local runs with no leftover MCP server processes. The new tests use fakes only; none needs network access or API keys.
Merge with PR #7 (stabilization baseline)
This branch started before PR #7 and was synced with
masterat55566a7:ci.ymlkeeps upstream's setup-uv v10.3.3 / uv 0.13.7 pin.PLANS.mduses upstream's table format. Upstream keepstests/test_internet_agent.py, and ours becametest_internet_agent_characterization.py.tools=Nonetest. Multi-model fakes were retargeted toagents/multi_model/system.py, with guards that prove the patches take effect.test_ipv4_loopback_allowedwas root-caused to a macOS accept-queue overflow withlisten(1)and unaccepted connections, reproduced without pytest. It is fixed by draining connections and passed 40/40 runs in isolation.Merge Danger
Door: two-way
Production code is unchanged. Reverting the merge commit restores the previous test suite and CI configuration.
Blast Radius: Tests and CI
uv sync --lockedfails ifuv.lockis out of date withpyproject.toml. This is intended, but contributors must commit lockfile updates.BlockedNetworkErrorunless it is markedintegration. No existing test was affected.tests/conftest.pytemporarily patchesPath.home()while the package is imported so the settings cache goes to a temp dir. The proper fix, a lazy cache dir, is follow-upagentic-internet-0m2.Follow-ups:
agentic-internet-8xh: approve the ADR.agentic-internet-0m2: lazySettingscache dir.agentic-internet-0za: RTM-1 child plan.