omnius 1.0.646 → 1.0.647

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.
@@ -0,0 +1,233 @@
1
+ # ASD-STE100 Communication Audit
2
+
3
+ Date: 2026-08-28
4
+
5
+ ## Objective
6
+
7
+ Use ASD-STE100 Issue 9 for all Omnius natural-language communication.
8
+ Apply the rule to external replies and internal agent messages.
9
+ Preserve exact machine content without a change.
10
+
11
+ ## Standard boundary
12
+
13
+ [ASD-STE100 Issue 9](https://www.asd-ste100.org/assets/files/ASD-STE100_ISSUE9.pdf) has 53 writing rules.
14
+ It also has an approved-word dictionary and permits necessary technical terms.
15
+ The standard requires consistent technical terms, short sentences, direct verbs, and clear procedures.
16
+
17
+ Issue 9 limits a procedure sentence to 20 words.
18
+ It limits a descriptive sentence to 25 words.
19
+ It requires one instruction in most procedure sentences.
20
+ It also requires quoted text to remain unchanged.
21
+
22
+ The [official STE description](https://www.asd-ste100.org/about.html) identifies an approved dictionary and permitted technical terms.
23
+ The [official checker guidance](https://www.asd-ste100.org/ste-software.html) states that software aids are not complete compliance proof.
24
+
25
+ Therefore, Omnius can enforce structural STE rules automatically.
26
+ A qualified human must confirm full dictionary compliance.
27
+ Omnius must not claim certified compliance from a model or heuristic check.
28
+
29
+ ## 2026 reliability evidence
30
+
31
+ Current research supports three separate communication layers.
32
+
33
+ 1. Use controlled natural language for human and agent prose.
34
+ 2. Use schemas and exact fields for machine messages.
35
+ 3. Use code validators for syntax and meaning.
36
+
37
+ A 2026 protocol review reports weak support for clarification, context alignment, and semantic verification.
38
+ Omnius now names these duties in the common contract.
39
+ Source: [Beyond Message Passing](https://arxiv.org/abs/2604.02369).
40
+
41
+ A 2026 harness study reports that prompt text alone did not preserve critical guarantees.
42
+ It assigns deterministic guarantees to code, schemas, manifests, and validators.
43
+ Omnius now uses this rule in the common contract.
44
+ Source: [From Prompts to Contracts](https://arxiv.org/abs/2607.08028).
45
+
46
+ A 2026 structured-output study separates valid syntax from valid meaning.
47
+ It also reports model-specific failure patterns.
48
+ Omnius must validate JSON structure and field meaning.
49
+ Source: [StructHallu-Drift](https://aclanthology.org/2026.surgellm-1.22/).
50
+
51
+ A 2026 reliability framework treats retries and verification as different recovery operators.
52
+ Omnius must classify a failure before it selects a recovery method.
53
+ Source: [Cost-Aware Adaptive Reliability](https://arxiv.org/abs/2605.09121).
54
+
55
+ 2025 structured-output studies remain directly applicable.
56
+ They show that schema constraints need adapted prompts, examples, and validators.
57
+ Sources: [The Hidden Cost of Structure](https://aclanthology.org/2025.ranlp-1.124/) and [Schema Reinforcement Learning](https://aclanthology.org/2025.acl-long.243/).
58
+
59
+ ## Lossless exception boundary
60
+
61
+ Do not change these items during STE conversion:
62
+
63
+ - Code and code blocks
64
+ - JSON, schemas, keys, and enum values
65
+ - Commands, paths, options, and environment keys
66
+ - API routes, headers, status codes, and media types
67
+ - Tool names and tool argument names
68
+ - Model names and provider names
69
+ - Sentinels, tags, placeholders, and parser labels
70
+ - User input and source quotations
71
+ - Logs, errors, traces, and tool output
72
+ - Required literal replies
73
+
74
+ Use STE for text that introduces or explains these items.
75
+ If STE conflicts with an exact contract, the exact contract has priority.
76
+
77
+ ## Runtime architecture review
78
+
79
+ | Surface | Previous condition | Current control | Status |
80
+ |---|---|---|---|
81
+ | Small tier | Large duplicated prose with long sentences | Shared common contract and small-tier addition | Updated |
82
+ | Medium tier | Large duplicated prose with long sentences | Shared common contract and medium-tier addition | Updated |
83
+ | Large tier | Large duplicated prose with long sentences | Shared common contract and large-tier addition | Updated |
84
+ | Ollama and compatible providers | No common language envelope | Provider adds one STE policy message | Updated |
85
+ | Anthropic adapter | Independent system translation | Provider policy enters before translation | Updated |
86
+ | Native Ollama stream | Independent message path | Provider policy enters before native transport | Updated |
87
+ | Nexus remote peer | Independent message path | Nexus adds the same policy | Updated |
88
+ | Cascade backend | Delegates to Ollama or Nexus | Inner backend adds the policy | Updated |
89
+ | Web chat | Separate non-tier system prompt | Web prompt starts with the shared policy | Updated |
90
+ | Realtime and phone | Explicit contraction preference | Shared policy and direct spoken rules | Updated |
91
+ | Task templates | Long compound instructions | Eight source templates use short direct rules | Updated |
92
+ | Telegram router | Many inline contracts and exact schemas | Provider policy governs output | Controlled rewrite required |
93
+ | Sub-agent delegation | Separate preambles and exact envelopes | Provider policy governs output | Controlled rewrite required |
94
+ | RALPH runners | Separate JSON-sensitive prompt files | Provider policy governs output | Controlled rewrite required |
95
+ | Memory and compaction | Separate JSON and summary prompts | Provider policy governs output | Controlled rewrite required |
96
+ | CLI dream and emotion prompts | Creative and machine output contracts | Provider policy governs output | Profile-specific review required |
97
+ | Reference contracts | 39 long Markdown contracts | Included under the common policy | Controlled rewrite required |
98
+ | OpenAPI and help text | Human prose in TypeScript literals | Not model-generated | User-interface review required |
99
+
100
+ The final provider boundary adds the policy before each model request.
101
+ This rule covers inline prompts that still need a controlled source rewrite.
102
+ It also covers new prompts that a feature adds later.
103
+ The policy does not change exact machine content.
104
+
105
+ ## Source inventory
106
+
107
+ The prompt audit found 83 source Markdown files.
108
+ Generated files under `publish/` are not source files.
109
+
110
+ - CLI TUI prompts: 7 files
111
+ - Prompt package contracts and templates: 15 files
112
+ - Orchestrator prompts: 22 files
113
+ - Root reference contracts: 39 files
114
+
115
+ TypeScript also contains direct model prompts and user-interface messages.
116
+ These strings need a separate literal extractor because many strings contain machine data.
117
+
118
+ ## Main defects found
119
+
120
+ ### Tier prompts
121
+
122
+ The three tier files duplicated nearly all content.
123
+ Many sentences had more than 25 words.
124
+ Several sentences contained more than one instruction.
125
+ The smaller tiers did not have a materially smaller common contract.
126
+
127
+ The new design keeps one common contract.
128
+ Each tier file now contains only its tier rules.
129
+ This design prevents language drift between tiers.
130
+
131
+ ### Realtime prompt
132
+
133
+ The previous prompt explicitly permitted contractions.
134
+ This rule directly conflicted with STE.
135
+ The fallback reply also used a contraction.
136
+
137
+ The new prompt prohibits contractions.
138
+ The fallback now uses two short sentences.
139
+ An exact user-requested reply remains exempt.
140
+
141
+ ### Task templates
142
+
143
+ The source templates used long labels, questions, vague terms, and compound instructions.
144
+ The revised templates use one direct action in each procedure sentence.
145
+ Exact placeholders and tool names remain unchanged.
146
+
147
+ ### Telegram and tool contracts
148
+
149
+ Telegram router prompts contain safety, identity, route, and reply policies.
150
+ They also contain exact JSON fields and enum values.
151
+ A broad text conversion can change router behavior.
152
+
153
+ Tool contracts contain exact JSON, tool names, argument names, and parser sentinels.
154
+ These elements need token-preservation tests before a controlled prose conversion.
155
+
156
+ ### Corrected prompt defect
157
+
158
+ `packages/cli/prompts/tui/emotion-center.md` had an unclosed parenthesis.
159
+ Its examples also conflicted with its required emoji-and-word output.
160
+ The revised prompt has short instructions and valid examples.
161
+ A test now protects the placeholders and required output format.
162
+
163
+ ## Telegram router failure review
164
+
165
+ The live failure was not an unavailable model.
166
+ The broker completed the requests with hidden reasoning tokens.
167
+ Omnius then removed the hidden text and received no visible decision contract.
168
+
169
+ One predicate controlled two different facts.
170
+ It controlled Ollama transport features and Omnius pool ownership.
171
+ The broker discovery correctly disabled the local Omnius pool.
172
+ That result also disabled Ollama transport behavior by mistake.
173
+
174
+ The affected requests omitted `think:false` and Ollama context options.
175
+ They also used `/v1/chat/completions` instead of the preferred native `/api/chat` route.
176
+ The model used its reply budget for hidden reasoning.
177
+
178
+ The backend now uses two predicates.
179
+
180
+ - `isOllamaTransport` controls Ollama request fields and native routes.
181
+ - `useOllamaPool` controls only local runner acquisition and spawn behavior.
182
+
183
+ Broker-managed endpoints now use native Ollama transport without a local pool slot.
184
+ Regression tests cover unary and streaming requests through `http://localhost:11434`.
185
+ The tests also prove that Omnius does not acquire a local pool slot.
186
+
187
+ The Telegram bridge had a separate token-count defect.
188
+ It read usage fields from the wrong level of each stream chunk.
189
+ It now reads the `usage` object, which corrects the false `~0 tok` display.
190
+
191
+ Each model-generation block now has a bottom `read mode` control.
192
+ The control expands all preserved thinking, content, tool-contract, and handling rows.
193
+ The control remains available after the block completes.
194
+ The Telegram chat fast path now streams into its block and closes the block on success or failure.
195
+
196
+ ## Validation policy
197
+
198
+ The structural check must mask exact machine content.
199
+ It must then inspect only authored prose.
200
+
201
+ Use these hard checks for core prompts:
202
+
203
+ - No contraction
204
+ - No semicolon
205
+ - No unresolved placeholder
206
+ - Balanced delimiters outside protected content
207
+ - Maximum 20 words for a procedure sentence
208
+ - Maximum 25 words for a descriptive sentence
209
+ - One instruction in each procedure sentence
210
+ - Exact preservation of machine tokens
211
+
212
+ Do not use automatic passive-voice detection as a hard failure.
213
+ Do not use an incomplete dictionary as compliance proof.
214
+
215
+ ## Remaining controlled work
216
+
217
+ Use a token manifest before any broad prompt conversion.
218
+ Record placeholders, schema keys, enum values, tags, sentinels, and tool names.
219
+ Require the same token set after each prose change.
220
+
221
+ Convert the remaining groups in this order:
222
+
223
+ 1. Telegram router and reflection prose
224
+ 2. Sub-agent and delegation prose
225
+ 3. Recovery and completion prose
226
+ 4. RALPH runner prose
227
+ 5. Memory and compaction prose
228
+ 6. CLI setup and recovery text
229
+ 7. API descriptions and help text
230
+ 8. Reference contracts
231
+
232
+ Run parser and snapshot tests after each group.
233
+ Do not use a repository-wide blind text replacement.
@@ -28394,6 +28394,39 @@
28394
28394
  }
28395
28395
  ]
28396
28396
  },
28397
+ {
28398
+ "id": "guide.asd-ste100-communication-audit-uppercase",
28399
+ "kind": "guide",
28400
+ "title": "ASD-STE100 Communication Audit",
28401
+ "summary": "Use ASD-STE100 Issue 9 for all Omnius natural-language communication. Apply the rule to external replies and internal agent messages. Preserve exact machine content without a change.",
28402
+ "keywords": [
28403
+ "ASD",
28404
+ "STE100",
28405
+ "COMMUNICATION",
28406
+ "AUDIT",
28407
+ "md"
28408
+ ],
28409
+ "maturity": "stable",
28410
+ "audiences": [
28411
+ "user",
28412
+ "integrator",
28413
+ "coding-agent"
28414
+ ],
28415
+ "layer": "documentation",
28416
+ "interfaces": [
28417
+ {
28418
+ "type": "file",
28419
+ "target": "docs/ASD-STE100-COMMUNICATION-AUDIT.md"
28420
+ }
28421
+ ],
28422
+ "references": [
28423
+ {
28424
+ "type": "documentation",
28425
+ "target": "docs/ASD-STE100-COMMUNICATION-AUDIT.md",
28426
+ "relation": "canonical-artifact"
28427
+ }
28428
+ ]
28429
+ },
28397
28430
  {
28398
28431
  "id": "guide.concept-relational-language",
28399
28432
  "kind": "guide",
@@ -29569,6 +29602,40 @@
29569
29602
  }
29570
29603
  ]
29571
29604
  },
29605
+ {
29606
+ "id": "guide.ontology-long-horizon-work-graph-uppercase",
29607
+ "kind": "guide",
29608
+ "title": "Ontology WorkGraph Review",
29609
+ "summary": "Use an ontological graph to control large and long tasks. Make each work item, relation, claim, and evidence item addressable. Keep one canonical graph across planning, execution, verification, and completion.",
29610
+ "keywords": [
29611
+ "ONTOLOGY",
29612
+ "LONG",
29613
+ "HORIZON",
29614
+ "WORK",
29615
+ "GRAPH",
29616
+ "md"
29617
+ ],
29618
+ "maturity": "stable",
29619
+ "audiences": [
29620
+ "user",
29621
+ "integrator",
29622
+ "coding-agent"
29623
+ ],
29624
+ "layer": "documentation",
29625
+ "interfaces": [
29626
+ {
29627
+ "type": "file",
29628
+ "target": "docs/ONTOLOGY-LONG-HORIZON-WORK-GRAPH.md"
29629
+ }
29630
+ ],
29631
+ "references": [
29632
+ {
29633
+ "type": "documentation",
29634
+ "target": "docs/ONTOLOGY-LONG-HORIZON-WORK-GRAPH.md",
29635
+ "relation": "canonical-artifact"
29636
+ }
29637
+ ]
29638
+ },
29572
29639
  {
29573
29640
  "id": "guide.opencode-agentic-loop-comparison",
29574
29641
  "kind": "guide",
package/docs/DISCOVERY.md CHANGED
@@ -407,6 +407,7 @@ Daemon equivalents are `GET /v1/discovery/bootstrap`, `GET /v1/discovery?q=<inte
407
407
  | `guide.agent-memory-index-uppercase` | Agent-Explorable Documentation | Omnius documentation is exposed to agents through project-local AIWG-style bundles under .aiwg/addons/. |
408
408
  | `guide.architecture-agent-system-map` | Omnius Agent System Map | Use this page when you need to understand how a user-visible behavior travels through Omnius, where its state lives, and which package owns a change. For a specific task recipe, search the generated catalog first: |
409
409
  | `guide.architecture-overview` | Architecture Overview | Omnius combines a terminal-first agent loop, REST daemon, model routing layer, tool runtime, persistent context, and peer mesh. |
410
+ | `guide.asd-ste100-communication-audit-uppercase` | ASD-STE100 Communication Audit | Use ASD-STE100 Issue 9 for all Omnius natural-language communication. Apply the rule to external replies and internal agent messages. Preserve exact machine content without a change. |
410
411
  | `guide.concept-relational-language` | Concept Relational Language (CRL) — Token-Efficient Concept Communication | &gt; Experimental hyper-compressed symbolic notation for mind-mapped logical flow tracking |
411
412
  | `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 |
412
413
  | `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() |
@@ -443,6 +444,7 @@ Daemon equivalents are `GET /v1/discovery/bootstrap`, `GET /v1/discovery?q=<inte
443
444
  | `guide.model-capability-awareness-and-multimodal-memory-root-fix` | Model Capability Awareness And Multimodal Identity Memory Root Fix | Status: planning and integration tracker |
444
445
  | `guide.multimodal-identity-memory-implementation` | Multimodal Identity Memory Implementation Tracker | Goal: make voice, text, image, Telegram reply context, CLIP-like embeddings, zettelkasten links, and social profiles converge on one evidence-based identity substrate. |
445
446
  | `guide.omnius-self-edit-eval-2026-06-10` | Omnius Self-Edit Evaluation — Uncommitted Changes &amp; Duplicate-Tool-Call Failure Mode | &gt; Eval of the working-tree changes against docs/opencode-agentic-loop-comparison.md. &gt; Subject: an Omnius instance editing its own orchestrator to implement the P0–P10 &gt; learnings. Generated 2026-06-10. |
447
+ | `guide.ontology-long-horizon-work-graph-uppercase` | Ontology WorkGraph Review | Use an ontological graph to control large and long tasks. Make each work item, relation, claim, and evidence item addressable. Keep one canonical graph across planning, execution, verification, and completion. |
446
448
  | `guide.opencode-agentic-loop-comparison` | OpenCode → Omnius: Agentic Loop &amp; Sub-Agent Delegation Comparison | &gt; Exhaustive comparison between https://github.com/anomalyco/opencode/tree/dev and &gt; packages/orchestrator/src/agenticRunner.ts (omnius). &gt; Generated 2026-06-10. |
447
449
  | `guide.operations-delay-analysis` | Unnecessary Causes of Delays Between Agent Actions | Analysis of packages/orchestrator/src/ (95 files) — identified delay sources ranked by impact. |
448
450
  | `guide.operations-delay-fix-review` | Delay Fix Review — Commits Since Delay Analysis | Date: 2026-06-10 Reference: /docs/operations/delay-analysis.md (15 delay sources documented) |
@@ -0,0 +1,329 @@
1
+ # Ontology WorkGraph Review
2
+
3
+ Date: 2026-08-28
4
+
5
+ ## Objective
6
+
7
+ Use an ontological graph to control large and long tasks.
8
+ Make each work item, relation, claim, and evidence item addressable.
9
+ Keep one canonical graph across planning, execution, verification, and completion.
10
+
11
+ ## Reference boundary
12
+
13
+ The [Ontology Workbench](https://robit-man.github.io/ontology/) is the documentation and reference implementation.
14
+ Its [raw source](https://github.com/robit-man/ontology/blob/main/index.html) defines the contracts and behavior.
15
+
16
+ Use the implementation as a contract reference.
17
+ Do not copy its browser and IndexedDB monolith into Omnius.
18
+
19
+ ## Main conclusion
20
+
21
+ Omnius already has most required primitives.
22
+ They exist in separate models with different identifiers and completion rules.
23
+
24
+ Add a canonical `WorkGraph` projection.
25
+ Do not add another independent planner or evidence store.
26
+
27
+ The graph must join this chain:
28
+
29
+ ```text
30
+ objective
31
+ -> requirement
32
+ -> feature
33
+ -> component or module
34
+ -> task
35
+ -> artifact or mutation
36
+ -> claim
37
+ -> verification
38
+ -> evidence
39
+ ```
40
+
41
+ Relations must also represent dependencies, blockers, contradictions, and supersession.
42
+
43
+ ## Useful Ontology Workbench contracts
44
+
45
+ The reference separates four concerns:
46
+
47
+ - Type and schema definitions
48
+ - Mutable runtime instances
49
+ - Claims, evidence, and conflicts
50
+ - Objectives, plans, actions, approvals, and executions
51
+
52
+ The model proposes a revision-bound patch.
53
+ Deterministic code validates and applies the patch.
54
+ The code records an immutable revision receipt.
55
+
56
+ The reference also uses target-focused evidence collection.
57
+ It scans all target occurrences before it selects evidence.
58
+ It keeps varied semantic roles and document positions.
59
+ It also keeps supporting and contradicting evidence.
60
+
61
+ These contracts are more valuable than its first chunking algorithm.
62
+ Omnius already has stronger basic chunking, content hashes, staleness checks, and PDF coverage receipts.
63
+
64
+ ## Strong Omnius foundations
65
+
66
+ ### Work decomposition
67
+
68
+ - `todo-store.ts` has stable identifiers, parents, blockers, owners, dependencies, verifiers, and artifacts.
69
+ - `todoTruth.ts` derives hierarchy, open leaves, dependency state, and parent completion.
70
+ - `featurePlanner.ts` records paths, symbols, tests, evidence, questions, units, and return contracts.
71
+ - `featureNode.ts` provides recursive survey, plan, split, execute, verify, and eviction stages.
72
+
73
+ ### Completion and closure
74
+
75
+ - `completionLedger.ts` records claims, evidence roles, risks, critiques, unresolved items, and terminal receipts.
76
+ - `deliveryCoverage.ts` has versioned manifests and deterministic coverage evaluation.
77
+ - `integrationClosure.ts` already projects requirements, claims, paths, contracts, evidence, and blockers into a graph.
78
+ - `completion-evidence-gate.ts` requires independent evidence for high-risk claims.
79
+
80
+ ### Evidence and memory
81
+
82
+ - `evidenceLedger.ts` records content hashes, revisions, ranges, fidelity, mutations, and staleness.
83
+ - `contextMemoryLedger.ts` records authority, trust, temporal validity, relations, and dependency-closed transactions.
84
+ - `evidenceBranch.ts` validates selected ranges against presented windows and original source text.
85
+ - PDF receipts distinguish absence, incomplete coverage, truncation, and omitted pages.
86
+
87
+ ### Retrieval
88
+
89
+ - Hybrid retrieval combines lexical, vector, and graph candidates.
90
+ - The context assembler supports rank fusion, graph expansion, snippet packing, and request budgets.
91
+ - The memory ledger supports temporal and source-aware retrieval with explicit abstention.
92
+
93
+ ## Critical gaps
94
+
95
+ ### No canonical work identity
96
+
97
+ Tasks, todos, feature nodes, missions, claims, and memory records use separate identifiers.
98
+ They cannot form one durable requirement-to-evidence path.
99
+
100
+ ### Weak requirement identity
101
+
102
+ Many requirements and acceptance criteria remain unkeyed prose.
103
+ The integration graph creates one synthetic current-goal requirement.
104
+ Todos do not carry requirement and acceptance identifiers.
105
+
106
+ ### Isolated feature systems
107
+
108
+ The feature planner, feature tree, and mission artifacts have limited production wiring.
109
+ Their rich contracts do not control the main completion path.
110
+
111
+ ### Advisory completion evidence
112
+
113
+ The active completion gate records graph gaps but does not stop completion.
114
+ Final reconciliation does not revoke an accepted completion result.
115
+
116
+ Keep inferred work advisory.
117
+ Make explicit requirements and acceptance paths authoritative.
118
+
119
+ ### No world transaction boundary
120
+
121
+ `PatchProposal` does not include a base revision or expected source versions.
122
+ It also lacks typed semantic operations and a resulting revision receipt.
123
+
124
+ Current stale-write controls operate below the proposal contract.
125
+ The system cannot validate one proposal atomically against its observed world.
126
+
127
+ ### No first-class conflict object
128
+
129
+ Omnius can mark a claim as contradicted.
130
+ It cannot preserve two active incompatible claims in one conflict group.
131
+
132
+ Add subject, predicate, valid-time, alternatives, authority, confidence, and resolution rationale.
133
+
134
+ ### Incomplete evidence diversity
135
+
136
+ Several retrieval paths keep one occurrence per file or source.
137
+ Some structured reads select only leading rows or leading text.
138
+
139
+ This behavior can omit late updates, repeated events, and counterevidence.
140
+ It can also confuse an unobserved fact with an absent fact.
141
+
142
+ ### Fragmented source bindings
143
+
144
+ Each package uses a different locator and provenance shape.
145
+ Most general records support only line or character ranges.
146
+
147
+ Add page, sheet, row, heading, table, field, and JSON-path locators.
148
+
149
+ ## Canonical WorkGraph contract
150
+
151
+ Use these node kinds:
152
+
153
+ - `objective`
154
+ - `requirement`
155
+ - `feature`
156
+ - `component`
157
+ - `module`
158
+ - `task`
159
+ - `acceptance`
160
+ - `symbol`
161
+ - `artifact`
162
+ - `mutation`
163
+ - `claim`
164
+ - `verification`
165
+ - `evidence`
166
+ - `conflict`
167
+ - `blocker`
168
+
169
+ Use these core relations:
170
+
171
+ - `decomposes_to`
172
+ - `part_of`
173
+ - `depends_on`
174
+ - `satisfies`
175
+ - `implements`
176
+ - `modifies`
177
+ - `produces`
178
+ - `verified_by`
179
+ - `evidenced_by`
180
+ - `contradicts`
181
+ - `blocked_by`
182
+ - `supersedes`
183
+
184
+ Each node and relation must have a stable identifier.
185
+ Each inferred item must record its authority.
186
+ An inferred item remains advisory until code or a user adopts it.
187
+
188
+ Each action node must define these fields when they apply:
189
+
190
+ - Target references
191
+ - Inputs
192
+ - Preconditions
193
+ - Expected mutations
194
+ - Side effects
195
+ - Required authority
196
+ - Required approval
197
+ - Risk
198
+ - Verification contract
199
+
200
+ ## Shared evidence contract
201
+
202
+ Add one `SourceBinding` and `EvidenceRef` schema under `packages/schemas`.
203
+
204
+ The schema must include these fields:
205
+
206
+ - Evidence identifier
207
+ - Source identifier and URI
208
+ - Content hash and source revision
209
+ - Observation time and freshness
210
+ - Authority and confidence
211
+ - Typed locator and locator value
212
+ - Supporting or refuting polarity
213
+ - Coverage and truncation status
214
+ - State epoch
215
+
216
+ Use the same evidence identifier in retrieval, memory, claims, completion, and groundedness.
217
+ Validate each reference against the current source revision.
218
+
219
+ ## Revisioned world reducer
220
+
221
+ Add a pure reducer under `packages/orchestrator/src/operational-world/`.
222
+ Keep `AgenticRunner`, context systems, and the TUI as consumers.
223
+
224
+ The model can propose only a `WorldPatch`.
225
+ The patch must include `patchId`, `baseRevision`, and typed operations.
226
+
227
+ The reducer must do these checks:
228
+
229
+ 1. Verify the base revision.
230
+ 2. Validate every runtime schema.
231
+ 3. Verify every node, relation, claim, and evidence reference.
232
+ 4. Verify expected file hashes and read versions.
233
+ 5. Reject duplicate identifiers and dangling relations.
234
+ 6. Reject invalid cycles and temporal intervals.
235
+ 7. Preserve incompatible claims as a conflict.
236
+ 8. Apply operations in a deterministic order.
237
+ 9. Emit an immutable patch and revision receipt.
238
+
239
+ Use `integrationClosure.ts` as the first graph adapter.
240
+ Do not make its bounded display neighborhood the authoritative validation universe.
241
+
242
+ ## Large-document evidence pipeline
243
+
244
+ Use a source-aware decomposition tree.
245
+ Each child shard must retain its parent and exact locator.
246
+
247
+ Select shard boundaries by content type:
248
+
249
+ - Keep prose headings with their paragraphs.
250
+ - Keep JSON paths and array ranges.
251
+ - Repeat table headers for each table shard.
252
+ - Keep PDF page markers.
253
+ - Keep spreadsheet sheet and row markers.
254
+
255
+ If one extraction fails, subdivide only that shard.
256
+ Preserve the failed shard as unresolved evidence.
257
+ Do not discard it.
258
+
259
+ For a named target, use this retrieval sequence:
260
+
261
+ 1. Resolve exact target entities.
262
+ 2. Scan all target occurrences.
263
+ 3. Build section-bounded evidence windows.
264
+ 4. Classify each window by semantic role and polarity.
265
+ 5. Keep earliest and latest relevant evidence.
266
+ 6. Keep early, middle, and late document coverage.
267
+ 7. Expand one hop to co-referenced entities.
268
+ 8. Include supporting and contradicting evidence.
269
+ 9. Trim background evidence before target evidence.
270
+ 10. Emit a typed coverage receipt.
271
+
272
+ Pass one validated `ReasoningSlice` to the reasoner and critic.
273
+ Reject unknown citations and omitted requested targets before model criticism.
274
+
275
+ ## Completion invariant
276
+
277
+ Use this rule for authoritative work:
278
+
279
+ > Complete an objective only when every explicit requirement and acceptance path reaches fresh successful evidence after the last relevant mutation.
280
+
281
+ Do not let a model-created node silently expand the user's required scope.
282
+ Keep each inferred edge advisory until adoption.
283
+
284
+ ## Immediate correctness repairs
285
+
286
+ Repair these issues before authoritative graph gating:
287
+
288
+ - Call `verifyUnit` during the feature-node verify stage.
289
+ - Do not mark an exception fallback complete without evidence.
290
+ - Reject missing dependency identifiers and dependency cycles in RALPH plans.
291
+ - Do not serialize independent modules through artificial dependencies.
292
+ - Preserve feature decomposition fields when units become todos.
293
+ - Wire the existing retrieval provider into the production runner.
294
+ - Add free-form lexical retrieval to the context assembler.
295
+ - Remove one-occurrence limits for evidence-mode retrieval.
296
+
297
+ ## Rollout
298
+
299
+ ### Phase 1: Shared identity
300
+
301
+ Add shared work, relation, source-binding, evidence, conflict, and revision schemas.
302
+ Project current stores into stable graph identifiers.
303
+
304
+ ### Phase 2: Shadow world
305
+
306
+ Record proposed patches, validation results, revisions, and receipts.
307
+ Compare graph closure with current completion decisions.
308
+ Do not change completion behavior in this phase.
309
+
310
+ ### Phase 3: Retrieval and document evidence
311
+
312
+ Wire the existing retrieval systems into production context assembly.
313
+ Add evidence diversity, counterevidence, structural locators, and coverage receipts.
314
+
315
+ ### Phase 4: Authoritative explicit closure
316
+
317
+ Gate only explicit requirement and acceptance paths.
318
+ Keep inferred paths advisory.
319
+ Require fresh evidence after each relevant mutation.
320
+
321
+ ### Phase 5: Parallel long-horizon execution
322
+
323
+ Schedule ready leaves whose dependency paths are satisfied.
324
+ Assign ownership and authority to each leaf.
325
+ Commit graph patches through the revisioned reducer.
326
+ Reconcile conflicts before dependent work begins.
327
+
328
+ This design lets Omnius decompose extreme complexity into durable ontological work.
329
+ It also keeps progress, evidence, and completion lossless across long sessions.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.646",
3
+ "version": "1.0.647",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.646",
9
+ "version": "1.0.647",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.646",
3
+ "version": "1.0.647",
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",