omnius 1.0.926 → 1.0.927

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.
@@ -3822,7 +3822,20 @@ var DEFAULT_CONFIG2 = {
3822
3822
  damping: 0.5,
3823
3823
  maxIterations: 50,
3824
3824
  convergenceThreshold: 1e-6,
3825
- topK: 10
3825
+ topK: 10,
3826
+ maxNodes: 1024,
3827
+ maxEdges: 8192,
3828
+ maxDurationMs: 250
3829
+ };
3830
+ var PPRTraversalBudgetError = class extends Error {
3831
+ reason;
3832
+ limit;
3833
+ constructor(reason, limit) {
3834
+ super(`Memory graph ${reason} budget exceeded (${limit}); use lexical retrieval instead`);
3835
+ this.reason = reason;
3836
+ this.limit = limit;
3837
+ this.name = "PPRTraversalBudgetError";
3838
+ }
3826
3839
  };
3827
3840
  function extractQueryEntities(query) {
3828
3841
  const entities = [];
@@ -3902,41 +3915,84 @@ function extractQueryEntities(query) {
3902
3915
  }
3903
3916
  return entities;
3904
3917
  }
3905
- function personalizedPageRank(graph, seedNodeIds, config) {
3918
+ function personalizedPageRankSnapshot(graph, seedNodeIds, config) {
3906
3919
  const cfg = { ...DEFAULT_CONFIG2, ...config };
3907
3920
  const scores = /* @__PURE__ */ new Map();
3921
+ const adjacency = /* @__PURE__ */ new Map();
3922
+ const empty = { scores, adjacency, assertTime: () => {
3923
+ } };
3908
3924
  if (seedNodeIds.length === 0)
3909
- return scores;
3925
+ return empty;
3910
3926
  const nodeCount = graph.nodeCount();
3911
3927
  if (nodeCount === 0)
3912
- return scores;
3928
+ return empty;
3929
+ const positiveBudget = (value, fallback) => typeof value === "number" && Number.isSafeInteger(value) && value > 0 ? value : fallback;
3930
+ const maxNodes = positiveBudget(cfg.maxNodes, DEFAULT_CONFIG2.maxNodes);
3931
+ const maxEdges = positiveBudget(cfg.maxEdges, DEFAULT_CONFIG2.maxEdges);
3932
+ const maxDurationMs = typeof cfg.maxDurationMs === "number" && Number.isFinite(cfg.maxDurationMs) && cfg.maxDurationMs > 0 ? cfg.maxDurationMs : DEFAULT_CONFIG2.maxDurationMs;
3933
+ const deadline = performance.now() + maxDurationMs;
3934
+ const assertTime = () => {
3935
+ if (performance.now() >= deadline)
3936
+ throw new PPRTraversalBudgetError("time", maxDurationMs);
3937
+ };
3938
+ let edgeRows = 0;
3939
+ const edgesFor = (nodeId) => {
3940
+ assertTime();
3941
+ const cached = adjacency.get(nodeId);
3942
+ if (cached)
3943
+ return cached;
3944
+ if (adjacency.size >= maxNodes)
3945
+ throw new PPRTraversalBudgetError("nodes", maxNodes);
3946
+ const remaining = maxEdges - edgeRows;
3947
+ const edges = graph.currentEdges(nodeId, remaining + 1);
3948
+ assertTime();
3949
+ if (edges.length > remaining)
3950
+ throw new PPRTraversalBudgetError("edges", maxEdges);
3951
+ edgeRows += edges.length;
3952
+ adjacency.set(nodeId, edges);
3953
+ return edges;
3954
+ };
3913
3955
  const teleportProb = 1 / seedNodeIds.length;
3914
3956
  const seedSet = new Set(seedNodeIds);
3915
3957
  const allNodes = /* @__PURE__ */ new Set();
3958
+ const expandedNeighbors = /* @__PURE__ */ new Set();
3959
+ const addNode = (nodeId) => {
3960
+ if (!allNodes.has(nodeId) && allNodes.size >= maxNodes)
3961
+ throw new PPRTraversalBudgetError("nodes", maxNodes);
3962
+ allNodes.add(nodeId);
3963
+ };
3916
3964
  for (const seedId of seedNodeIds) {
3917
- allNodes.add(seedId);
3918
- const neighbors = graph.neighbors(seedId);
3919
- for (const { node } of neighbors) {
3920
- allNodes.add(node.id);
3921
- const hop2 = graph.neighbors(node.id);
3922
- for (const { node: n2 } of hop2)
3923
- allNodes.add(n2.id);
3965
+ addNode(seedId);
3966
+ for (const edge of edgesFor(seedId)) {
3967
+ const neighborId = edge.srcId === seedId ? edge.dstId : edge.srcId;
3968
+ addNode(neighborId);
3969
+ if (!expandedNeighbors.has(neighborId)) {
3970
+ expandedNeighbors.add(neighborId);
3971
+ for (const hop2 of edgesFor(neighborId))
3972
+ addNode(hop2.srcId === neighborId ? hop2.dstId : hop2.srcId);
3973
+ }
3924
3974
  }
3925
3975
  }
3976
+ for (const nodeId of allNodes)
3977
+ edgesFor(nodeId);
3926
3978
  for (const nodeId of allNodes) {
3927
3979
  scores.set(nodeId, seedSet.has(nodeId) ? teleportProb : 0);
3928
3980
  }
3929
3981
  for (let iter = 0; iter < cfg.maxIterations; iter++) {
3982
+ assertTime();
3930
3983
  const newScores = /* @__PURE__ */ new Map();
3931
3984
  let maxDelta = 0;
3932
3985
  for (const nodeId of allNodes) {
3986
+ assertTime();
3933
3987
  const teleport = seedSet.has(nodeId) ? (1 - cfg.damping) * teleportProb : 0;
3934
3988
  let walkSum = 0;
3935
- const inEdges = graph.currentEdges(nodeId);
3989
+ const inEdges = adjacency.get(nodeId);
3936
3990
  for (const edge of inEdges) {
3937
3991
  const neighborId = edge.srcId === nodeId ? edge.dstId : edge.srcId;
3938
3992
  const neighborScore = scores.get(neighborId) ?? 0;
3939
- const neighborOutDegree = graph.currentEdges(neighborId).length || 1;
3993
+ if (neighborScore === 0)
3994
+ continue;
3995
+ const neighborOutDegree = adjacency.get(neighborId).length || 1;
3940
3996
  walkSum += neighborScore / neighborOutDegree;
3941
3997
  }
3942
3998
  const newScore = teleport + cfg.damping * walkSum;
@@ -3948,10 +4004,10 @@ function personalizedPageRank(graph, seedNodeIds, config) {
3948
4004
  for (const [id2, score] of newScores)
3949
4005
  scores.set(id2, score);
3950
4006
  if (maxDelta < cfg.convergenceThreshold) {
3951
- return scores;
4007
+ return { scores, adjacency, assertTime };
3952
4008
  }
3953
4009
  }
3954
- return scores;
4010
+ return { scores, adjacency, assertTime };
3955
4011
  }
3956
4012
  function retrieveByPPR(query, graph, episodeStore, config) {
3957
4013
  const cfg = { ...DEFAULT_CONFIG2, ...config };
@@ -3986,15 +4042,17 @@ function retrieveByPPR(query, graph, episodeStore, config) {
3986
4042
  if (seedNodes.length === 0) {
3987
4043
  return { episodes: [], queryEntities, seedNodes: [], iterations: 0 };
3988
4044
  }
3989
- const pprScores = personalizedPageRank(graph, seedNodes, cfg);
4045
+ const snapshot = personalizedPageRankSnapshot(graph, seedNodes, cfg);
4046
+ const pprScores = snapshot.scores;
3990
4047
  const episodeScores = /* @__PURE__ */ new Map();
3991
4048
  for (const [nodeId, score] of pprScores) {
4049
+ snapshot.assertTime();
3992
4050
  if (score < 1e-3)
3993
4051
  continue;
3994
4052
  const node = graph.getNode(nodeId);
3995
4053
  if (!node)
3996
4054
  continue;
3997
- const edges = graph.currentEdges(nodeId);
4055
+ const edges = snapshot.adjacency.get(nodeId);
3998
4056
  for (const edge of edges) {
3999
4057
  if (edge.sourceEpisodeId) {
4000
4058
  const existing = episodeScores.get(edge.sourceEpisodeId);
@@ -4012,6 +4070,7 @@ function retrieveByPPR(query, graph, episodeStore, config) {
4012
4070
  if (cfg.currentEmotionalState || cfg.influenceFor || engagementWeight !== 0) {
4013
4071
  const current = cfg.currentEmotionalState;
4014
4072
  entries = entries.map(([epId, payload]) => {
4073
+ snapshot.assertTime();
4015
4074
  const ep = episodeStore.get(epId);
4016
4075
  let score = payload.score;
4017
4076
  if (current) {
@@ -4037,6 +4096,7 @@ function retrieveByPPR(query, graph, episodeStore, config) {
4037
4096
  const ranked = entries.sort((a, b) => b[1].score - a[1].score).slice(0, cfg.topK);
4038
4097
  const episodes = [];
4039
4098
  for (const [epId, { score, matchedNodes }] of ranked) {
4099
+ snapshot.assertTime();
4040
4100
  const episode = episodeStore.get(epId);
4041
4101
  if (episode) {
4042
4102
  episodes.push({ episode, pprScore: score, matchedNodes: [...new Set(matchedNodes)] });
@@ -4442,6 +4502,7 @@ var EpisodeStore = class {
4442
4502
  const standardResults = this.search(query, { ...opts, recordRetrieval: false });
4443
4503
  try {
4444
4504
  const pprResult = retrieveByPPR(query.query, this.graph, this, {
4505
+ ...opts.pprBudget,
4445
4506
  damping: 0.5,
4446
4507
  maxIterations: 50,
4447
4508
  convergenceThreshold: 1e-6,
@@ -4481,7 +4542,13 @@ var EpisodeStore = class {
4481
4542
  if (opts.recordRetrieval !== false)
4482
4543
  this.recordRetrieved(merged, Date.now());
4483
4544
  return merged;
4484
- } catch {
4545
+ } catch (error) {
4546
+ if (error instanceof PPRTraversalBudgetError) {
4547
+ try {
4548
+ opts.onPprBudgetExceeded?.(error);
4549
+ } catch {
4550
+ }
4551
+ }
4485
4552
  if (opts.recordRetrieval !== false)
4486
4553
  this.recordRetrieved(standardResults, Date.now());
4487
4554
  return standardResults;
@@ -55303,6 +55303,7 @@ var init_log_explore = __esm({
55303
55303
  "packages/execution/dist/tools/log-explore.js"() {
55304
55304
  "use strict";
55305
55305
  init_log_packet();
55306
+ init_output_preview();
55306
55307
  }
55307
55308
  });
55308
55309
 
@@ -31589,6 +31589,38 @@
31589
31589
  }
31590
31590
  ]
31591
31591
  },
31592
+ {
31593
+ "id": "guide.context-recovery-review",
31594
+ "kind": "guide",
31595
+ "title": "Context Recovery Review",
31596
+ "summary": "Bundled Omnius documentation artifact: docs/context-recovery-review.json.",
31597
+ "keywords": [
31598
+ "context",
31599
+ "recovery",
31600
+ "review",
31601
+ "json"
31602
+ ],
31603
+ "maturity": "stable",
31604
+ "audiences": [
31605
+ "user",
31606
+ "integrator",
31607
+ "coding-agent"
31608
+ ],
31609
+ "layer": "documentation",
31610
+ "interfaces": [
31611
+ {
31612
+ "type": "file",
31613
+ "target": "docs/context-recovery-review.json"
31614
+ }
31615
+ ],
31616
+ "references": [
31617
+ {
31618
+ "type": "documentation",
31619
+ "target": "docs/context-recovery-review.json",
31620
+ "relation": "canonical-artifact"
31621
+ }
31622
+ ]
31623
+ },
31592
31624
  {
31593
31625
  "id": "guide.corpus-ocr",
31594
31626
  "kind": "guide",
package/docs/DISCOVERY.md CHANGED
@@ -444,6 +444,7 @@ Daemon equivalents are `GET /v1/discovery/bootstrap`, `GET /v1/discovery?q=<inte
444
444
  | `guide.completion-deliberation-examples-20261022` | Actual model deliberation over synthetic evidence | Validation reading: all three seeded negative claims were rejected with valid findings and remained blocked. The fourth, supplied-repair control was inconclusive because its mutation receipt is explicitly mock evidence. The overall harness report is passed: false, not an end-to-end success. There were 15 physical model requests; unchanged critic decisions we |
445
445
  | `guide.concept-relational-language` | Concept Relational Language (CRL) — Token-Efficient Concept Communication | &gt; Experimental hyper-compressed symbolic notation for mind-mapped logical flow tracking |
446
446
  | `guide.context-management-medium-models-proposal` | Context Management for Medium Models (30-40B) — Implementation Proposal | Date: 2026-04-25 Problem: Medium-tier models (~35B params) exhibit excessive repetition at ~35% context fill despite 256K context windows Root Cause: Monolithic context structure + attention degradation + tool schema bloat |
447
+ | `guide.context-recovery-review` | Context Recovery Review | Bundled Omnius documentation artifact: docs/context-recovery-review.json. |
447
448
  | `guide.corpus-ocr` | Explicit scanned-PDF corpus OCR | The public sourcecorpus tool can process an acquired PDF population with begin using filters: {channel: "ocrtext"} and optional ocrlanguage (default eng). Repeated process calls resume a durable per-source page cursor. Installed CPU Poppler and Tesseract are required. The default channel remains nativetext; completing native extraction of an empty scanned pa |
448
449
  | `guide.dedup-false-positive-meta-analysis` | Meta-Analysis: False Positive Duplicate Tool Call Detection | Date: 2026-05-14 Scope: packages/orchestrator/src/agenticRunner.ts — proactivePrune() + buildResourceKey() |
449
450
  | `guide.design-dashboard-reconstruction-plan` | Dashboard reconstruction plan | 2026-10-16 · source implementation only; publishing remains with the user. |
@@ -0,0 +1,306 @@
1
+ {
2
+ "schema": "omnius.context-recovery-review.v1",
3
+ "reviewedAt": "2026-11-08T03:29:01.375764+00:00",
4
+ "scope": "Context and turn convergence regression from an admin design request; no upstream implementation copied.",
5
+ "upstream": {
6
+ "schema": "omnius.context-upstream-research.v1",
7
+ "capturedAt": "2026-11-08T03:20:41.707532+00:00",
8
+ "sourcePins": {
9
+ "v2-dev": {
10
+ "ref": "5a47777cc4c7511082e9ca5d4b430cea8113c4bb",
11
+ "sha": "5a47777cc4c7511082e9ca5d4b430cea8113c4bb",
12
+ "date": "2026-11-08T01:12:04Z",
13
+ "url": "https://github.com/anomalyco/opencode/commit/5a47777cc4c7511082e9ca5d4b430cea8113c4bb"
14
+ },
15
+ "v1-release": {
16
+ "ref": "v1.19.5",
17
+ "sha": "810c0eba1a7348036f8bdf61e6632d0c36c6876c",
18
+ "date": "2026-10-28T06:17:33Z",
19
+ "url": "https://github.com/anomalyco/opencode/commit/810c0eba1a7348036f8bdf61e6632d0c36c6876c"
20
+ },
21
+ "codex": {
22
+ "sha": "c9b4267c370a755da12ec1c8648c2451163212b7",
23
+ "url": "https://github.com/openai/codex/commit/c9b4267c370a755da12ec1c8648c2451163212b7"
24
+ }
25
+ },
26
+ "boundaries": [
27
+ "Claude Code internals are closed; claims below are published official behavior only. Documentation pages are retrieval-time snapshots, not immutable app implementation pins.",
28
+ "OpenCode stable v1.19.5 and current dev V2 are distinct implementations. Current documentation redirects to V2; do not carry V1 defaults or doom-loop guarantees into V2.",
29
+ "Only general design patterns are proposed; no upstream implementation copied into Omnius."
30
+ ],
31
+ "findings": [
32
+ {
33
+ "id": "codex-context-vs-rollout",
34
+ "scope": "Pinned public Codex source and official configuration",
35
+ "claim": "Tool output is bounded in active history while full original rollout payloads remain persisted. History replay preserves known source revisions. The tool-output history budget is configurable.",
36
+ "sources": [
37
+ "https://github.com/openai/codex/blob/c9b4267c370a755da12ec1c8648c2451163212b7/codex-rs/core/src/context_manager/history.rs#L617-L683",
38
+ "https://learn.chatgpt.com/docs/config-file/config-reference#tool_output_token_limit"
39
+ ],
40
+ "application": "Separate exact executor evidence from bounded model-facing views and presentation identifiers."
41
+ },
42
+ {
43
+ "id": "codex-compaction",
44
+ "scope": "Pinned public Codex source and official guide",
45
+ "claim": "Compaction carries a compact checkpoint into later requests. Local compaction uses bounded retries and retains recent input while shortening overflowing history. The final compactor input is used to avoid restoring items already discarded during recovery.",
46
+ "sources": [
47
+ "https://github.com/openai/codex/blob/c9b4267c370a755da12ec1c8648c2451163212b7/codex-rs/core/src/compact.rs#L350-L419",
48
+ "https://developers.openai.com/cookbook/examples/gpt-5/codex_prompting_guide#compaction"
49
+ ],
50
+ "application": "Rebase to the fresh canonical request at finite control-churn bounds; preserve actual source custody and pending protocol pairs."
51
+ },
52
+ {
53
+ "id": "claude-adaptive-intent",
54
+ "scope": "Claude official documentation",
55
+ "claim": "The agent loop follows the request: a codebase question may need only investigation, while a repair proceeds through action and verification. Plan mode is available for proposing changes before project edits.",
56
+ "sources": [
57
+ "https://code.claude.com/docs/en/how-claude-code-works#the-agentic-loop",
58
+ "https://code.claude.com/docs/en/common-workflows#plan-before-editing"
59
+ ],
60
+ "application": "Preserve ideation and question intent; do not let generic workboard directives replace the current objective."
61
+ },
62
+ {
63
+ "id": "claude-cache-prefix",
64
+ "scope": "Claude official documentation",
65
+ "claim": "Stable instructions and project context precede conversation; normal turns append. Compaction summarizes using the existing prompt prefix and then replaces the conversation with shorter summary history.",
66
+ "sources": [
67
+ "https://code.claude.com/docs/en/prompt-caching#how-prompt-caching-works",
68
+ "https://code.claude.com/docs/en/prompt-caching#compacting-the-conversation"
69
+ ],
70
+ "application": "Keep an append-only cache prefix within an epoch, then establish one summary checkpoint rather than retaining every stale controller delta forever."
71
+ },
72
+ {
73
+ "id": "claude-budget",
74
+ "scope": "Claude official documentation, environment reference",
75
+ "claim": "Output limits are model-dependent and capped; unresolved model IDs default to32000 with128000 cap. Increasing the output allowance reduces room before automatic compaction. Bash output defaults to30000characters with150000 maximum.",
76
+ "sources": [
77
+ "https://code.claude.com/docs/en/env-vars#look-up-the-variables-claude-code-reads"
78
+ ],
79
+ "application": "Set a deliberate finite per-call output allowance and bound tool output before materialization; do not reserve almost all remaining context as generation budget."
80
+ },
81
+ {
82
+ "id": "claude-rehydrate",
83
+ "scope": "Claude official documentation",
84
+ "claim": "Compaction preserves a structured summary and reloads relevant instruction sources. It reopens up to five recently modified/read files; oversized files may remain references. The plan survives from disk.",
85
+ "sources": [
86
+ "https://code.claude.com/docs/en/context-window#what-survives-compaction"
87
+ ],
88
+ "application": "Keep durable exact source references plus a short recent evidence tail; avoid a pointer that cannot actually be reopened."
89
+ },
90
+ {
91
+ "id": "opencode-v1-output",
92
+ "scope": "OpenCode v1.19.5",
93
+ "claim": "V1 provider default output allowance is32000 and is capped by model output support.",
94
+ "sources": [
95
+ "https://github.com/anomalyco/opencode/blob/810c0eba1a7348036f8bdf61e6632d0c36c6876c/packages/opencode/src/provider/transform.ts#L18",
96
+ "https://github.com/anomalyco/opencode/blob/810c0eba1a7348036f8bdf61e6632d0c36c6876c/packages/opencode/src/provider/transform.ts#L1481-L1483"
97
+ ]
98
+ },
99
+ {
100
+ "id": "opencode-v1-compaction",
101
+ "scope": "OpenCode v1.19.5",
102
+ "claim": "V1 separately prunes old tool output beyond a40000-token protection window when pruning can save more than20000tokens; skill output is protected. Recent preservation defaults to a2k\u201315k range from a quarter of usable context, with configurable tail behavior.",
103
+ "sources": [
104
+ "https://github.com/anomalyco/opencode/blob/810c0eba1a7348036f8bdf61e6632d0c36c6876c/packages/opencode/src/session/compaction.ts#L28-L33",
105
+ "https://github.com/anomalyco/opencode/blob/810c0eba1a7348036f8bdf61e6632d0c36c6876c/packages/opencode/src/session/compaction.ts#L114-L119",
106
+ "https://github.com/anomalyco/opencode/blob/810c0eba1a7348036f8bdf61e6632d0c36c6876c/packages/opencode/src/session/compaction.ts#L271-L313"
107
+ ],
108
+ "limitation": "Pruning is lossy and is not evidence that all previously read text remains available verbatim."
109
+ },
110
+ {
111
+ "id": "opencode-v1-doom",
112
+ "scope": "OpenCode v1.19.5 processor",
113
+ "claim": "A threshold of three same-name tools with JSON-identical inputs in the current assistant parts triggers the doom_loop permission check. This is not a semantic unchanged-result detector across all session turns.",
114
+ "sources": [
115
+ "https://github.com/anomalyco/opencode/blob/810c0eba1a7348036f8bdf61e6632d0c36c6876c/packages/opencode/src/session/processor.ts#L29",
116
+ "https://github.com/anomalyco/opencode/blob/810c0eba1a7348036f8bdf61e6632d0c36c6876c/packages/opencode/src/session/processor.ts#L352-L379"
117
+ ],
118
+ "application": "Use exact or semantic identity deliberately; do not assume a warning string prevents repeated execution."
119
+ },
120
+ {
121
+ "id": "opencode-v2-compaction",
122
+ "scope": "OpenCode dev V2",
123
+ "claim": "V2 defaults to15k recent context beside a rolling structured summary, preserving the normal request prefix while generating that summary. Default headroom is15% with16k minimum for sufficiently large windows.",
124
+ "sources": [
125
+ "https://opencode.ai/docs/compaction/#how-it-works",
126
+ "https://github.com/anomalyco/opencode/blob/5a47777cc4c7511082e9ca5d4b430cea8113c4bb/packages/core/src/session/compaction.ts#L129-L139",
127
+ "https://github.com/anomalyco/opencode/blob/5a47777cc4c7511082e9ca5d4b430cea8113c4bb/packages/core/src/session/compaction.ts#L269",
128
+ "https://github.com/anomalyco/opencode/blob/5a47777cc4c7511082e9ca5d4b430cea8113c4bb/packages/core/src/session/compaction.ts#L448-L469",
129
+ "https://github.com/anomalyco/opencode/blob/5a47777cc4c7511082e9ca5d4b430cea8113c4bb/packages/core/src/session/compaction.ts#L1160-L1175"
130
+ ],
131
+ "application": "Summary covers old trajectory; recent exact context remains bounded and durable history stays outside the active request."
132
+ },
133
+ {
134
+ "id": "opencode-v2-finite-recovery",
135
+ "scope": "OpenCode dev V2",
136
+ "claim": "A primary provider overflow is compacted and retried once before further failure is surfaced. Compaction itself has finite shortening targets85%,70%,50%,35%, and errors if it cannot reduce safely. Output-length continuation is separately finite.",
137
+ "sources": [
138
+ "https://opencode.ai/docs/compaction/#limits",
139
+ "https://github.com/anomalyco/opencode/blob/5a47777cc4c7511082e9ca5d4b430cea8113c4bb/packages/core/src/session/runner/llm.ts#L238-L246",
140
+ "https://github.com/anomalyco/opencode/blob/5a47777cc4c7511082e9ca5d4b430cea8113c4bb/packages/core/src/session/runner/llm.ts#L309-L315",
141
+ "https://github.com/anomalyco/opencode/blob/5a47777cc4c7511082e9ca5d4b430cea8113c4bb/packages/core/src/session/runner/llm.ts#L364-L378",
142
+ "https://github.com/anomalyco/opencode/blob/5a47777cc4c7511082e9ca5d4b430cea8113c4bb/packages/core/src/session/compaction.ts#L607-L618",
143
+ "https://github.com/anomalyco/opencode/blob/5a47777cc4c7511082e9ca5d4b430cea8113c4bb/packages/core/src/session/compaction.ts#L679-L690"
144
+ ],
145
+ "application": "Treat context recovery as a finite state machine with observable terminal errors; do not hide failure behind indefinite automatic retries."
146
+ },
147
+ {
148
+ "id": "opencode-v2-output",
149
+ "scope": "OpenCode dev V2",
150
+ "claim": "V2 output allowance starts from model catalog support (32k fallback,256k ceiling), fits the remaining prompt window, and includes estimate margin plus a1k output floor. These limits differ from V1.",
151
+ "sources": [
152
+ "https://github.com/anomalyco/opencode/blob/5a47777cc4c7511082e9ca5d4b430cea8113c4bb/packages/core/src/session/model-request.ts#L53-L63",
153
+ "https://github.com/anomalyco/opencode/blob/5a47777cc4c7511082e9ca5d4b430cea8113c4bb/packages/core/src/session/model-request.ts#L94-L104"
154
+ ]
155
+ },
156
+ {
157
+ "id": "opencode-v2-doom-and-intent",
158
+ "scope": "Current V2 docs and source",
159
+ "claim": "V2 explicitly does not expose the V1 doom_loop permission action. Plan and build remain distinct agents; configured final-step behavior removes tools and asks for a text summary.",
160
+ "sources": [
161
+ "https://opencode.ai/docs/permissions/#actions",
162
+ "https://opencode.ai/docs/agents/#built-ins",
163
+ "https://opencode.ai/docs/agents/#steps",
164
+ "https://github.com/anomalyco/opencode/blob/5a47777cc4c7511082e9ca5d4b430cea8113c4bb/packages/core/src/session/runner/llm.ts#L253-L273",
165
+ "https://github.com/anomalyco/opencode/blob/5a47777cc4c7511082e9ca5d4b430cea8113c4bb/packages/core/src/session/runner/max-steps.ts#L1-L16"
166
+ ],
167
+ "limitation": "Absence of doom_loop in the V2 public permission surface is not proof that every repeated-call safeguard is absent internally."
168
+ }
169
+ ]
170
+ },
171
+ "incident": {
172
+ "observed": "Goal and earlier observations remained present; this incident is not attributed to an empty task frame.",
173
+ "causes": [
174
+ {
175
+ "file": "packages/orchestrator/src/agenticRunner.ts",
176
+ "symbol": "_renderActionContractBlock",
177
+ "finding": "Raw inferred repair board bypassed the model-visible workboard guard and pressured a design request toward file edits.",
178
+ "change": "Use the same guarded workboard view for action contracts."
179
+ },
180
+ {
181
+ "file": "packages/orchestrator/src/observationLedger.ts",
182
+ "symbol": "record",
183
+ "finding": "Display packet/archive IDs changed the output hash despite identical executor bytes.",
184
+ "change": "Accept host-computed semantic outcome identity; preserve latest complete display references."
185
+ },
186
+ {
187
+ "file": "packages/orchestrator/src/append-only-outbound.ts",
188
+ "symbol": "projectAppendOnlyOutbound",
189
+ "finding": "Physical-capacity-only admission allowed many obsolete control-frame deltas to accumulate.",
190
+ "change": "Independently rebase after 24000 control characters or eight updates using fresh canonical input, without truncating exact sources."
191
+ },
192
+ {
193
+ "file": "packages/execution/src/tools/log-explore.ts",
194
+ "symbol": "grep",
195
+ "finding": "A long minified CSS/base64 line hid relevant selectors from the preview.",
196
+ "change": "Bounded match-centered excerpts retain original line and column locations; exact logs stay available."
197
+ },
198
+ {
199
+ "file": "packages/orchestrator/src/agenticRunner.ts",
200
+ "symbol": "_buildPressureSnapshot / _buildFocusContextSnapshot",
201
+ "finding": "Semantic-item consolidation metrics overwrote physical request pressure; previous-context comparison also used an already-replaced snapshot.",
202
+ "change": "Keep semantic and final outbound metrics distinct; compare old context before updating it."
203
+ },
204
+ {
205
+ "file": "packages/orchestrator/src/unchanged-observation-guard.ts",
206
+ "symbol": "observe",
207
+ "finding": "Advisory repetition feedback did not enforce a finite recovery boundary for unchanged successful or failed reads.",
208
+ "change": "At three identical observations put recovery in the current controller frame. At eight, persist a nonretryable incomplete receipt and prevent Telegram same-input replay. Changed source, task scope or real mutation renews the budget."
209
+ },
210
+ {
211
+ "file": "packages/execution/src/tools/list-directory.ts",
212
+ "symbol": "execute",
213
+ "finding": "Live Qwen inference repeatedly prepended the listing directory to already workspace-relative child paths, producing app/app/dashboard.mjs and app/app/globals.css.",
214
+ "change": "Actual directory output identifies working_directory, listing_path, resolved_directory and the path coordinate system; exact displayed child paths must be passed unchanged."
215
+ },
216
+ {
217
+ "file": "packages/orchestrator/src/world-state-disk-scan.ts",
218
+ "symbol": "renderWorkspaceTree",
219
+ "finding": "Before any bad model call, actual live request2 nested app/dashboard.mjs under an app/ tree node. That display implies app/app/dashboard.mjs, which the real model then requested repeatedly.",
220
+ "change": "Render nested children as child basenames while retaining complete canonical paths in metadata and the separate full-path index."
221
+ }
222
+ ],
223
+ "traceMeasurements": {
224
+ "packedTokensAtTurn22": 105608,
225
+ "historicalFrameUpdatesAtTurn22": 22,
226
+ "historicalFrameUpdateCharsAtTurn22": 157272,
227
+ "identicalCssSearchesInPriorAttempt": 61
228
+ },
229
+ "interpretationLimits": [
230
+ "The task was not completed; incidental search failures do not imply the whole user request required that command.",
231
+ "A nonretryable stall is an honest incomplete resource boundary, not evidence of task success.",
232
+ "No finite test proves universal model convergence. Validation covers the reproduced unchanged-read/control-growth failure and an implementation control."
233
+ ]
234
+ },
235
+ "verification": {
236
+ "automated": "Focused runner/executor, append-only custody, observation identity, focused long-line extraction, physical pressure, completion receipt and Telegram replay tests.",
237
+ "liveHarness": "scripts/live-context-recovery-harness.mjs",
238
+ "liveModel": "robit/qwen3.8-27b-obliterated-e03:27b",
239
+ "liveEndpoint": "http://127.0.0.1:11434",
240
+ "hardwareGate": "Exact model runner, weights blob and A100 UUID checked before tokens; no low-capability GPU fallback.",
241
+ "cases": [
242
+ "Design request: grounded accepted proposal without project mutations.",
243
+ "Explicit implementation: real fixture edit, readback and independent tests."
244
+ ],
245
+ "results": {
246
+ "passedAt": "2026-11-08T03:45:19.275Z",
247
+ "regressionTestsPassed": 380,
248
+ "workspaceBuild": "passed",
249
+ "sourceSha256": "feb72eadf039a46cd4c3cc25aa53a19ad55d5d845a14f4e3677d9686beafc7d9",
250
+ "runtimeSha256": "bc678351a9db99d124aea22448fc886a2d6b27f64428985ec1e3a3052be863f4",
251
+ "gpuUuids": [
252
+ "GPU-fc9d264d-8a20-bf8c-eb72-72a6dcbdaf2a"
253
+ ],
254
+ "modelDigest": "d185382bd866ef361e9825f1818451ca2694e25a4f503339cde4a8071f4544a3",
255
+ "mockedModelResponses": 0,
256
+ "cases": [
257
+ {
258
+ "kind": "idea",
259
+ "primaryTurns": 4,
260
+ "checks": {
261
+ "completionAccepted": true,
262
+ "atMost16PrimaryTurns": true,
263
+ "boundedFrameHistory": true,
264
+ "visibleProposal": true,
265
+ "noRepoMutation": true
266
+ },
267
+ "changedFiles": [],
268
+ "maxEstimatedInputTokens": 20166,
269
+ "maxHistoricalFrameUpdates": 1,
270
+ "acceptedReply": true
271
+ },
272
+ {
273
+ "kind": "implementation",
274
+ "primaryTurns": 7,
275
+ "checks": {
276
+ "completionAccepted": true,
277
+ "atMost16PrimaryTurns": true,
278
+ "boundedFrameHistory": true,
279
+ "actualWrite": true,
280
+ "readbackAndTest": true
281
+ },
282
+ "changedFiles": [
283
+ "app/dashboard.mjs"
284
+ ],
285
+ "maxEstimatedInputTokens": 21520,
286
+ "maxHistoricalFrameUpdates": 1,
287
+ "acceptedReply": true
288
+ }
289
+ ]
290
+ },
291
+ "initialLiveFinding": "The isolated real-model trials reproduced repeated app/app source reads. Captured provider responses matched the misleading injected workspace tree, proving the bad path was primed by host context. Revalidate after tree and path-semantics corrections.",
292
+ "scopeRegression": "Same-epoch objective scope changes reset the observation budget; an in-flight callback captured under the previous scope is excluded. Model tokens are not needed for this host ownership check.",
293
+ "artifactStoreSourceSha256": "0bb7f8bab2f7a45cc80f9c591d493f9783eba4783238f20832c3a0d8a3ecd5dd"
294
+ },
295
+ "operationalRecovery": {
296
+ "discoveredDuringDeployment": "The old Telegram worker could not checkpoint because this workspace artifact store had reached its512MiB budget; host disk still had47GiB free.",
297
+ "diagnosis": "A read-only worker debugger caught the exact checkpoint exception. Debugger was closed after inspection.",
298
+ "correction": "Add strict, bounded store-local limits.json configuration; default remains512MiB, explicit constructor options win, file overrides are capped at8GiB. Set only this workspace to1GiB; no artifacts deleted.",
299
+ "existingWorkerRecovery": "Apply the same1GiB limit to the old runner store in memory so the normal checkpoint succeeds, then replace and resume the Telegram worker. No forced process termination; main daemon remains running.",
300
+ "configurationExample": {
301
+ "schema": "omnius.artifact-store-limits.v1",
302
+ "maxStoreBytes": 1073741824
303
+ },
304
+ "verification": "28 store tests passed, including existing behavior, immutable retention, root isolation and invalid configuration. The real old worker checkpoint succeeded after the quota correction."
305
+ }
306
+ }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.926",
3
+ "version": "1.0.927",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.926",
9
+ "version": "1.0.927",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
@@ -9499,9 +9499,9 @@
9499
9499
  }
9500
9500
  },
9501
9501
  "node_modules/sanitize-filename": {
9502
- "version": "1.6.4",
9503
- "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.4.tgz",
9504
- "integrity": "sha512-9ZyI08PsvdQl2r/bBIGubpVdR3RR9sY6RDiWFPreA21C/EFlQhmgo20UZlNjZMMZNubusLhAQozkA0Od5J21Eg==",
9502
+ "version": "1.6.5",
9503
+ "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.5.tgz",
9504
+ "integrity": "sha512-+dVApt46/oAFWRP0KBSnYNLRw1peY7o/b12tmpllPNFpjfwkPuZut1+DiKaD9zYx5r2SHwc+XMLSBaDiyUJw3g==",
9505
9505
  "license": "WTFPL OR ISC",
9506
9506
  "dependencies": {
9507
9507
  "truncate-utf8-bytes": "^1.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.926",
3
+ "version": "1.0.927",
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",