Commit Graph

4168 Commits

Author SHA1 Message Date
Teknium e1d4211e90 review-fix(suppress-audit): gateway/run_turn.py — restore BASE exception semantics (proxy key UnscopedSecretError-only fallback) 2026-09-03 09:52:47 -07:00
Teknium 2dbfd3b4aa review-fix(suppress-audit): backup/mcp_oauth/wake_word/run_notifications — restore BASE exception semantics 2026-09-03 09:50:40 -07:00
Teknium 81984a7ebd review-fix(suppress-audit): bedrock_adapter/run_turn_runner/self_repo_guard — restore BASE exception semantics 2026-09-03 09:48:45 -07:00
Teknium d9141c425f review-fix(suppress-audit): run_shutdown/browser_tool_cdp/tui server — restore BASE exception semantics 2026-09-03 09:48:37 -07:00
Teknium e83816a4d1 review-fix(comments): restore lost #NNNN rationale comments across non-test source (mechanical sweep, condensed, code unchanged)
For each issue anchor present in BASE 63279301bc non-test .py and absent on HEAD, the BASE comment/docstring block was re-attached at the HEAD location of the code it explained (matched by the distinctive code line / enclosing def). Sentences already covered by an existing HEAD comment were deduped; the issue number always survives. Insert-only: no code lines changed.
2026-09-03 09:44:26 -07:00
Teknium fe03731efd review-fix(suppress-audit): codex_runtime/relay_runtime/shutdown_watchdog — restore BASE exception semantics 2026-09-03 09:41:59 -07:00
Teknium 96c104c903 review-fix(public-api): restore from_platform_entry, SessionManager.remove_session/cleanup, is_relay_media_url, SessionTurnLeaseRegistry.__len__ + tests
BASE exposed these public names; the simplify refactor dropped them (and deleted/removed their
tests) although plugins/connectors import them. Restore each with BASE's signature and body
(download() again routes its auth decision through is_relay_media_url), and restore the covering
tests ported to the new layout, plus DB-only/task-cwd coverage for remove_session/cleanup, the
zero->4096 chunking normalization for from_platform_entry, and len() on empty/populated registries.
A/B vs 63279301bc: /tmp/rf/rev/ab_publicapi.py identical output on both trees.
2026-09-03 09:32:40 -07:00
Teknium 5a0efda992 review-fix(comments): restore reviewer-named rationale blocks (#4926, #81335, #54220/#56747, #100436, #5057/#6252/#10370/#4665) 2026-09-03 09:32:25 -07:00
Teknium fb14bc4e11 review-fix(whitespace): strip trailing whitespace and EOF blank lines introduced by this PR
Trailing-whitespace-only edits so 'git diff --check BASE HEAD' is clean
(16 diagnostics across 11 files). No code changes.
2026-09-03 09:31:54 -07:00
Teknium aec50eb597 fix(live-qa): nous_subscription managed table indexes only selectable features (KeyError 'modal' crashed status/tools/dashboard toolsets); restore PluginManager public API (has_portable_mcp_servers, get_telegram_handler_factories, register_approval_transport), extract_json_candidate public name, canonical_whatsapp_identifier main semantics 2026-09-03 08:16:44 -07:00
Teknium 0071ba9965 Merge origin/main (561b053f79) into simp/forwardport: forward-port 220 main commits into the simplified tree 2026-09-03 03:31:03 -07:00
Teknium 6a1d96c346 Merge branch 'simp/r3-12-w2b' into simp/integration3 2026-09-03 00:11:57 -07:00
Teknium ea6083dbfc Merge branch 'simp/r3-12-w2a' into simp/integration3 2026-09-03 00:11:56 -07:00
Teknium 4ad49247e1 Merge branch 'simp/r3-11-2d' into simp/integration3 2026-09-03 00:11:10 -07:00
Teknium e88ebcb0c7 Merge branch 'simp/r3-11-2c' into simp/integration3 2026-09-03 00:11:08 -07:00
Teknium 3bda2a263d Merge branch 'simp/r3-10-b2' into simp/integration3 2026-09-03 00:11:01 -07:00
Teknium 413a6af629 refactor(gateway): run_turn — _hmwa_prepare_turn owns session open + env setup, tuple outcome replaces nested carrier, hugged docstring closers 2026-09-03 00:10:30 -07:00
Brooklyn Nicholson 83efdf5e5e [verified] fix(cron): close restart handoff races 2026-09-03 12:40:26 +05:30
Brooklyn Nicholson 29e5172487 [verified] fix(cron): harden gateway restart handoff 2026-09-03 12:40:26 +05:30
Brooklyn Nicholson 3373e97693 [verified] fix(cron): preserve active runs across gateway restart 2026-09-03 12:40:26 +05:30
Teknium 792960cba1 refactor(gateway): compact run_* inline comments by hand (keep every WHY/invariant) 2026-09-03 00:09:38 -07:00
Teknium f9fcceb574 refactor(gateway): reflow hosted-room module/function docstrings to <=120 cols (every sentence kept) 2026-09-03 00:09:14 -07:00
Teknium 579b1ded22 Merge branch 'simp/r3-13' into simp/integration3 2026-09-03 00:07:38 -07:00
Teknium 4987f27fde refactor(gateway): slash_commands_session — inline single-use lifecycle-hook helper, compact docstrings, fold calls 2026-09-03 00:07:29 -07:00
Teknium bb9c83f47e refactor(gateway): run_turn — fold fence-cancel poll and status metadata into their single callers, unify streamed-message edit, MCP change table, misc collapses 2026-09-03 00:04:44 -07:00
Teknium 3a2dabd734 refactor(gateway): status.py — fold start-time guards, reuse _pid_from_record/parse_active_agents, pack record literals 2026-09-03 00:04:21 -07:00
Teknium df75ccc47a Merge branch 'simp/r3-13-E' into simp/r3-13 2026-09-03 00:04:04 -07:00
Teknium b3ba9d6285 refactor(gateway): shared logged-send helper for shutdown and cron-interrupt notices 2026-09-03 00:03:17 -07:00
Teknium 4c7847d59b refactor(gateway): drop blank after dataclass docstrings and section headers in hosted-room modules (AST-neutral) 2026-09-03 00:01:28 -07:00
Teknium e0a146c6b0 refactor(gateway): session_transcript — reuse _spool_dropped, assistant-only key table, suppress-based tip lookup 2026-09-02 23:59:14 -07:00
Teknium fcb0ff29d6 refactor(gateway): AST-neutral string-fragment rewrap to 110 cols 2026-09-02 23:58:47 -07:00
Teknium 9eb77d3542 refactor(gateway): fenced_update in hosted_rooms_common shared by rooms/driver/checkpoint CAS sites; trim section-header blank runs 2026-09-02 23:57:39 -07:00
Teknium c0217c0792 refactor(gateway): slash_commands — inline restart dedup payload builder, pack arg tables, compact docstrings, fold calls 2026-09-02 23:57:12 -07:00
Teknium 506796fc81 refactor(gateway): fold secondary-reconnect release branches; drop redundant fast path in startup-reconnect handoff 2026-09-02 23:57:09 -07:00
Teknium 308ae97d50 refactor(gateway): _multiplex_on predicate, inline single-use locals in adapter/notification/shutdown seams 2026-09-02 23:54:36 -07:00
Teknium baa22741fc refactor(gateway/platforms): base.py — wrap remaining >100-col lines 2026-09-02 23:54:28 -07:00
Teknium 8ac06a3fd9 refactor(gateway): session_persistence — nullcontext lock guard in _save_entry, fold trivial ternaries 2026-09-02 23:53:43 -07:00
Teknium 551733d28d Merge branch 'simp/r3-10-b2-w2' into simp/r3-10-b2 2026-09-02 23:52:16 -07:00
Teknium e7e4aa2eed refactor(gateway/platforms): base.py — final rewrap of remaining multi-line statements 2026-09-02 23:50:40 -07:00
Teknium 158fcfe13a refactor(gateway): route quiet runtime-status writes through gateway.run._write_runtime_status_quiet 2026-09-02 23:50:14 -07:00
Teknium 159562aa02 refactor(gateway): run_turn — compact restating comments/docstrings (docstring-stripped AST identical) 2026-09-02 23:49:47 -07:00
Teknium 16b588dd8a Merge branch 'simp/r3-10-b2-w3' into simp/r3-10-b2 2026-09-02 23:49:19 -07:00
Teknium b1287d9b49 refactor(gateway/hosted_room_*): _lease_window folds ttl/clock/expiry, _run_fence tuple (5 sites), _load_task(required=) reused by admit_task, closing() replica init, dict-comprehension backfill 2026-09-02 23:49:19 -07:00
Teknium a3ad888a14 Merge branch 'simp/r3-10-b2-w1' into simp/r3-10-b2 2026-09-02 23:49:18 -07:00
Teknium 46ef48b06d refactor(gateway/platforms): base.py — early-return extract_images, flatten media-failure text, tidy build_source/obligation/cancel bodies 2026-09-02 23:48:48 -07:00
Teknium d779777027 refactor(gateway): shutdown-notice message ladder, count-step/probe loops in stop+scale-to-zero, update-notification message fold 2026-09-02 23:43:34 -07:00
Teknium 28bbdc4bb8 refactor(gateway): session.py — hoist Slack notes constants, fold key/context builders (prompt golden byte-identical) 2026-09-02 23:42:48 -07:00
Teknium 757d85945b refactor(gateway): run_turn — media-sender dispatch, flattened 429/home-channel/proxy-key ladders, display setter table 2026-09-02 23:42:39 -07:00
Teknium e530f5936f refactor(gateway): stream_consumer*/slash_commands* — hug closing brackets (AST-identical) 2026-09-02 23:42:01 -07:00
Teknium d6268539d4 refactor(gateway): stream_consumer transport/fallback mixins — merge seed-frame helpers, fold multi-line calls and conditions 2026-09-02 23:36:53 -07:00