Skip to content

fix: stabilize execution and consolidate repository structure - #7

Merged
svngoku merged 14 commits into
masterfrom
fix/stabilization-baseline
Nov 12, 2026
Merged

svngoku merged 14 commits into
masterfrom
fix/stabilization-baseline

Conversation

@svngoku

@svngoku svngoku commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Stabilizes agent execution and configuration contracts while bringing OpenRouter mappings, repository hygiene, and architecture documentation up to date. Users no longer have provider credentials printed by config --show, successful searches no longer overwrite later queries, and explicitly selected models resolve to their exact configured IDs.

The branch also restores clean-checkout packaging and verification, consolidates examples/plans/docs into canonical locations, and splits 18 multi-model classes into focused modules with original-path compatibility.

What changed

Area Result
Generated Python Approved imports now work through a shared allowlist, while unapproved and relative imports remain blocked. Documentation correctly states that local execution is not a security sandbox.
Configuration config --show redacts all provider credentials and the nested model API key. Pydantic models use ConfigDict instead of deprecated class-based configuration.
Search memory SerpAPI memory keeps reusable tuning fields but excludes credentials and query text. Current queries and explicit parameters take precedence over remembered values.
Agent controls Explicit empty tool lists remain empty, iteration and planning settings reach both agent types, and multi-model inventories honor disabled code execution.
OpenRouter 65 aliases are validated against the live catalog. Recent additions are curated around standard Terra, Sol, and Luna rather than higher-cost Pro variants. ModelManager resolves explicit aliases exactly instead of silently substituting older models.
Dependency security Upgraded LiteLLM to 1.108.3 with no other direct dependency changes; uv audit reports no LiteLLM advisory entry. Pinned setup-uv v10.3.3 by full SHA with uv 0.13.7 and documented trusted destination controls.
Packaging Added an explicit build system and sdist manifest, enabled the console script, preserved lockfile dependency versions, and restored the golden-check directory.
Repository hygiene Removed obsolete root scripts and copied third-party/generated specs. Examples now live under root examples/, and all exec-plans are indexed only in docs/PLANS.md with active/completed locations.
Module structure Split multi_model_serpapi.py into focused model_manager, schemas, context, tools, and system modules. The original module is a thin compatibility re-export; all 18 class implementations were verified unchanged by independent AST comparison.
Architecture docs Updated all 10 Mermaid diagrams for recipes, Code Mode, Exa, Browser Use v4, current model routing, agent composition, and MCP flows. Symbol-based anchors replace fragile line numbers.

Test coverage

Added regression coverage for:

  • Approved, unapproved, and relative imports.
  • Credential redaction through the rendered CLI output.
  • Sequential SerpAPI queries and sanitized memory.
  • Empty tools, iteration limits, planning controls, and execution-disabled inventories.
  • Exact ModelManager aliases, recent model mappings, and static/central catalog parity.
  • Original/new multi-model import identity for 27 classes and the shared constant, plus independent AST equivalence for all 18 extracted classes.
  • Exact setup-uv full-SHA and uv-version pins in CI.

tests/test_openrouter_models.py also provides an opt-in live-catalog integration test for future refreshes.

Validation

  • make check: 250 passed, 1 opt-in skipped.
  • uv audit --locked: no LiteLLM advisory entry at 1.108.3; other package advisories remain for separate triage.
  • Maintenance updates: uv 0.13.7, CPython 3.11.18, and pip 26.3 inside the worktree environment.
  • Live OpenRouter integration: all 65 aliases validated.
  • OpenRouter key endpoint: HTTP 200 using the operator-provided environment key; no credential was printed or committed.
  • Ruff lint and formatting, mypy, golden principles, and uv lock --check: passed.
  • Wheel and sdist builds: passed; test files are excluded from both artifacts.
  • agentic-internet --help: passed.
  • Mermaid validation: all 10 diagrams rendered successfully through Kroki.

Free-provider completion attempts are documented in docs/references/openrouter-models-2026-11-09.md. One model timed out; the alternate returned a valid zero-cost response with reasoning but no final answer text under bounded token limits. No paid retry was made.

Post-Deploy Monitoring & Validation

This is a CLI/library change with no hosted deployment. During PR CI and the next local provider smoke test, watch for:

  • Expected healthy signals: green Linux executor tests, clean Ruff/mypy/golden checks, successful package build and console startup, and no stale aliases in the opt-in live integration test.
  • Failure signals: import errors, credential-like output in config --show, repeated queries, unexpected model substitution, or OpenRouter aliases disappearing from the live catalog.
  • Rollback: revert the smallest relevant commit: 397d606 for dependency/CI security updates, b1addd9 for the module split, 7b761cb for repository hygiene, 9181cbc for diagrams, 191674f for the Terra/Sol/Luna adjustment, 68e65a5 for the catalog refresh, or 3ec4453 for the stabilization implementation.
  • Validation window and owner: PR CI plus the next scheduled OpenRouter catalog refresh, owned by the repository maintainer.

Compound Engineering
Kimi K3.1 Pro

Restrict generated-code imports to an explicit allowlist, redact
configuration secrets, preserve current SerpAPI queries, and honor
agent tool and planning controls.

Add regression coverage and restore package build and clean-checkout
quality gates without changing dependency versions.
Remove stale aliases, add recent agent-capable models, and resolve
explicit aliases through the central catalog so ModelManager cannot
silently substitute older models.

Add catalog parity and opt-in live integration coverage.
@svngoku svngoku changed the title fix: stabilize execution and refresh model configuration fix: stabilize execution and consolidate repository structure Nov 9, 2026
@svngoku svngoku self-assigned this Nov 9, 2026
@svngoku
svngoku merged commit 589a0c1 into master Nov 12, 2026
1 check 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