omnius 1.0.694 → 1.0.695

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.
@@ -32804,6 +32804,44 @@
32804
32804
  }
32805
32805
  ]
32806
32806
  },
32807
+ {
32808
+ "id": "guide.work-orders-runtime-health-remediation-telegram-longhaul-2026-09-04-uppercase",
32809
+ "kind": "guide",
32810
+ "title": "September 4 Telegram long-haul remediation",
32811
+ "summary": "Status: complete; all five root repairs verified and delivered to origin/main Baseline: Omnius main 69c4a160; installed package 1.0.694 Incident run: telegram-64ac9937dc7647a8-1788572475259-1 Observation window: 2026-09-04 18:41–20:43 PDT Owner: repository repair; user owns publication and subsequent live testing",
32812
+ "keywords": [
32813
+ "work",
32814
+ "orders",
32815
+ "runtime",
32816
+ "health",
32817
+ "remediation",
32818
+ "TELEGRAM",
32819
+ "LONGHAUL",
32820
+ "2026",
32821
+ "09",
32822
+ "04",
32823
+ "md"
32824
+ ],
32825
+ "maturity": "internal",
32826
+ "audiences": [
32827
+ "maintainer",
32828
+ "large-context-agent"
32829
+ ],
32830
+ "layer": "documentation",
32831
+ "interfaces": [
32832
+ {
32833
+ "type": "file",
32834
+ "target": "docs/work-orders/runtime-health-remediation/TELEGRAM-LONGHAUL-2026-09-04.md"
32835
+ }
32836
+ ],
32837
+ "references": [
32838
+ {
32839
+ "type": "documentation",
32840
+ "target": "docs/work-orders/runtime-health-remediation/TELEGRAM-LONGHAUL-2026-09-04.md",
32841
+ "relation": "canonical-artifact"
32842
+ }
32843
+ ]
32844
+ },
32807
32845
  {
32808
32846
  "id": "guide.work-orders-runtime-health-remediation-traceability-uppercase",
32809
32847
  "kind": "guide",
@@ -33982,6 +34020,200 @@
33982
34020
  }
33983
34021
  ]
33984
34022
  },
34023
+ {
34024
+ "id": "guide.work-orders-runtime-health-remediation-wo-25-memory-compiler-eligibility-and-audit-uppercase",
34025
+ "kind": "guide",
34026
+ "title": "WO-25: Memory compiler eligibility and outcome audit",
34027
+ "summary": "Status: complete; implemented, verified, and pushed to origin/main Priority: P1 Incident date: 2026-09-04 PDT / 2026-09-05 UTC Program: September 4 Telegram long-haul repairs",
34028
+ "keywords": [
34029
+ "work",
34030
+ "orders",
34031
+ "runtime",
34032
+ "health",
34033
+ "remediation",
34034
+ "WO",
34035
+ "25",
34036
+ "memory",
34037
+ "compiler",
34038
+ "eligibility",
34039
+ "and",
34040
+ "audit",
34041
+ "md"
34042
+ ],
34043
+ "maturity": "internal",
34044
+ "audiences": [
34045
+ "maintainer",
34046
+ "large-context-agent"
34047
+ ],
34048
+ "layer": "documentation",
34049
+ "interfaces": [
34050
+ {
34051
+ "type": "file",
34052
+ "target": "docs/work-orders/runtime-health-remediation/WO-25-memory-compiler-eligibility-and-audit.md"
34053
+ }
34054
+ ],
34055
+ "references": [
34056
+ {
34057
+ "type": "documentation",
34058
+ "target": "docs/work-orders/runtime-health-remediation/WO-25-memory-compiler-eligibility-and-audit.md",
34059
+ "relation": "canonical-artifact"
34060
+ }
34061
+ ]
34062
+ },
34063
+ {
34064
+ "id": "guide.work-orders-runtime-health-remediation-wo-26-admin-telegram-media-aliases-uppercase",
34065
+ "kind": "guide",
34066
+ "title": "WO-26: Admin Telegram media alias resolution",
34067
+ "summary": "Status: complete; implemented, verified, and pushed to origin/main Priority: P1 Incident date: 2026-09-04 PDT / 2026-09-05 UTC Program: September 4 Telegram long-haul repairs",
34068
+ "keywords": [
34069
+ "work",
34070
+ "orders",
34071
+ "runtime",
34072
+ "health",
34073
+ "remediation",
34074
+ "WO",
34075
+ "26",
34076
+ "admin",
34077
+ "telegram",
34078
+ "media",
34079
+ "aliases",
34080
+ "md"
34081
+ ],
34082
+ "maturity": "internal",
34083
+ "audiences": [
34084
+ "maintainer",
34085
+ "large-context-agent"
34086
+ ],
34087
+ "layer": "documentation",
34088
+ "interfaces": [
34089
+ {
34090
+ "type": "file",
34091
+ "target": "docs/work-orders/runtime-health-remediation/WO-26-admin-telegram-media-aliases.md"
34092
+ }
34093
+ ],
34094
+ "references": [
34095
+ {
34096
+ "type": "documentation",
34097
+ "target": "docs/work-orders/runtime-health-remediation/WO-26-admin-telegram-media-aliases.md",
34098
+ "relation": "canonical-artifact"
34099
+ }
34100
+ ]
34101
+ },
34102
+ {
34103
+ "id": "guide.work-orders-runtime-health-remediation-wo-27-task-verification-authority-uppercase",
34104
+ "kind": "guide",
34105
+ "title": "WO-27: Separate mutation observations from task verification",
34106
+ "summary": "Status: complete; implemented, verified, and pushed to origin/main Priority: P1 Incident date: 2026-09-04 PDT / 2026-09-05 UTC Program: September 4 Telegram long-haul repairs",
34107
+ "keywords": [
34108
+ "work",
34109
+ "orders",
34110
+ "runtime",
34111
+ "health",
34112
+ "remediation",
34113
+ "WO",
34114
+ "27",
34115
+ "task",
34116
+ "verification",
34117
+ "authority",
34118
+ "md"
34119
+ ],
34120
+ "maturity": "internal",
34121
+ "audiences": [
34122
+ "maintainer",
34123
+ "large-context-agent"
34124
+ ],
34125
+ "layer": "documentation",
34126
+ "interfaces": [
34127
+ {
34128
+ "type": "file",
34129
+ "target": "docs/work-orders/runtime-health-remediation/WO-27-task-verification-authority.md"
34130
+ }
34131
+ ],
34132
+ "references": [
34133
+ {
34134
+ "type": "documentation",
34135
+ "target": "docs/work-orders/runtime-health-remediation/WO-27-task-verification-authority.md",
34136
+ "relation": "canonical-artifact"
34137
+ }
34138
+ ]
34139
+ },
34140
+ {
34141
+ "id": "guide.work-orders-runtime-health-remediation-wo-28-task-scope-evidence-retirement-uppercase",
34142
+ "kind": "guide",
34143
+ "title": "WO-28: Retire obsolete task evidence after explicit scope changes",
34144
+ "summary": "Status: complete; implemented, verified, and pushed to origin/main Priority: P2 Incident date: 2026-09-04 PDT / 2026-09-05 UTC Program: September 4 Telegram long-haul repairs",
34145
+ "keywords": [
34146
+ "work",
34147
+ "orders",
34148
+ "runtime",
34149
+ "health",
34150
+ "remediation",
34151
+ "WO",
34152
+ "28",
34153
+ "task",
34154
+ "scope",
34155
+ "evidence",
34156
+ "retirement",
34157
+ "md"
34158
+ ],
34159
+ "maturity": "internal",
34160
+ "audiences": [
34161
+ "maintainer",
34162
+ "large-context-agent"
34163
+ ],
34164
+ "layer": "documentation",
34165
+ "interfaces": [
34166
+ {
34167
+ "type": "file",
34168
+ "target": "docs/work-orders/runtime-health-remediation/WO-28-task-scope-evidence-retirement.md"
34169
+ }
34170
+ ],
34171
+ "references": [
34172
+ {
34173
+ "type": "documentation",
34174
+ "target": "docs/work-orders/runtime-health-remediation/WO-28-task-scope-evidence-retirement.md",
34175
+ "relation": "canonical-artifact"
34176
+ }
34177
+ ]
34178
+ },
34179
+ {
34180
+ "id": "guide.work-orders-runtime-health-remediation-wo-29-retired-failure-projections-uppercase",
34181
+ "kind": "guide",
34182
+ "title": "WO-29: Exclude retired failures from active diagnostics",
34183
+ "summary": "Status: complete; implemented, verified, and pushed to origin/main Priority: P2 Incident date: 2026-09-04 PDT / 2026-09-05 UTC Program: September 4 Telegram long-haul repairs",
34184
+ "keywords": [
34185
+ "work",
34186
+ "orders",
34187
+ "runtime",
34188
+ "health",
34189
+ "remediation",
34190
+ "WO",
34191
+ "29",
34192
+ "retired",
34193
+ "failure",
34194
+ "projections",
34195
+ "md"
34196
+ ],
34197
+ "maturity": "internal",
34198
+ "audiences": [
34199
+ "maintainer",
34200
+ "large-context-agent"
34201
+ ],
34202
+ "layer": "documentation",
34203
+ "interfaces": [
34204
+ {
34205
+ "type": "file",
34206
+ "target": "docs/work-orders/runtime-health-remediation/WO-29-retired-failure-projections.md"
34207
+ }
34208
+ ],
34209
+ "references": [
34210
+ {
34211
+ "type": "documentation",
34212
+ "target": "docs/work-orders/runtime-health-remediation/WO-29-retired-failure-projections.md",
34213
+ "relation": "canonical-artifact"
34214
+ }
34215
+ ]
34216
+ },
33985
34217
  {
33986
34218
  "id": "guide.work-orders-telegram-dmn-wo-22-dmn-outreach-and-learning-uppercase",
33987
34219
  "kind": "guide",
package/docs/DISCOVERY.md CHANGED
@@ -532,6 +532,7 @@ Daemon equivalents are `GET /v1/discovery/bootstrap`, `GET /v1/discovery?q=<inte
532
532
  | `guide.work-orders-runtime-health-remediation-h6-main-tui-wo-05-confirmation-evidence-uppercase` | H6 Main-TUI and WO-05 Confirmation Evidence | This closure wires the top-level TUI FullSubAgentTool to live parent-context headroom and the exact owning task cancellation signal. It also confirms the WO-05 completion authority after the interruption, safe-media, workboard, and canonical-context changes. |
533
533
  | `guide.work-orders-runtime-health-remediation-live-telegram-log-review-2026-09-03-uppercase` | Live Telegram Log Review, 2026-09-03 | This review is read-only. It examines the persisted Telegram conversation and intake lifecycle records in /home/roko/Documents/Projects/Adjacent/telegramtest/.omnius. The running global Omnius package reports version 1.0.687. This means the observations describe the deployed pre-publication runtime, not the newer source commits on this repository's main bran |
534
534
  | `guide.work-orders-runtime-health-remediation-readme-uppercase` | Runtime Health Remediation Program | Program ID: RHR-2026-09-02 Status: active, implementation authorized Owner: Omnius runtime, orchestration, execution, memory, and Telegram packages External dependency: /home/roko/Desktop/ollama-unify Last reconciled: 2026-09-03 |
535
+ | `guide.work-orders-runtime-health-remediation-telegram-longhaul-2026-09-04-uppercase` | September 4 Telegram long-haul remediation | Status: complete; all five root repairs verified and delivered to origin/main Baseline: Omnius main 69c4a160; installed package 1.0.694 Incident run: telegram-64ac9937dc7647a8-1788572475259-1 Observation window: 2026-09-04 18:41–20:43 PDT Owner: repository repair; user owns publication and subsequent live testing |
535
536
  | `guide.work-orders-runtime-health-remediation-traceability-uppercase` | Runtime Health Remediation Traceability Matrix | Every completed row links to a deterministic test or operational receipt. A commit hash alone is not proof. A model statement is not proof. Live logs may support a canary only after the hermetic and deterministic gates pass. A status that names pending rollout or live work is intentionally not a completion claim. |
536
537
  | `guide.work-orders-runtime-health-remediation-tracker-uppercase` | Runtime Health Remediation Master Tracker | Authority: canonical granular tracker for RHR-2026-09-02 Checked-item rule: code, focused tests, and named evidence must all exist Last reconciled: 2026-09-04 |
537
538
  | `guide.work-orders-runtime-health-remediation-wo-00-hermetic-test-boundary-uppercase` | WO-00: Hermetic Test Boundary | Status: deterministic acceptance complete Evidence: inference network inventory and audit receipt for commit 8708e449 Risk: high, because current unit tests can contact the live broker Depends on: none |
@@ -563,6 +564,11 @@ Daemon equivalents are `GET /v1/discovery/bootstrap`, `GET /v1/discovery?q=<inte
563
564
  | `guide.work-orders-runtime-health-remediation-wo-22-autocomplete-footer-geometry-uppercase` | WO-22: Autocomplete Footer Geometry Integrity | Scope: CLI TUI footer, DirectInput redraw scheduling, active content writes |
564
565
  | `guide.work-orders-runtime-health-remediation-wo-23-long-horizon-control-plane-reconciliation-uppercase` | WO-23: Long-horizon control-plane reconciliation | The restored telegramtest run tui-3869250-mtlvp324-1788468819792-1 continued a large pentest-tooling frontend task across a process restart. It made real source mutations and advanced from the first implementation group to todo-p2a. The run was not dead and its model context had ample nominal capacity. |
565
566
  | `guide.work-orders-runtime-health-remediation-wo-24-telegram-logical-request-variant-identity-uppercase` | WO-24: Telegram logical request variant identity | Telegram follow-up requests could finish a streamed inference with no visible contract and then fail their one unary compatibility request with HTTP 409: logicalrequestconflict. The observed stream used all 300 completion tokens and ended with finish=length. |
567
+ | `guide.work-orders-runtime-health-remediation-wo-25-memory-compiler-eligibility-and-audit-uppercase` | WO-25: Memory compiler eligibility and outcome audit | Status: complete; implemented, verified, and pushed to origin/main Priority: P1 Incident date: 2026-09-04 PDT / 2026-09-05 UTC Program: September 4 Telegram long-haul repairs |
568
+ | `guide.work-orders-runtime-health-remediation-wo-26-admin-telegram-media-aliases-uppercase` | WO-26: Admin Telegram media alias resolution | Status: complete; implemented, verified, and pushed to origin/main Priority: P1 Incident date: 2026-09-04 PDT / 2026-09-05 UTC Program: September 4 Telegram long-haul repairs |
569
+ | `guide.work-orders-runtime-health-remediation-wo-27-task-verification-authority-uppercase` | WO-27: Separate mutation observations from task verification | Status: complete; implemented, verified, and pushed to origin/main Priority: P1 Incident date: 2026-09-04 PDT / 2026-09-05 UTC Program: September 4 Telegram long-haul repairs |
570
+ | `guide.work-orders-runtime-health-remediation-wo-28-task-scope-evidence-retirement-uppercase` | WO-28: Retire obsolete task evidence after explicit scope changes | Status: complete; implemented, verified, and pushed to origin/main Priority: P2 Incident date: 2026-09-04 PDT / 2026-09-05 UTC Program: September 4 Telegram long-haul repairs |
571
+ | `guide.work-orders-runtime-health-remediation-wo-29-retired-failure-projections-uppercase` | WO-29: Exclude retired failures from active diagnostics | Status: complete; implemented, verified, and pushed to origin/main Priority: P2 Incident date: 2026-09-04 PDT / 2026-09-05 UTC Program: September 4 Telegram long-haul repairs |
566
572
  | `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. |
567
573
  | `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. |
568
574
  | `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 |
@@ -0,0 +1,92 @@
1
+ # September 4 Telegram long-haul remediation
2
+
3
+ **Status:** complete; all five root repairs verified and delivered to origin/main
4
+ **Baseline:** Omnius main 69c4a160; installed package 1.0.694
5
+ **Incident run:** telegram-64ac9937dc7647a8-1788572475259-1
6
+ **Observation window:** 2026-09-04 18:41–20:43 PDT
7
+ **Owner:** repository repair; user owns publication and subsequent live testing
8
+
9
+ ## Work orders and dependency order
10
+
11
+ | Work order | Finding | Status | Delivery |
12
+ | --- | --- | --- | --- |
13
+ | [WO-25](WO-25-memory-compiler-eligibility-and-audit.md) | Memory compiler eligibility and outcome audit | complete | cb316de6 |
14
+ | [WO-26](WO-26-admin-telegram-media-aliases.md) | Admin Telegram media alias resolution | complete | bc494850 |
15
+ | [WO-27](WO-27-task-verification-authority.md) | Separate mutation observations from task verification | complete | ce40bfca, cf966ea3, dc60e5bf |
16
+ | [WO-28](WO-28-task-scope-evidence-retirement.md) | Retire obsolete task evidence after explicit scope changes | complete | 24321b30 |
17
+ | [WO-29](WO-29-retired-failure-projections.md) | Exclude retired failures from active diagnostics | complete | 3a1731ad |
18
+
19
+ WO-25 comes first on the shared request boundary. WO-26, WO-27, and WO-29
20
+ can be implemented independently. WO-28 integrates task-scope retirement with
21
+ WO-25 after the existing steering boundary is traced. Shared agenticRunner.ts
22
+ changes are serialized by the primary implementer.
23
+
24
+ ## Cross-cutting invariants
25
+
26
+ - Repair causes in Omnius; do not edit the active telegram_test workload or logs.
27
+ - Preserve existing dirty publish/ and docs/DISCOVERY.* changes.
28
+ - Retain graph-proven active evidence, user authority, valid tool transactions,
29
+ public Telegram isolation, and current explicit verifier contracts.
30
+ - Add deterministic regressions for the observed failures, including tests that
31
+ assert useful outcomes rather than invocation alone.
32
+ - Use the hermetic network boundary. No live inference, model load, CUDA/service
33
+ changes, package publication, or installed-package replacement.
34
+ - Check work-order boxes only after implementation and named verification pass.
35
+ - Commit each coherent verified repair using only its owned files; fetch and
36
+ push the tracked origin/main branch without rewriting history.
37
+
38
+ ## Delivery gates
39
+
40
+ - [x] All five work orders have implemented root repairs and passing regressions.
41
+ - [x] Compiler outcome telemetry survives final request projection.
42
+ - [x] Affected package regression suites and typechecks pass.
43
+ - [x] Clean workspace-package rebuild succeeds (without bundling publish/).
44
+ - [x] Independent review findings are resolved.
45
+ - [x] Work-order links and acceptance evidence are reconciled.
46
+ - [x] Scoped commits are pushed to origin/main.
47
+ - [x] Publication handoff records the final commit, verification, and operator
48
+ canaries for the user to run after publishing.
49
+
50
+ ## Verification ledger
51
+
52
+ - WO-25: 46 compiler/audit/canonical regression tests passed; ineligible high-volume output replay made zero compiler calls. Outcome projection and error-cache tests passed.
53
+ - WO-26: 71 media-focused regressions passed, including admin aliases, replies, OCR batch behavior, explicit paths, and public-chat isolation.
54
+ - WO-27: initial 93 completion tests passed, then 168 broader authority/command-trust tests passed. Final parser/observability refinements passed 93 focused tests with actual declared-verifier receipts.
55
+ - WO-29: 37 workboard and 10 continuity tests passed; superseded failures stay in audit history and leave active diagnostics.
56
+ - WO-28: 13 runner scope tests, 11 pure-boundary tests, 25 interruption lifecycle tests, 10 archive-store tests, and two full mocked runner replays passed. The production replays exercise both primary and brute-force loops.
57
+ - Clean rebuild: `pnpm -r clean`, removal of remaining workspace `tsconfig.tsbuildinfo` caches (excluding node_modules and publish), then `pnpm -r build`: **11 workspace projects passed**.
58
+ - Final full execution suite: **1,511 passed, 3 skipped**, 141 test files.
59
+ - Final full CLI suite: **2,480 passed**, 263 test files. This includes the mocked frontend transport lifecycle gate.
60
+ - Final full orchestrator suite: **2,519 passed, 1 skipped**, 208 test files, with `OMNIUS_SQLITE_TESTS=1`.
61
+ - Aggregate result: **6,510 tests passed, 4 skipped**. No test failed in the final full runs. The last directory-sync refinement passed another 15 scope tests and a workspace build.
62
+ - Full suites use `vitest run --maxWorkers=4 --minWorkers=1` through each package and the existing hermetic network setup.
63
+ - Initial aggregate run exposed the core-rule truncation regression, a parser snapshot loaded during active edits, and an obsolete observability fixture. Core rules now retain a separate typed policy slot; parser and fixture corrections passed fresh targeted replays before the final full run.
64
+ - Local work-order links: **11 checked, zero broken**. Pre-existing publish/ and docs/DISCOVERY.* changes were excluded from every task commit.
65
+
66
+ Historic checked claims in TRACKER.md are not acceptance evidence for these newly found defects.
67
+
68
+ ## Delivery handoff
69
+
70
+ Code is delivered through `24321b30` on `origin/main`; each work-order table entry records its scoped repair commits. This document and the master tracker close the repository implementation boundary. The existing installed package, running Telegram workload, and publication files were not replaced by this repair.
71
+
72
+ The workspace rebuild from clean compiled outputs passed. The user can now perform the normal publish-package bundling/publication procedure and run the following live canaries. Those canaries remain explicitly unexecuted here; deterministic test success is not represented as live-model validation.
73
+
74
+ ## Operator canaries after publication
75
+
76
+ These are deferred to the user, not unfinished implementation steps:
77
+
78
+ 1. Send an admin-DM voice message and reference it by reply and message ID;
79
+ confirm immediate scoped resolution and correct transcription attribution.
80
+ 2. Resume long work with large tool outputs but ample headroom; confirm zero
81
+ ineligible compiler calls and inspect retained compiler outcome telemetry.
82
+ 3. Replace the task with a different project; confirm old raw source leaves the
83
+ active context while new instructions and media evidence remain available.
84
+ 4. Build a scaffold, install dependencies, then inspect completion; installation
85
+ alone must not claim behavioral verification. Run the declared checks and
86
+ confirm fresh verifier evidence permits completion.
87
+ 5. Let a bounded failure expire or supersede it; confirm active diagnostics
88
+ remove it while audit history remains.
89
+
90
+ Any token-generating canary must first satisfy the repository endpoint/model
91
+ and exact physical GPU preflight gate.
92
+
@@ -4,6 +4,21 @@
4
4
  **Checked-item rule:** code, focused tests, and named evidence must all exist
5
5
  **Last reconciled:** 2026-09-04
6
6
 
7
+ ## September 4 field-review follow-up: WO-25 through WO-29
8
+
9
+ The active Telegram field review found new deterministic defects after the
10
+ earlier acceptance runs. Prior checked sections remain historical evidence;
11
+ they do not close these follow-up repairs. Current authority is
12
+ [TELEGRAM-LONGHAUL-2026-09-04.md](TELEGRAM-LONGHAUL-2026-09-04.md).
13
+
14
+ - [x] WO-25 memory compiler eligibility and outcome audit.
15
+ - [x] WO-26 admin Telegram media alias resolution.
16
+ - [x] WO-27 task verification authority separated from mutation observations.
17
+ - [x] WO-28 obsolete task evidence retirement after explicit replacement.
18
+ - [x] WO-29 retired failure diagnostics and active projections.
19
+ - [x] Aggregate tests, clean build, independent review, and scoped Git delivery.
20
+ - Publication and live validation are reserved to the user after handoff.
21
+
7
22
  ## Phase 0: durable program boundary
8
23
 
9
24
  - [x] Create the program directory.
@@ -0,0 +1,81 @@
1
+ # WO-25: Memory compiler eligibility and outcome audit
2
+
3
+ **Status:** complete; implemented, verified, and pushed to origin/main
4
+ **Priority:** P1
5
+ **Incident date:** 2026-09-04 PDT / 2026-09-05 UTC
6
+ **Program:** [September 4 Telegram long-haul repairs](TELEGRAM-LONGHAUL-2026-09-04.md)
7
+
8
+ ## Observed failure
9
+
10
+ In run telegram-64ac9937dc7647a8-1788572475259-1, 18 compiler operations consumed 5,371.58 seconds (89.53 minutes; 73.2% of 122.27 minutes). All 18 compiler prompts reported compactionEligible=false and only 20–30% occupancy of 262,144 tokens. A nineteenth was pending at the observation cutoff. These are completed operation durations, not inferred GPU compute or proven timeouts.
11
+
12
+ ## Evidence
13
+
14
+ Paths are relative to /home/roko/Documents/Projects/Adjacent. Live files are
15
+ observational references; sanitized deterministic fixtures must reproduce the
16
+ failure without copying credentials or private conversation content.
17
+
18
+ - `telegram_test/.omnius/interruptions/telegram-64ac9937dc7647a8.json`
19
+ - `telegram_test/.omnius/context-window-dumps/2026-09-05T03-35-52-688Z-internal-3abab33a54.json`
20
+
21
+ ## Root cause
22
+
23
+ _applyUnifiedMemoryCompilation bypasses context eligibility above 48,000 raw tool characters, synchronously requests a plan, and validateMemoryCompilationPlan rejects any such plan below the headroom threshold. Canonical projection subsequently changes the request fingerprint and drops the compiler audit.
24
+
25
+ ## Code locations
26
+
27
+ - `packages/orchestrator/src/agenticRunner.ts — _applyUnifiedMemoryCompilation, _recordContextWindowDump`
28
+ - `packages/orchestrator/src/memory-compiler.ts — validation and analysis`
29
+ - `packages/orchestrator/src/contextWindowDump.ts — compilation audit contract`
30
+ - `packages/orchestrator/tests/unified-memory-compilation.test.ts`
31
+ - `packages/orchestrator/tests/memory-compiler.test.ts`
32
+ - `packages/orchestrator/tests/contextWindowDump.test.ts`
33
+
34
+ ## Repair design
35
+
36
+ - Use one eligibility contract before inference and validation; raw history volume alone must not invoke a plan that cannot be accepted.
37
+ - Keep useful high-pressure compaction and graph/authority validation intact. Separate deterministic stale-evidence projection (WO-28) from semantic capacity compaction.
38
+ - Record compiler outcome against its actual input fingerprint and explicitly relate it to the final projected request, rather than silently dropping the audit.
39
+ - Preserve invalid-output/exception/hold outcomes as bounded body-free diagnostics without assuming every long request timed out.
40
+
41
+ ## Acceptance checklist
42
+
43
+ - [x] A large raw-tool request with ample headroom makes zero compiler backend calls across changing turns.
44
+ - [x] An eligible high-pressure request still applies a valid plan while retaining authority and active evidence.
45
+ - [x] Invalid plans preserve the request and emit an inspectable outcome.
46
+ - [x] Compiler outcome remains inspectable when downstream projection changes request fingerprint.
47
+ - [x] Focused regression tests, affected typechecks, and integrated workspace build pass.
48
+
49
+ ## Implementation and verification log
50
+
51
+ - Regression-first execution reproduced all three failures: four changing
52
+ low-pressure turns made four compiler calls, downstream projection lost the
53
+ outcome audit, and backend errors had no distinguishable cached outcome.
54
+ - The runner now uses the validator's exact compaction eligibility before
55
+ candidate persistence or backend invocation. The former raw-character
56
+ environment override no longer bypasses capacity eligibility.
57
+ - V2 analysis retains typed `plan`, `invalid_output`, and `backend_error`
58
+ outcomes without copying exception messages. Cached failures retain their
59
+ outcome and cache-hit status.
60
+ - Stage receipts retain pre/post compiler fingerprints plus the final wire
61
+ fingerprint and whether subsequent projection changed the payload. This
62
+ preserves observability without claiming cross-payload validation.
63
+ - `OMNIUS_SQLITE_TESTS=1 pnpm --filter @omnius/orchestrator exec vitest run
64
+ tests/unified-memory-compilation.test.ts tests/memory-compiler.test.ts
65
+ tests/contextWindowDump.test.ts tests/unified-memory-compilation-guard.test.ts
66
+ tests/agenticRunner-canonical-production.test.ts`: **46 tests passed**.
67
+ - `pnpm --filter @omnius/orchestrator typecheck`: **passed**.
68
+ - Source/test whitespace checks passed. Integrated build and independent review
69
+ will be recorded in the program verification ledger.
70
+
71
+ ## Delivery
72
+
73
+ - Commits: `cb316de6` on `origin/main`.
74
+ - Clean `pnpm -r build` passed for all 11 workspace packages/apps. Final aggregate suite evidence is in the linked program ledger.
75
+
76
+ ## Publication boundary
77
+
78
+ Repository repair and deterministic verification are this order's completion
79
+ boundary. The user will publish the package and then perform live validation.
80
+ No package publication, installed-package replacement, runtime-state repair,
81
+ or service restart is authorized by this order.
@@ -0,0 +1,93 @@
1
+ # WO-26: Admin Telegram media alias resolution
2
+
3
+ **Status:** complete; implemented, verified, and pushed to origin/main
4
+ **Priority:** P1
5
+ **Incident date:** 2026-09-04 PDT / 2026-09-05 UTC
6
+ **Program:** [September 4 Telegram long-haul repairs](TELEGRAM-LONGHAUL-2026-09-04.md)
7
+
8
+ ## Observed failure
9
+
10
+ The active run called transcribe_file(path='message_id:2747') at 19:03 PDT, received a literal filesystem-not-found error, and reached successful real-file transcription only at 19:58. Earlier aliases 'latest' and message_id:2744 failed similarly. The recovery delay overlaps WO-25 compiler time.
11
+
12
+ ## Evidence
13
+
14
+ Paths are relative to /home/roko/Documents/Projects/Adjacent. Live files are
15
+ observational references; sanitized deterministic fixtures must reproduce the
16
+ failure without copying credentials or private conversation content.
17
+
18
+ - `telegram_test/.omnius/completion-ledgers/telegram-64ac9937dc7647a8-1788572475259-1.json`
19
+
20
+ ## Root cause
21
+
22
+ Telegram media descriptions advertise aliases to all callers, but applyTelegramScopedMemoryTools installs alias adapters only outside telegram-admin-dm. Raw transcription resolves the alias against the workspace as a filename.
23
+
24
+ ## Code locations
25
+
26
+ - `packages/cli/src/tui/telegram-bridge.ts — media descriptions, tool assembly, scoped media resolver`
27
+ - `packages/execution/src/tools/transcribe-tool.ts — filesystem path boundary (preserve generic tool semantics)`
28
+ - `packages/cli/tests/telegram-media-cache.test.ts`
29
+ - `packages/cli/tests/telegram-public-media.test.ts`
30
+ - `packages/cli/tests/telegram-media-evidence.test.ts`
31
+ - `packages/cli/tests/telegram-admin-media-aliases.test.ts`
32
+
33
+ ## Repair design
34
+
35
+ - Separate Telegram reference resolution from public-chat filesystem/memory restrictions.
36
+ - Resolve message_id, latest, and reply aliases in admin DMs using the current chat's cached media.
37
+ - Preserve legitimate explicit admin filesystem paths and retain group/public isolation.
38
+ - Apply the adapter consistently to advertised media tools affected by the same missing boundary; preserve media evidence attribution.
39
+
40
+ ## Acceptance checklist
41
+
42
+ - [x] Admin-DM message_id, latest, and reply references reach the selected cached file, never a literal alias filename.
43
+ - [x] Explicit permitted admin paths retain existing behavior.
44
+ - [x] Missing and cross-chat references fail precisely without exposing unrelated media or initiating broad filesystem search.
45
+ - [x] Public/group path restrictions and media-evidence attribution remain intact.
46
+ - [x] Focused media/transport tests and CLI typecheck pass.
47
+
48
+ ## Implementation and verification log
49
+
50
+ - Added an admin-only alias adapter for image reading, OCR, vision, PDF extraction,
51
+ transcription, video understanding, and audio analysis. It reuses the existing
52
+ chat/kind selection and bounded reply-chain resolver independently of public
53
+ memory and filesystem restrictions.
54
+ - Added `video_understand`, `audio_analyze`, and `telegram_media_recent` to the
55
+ admin toolset because incoming-media instructions already advertise those
56
+ capabilities. Explicit tool-policy filtering remains in force.
57
+ - Exact missing or foreign-chat message aliases fail before raw execution or
58
+ creative-workspace path fallback. Admin absolute/relative files remain raw
59
+ filesystem inputs; an existing local filename takes precedence over an equal
60
+ cached basename. Public/group adapters retain their scope and restrictions.
61
+ - Preserved admin OCR batch/output arguments, URL-video operations, and explicit
62
+ microphone modes. Successful alias-based transcription and audio analysis use
63
+ the existing media-evidence attribution callbacks.
64
+ - Independent review found that omitted OCR batch input could select a cached
65
+ image instead of preserving the raw required-directory error. Batch mode now
66
+ bypasses all alias/default-media selection. A regression test compares the
67
+ original missing-input error with the adapted result while cached images exist.
68
+ - Regression evidence: the assembled-toolset test first executes the raw
69
+ transcription path with a nonexistent `message_id:10` filename and confirms
70
+ the former filesystem-not-found result. It then verifies that the repaired
71
+ real admin tool assembly sends the cached filename to a mocked executor.
72
+ The missing-file reproduction returns before any transcription/model request.
73
+ - Final verification on 2026-09-04 PDT: **71 tests passed** across
74
+ `telegram-admin-media-aliases.test.ts` (33), `telegram-media-evidence.test.ts`
75
+ (9), `telegram-media-cache.test.ts` (7), `telegram-public-media.test.ts` (11),
76
+ and `telegram-transport-contract.test.ts` (11), with the CLI hermetic network
77
+ boundary enabled. This final run includes the raw alias-boundary and missing
78
+ OCR batch-input regressions. `pnpm --dir packages/cli typecheck` and
79
+ `git diff --check` passed after the batch-input follow-up.
80
+ - No live inference, publication, installed-package replacement, runtime-state
81
+ change, or service restart was performed. Parent task owns the delivery commit.
82
+
83
+ ## Delivery
84
+
85
+ - Commits: `bc494850` on `origin/main`.
86
+ - Clean `pnpm -r build` passed for all 11 workspace packages/apps. Final aggregate suite evidence is in the linked program ledger.
87
+
88
+ ## Publication boundary
89
+
90
+ Repository repair and deterministic verification are this order's completion
91
+ boundary. The user will publish the package and then perform live validation.
92
+ No package publication, installed-package replacement, runtime-state repair,
93
+ or service restart is authorized by this order.