omnius 1.0.765 → 1.0.766

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/index.js
3
- size: 38754141 bytes
4
- sha256: 8f6cc23abacc45c47703361d743118fe124f196c880cd3f05c49f8b8320609a9
3
+ size: 38763840 bytes
4
+ sha256: 3199bdafa0335c954b90a33a7627b68596201ba4fb4f11880d72d9ba5debd567
@@ -35751,6 +35751,44 @@
35751
35751
  }
35752
35752
  ]
35753
35753
  },
35754
+ {
35755
+ "id": "guide.work-orders-runtime-health-remediation-wo-55-telegram-pressure-recovery-uppercase",
35756
+ "kind": "guide",
35757
+ "title": "WO-55: Telegram pressure recovery without silent terminal states",
35758
+ "summary": "Status: complete Priority: P0 Incident: September 26, 2026, Case Theory messages 458-461 Owner: current implementation session",
35759
+ "keywords": [
35760
+ "work",
35761
+ "orders",
35762
+ "runtime",
35763
+ "health",
35764
+ "remediation",
35765
+ "WO",
35766
+ "55",
35767
+ "telegram",
35768
+ "pressure",
35769
+ "recovery",
35770
+ "md"
35771
+ ],
35772
+ "maturity": "internal",
35773
+ "audiences": [
35774
+ "maintainer",
35775
+ "large-context-agent"
35776
+ ],
35777
+ "layer": "documentation",
35778
+ "interfaces": [
35779
+ {
35780
+ "type": "file",
35781
+ "target": "docs/work-orders/runtime-health-remediation/WO-55-telegram-pressure-recovery.md"
35782
+ }
35783
+ ],
35784
+ "references": [
35785
+ {
35786
+ "type": "documentation",
35787
+ "target": "docs/work-orders/runtime-health-remediation/WO-55-telegram-pressure-recovery.md",
35788
+ "relation": "canonical-artifact"
35789
+ }
35790
+ ]
35791
+ },
35754
35792
  {
35755
35793
  "id": "guide.work-orders-telegram-dmn-wo-22-dmn-outreach-and-learning-uppercase",
35756
35794
  "kind": "guide",
package/docs/DISCOVERY.md CHANGED
@@ -606,6 +606,7 @@ Daemon equivalents are `GET /v1/discovery/bootstrap`, `GET /v1/discovery?q=<inte
606
606
  | `guide.work-orders-runtime-health-remediation-wo-52-steering-projection-preservation-uppercase` | WO-52: Preserve required steering instructions in the actual model request | Status: source repair complete; verified and ready for publication. Live acceptance follows the user's publication. |
607
607
  | `guide.work-orders-runtime-health-remediation-wo-53-deferred-reflection-churn-uppercase` | WO-53: Stop duplicate deferred reflection writes | Status: scoped source repair verified; publication remains with the operator. Issue: https://github.com/robit-man/open-agents/issues/3 |
608
608
  | `guide.work-orders-runtime-health-remediation-wo-54-case-theory-router-deferral-recovery-uppercase` | WO-54: Case Theory router deferral recovery | Status: complete Priority: P0 Incident: September 26, 2026, Case Theory messages 455–456 Runtime observed: globally installed Omnius 1.0.764 Owner: current implementation session |
609
+ | `guide.work-orders-runtime-health-remediation-wo-55-telegram-pressure-recovery-uppercase` | WO-55: Telegram pressure recovery without silent terminal states | Status: complete Priority: P0 Incident: September 26, 2026, Case Theory messages 458-461 Owner: current implementation session |
609
610
  | `guide.work-orders-telegram-dmn-wo-22-dmn-outreach-and-learning-uppercase` | WO-22: DMN outreach, DM sharing, and outcome learning | On 2026-09-03 at 17:07 PDT the bot posted in the OMNIUS group without being addressed. The operator asked whether this was self-induced reflection. |
610
611
  | `guide.work-orders-telegram-dropbear-context-rca-workorder` | Telegram Dropbear Context Engineering RCA Work Order | Observed run: /home/roko/Documents/Projects/Adjacent/telegramtest/.omnius, run id 1782873796963-i5r7mv. |
611
612
  | `guide.work-orders-wo-am-gaps-uppercase` | Associative Memory Gap Work Orders | Generated: 2026-04-13 Source: Deep audit of multimodal associative memory systems Status: READY FOR IMPLEMENTATION |
@@ -4,6 +4,10 @@
4
4
  **Checked-item rule:** code, focused tests, and named evidence must all exist
5
5
  **Last reconciled:** 2026-09-05
6
6
 
7
+ ## September 26 Case Theory pressure recovery
8
+
9
+ - [x] [WO-55: Telegram pressure recovery without silent terminal states](WO-55-telegram-pressure-recovery.md): generation-fenced recovery for silent inference, stale active-runner decisions, terminal review, continuation, and exact Telegram delivery receipts.
10
+
7
11
  ## September 26 Case Theory router deferral recovery
8
12
 
9
13
  - [x] [WO-54: Case Theory router deferral recovery](WO-54-case-theory-router-deferral-recovery.md): exact task-identity retirement, sequential mixed-domain repair, one scheduler-owned recovery with continuous typing and truthful exhaustion, plus canonical receipt-backed URLs with inference review and final fail-closed withholding. Implemented in `d6a6cb6e`; 251 focused Telegram tests and CLI build passed.
@@ -0,0 +1,122 @@
1
+ # WO-55: Telegram pressure recovery without silent terminal states
2
+
3
+ **Status:** complete
4
+ **Priority:** P0
5
+ **Incident:** September 26, 2026, Case Theory messages 458-461
6
+ **Owner:** current implementation session
7
+
8
+ ## Objective
9
+
10
+ Keep one inference-authorized Telegram turn recoverable across broker pressure,
11
+ silent model streams, invalid router contracts, terminal-review unavailability,
12
+ and retryable Bot API failures. Recovery must retain the exact intake and exact
13
+ generated payload, remain generation-fenced, and eventually return to inference
14
+ or delivery without manufacturing canned replies or host-authored semantic
15
+ decisions.
16
+
17
+ ## Confirmed root-cause chain
18
+
19
+ 1. Case Theory admitted a direct research follow-up and ran a long tool-backed
20
+ foreground task under substantial model/context pressure.
21
+ 2. The runner produced substantive final text and crossed its internal terminal
22
+ boundary before ordinary Telegram text transport ran.
23
+ 3. Runner `visible_response` evidence describes generated model-visible text;
24
+ the ordinary Telegram message receipt is recorded later in a separate turn
25
+ delivery ledger. The two lifecycles were presented as one completed turn
26
+ even when no Telegram message ID existed.
27
+ 4. Retryable/ambiguous delivery ledger states returned `null`, after which the
28
+ outer path could label the activity complete without consuming the reply
29
+ owner or scheduling exact-payload recovery.
30
+ 5. A fresh terminal metacognitive review returning no typed contract set the
31
+ intake to `deferred` but deliberately scheduled no continuation.
32
+ 6. Incomplete terminal receipts and pre-terminal runner errors used the same
33
+ deferred-without-work pattern.
34
+ 7. The metacognitive continuation counter became a terminal three-cycle cap
35
+ even when fresh inference still selected `continue`.
36
+ 8. Router recovery made one scheduler replay, then converted another invalid or
37
+ unavailable contract into a terminal failed intake.
38
+ 9. A follow-up routed while the old runner was settling could receive a
39
+ no-reply decision against the old active-run snapshot. If the runner exited
40
+ before that decision returned, the bridge consumed the follow-up instead of
41
+ re-running inference against the new terminal/open-task state.
42
+ 10. The stale-sub-agent watchdog explicitly exempted `waitingForInference`,
43
+ while Telegram action runners set `requestTimeoutMs: 0`. A silent admitted
44
+ stream could therefore pin its chat, typing lease, queue/admission slot, and
45
+ inference-pressure lease forever.
46
+ 11. Late settlement cleanup was not identity-conditional, so simply freeing a
47
+ wedged generation could let its eventual `finally` delete newer generation
48
+ state.
49
+
50
+ ## Required invariants
51
+
52
+ - Reply authority, continuation, completion, and no-reply remain inference
53
+ decisions. Lifecycle recovery may retry an unresolved decision but cannot
54
+ invent one.
55
+ - No generated acknowledgment or canned progress reply is introduced.
56
+ - Every nonterminal intake has concrete scheduled work, an active generation,
57
+ or an explicit recoverable delivery-reconciliation state.
58
+ - A router decision made for a runner that settled before the decision returned
59
+ is stale control evidence and must be inferred again.
60
+ - Broker/capacity and typed-contract failures retry through the bounded session
61
+ scheduler with capped backoff; they never spin detached inference loops.
62
+ - A fresh metacognitive `continue` decision is obeyed regardless of how many
63
+ earlier cycles ran. The counter controls backoff/telemetry, not semantics.
64
+ - Silent inference has a bounded progress epoch. Expiry aborts and fences the
65
+ old generation, releases local admission, and requeues the exact intake.
66
+ - Late events and cleanup from a retired generation cannot mutate or delete its
67
+ replacement.
68
+ - Typing is present while a user-facing generation or recovery attempt is
69
+ actively admitted, and is stopped during true cancellation or terminal
70
+ delivery.
71
+ - Known pre-acceptance/rate-limit Telegram failures retry the same immutable
72
+ delivery operation. A stored accepted message ID is locally reconciled to a
73
+ receipt without resending.
74
+ - Transport ambiguity is never blindly resent. It becomes an explicit durable
75
+ reconciliation state with the intake and payload retained, rather than a
76
+ false completion or invisible wait.
77
+
78
+ ## Implementation checklist
79
+
80
+ - [x] Make router recovery durable and backoff-scheduled instead of terminally
81
+ exhausted.
82
+ - [x] Re-run stale active-runner no-reply decisions after runner settlement.
83
+ - [x] Requeue terminal-review, incomplete-terminal, and safe pre-action fatal
84
+ paths instead of writing inert `deferred` records.
85
+ - [x] Remove the deterministic metacognitive continuation stop; retain bounded
86
+ scheduler backoff and observability.
87
+ - [x] Retire silent admitted inference after a bounded meaningful-progress
88
+ epoch and generation-fence every late callback/finalizer.
89
+ - [x] Make old-generation cleanup conditional on ownership of the current map
90
+ entry.
91
+ - [x] Reconcile delivery records that already contain an accepted Telegram
92
+ message ID without another network send.
93
+ - [x] Retry known pre-acceptance/rate-limit failures using the same immutable
94
+ delivery operation and payload.
95
+ - [x] Keep ambiguous delivery explicit and durable for operator reconciliation
96
+ without blind resend or false completion.
97
+ - [x] Merge a recovering router snapshot behind newer same-session input so
98
+ neither intake overwrites the other and the newest retains decision
99
+ ownership.
100
+ - [x] Add deterministic regressions for every recovery boundary above.
101
+ - [x] Run focused Telegram lifecycle, intake, terminal-delivery, transport,
102
+ continuity, and typing suites.
103
+ - [x] Run the CLI build and workspace build, review the scoped diff, commit, and
104
+ push without touching publication/version files.
105
+
106
+ ## Verification evidence
107
+
108
+ - `pnpm --filter @omnius/orchestrator exec vitest run tests/inference-pressure.test.ts --reporter=dot`
109
+ passed 9/9 tests, including immediate lease release when an unresponsive
110
+ backend is aborted.
111
+ - The focused Telegram command covering steering finalization, Bot API routing,
112
+ lifecycle leak prevention, delivery continuity, transport contracts,
113
+ terminal delivery, and working indicators passed 263/263 tests across seven
114
+ files.
115
+ - `pnpm -r build` passed all 11 selected workspace projects, including the
116
+ orchestrator, CLI, API, and worker TypeScript builds.
117
+ - Deterministic regressions cover stale no-reply inference, silent admitted
118
+ generation retirement, exact-intake recovery, continuation past cycle three,
119
+ concurrent newer-intake merging, 429 exact-payload retry, accepted-receipt
120
+ restart reconciliation, and process pressure-lease release.
121
+ - No canned progress response, deterministic semantic reply gate, npm publish,
122
+ global install, daemon restart, or live Telegram mutation was added or run.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.765",
3
+ "version": "1.0.766",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.765",
9
+ "version": "1.0.766",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
@@ -2664,9 +2664,9 @@
2664
2664
  }
2665
2665
  },
2666
2666
  "node_modules/ansi-regex": {
2667
- "version": "6.3.0",
2668
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.3.0.tgz",
2669
- "integrity": "sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==",
2667
+ "version": "6.4.0",
2668
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.4.0.tgz",
2669
+ "integrity": "sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw==",
2670
2670
  "license": "MIT",
2671
2671
  "engines": {
2672
2672
  "node": ">=12"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.765",
3
+ "version": "1.0.766",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/library.js",