Commit Graph

28271 Commits

Author SHA1 Message Date
Teknium cd2fdb87f0 merge: simp/r3-12-g3-slash2 into simp/r3-12 2026-09-02 22:50:27 -07:00
Teknium 9f733c263a merge: simp/r3-12-g2-slash into simp/r3-12 2026-09-02 22:50:26 -07:00
Teknium 5467b2763b merge: simp/r3-12-g1-status into simp/r3-12 2026-09-02 22:50:25 -07:00
Teknium 089d587ba3 refactor(gateway): unify start-time agreement predicate 2026-09-02 22:07:28 -07:00
Teknium b8791eae95 refactor(gateway): share marker writer between takeover and planned-stop 2026-09-02 21:49:07 -07:00
Teknium 9faaa8f2c4 refactor(gateway): fold text reader into _read_json_file 2026-09-02 21:46:16 -07:00
Teknium 8c55e6d8a8 refactor(gateway): flatten terminate_pid control flow, tighten lock helpers 2026-09-02 21:45:18 -07:00
Teknium 79559b2493 refactor(gateway): collapse scoped-lock owner validation ladder 2026-09-02 21:33:51 -07:00
Teknium ff223785c6 refactor(gateway): simplify updated_at coercion and home-conflict guard 2026-09-02 21:26:33 -07:00
Teknium 0765aca884 refactor(gateway): third pass on shutdown_watchdog/flush/forensics 2026-09-02 21:19:21 -07:00
Teknium 8d5d5f9ca2 refactor(gateway): third pass on scale_to_zero/wake/status_phrases/runtime_footer/systemd_notify 2026-09-02 21:14:22 -07:00
Teknium 4dc4a0e6d9 refactor(gateway): extract POSIX zombie probe from _pid_exists 2026-09-02 20:45:28 -07:00
Teknium 90fd8231e2 refactor(gateway): tighten marker self-match predicate 2026-09-02 20:37:43 -07:00
Teknium 281560a147 refactor(gateway): compact gateway cmdline matcher and status stamping 2026-09-02 20:34:36 -07:00
Teknium 9792caf536 refactor(gateway): inline cache-signature helper, simplify Windows identity tail 2026-09-02 20:30:40 -07:00
Teknium b34acfa3ac refactor(gateway): keep /usage arg parse shape (mock-event parity) 2026-09-02 20:28:10 -07:00
Teknium 08c7fb813f refactor(gateway): final compaction of insights/topup/platform/stop/restart bodies 2026-09-02 20:20:47 -07:00
Teknium c376ca8ca6 refactor(gateway): flatten scoped-lock staleness branches 2026-09-02 20:19:51 -07:00
Teknium 5c140be056 refactor(gateway): drop intra-function blank lines in g1-status files 2026-09-02 20:15:20 -07:00
Teknium 241b7f33dd refactor(gateway): compact delegation rows and compressor lines in status mixin 2026-09-02 20:15:02 -07:00
Teknium dd52a2a36d refactor(gateway): compact kanban subscribe, voice toggle, bundles and approve builders 2026-09-02 20:13:23 -07:00
Teknium 9e2cdc816b refactor(gateway): pack short call arguments (AST-identical) 2026-09-02 20:11:22 -07:00
Teknium 530e090d35 refactor(gateway): unify PID/lock/JSON record readers in status.py 2026-09-02 20:09:10 -07:00
Teknium ab10d351b0 refactor(gateway): second pass on shutdown_* / scale_to_zero / systemd_notify (inline helpers, compact docs) 2026-09-02 20:05:30 -07:00
Teknium 56df120e43 refactor(gateway): fold config-fallback ladder in status route; compact breakdown/diff/whoami helpers 2026-09-02 20:05:00 -07:00
Teknium 674a123237 refactor(gateway): remove residual intra-body blank lines in slash handlers 2026-09-02 19:59:30 -07:00
Teknium 901796093b refactor(gateway): fold long string literals and dict/call layouts in slash_commands_session/model
Implicit-concatenation string literals re-wrapped to 100 cols (byte-identical values, verified
by AST constant diff vs base); remaining fitted calls folded. Group now -25.2% LOC.
2026-09-02 19:55:39 -07:00
Teknium c7d0a4d3af refactor(gateway): tighten sethome/voice/stop/busy/footer/verbose bodies 2026-09-02 19:55:09 -07:00
Teknium 10eccf288f refactor(gateway): share transcript-estimate helper across /context and /usage; checkpoint kwargs by name 2026-09-02 19:51:26 -07:00
Teknium 6068e0f23b refactor(gateway): blank-line hygiene in slash handler bodies 2026-09-02 19:47:48 -07:00
Teknium 1aec5770f5 refactor(gateway): compact status.py docstrings by hand, keep line width <= 100 2026-09-02 19:47:15 -07:00
Teknium 0f4123ae1d refactor(gateway): compact docstrings in slash mixins (keep every WHY) 2026-09-02 19:45:24 -07:00
Teknium 6847c6dc4b refactor(gateway): compact heartbeat/refine/review/loop handlers; restart dedup payload helper 2026-09-02 19:41:50 -07:00
Teknium 559714fb18 refactor(gateway): compact slash_commands_session/model — fold calls, inline single-use helpers, tighten docs
- Fold parenthesised multi-line calls that fit in 100 cols; inline _switch_and_commit,
  _reasoning_picker_choices, _configured_display_context, listing_kwargs (single-use).
- Collapse getattr-guarded calls on always-present mixin methods (_is_user_authorized,
  _schedule_telegram_topic_title_rename); next()-based lookups; contextlib.suppress.
- Docstrings/comments compacted by hand — every WHY (IDOR guards, cache/rotation
  invariants, off-loop rationale) kept; narrative and issue-number history dropped.
- Differential parity vs base: 9216 traced cases for /new,/title,/undo,/branch;
  12000 for the resume ownership guards; /fast + /reasoning tables; listing goldens.
2026-09-02 19:40:07 -07:00
Teknium b24526688f refactor(gateway): compact marker parsing and liveness guards 2026-09-02 19:39:12 -07:00
Teknium b3be7ad3f0 refactor(gateway): compact kanban arg scan, voice status, approve/deny, debug report builders 2026-09-02 19:37:38 -07:00
Teknium 629417a3b8 refactor(gateway): compact write_runtime_status stamping 2026-09-02 19:36:32 -07:00
Teknium 4854b5b876 refactor(gateway): route/usage/insights compaction in status mixin; wrap touched lines to 100 cols 2026-09-02 19:31:28 -07:00
Teknium 943486ef57 refactor(gateway): unify /restart marker writes; compact update helper and notify payload 2026-09-02 19:24:36 -07:00
Teknium 88797c2072 refactor(gateway): keep shutdown_watchdog._process_hermes_home mock seam 2026-09-02 19:23:25 -07:00
Teknium 6d9cd131b5 refactor(gateway): inline stopped-state probe, split takeover termination phase 2026-09-02 19:21:40 -07:00
Teknium 5986fb0cb7 refactor(gateway): _mgr_call helper unifies goal/subgoal manager error replies 2026-09-02 19:20:13 -07:00
Teknium e6bca1398d refactor(gateway): shared display-config target helper; compact one-off handler bodies 2026-09-02 19:15:15 -07:00
Teknium 8cd6f0beb1 refactor(gateway): tighten get_running_pid fallbacks and forensics helpers 2026-09-02 19:12:35 -07:00
Teknium b5bdee9dc7 refactor(gateway): fail-open helpers in status mixin; tighten local import blocks 2026-09-02 19:10:43 -07:00
Teknium f8742107bb refactor(gateway): compact shutdown_watchdog handles and probe wait 2026-09-02 19:07:58 -07:00
Teknium f7c5b16fcc refactor(gateway): break /model, /new, /compress, /resume god methods into phase helpers
- slash_commands_model: _ModelSwitchContext dataclass replaces 12-kwarg plumbing;
  _handle_model_command (193 LOC) -> listing / switch / guard / commit phases;
  _commit_model_switch (175) -> cached-agent swap / record / confirmation;
  /fast and /reasoning display toggles routed through dict tables.
- slash_commands_session: /new hooks + cleanup lifted; _handle_compress_command_inner
  -> _run_manual_compression; /resume -> resolve target / access-denied helpers;
  persisted-row ownership proof extracted (_persisted_row_proves_owner, _sattr).
- Zero user-visible change (golden + differential fuzz vs base for guards, listing,
  /fast, /reasoning); test net 137 files / 1842 passed.
2026-09-02 19:04:09 -07:00
Teknium e4ce16ae77 refactor(gateway): unify O_EXCL JSON writes and lock probe in status.py 2026-09-02 19:03:21 -07:00
Teknium e032abeca8 refactor(gateway): fold status.py JSON readers and compact identity docstrings 2026-09-02 18:59:26 -07:00
Teknium 5025182f4e refactor(gateway): trim footer/phrases/scale-to-zero/wake/systemd helpers 2026-09-02 18:51:08 -07:00