Commit Graph

28291 Commits

Author SHA1 Message Date
Teknium bcc3153e09 Merge simp/r3-06-p2-IP into simp/r3-06 2026-09-02 23:19:15 -07:00
Teknium 7309c3aef3 refactor(agent): pet atlas/render/store pass-2 structural cut (median-box helper, encoder dispatch, inlined single-use helpers) 2026-09-02 23:04:29 -07:00
Teknium 812820f1f5 Merge simp/r3-06-p2-PB into simp/r3-06 2026-09-02 22:52:44 -07:00
Teknium 6ad019e877 Merge simp/r3-06-p2-MOA into simp/r3-06 2026-09-02 22:52:44 -07:00
Teknium 9e8641b151 Merge simp/r3-06-p2-MM into simp/r3-06 2026-09-02 22:52:43 -07:00
Teknium 575b54d457 refactor(agent): iron_proxy/monitoring/outbound_webhooks pass-2 structural cut (helpers unified, single-use helpers inlined, packed literals) 2026-09-02 22:44:07 -07:00
Teknium e216c32e60 refactor(agent): plain guards in uniquify_tool_call_ids seen-set bookkeeping 2026-09-02 22:42:02 -07:00
Teknium 123d962dc7 refactor(agent): prompt_builder/plugin_llm/process_bootstrap pass-2 — inline _normalize_ref, fold snapshot read, proxy-env scan 2026-09-02 22:32:12 -07:00
Teknium 93221abe84 Merge branch 'simp/r3-06-p2-MOA-B' into simp/r3-06-p2-MOA 2026-09-02 22:22:02 -07:00
Teknium 5a17f15d86 refactor(agent): inline queue_prefetch fan-out lambda in memory_manager 2026-09-02 22:22:02 -07:00
Teknium a5858a9e98 refactor(agent): process_bootstrap/markdown_tables/onboarding pass-2 — inline _pad_to_width, fold proxy bypass and pool guard, pack signatures 2026-09-02 22:21:06 -07:00
Teknium 71416d23ec Merge branch 'simp/r3-06-p2-MOA-C' into simp/r3-06-p2-MOA 2026-09-02 22:11:47 -07:00
Teknium d57a79d5de Merge branch 'simp/r3-06-p2-MOA-A' into simp/r3-06-p2-MOA 2026-09-02 22:11:46 -07:00
Teknium 2c3816d1ed refactor(agent): plugin_llm pass-2 — collapse policy-load ladder, pack call kwargs, drop section banners 2026-09-02 22:10:47 -07:00
Teknium 34271779ee refactor(agent): compact restating docstrings in message_sanitization + micro_compaction 2026-09-02 22:10:34 -07:00
Teknium d25fd72f2b refactor(agent): collapse moa_loop guard ladders (extra_body merge, cache opts, attach/peel guidance) 2026-09-02 22:07:44 -07:00
Teknium e74d8bbca6 refactor(agent): memory_manager pass-2 structural cut (902->802 LOC, zero behavior change)
- inline single-use helpers: _nonblank, _get_sync_executor (into _submit_background),
  _is_block_boundary/_max_pending_open_suffix (into _ends_at_block_boundary users),
  _is_checkpoint_provider (into on_pre_compress)
- unify _drain_sync_executor drained/timed_out state update into one path
- pack over-long signatures/_each_provider calls to <=120 cols
- collapse if/elif detail ladder, flush_pending except ladder, prefetch-thread guard
- compact docstrings that restated code (all WHY notes kept)

Verified: E corpus + extra corpus byte-identical vs base, 41 test files / 784 passed,
ruff clean, import smoke ok.
2026-09-02 22:06:35 -07:00
Teknium f6c6bbcb1d refactor(agent): structural pass-2 on message_sanitization + micro_compaction (-100 LOC, zero behavior change) 2026-09-02 22:05:07 -07:00
Teknium a9011bec27 refactor(agent): prompt_builder pass-2 — pack signatures, fold context-file guards into _read_context_file, inline truncation recorder 2026-09-02 22:01:41 -07:00
Teknium 4cfe4f4857 refactor(agent): compact models_dev registry/override helpers; inline _fetch_registry 2026-09-02 21:55:07 -07:00
Teknium 7a58f5a227 refactor(agent): pack moa_loop call sites, inline _dumps_or_str/_split_references, fold interrupt settle into wait loop 2026-09-02 21:50:38 -07:00
Teknium f42fc3c5c7 refactor(agent): compact token estimation helpers (shadow, fingerprint, tools cache) 2026-09-02 21:49:03 -07:00
Teknium acfa6e3691 refactor(agent): pass-2 structural compaction of prompt_caching and native_compaction
- prompt_caching: fold _count_cache_markers' nested _marked into one sum over
  [*messages, *parts, *tools]; collapse the open-turn guard + endpoint append in
  _completed_transaction_endpoint_indexes into one predicate; enumerate() in
  apply_anthropic_cache_control's non_sys scan; effective_cache_ttl tail -> one
  conditional; pack wrapped calls/comprehensions to <=120 cols; tighten
  docstrings (every WHY kept).
- native_compaction: resolve_compact_threshold upper -> one conditional expr;
  warn-once guard -> single if; _extract_item_text part loop drops the str/dict/
  else ladder (candidates default (part,), non-str filtered by the same isinstance
  check); _retain_summary early-return -> guarded body; pack wrapped calls and
  docstrings.
Zero behavior change: E corpus (224MB) and C corpus byte-identical vs base
113f04616bd; extra corpus for warn-once/_extract_item_text edges identical;
68 test files / 1359 tests green; no symbol added/removed vs pass 1.
2026-09-02 21:44:48 -07:00
Teknium 11e0f3862d refactor(agent): table-drive cache validation drops and sourced provider resolvers in get_model_context_length 2026-09-02 21:44:44 -07:00
Teknium ea8b3250f4 refactor(agent): dispatch local context probes by server type; unify Ollama /api/show calls 2026-09-02 21:36:24 -07:00
Teknium 30ffd52f84 refactor(agent): compact probe/cache helpers and payload parsers in model_metadata 2026-09-02 21:27:46 -07:00
Teknium adb241dfc4 Merge simp/r3-06-E into simp/r3-06 2026-09-02 20:40:10 -07:00
Teknium faca680d02 Merge simp/r3-06-A into simp/r3-06 2026-09-02 20:40:09 -07:00
Teknium 9e6dce1a1c Merge simp/r3-06-F into simp/r3-06 2026-09-02 20:08:14 -07:00
Teknium 85155cc0b7 Merge simp/r3-06-D into simp/r3-06 2026-09-02 20:08:12 -07:00
Teknium 24aeb15600 Merge simp/r3-06-C into simp/r3-06 2026-09-02 20:08:11 -07:00
Teknium 1b2835b4a1 Merge simp/r3-06-B into simp/r3-06 2026-09-02 20:08:09 -07:00
Teknium 3b5aa80473 refactor(agent): finish memory/compaction/prompt-cache compaction pass (>=25% LOC) 2026-09-02 19:50:13 -07:00
Teknium cc2afd78ee refactor(agent): pet — keep STATE_ALIASES insertion order 2026-09-02 19:46:38 -07:00
Teknium 6c41acbddd refactor(agent): pet — pass 2 (render/store/orchestrate helper collapse, dispatch, docstring compaction; 25% LOC cut) 2026-09-02 19:44:51 -07:00
Teknium 1e8e2a7328 refactor(agent): model_metadata — restore _is_known_provider_base_url (test-patched seam) 2026-09-02 19:41:04 -07:00
Teknium c629274efc refactor(agent): collapse sanitizer field walks and cache-marker counting (pass 4) 2026-09-02 19:24:22 -07:00
Teknium 7c08619130 refactor(agent): moa_loop cadence key/interrupt bookkeeping as expressions 2026-09-02 19:21:50 -07:00
Teknium 749649c19e refactor(agent): moa_loop — extract reference window resolver, module-level late-accounting callback 2026-09-02 19:20:03 -07:00
Teknium 0e5c0323fd refactor(agent): model_metadata/models_dev — fold codex variant helpers, compact tables and comments, squeeze blanks 2026-09-02 19:18:35 -07:00
Teknium 9e1d3862ad refactor(agent): extract micro-compaction phase helpers, flatten memory-manager plumbing (pass 3) 2026-09-02 19:17:08 -07:00
Teknium b4c386642f refactor(agent): pet — pass 1 (dead ROWS/COLUMNS, module-level PIL imports, helper collapse, docstring compaction) 2026-09-02 19:15:47 -07:00
Teknium 5e0aa62754 refactor(agent): iron_proxy — keep _read_http_listen_from_config name (cited in egress-internals docs) 2026-09-02 19:12:59 -07:00
Teknium 21274c8523 refactor(agent): pack import lists (AST-identical) 2026-09-02 19:12:17 -07:00
Teknium 7c76e5f219 refactor(agent): moa_loop guidance-input helper, explicit MoAClient delegation, blank squeeze 2026-09-02 19:10:21 -07:00
Teknium 21cbb27d89 refactor(agent): compact memory/compaction/prompt-cache modules (pass 2, corpus parity) 2026-09-02 19:07:30 -07:00
Teknium 6e20411e4a refactor(agent): prompt_builder siblings — inline snapshot write, compact __all__/locals, tidy blank-line conventions 2026-09-02 19:05:15 -07:00
Teknium cee79f052a refactor(agent): iron_proxy — rewrap four over-long diagnostics 2026-09-02 19:03:40 -07:00
Teknium 6a4582ce33 refactor(agent): model_metadata — inline zero-ref wrappers, pack data tables, compact docstrings/comments by hand 2026-09-02 19:03:38 -07:00
Teknium e34096ca19 refactor(agent): pack remaining multi-line signatures (AST-identical) 2026-09-02 18:59:41 -07:00