omnius 1.0.591 → 1.0.592

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.
Files changed (131) hide show
  1. package/.aiwg/addons/omnius-docs/README.md +15 -1
  2. package/.aiwg/addons/omnius-docs/manifest.json +28 -68
  3. package/.aiwg/addons/omnius-docs/skills/agent-failure-recovery/SKILL.md +2 -1
  4. package/.aiwg/addons/omnius-docs/skills/browser-interaction-validation/SKILL.md +2 -1
  5. package/.aiwg/addons/omnius-docs/skills/evidence-directed-delivery/SKILL.md +2 -1
  6. package/.aiwg/addons/omnius-docs/skills/hardware-evidence-audit/SKILL.md +2 -1
  7. package/.aiwg/addons/omnius-docs/skills/omnius-docs/SKILL.md +17 -7
  8. package/.aiwg/addons/omnius-docs/skills/omnius-inference-docs/SKILL.md +27 -0
  9. package/.aiwg/addons/omnius-docs/skills/omnius-integration-docs/SKILL.md +21 -0
  10. package/.aiwg/addons/omnius-docs/skills/omnius-ops-docs/SKILL.md +2 -0
  11. package/.aiwg/addons/omnius-docs/skills/omnius-realtime-docs/SKILL.md +2 -0
  12. package/.aiwg/addons/omnius-docs/skills/omnius-sponsor-docs/SKILL.md +2 -0
  13. package/.aiwg/addons/omnius-docs/skills/omnius-telegram-docs/SKILL.md +2 -0
  14. package/.aiwg/addons/omnius-docs/skills/omnius-tools-docs/SKILL.md +23 -0
  15. package/.aiwg/addons/omnius-docs/skills/omnius-version-compatibility-docs/SKILL.md +23 -0
  16. package/.aiwg/addons/omnius-docs/skills/runtime-provenance-audit/SKILL.md +2 -1
  17. package/.aiwg/addons/omnius-docs/skills/secrets-and-config-audit/SKILL.md +2 -1
  18. package/.aiwg/addons/omnius-docs/skills/test-surface-audit/SKILL.md +2 -1
  19. package/.aiwg/addons/omnius-docs/skills/workspace-reality-audit/SKILL.md +2 -1
  20. package/.aiwg/addons/omnius-rest-docs/README.md +3 -0
  21. package/.aiwg/addons/omnius-rest-docs/manifest.json +27 -20
  22. package/.aiwg/addons/omnius-rest-docs/skills/omnius-rest-docs/SKILL.md +9 -5
  23. package/README.md +36 -0
  24. package/dist/discovery.d.ts +50 -0
  25. package/dist/index.js +5975 -4021
  26. package/dist/library.d.ts +7 -0
  27. package/dist/library.js +950 -0
  28. package/dist/postinstall-daemon.cjs +18 -0
  29. package/dist/providerRegistry.d.ts +80 -0
  30. package/dist/service-version.d.ts +35 -0
  31. package/docs/.vitepress/config.mts +8 -0
  32. package/docs/DISCOVERY.json +20224 -0
  33. package/docs/DISCOVERY.md +648 -0
  34. package/docs/HANDOFF-crl-encoder-decoder-fix.md +129 -0
  35. package/docs/agent-memory/INDEX.md +9 -4
  36. package/docs/agent-memory/index.md +7 -0
  37. package/docs/concept-relational-language.md +869 -0
  38. package/docs/context-management-medium-models-proposal.md +449 -0
  39. package/docs/dedup-false-positive-meta-analysis.md +96 -0
  40. package/docs/discovery/catalog-overrides.json +724 -0
  41. package/docs/duplicate-calls-root-cause-analysis.md +91 -0
  42. package/docs/duplicate-calls-root-cause-deep.md +155 -0
  43. package/docs/ephemeral-skill-pack-small-context.md +57 -0
  44. package/docs/explorations/context-window-todo-association.md +156 -0
  45. package/docs/explorations/todo-association-verify.json +30 -0
  46. package/docs/explorations/verification-ledger.json +45 -0
  47. package/docs/explorations/verify-todo-association.sh +30 -0
  48. package/docs/flowstate.md +806 -0
  49. package/docs/getting-started/install.md +24 -0
  50. package/docs/getting-started/model-providers.md +13 -0
  51. package/docs/guides/agent-integration.md +87 -0
  52. package/docs/guides/bring-your-own-inference.md +126 -0
  53. package/docs/guides/tools-and-web-search.md +95 -0
  54. package/docs/index.md +14 -0
  55. package/docs/longhaul-35b-workorders.md +496 -0
  56. package/docs/memory-integration-analysis.md +303 -0
  57. package/docs/model-capability-awareness-and-multimodal-memory-root-fix.md +799 -0
  58. package/docs/multimodal-identity-memory-implementation.md +76 -0
  59. package/docs/omnius-self-edit-eval-2026-06-10.md +169 -0
  60. package/docs/opencode-agentic-loop-comparison.md +290 -0
  61. package/docs/operations/security-and-remote-access.md +2 -2
  62. package/docs/operations/version-compatibility.md +63 -0
  63. package/docs/proposals/git-progress-tracking-strategy.md +289 -0
  64. package/docs/proposals/opencode-modules/backendAdapter.ts +443 -0
  65. package/docs/proposals/opencode-modules/childSession.ts +288 -0
  66. package/docs/proposals/opencode-modules/compactionAgent.ts +101 -0
  67. package/docs/proposals/opencode-modules/orchestrator.ts +387 -0
  68. package/docs/proposals/opencode-modules/runner.ts +258 -0
  69. package/docs/reference/auth-map.md +87 -196
  70. package/docs/reference/configuration.md +27 -0
  71. package/docs/reference/rest-api.md +7 -0
  72. package/docs/reference/slash-commands.md +125 -2
  73. package/docs/research/_archived/README.md +18 -0
  74. package/docs/research/_archived/context_window_attention_model.py +418 -0
  75. package/docs/research/_archived/context_window_attention_spec.md +55 -0
  76. package/docs/research/_archived/context_window_attention_weights.json +68 -0
  77. package/docs/research/k-splanifolds.pdf +0 -0
  78. package/docs/research/personality-verbosity-control.md +293 -0
  79. package/docs/rest/INDEX.md +7 -0
  80. package/docs/rest/QUICKREF.md +18 -0
  81. package/docs/rest/REST-DOCS-MANIFEST.json +1 -0
  82. package/docs/rest/auth-and-scopes.md +7 -1
  83. package/docs/rest/endpoints/discovery.md +44 -0
  84. package/docs/rest/endpoints/events.md +5 -0
  85. package/docs/rest/endpoints/tools.md +9 -0
  86. package/docs/reviews/adversary-system-review.md +42 -0
  87. package/docs/sana-and-video-generation-integration-plan.md +712 -0
  88. package/docs/session-diary-llm-training-analysis.md +218 -0
  89. package/docs/telegram-dmn-curiosity-outreach-scaffold.md +91 -0
  90. package/docs/telegram-mid-horizon-download-loop-handoff.md +468 -0
  91. package/docs/telegram-reflection-corpus-integration-plan.md +306 -0
  92. package/docs/telegram-unified-tooling-architecture.md +332 -0
  93. package/docs/threat-model.md +868 -0
  94. package/docs/trajectory-grounding.md +160 -0
  95. package/docs/voice-flow-architecture.md +489 -0
  96. package/docs/work-orders/WO-AM-GAPS.md +638 -0
  97. package/docs/work-orders/daemon-hud-ui-overhaul.md +82 -0
  98. package/docs/work-orders/hermes-architecture-deltas/01-public-scrutiny-provenance-control/INDEX.md +21 -0
  99. package/docs/work-orders/hermes-architecture-deltas/01-public-scrutiny-provenance-control/WORKORDER.md +225 -0
  100. package/docs/work-orders/hermes-architecture-deltas/02-context-engine-plugin-boundary/INDEX.md +20 -0
  101. package/docs/work-orders/hermes-architecture-deltas/02-context-engine-plugin-boundary/WORKORDER.md +198 -0
  102. package/docs/work-orders/hermes-architecture-deltas/03-typed-gateway-event-stream/INDEX.md +19 -0
  103. package/docs/work-orders/hermes-architecture-deltas/03-typed-gateway-event-stream/WORKORDER.md +172 -0
  104. package/docs/work-orders/hermes-architecture-deltas/04-task-local-gateway-context/INDEX.md +19 -0
  105. package/docs/work-orders/hermes-architecture-deltas/04-task-local-gateway-context/WORKORDER.md +169 -0
  106. package/docs/work-orders/hermes-architecture-deltas/05-process-lifecycle-monitoring-notifications/INDEX.md +22 -0
  107. package/docs/work-orders/hermes-architecture-deltas/05-process-lifecycle-monitoring-notifications/WORKORDER.md +189 -0
  108. package/docs/work-orders/hermes-architecture-deltas/06-vision-evidence-routing-ladder/INDEX.md +22 -0
  109. package/docs/work-orders/hermes-architecture-deltas/06-vision-evidence-routing-ladder/WORKORDER.md +199 -0
  110. package/docs/work-orders/hermes-architecture-deltas/07-durable-multi-agent-kanban/INDEX.md +20 -0
  111. package/docs/work-orders/hermes-architecture-deltas/07-durable-multi-agent-kanban/WORKORDER.md +174 -0
  112. package/docs/work-orders/hermes-architecture-deltas/08-completion-critic-reconciliation-ledger/INDEX.md +22 -0
  113. package/docs/work-orders/hermes-architecture-deltas/08-completion-critic-reconciliation-ledger/WORKORDER.md +226 -0
  114. package/docs/work-orders/hermes-architecture-deltas/INDEX.md +38 -0
  115. package/docs/work-orders/omnius-context-engineering-behavior-fixes.md +281 -0
  116. package/docs/work-orders/telegram-dropbear-context-rca-workorder.md +202 -0
  117. package/docs/work-orders/world-class-memory-compiler/README.md +162 -0
  118. package/docs/work-orders/world-class-memory-compiler/TRACKER.md +179 -0
  119. package/docs/work-orders/world-class-memory-compiler/WO-01-exact-request-budget.md +79 -0
  120. package/docs/work-orders/world-class-memory-compiler/WO-02-typed-memory-fabric.md +65 -0
  121. package/docs/work-orders/world-class-memory-compiler/WO-03-dependency-working-set.md +55 -0
  122. package/docs/work-orders/world-class-memory-compiler/WO-04-inference-memory-compiler.md +67 -0
  123. package/docs/work-orders/world-class-memory-compiler/WO-05-artifact-fidelity-materialization.md +72 -0
  124. package/docs/work-orders/world-class-memory-compiler/WO-06-temporal-hybrid-retrieval.md +49 -0
  125. package/docs/work-orders/world-class-memory-compiler/WO-07-evaluation-harness.md +45 -0
  126. package/docs/work-orders/world-class-memory-compiler/WO-08-rollout-legacy-removal.md +45 -0
  127. package/docs/x402-remote-inference-plan.md +323 -0
  128. package/npm-shrinkwrap.json +108 -117
  129. package/package.json +7 -6
  130. package/templates/AGENTS.md +6 -0
  131. package/templates/OMNIUS.md +20 -0
@@ -0,0 +1,129 @@
1
+ # HANDOFF: CRL Encoder/Decoder Bidirectional Fix
2
+
3
+ **Date:** 2026-04-22
4
+ **Status:** Needs Implementation
5
+ **Failing Test:** `packages/memory/tests/crl-converter.test.ts` - "should validate roundtrip accuracy"
6
+
7
+ ## Problem Summary
8
+
9
+ The CRL (Concept Relational Language) bidirectional conversion is failing with **0 episodes passing** (expected >50%). The encoder and decoder are asymmetric.
10
+
11
+ ## Root Cause Analysis
12
+
13
+ ### Encoder (`packages/memory/src/crl/index.ts:632-779`)
14
+
15
+ ```typescript
16
+ encode(text: string): string {
17
+ let result = this.compress(text); // Simple text replacement
18
+ const concepts = this.extractConcepts(result);
19
+ const relations = this.extractRelations(result, concepts);
20
+
21
+ if (relations.length > 0) {
22
+ return this.buildExpression(concepts, relations); // Produces: "[A] → [B]"
23
+ }
24
+ return result; // Returns compressed text
25
+ }
26
+ ```
27
+
28
+ **Problem:** Encoder produces simple text like `[ConceptA] → [ConceptB]` but this is NOT valid structured CRL that the parser can parse.
29
+
30
+ ### Decoder (`packages/memory/src/crl/index.ts:784-955`)
31
+
32
+ ```typescript
33
+ decode(crl: string): string {
34
+ const parser = new CRLParser();
35
+ const ast = parser.parse(crl); // Expects structured CRL
36
+ return this.renderStatement(ast);
37
+ }
38
+ ```
39
+
40
+ **Problem:** Decoder uses CRLParser which expects structured CRL syntax, but encoder output is not parseable.
41
+
42
+ ### CRLParser (`packages/memory/src/crl/index.ts:369-631`)
43
+
44
+ The parser expects structured CRL with:
45
+ - Proper node types (concept, relation, quantifier, etc.)
46
+ - Position tracking
47
+ - Nested structures
48
+
49
+ ## The Fix Required
50
+
51
+ ### Option A: Make Encoder Produce Structured CRL
52
+
53
+ The encoder needs to output CRL that the parser can understand. Looking at the parser's expected format:
54
+
55
+ 1. **Concepts** should be: `[name]` with optional properties
56
+ 2. **Relations** should be: `[from] operator [to]` with proper spacing
57
+ 3. **Statements** should be newline-separated
58
+
59
+ The encoder's `buildExpression()` method (lines 723-748) already produces this format, but the parser may have different expectations.
60
+
61
+ ### Option B: Make Decoder Handle Encoder Output Directly
62
+
63
+ Instead of parsing, the decoder could:
64
+ 1. Check if input is already structured CRL → use parser
65
+ 2. If input is encoder output → use direct expansion
66
+
67
+ ### Recommended Approach
68
+
69
+ **Fix the encoder to produce parseable CRL:**
70
+
71
+ 1. Ensure `buildExpression()` output matches what `CRLParser.parseNode()` expects
72
+ 2. The parser's `parseConcept()` (line 424) expects `[name]` format
73
+ 3. The parser's `parseOperator()` (line 591) expects specific operators
74
+
75
+ **Key mismatch to investigate:**
76
+ - Encoder produces: `[A] → [B]`
77
+ - Parser's `parseNode()` (line 396) may expect different structure
78
+
79
+ ## Files to Modify
80
+
81
+ 1. `packages/memory/src/crl/index.ts`:
82
+ - Lines 632-779: `CRLEncoder` class
83
+ - Lines 723-748: `buildExpression()` method
84
+ - Lines 784-955: `CRLDecoder` class
85
+
86
+ 2. `packages/memory/tests/crl-converter.test.ts`:
87
+ - Lines 30-255: Test expectations
88
+
89
+ ## Test Command
90
+
91
+ ```bash
92
+ cd packages/memory && pnpm test tests/crl-converter.test.ts
93
+ ```
94
+
95
+ ## Validation Criteria
96
+
97
+ After fix:
98
+ - Roundtrip test should pass >50% of episodes
99
+ - Encoder output should be parseable by CRLParser
100
+ - Decoder should reconstruct original meaning with acceptable fidelity
101
+
102
+ ## Additional Context
103
+
104
+ From session diary (2026-04-22 15:50):
105
+ - Test result: 0 episodes passed (expected >50%)
106
+ - Root cause: Encoder/Decoder asymmetry
107
+ - Encoder does simple text replacement
108
+ - Decoder expects structured CRL AST
109
+
110
+ ## Next Steps for Implementer
111
+
112
+ 1. Read `CRLParser.parse()` and `parseNode()` methods (lines 369-631)
113
+ 2. Understand what AST structure the parser produces
114
+ 3. Modify `CRLEncoder.buildExpression()` to produce parseable output
115
+ 4. OR modify `CRLDecoder.decode()` to handle both structured and simple formats
116
+ 5. Run test: `pnpm test tests/crl-converter.test.ts`
117
+ 6. Iterate until >50% pass rate
118
+
119
+ ## Research Basis
120
+
121
+ CRL is based on:
122
+ - SymbCoT (ACL 2024): Symbolic Chain-of-Thought
123
+ - Aristotle (ACL 2025): Logic-complete framework
124
+ - LogicReward (ICLR 2026): Step-wise logical supervision
125
+ - MuSLR (NeurIPS 2025): Multimodal symbolic reasoning
126
+
127
+ ---
128
+
129
+ **Handoff complete. Next agent: implement the fix described above.**
@@ -11,16 +11,20 @@ Omnius documentation is exposed to agents through project-local AIWG-style bundl
11
11
 
12
12
  ## Agent Use Pattern
13
13
 
14
- 1. Use `skill_list` or `/skills` with a focused filter.
15
- 2. Load the matching docs skill.
16
- 3. Open the index named by that skill.
17
- 4. Read only the relevant guide or reference page.
14
+ 1. Run `omnius discover "<need>"` or search `GET /v1/discovery`.
15
+ 2. Expand the stable result with `omnius show <id>`.
16
+ 3. Use `skill_list` or `/skills` when the entry points to a skill.
17
+ 4. Open only the referenced guide or endpoint family.
18
18
  5. Treat source files and live OpenAPI as canonical when docs conflict with code.
19
19
 
20
20
  ## Skills
21
21
 
22
22
  ```text
23
23
  omnius-docs
24
+ omnius-inference-docs
25
+ omnius-tools-docs
26
+ omnius-integration-docs
27
+ omnius-version-compatibility-docs
24
28
  omnius-realtime-docs
25
29
  omnius-sponsor-docs
26
30
  omnius-telegram-docs
@@ -33,6 +37,7 @@ omnius-rest-docs
33
37
  When adding a major feature, add:
34
38
 
35
39
  - a human guide or reference page
40
+ - a curated discovery override when aliases, relationships, or invocation mode need explanation
36
41
  - an entry in README if it affects first-run understanding
37
42
  - a docs skill or trigger if agents should discover it
38
43
  - validation coverage if the feature has a machine-readable surface
@@ -6,9 +6,16 @@ Use the Omnius docs skills when an agent needs to explore the documentation corp
6
6
  | --- | --- |
7
7
  | `omnius-docs` | Product overview, setup, guides, operations, and architecture |
8
8
  | `omnius-rest-docs` | REST endpoint families, auth, examples, OpenAPI drift checks |
9
+ | `omnius-inference-docs` | Provider protocols, keys, Claude Messages, Gemini compatibility, custom endpoints |
10
+ | `omnius-tools-docs` | Tool discovery, direct calls, agent-bound web search, external tools, and MCP |
11
+ | `omnius-integration-docs` | Agent/service adapters, discovery, auth, and version compatibility |
12
+ | `omnius-version-compatibility-docs` | Stale daemon detection and execution version preconditions |
9
13
  | `omnius-sponsor-docs` | Sponsor, COHERE, peer sharing, usage, and media sharing |
10
14
  | `omnius-telegram-docs` | Telegram bridge setup, scope, preferences, and failure feedback |
11
15
  | `omnius-realtime-docs` | Short spoken dialogue mode and ASR/TTS client loops |
12
16
  | `omnius-ops-docs` | Security, runtime hygiene, update/install triage |
13
17
 
14
18
  The source index for installed agent discovery remains `docs/agent-memory/INDEX.md`.
19
+
20
+ For capability-first lookup, start with `docs/DISCOVERY.json`,
21
+ `omnius discover`, or `GET /v1/discovery`.