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
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
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
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
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
Teknium
af0ddcb2ec
refactor(agent): iron_proxy signal guard ctx manager + yaml loader helper; table/kwargs compaction across group
2026-09-02 18:58:26 -07:00
Teknium
1d7632bfb7
refactor(agent): moa_loop/plugin_llm — collapse arg ladders, contextlib.suppress, usage extractor
2026-09-02 18:56:13 -07:00
Teknium
cd0b813ee2
refactor(agent): prompt_builder — unify plugin-backend/config-readonly helpers, table-drive probe formatting, drop section banners, compact WHY comments
2026-09-02 18:55:01 -07:00
Teknium
480b9630d3
Merge branch 'simp/r3-06-A-md' into simp/r3-06-A
2026-09-02 18:54:22 -07:00
Teknium
eea8e8060e
refactor(agent): compact module docstrings (outbound_webhooks, otlp_exporter, emitter, gateway_health_export)
2026-09-02 18:53:00 -07:00
Teknium
22df91d65d
refactor(agent): model_metadata — table-drive server-type waterfall, unify cache-drop logging, compact tables/signatures
2026-09-02 18:49:56 -07:00
Teknium
79c704f34f
refactor(agent): monitoring/iron_proxy third pass — gateway.status dispatch helper, SDK symbol table by module, compact comments and inner blanks
2026-09-02 18:48:19 -07:00
Teknium
28a974aef5
refactor(agent): pack multi-line calls/signatures in r3-06-C files (AST-identical)
2026-09-02 18:44:36 -07:00
Teknium
d45621c032
refactor(agent): model_metadata — extract get_model_context_length phases, unify probe memo/blackhole/ollama helpers
2026-09-02 18:43:54 -07:00
Teknium
6e304e6d7e
refactor(agent): prompt_builder — compact imports/constant tables, tighten skills-index helpers, absorb paragraph-break literals (AST-identical text)
2026-09-02 18:42:45 -07:00
Teknium
41da997a06
refactor(agent): prompt_builder — gate HUD sentences as a tuple, share remote-backend lead text, compact docstrings, reflow literals to 120 cols
2026-09-02 18:35:02 -07:00
Teknium
ebd1814862
refactor(agent): iron_proxy second pass — single-line diagnostics, alias-source lookup, suppress()
2026-09-02 18:34:52 -07:00
Teknium
23ae37b4bc
refactor(agent): plugin_llm/nous_rate_guard/moonshot_schema/provider_* — unify atomic write, compact docstrings, collapse defensive layers
2026-09-02 18:33:06 -07:00
Teknium
052582de2d
refactor(agent): compact monitoring/* and lsp/workspace — contextlib.suppress, shared platform error-code helper, nearest_root marker probe, docstring compaction
2026-09-02 18:32:02 -07:00
Teknium
2382f18dd4
refactor(agent): models_dev — _quietly/_refresh_locked helpers, pack provider table, trim docstrings
2026-09-02 18:29:12 -07:00
Teknium
6ec63dff43
refactor(agent): reflow prompt string literals to 110 cols (AST-identical, no joins across line breaks)
2026-09-02 18:29:05 -07:00
Teknium
4f20954c5f
refactor(agent): tighten memory/compaction/prompt-cache helpers (pass 1, corpus parity)
2026-09-02 18:28:38 -07:00
Teknium
9fc1f90f97
refactor(agent): models_dev — compact docstrings/log calls, single-line signatures, walrus guards
2026-09-02 18:26:23 -07:00
Teknium
20ec6eda55
refactor(agent): prompt_builder — collapse snapshot/manifest/chain guards, fold trailing string fragments (AST-identical; prompt text byte-identical)
2026-09-02 18:25:58 -07:00
Teknium
1a1716ee64
refactor(agent): compact outbound_webhooks — fold list-check into iter_configured_targets, tighten delivery logging
2026-09-02 18:24:14 -07:00