omnius 1.0.946 → 1.0.947

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.
@@ -1312,7 +1312,7 @@ export interface ToolOutputLedgerEntry {
1312
1312
  * This is a recovery hold, never requirement, source, or completion authority. */
1313
1313
  export interface RequirementReviewExhaustionV1 {
1314
1314
  schema: "omnius.requirement-review-exhaustion.v1";
1315
- code: "candidate_quote_correction_exhausted";
1315
+ code: "candidate_quote_correction_exhausted" | "reviewer_structure_correction_exhausted";
1316
1316
  runId: string;
1317
1317
  taskEpoch: number;
1318
1318
  nativeScopeSha256: string;
@@ -90,6 +90,12 @@ export declare function reopenSourceReviewStateEvidence(input: {
90
90
  evidence: readonly CompletionEvidence[];
91
91
  /** Only the host raw-artifact reopener supplies these; model output cannot. */
92
92
  artifactReads?: readonly SourceReviewStateReadV1[];
93
+ /**
94
+ * Read-only source roots outside the workspace that the host itself directs
95
+ * the model to, such as installed skill folders. Reads there can support a
96
+ * source review; nothing outside the workspace is ever a writable target.
97
+ */
98
+ readOnlySourceRoots?: readonly string[];
93
99
  }): SourceReviewStateEvidenceV1;
94
100
  declare function currentReads(input: {
95
101
  runId: string;
@@ -247881,6 +247881,17 @@ var init_secret_quarantine = __esm({
247881
247881
  }
247882
247882
  });
247883
247883
 
247884
+ // packages/execution/dist/mcp/intake.js
247885
+ var init_intake = __esm({
247886
+ "packages/execution/dist/mcp/intake.js"() {
247887
+ "use strict";
247888
+ init_client();
247889
+ init_manager();
247890
+ init_secret_store();
247891
+ init_secret_quarantine();
247892
+ }
247893
+ });
247894
+
247884
247895
  // packages/execution/dist/mcp/agent-tools.js
247885
247896
  var init_agent_tools = __esm({
247886
247897
  "packages/execution/dist/mcp/agent-tools.js"() {
@@ -247891,6 +247902,7 @@ var init_agent_tools = __esm({
247891
247902
  init_secret_store();
247892
247903
  init_secret_quarantine();
247893
247904
  init_md_intake();
247905
+ init_intake();
247894
247906
  }
247895
247907
  });
247896
247908
 
@@ -300668,6 +300680,8 @@ init_secret_detector();
300668
300680
  init_secret_store();
300669
300681
  init_secret_quarantine();
300670
300682
  init_agent_tools();
300683
+ init_intake();
300684
+ init_manager();
300671
300685
 
300672
300686
  // packages/execution/dist/tools/video-understand.js
300673
300687
  import { join as join8, basename as basename4, isAbsolute as isAbsolute3, resolve as resolve5 } from "node:path";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/index.js
3
- size: 41454405 bytes
4
- sha256: bd3282a43c45821c6f232678e9ba23dc4b2036953b4425bcb7426e606325c095
3
+ size: 41487924 bytes
4
+ sha256: b63dd63f7ea97c400621f6a85cf522c7b2946e7fdad1312756721bae21f9850e
package/dist/library.js CHANGED
@@ -88188,13 +88188,6 @@ function discoverReferenceLibrary(repoRoot) {
88188
88188
  name: `flaviocopes:${skill.name}`
88189
88189
  }));
88190
88190
  }
88191
- function loadSkillContent(skillPath) {
88192
- try {
88193
- return readFileSync15(skillPath, "utf-8");
88194
- } catch {
88195
- return null;
88196
- }
88197
- }
88198
88191
  function tokenizeSkillQuery(value) {
88199
88192
  const out = [];
88200
88193
  const seen = /* @__PURE__ */ new Set();
@@ -341131,6 +341124,17 @@ var init_secret_quarantine = __esm({
341131
341124
  }
341132
341125
  });
341133
341126
 
341127
+ // packages/execution/dist/mcp/intake.js
341128
+ var init_intake = __esm({
341129
+ "packages/execution/dist/mcp/intake.js"() {
341130
+ "use strict";
341131
+ init_client();
341132
+ init_manager();
341133
+ init_secret_store();
341134
+ init_secret_quarantine();
341135
+ }
341136
+ });
341137
+
341134
341138
  // packages/execution/dist/mcp/agent-tools.js
341135
341139
  var init_agent_tools = __esm({
341136
341140
  "packages/execution/dist/mcp/agent-tools.js"() {
@@ -341141,6 +341145,7 @@ var init_agent_tools = __esm({
341141
341145
  init_secret_store();
341142
341146
  init_secret_quarantine();
341143
341147
  init_md_intake();
341148
+ init_intake();
341144
341149
  }
341145
341150
  });
341146
341151
 
@@ -341156,6 +341161,8 @@ var init_mcp = __esm({
341156
341161
  init_secret_store();
341157
341162
  init_secret_quarantine();
341158
341163
  init_agent_tools();
341164
+ init_intake();
341165
+ init_manager();
341159
341166
  }
341160
341167
  });
341161
341168
 
@@ -361193,7 +361200,15 @@ function reopenSourceReviewStateEvidence(input2) {
361193
361200
  root = realpathSync8(input2.workspaceRoot);
361194
361201
  } catch {
361195
361202
  }
361196
- const confined = (path13) => !!root && !isAbsolute13(relative11(root, path13)) && relative11(root, path13) !== ".." && !relative11(root, path13).startsWith("../");
361203
+ const under = (base, path13) => !isAbsolute13(relative11(base, path13)) && relative11(base, path13) !== ".." && !relative11(base, path13).startsWith("../");
361204
+ const extraRoots = (input2.readOnlySourceRoots ?? []).flatMap((dir) => {
361205
+ try {
361206
+ return [realpathSync8(dir)];
361207
+ } catch {
361208
+ return [];
361209
+ }
361210
+ });
361211
+ const confined = (path13) => !!root && (under(root, path13) || extraRoots.some((base) => under(base, path13)));
361197
361212
  const reads = [];
361198
361213
  for (const entry of input2.evidence) {
361199
361214
  const observed = ownedObservation(input2, entry);
@@ -382109,24 +382124,32 @@ function explicitSkillInvocationMessages(text18, repoRoot, skills) {
382109
382124
  } catch {
382110
382125
  return [];
382111
382126
  }
382112
- const messages4 = [];
382113
- for (const skill of explicitSkillMentions(text18, available)) {
382114
- const content = loadSkillContent(skill.filePath);
382115
- if (!content)
382116
- continue;
382127
+ return explicitSkillMentions(text18, available).map((skill) => {
382117
382128
  const skillDir = dirname35(skill.filePath);
382118
382129
  const bundle = skill.filePath.endsWith("SKILL.md") ? skillBundleFiles(skillDir) : [];
382119
- messages4.push({ role: "system", content: [
382130
+ return { role: "system", content: [
382120
382131
  `[INVOKED SKILL: ${skill.name}]`,
382121
- `The user invoked this skill by writing $${skill.name}. Follow it for this request; the user's own instructions take precedence where they differ.`,
382132
+ `The user invoked this skill by writing $${skill.name}. Before acting, read its instructions with file_read on ${skill.filePath} and follow them for this request; the user's own instructions take precedence where they differ.`,
382133
+ `Description: ${skill.description || "(none)"}`,
382122
382134
  `Source: ${skill.source}`,
382123
382135
  `Skill directory: ${skillDir} (resolve relative paths in the skill against it)`,
382124
- ...bundle.length ? [`Bundled files: ${bundle.join(", ")}`] : [],
382125
- "",
382126
- content
382127
- ].join("\n") });
382136
+ ...bundle.length ? [`Bundled files: ${bundle.join(", ")}`] : []
382137
+ ].join("\n") };
382138
+ });
382139
+ }
382140
+ var skillRootCache = /* @__PURE__ */ new Map();
382141
+ function skillSourceRoots(repoRoot) {
382142
+ const cached = skillRootCache.get(repoRoot);
382143
+ if (cached)
382144
+ return cached;
382145
+ let roots = [];
382146
+ try {
382147
+ roots = [...new Set(discoverSkills(repoRoot).map((skill) => skill.filePath.endsWith("SKILL.md") ? dirname35(dirname35(skill.filePath)) : dirname35(skill.filePath)))].sort();
382148
+ } catch {
382149
+ roots = [];
382128
382150
  }
382129
- return messages4;
382151
+ skillRootCache.set(repoRoot, roots);
382152
+ return roots;
382130
382153
  }
382131
382154
 
382132
382155
  // packages/orchestrator/dist/deliveryCoverage.js
@@ -422198,7 +422221,9 @@ ${text18.slice(-Math.max(1, Math.floor(size * 0.3)))}`;
422198
422221
  taskEpoch: this._taskEpoch,
422199
422222
  contract,
422200
422223
  evidence: ledger?.evidence ?? [],
422201
- artifactReads
422224
+ artifactReads,
422225
+ // Installed skills live outside the workspace (~/.codex/skills, the AIWG install); reading one is a valid source.
422226
+ readOnlySourceRoots: skillSourceRoots(this.authoritativeWorkingDirectory())
422202
422227
  });
422203
422228
  }
422204
422229
  /** Actual current state from genuine owned mutation targets; never reconstructed from summaries. */
@@ -422832,7 +422857,9 @@ Completion remains unverified after repeated completion claims against unchanged
422832
422857
  });
422833
422858
  return this._saveCompletionLedgerSafe();
422834
422859
  };
422860
+ let reviewerCorrected = false;
422835
422861
  if (verdict3.structuralIssue?.schema === "omnius.task-requirement-review-structural-issue.v1" && verdict3.structuralIssue.code === "candidate_quote_not_exact") {
422862
+ reviewerCorrected = true;
422836
422863
  if (!persistAttempt(1))
422837
422864
  return { accepted: false, reason: "Requirement reviewer audit could not be retained", receipts: [frozen3] };
422838
422865
  if (!isCurrent())
@@ -422897,6 +422924,47 @@ The previous reviewer response failed exact candidate-quote serialization. Host
422897
422924
  verdict3 = { ...verdict3, reason: this._completionIncompleteVerification.summary };
422898
422925
  }
422899
422926
  }
422927
+ if (!reviewerCorrected && challengeDecision?.kind !== "reuse" && verdict3.verificationOutcome === "verifier_invalid" && !this._completionIncompleteVerification) {
422928
+ if (!persistAttempt(1))
422929
+ return { accepted: false, reason: "Requirement reviewer audit could not be retained", receipts: [frozen3] };
422930
+ if (!isCurrent())
422931
+ return stale();
422932
+ const firstReason = verdict3.reason;
422933
+ let correctionUnavailable = false;
422934
+ try {
422935
+ raw = await requestReview(`${packet2.systemPrompt}
422936
+
422937
+ The previous reviewer response was structurally invalid: ${firstReason}. Return a fresh complete review of the same input that satisfies the response schema exactly. Cite supporting evidence only by IDs issued in this same packet; a satisfied check needs at least one. Mark a requirement unassessed rather than inventing an ID. This diagnostic supplies no semantic verdict and authorizes no acceptance.`);
422938
+ } catch {
422939
+ correctionUnavailable = true;
422940
+ }
422941
+ if (!isCurrent())
422942
+ return stale();
422943
+ if (!correctionUnavailable) {
422944
+ verdict3 = parseTaskRequirementReviewResponse(reviewInput, raw);
422945
+ if (!persistAttempt(2))
422946
+ return { accepted: false, reason: "Requirement reviewer audit could not be retained", receipts: [frozen3] };
422947
+ }
422948
+ if (correctionUnavailable || verdict3.verificationOutcome === "verifier_invalid") {
422949
+ this._requirementReviewExhaustion = {
422950
+ schema: "omnius.requirement-review-exhaustion.v1",
422951
+ code: "reviewer_structure_correction_exhausted",
422952
+ runId: snapshot2.runId,
422953
+ taskEpoch: snapshot2.taskEpoch,
422954
+ nativeScopeSha256: contract.requirements.nativeScopeSha256,
422955
+ contractSha256: snapshot2.contractSha256,
422956
+ evidenceSnapshotSha256: snapshot2.evidenceSnapshotSha256,
422957
+ candidateSha256,
422958
+ reviewInputSha256: verdict3.reviewInputSha256,
422959
+ ...snapshot2.workPlanSha256 ? { workPlanSha256: snapshot2.workPlanSha256 } : {}
422960
+ };
422961
+ this._completionIncompleteVerification = {
422962
+ reason: "requirement_review_structural_exhausted",
422963
+ summary: `INCOMPLETE_VERIFICATION: the independent requirement reviewer returned a structurally invalid review twice (${firstReason}). The answer was not judged wrong; it remains unverified, and the candidate, task and source evidence are retained.`
422964
+ };
422965
+ verdict3 = { ...verdict3, reason: this._completionIncompleteVerification.summary };
422966
+ }
422967
+ }
422900
422968
  if (!isCurrent())
422901
422969
  return stale();
422902
422970
  if (challenged && challengeDecision?.kind === "review") {
@@ -247885,6 +247885,17 @@ var init_secret_quarantine = __esm({
247885
247885
  }
247886
247886
  });
247887
247887
 
247888
+ // packages/execution/dist/mcp/intake.js
247889
+ var init_intake = __esm({
247890
+ "packages/execution/dist/mcp/intake.js"() {
247891
+ "use strict";
247892
+ init_client();
247893
+ init_manager();
247894
+ init_secret_store();
247895
+ init_secret_quarantine();
247896
+ }
247897
+ });
247898
+
247888
247899
  // packages/execution/dist/mcp/agent-tools.js
247889
247900
  var init_agent_tools = __esm({
247890
247901
  "packages/execution/dist/mcp/agent-tools.js"() {
@@ -247895,6 +247906,7 @@ var init_agent_tools = __esm({
247895
247906
  init_secret_store();
247896
247907
  init_secret_quarantine();
247897
247908
  init_md_intake();
247909
+ init_intake();
247898
247910
  }
247899
247911
  });
247900
247912
 
@@ -302254,6 +302266,8 @@ init_secret_detector();
302254
302266
  init_secret_store();
302255
302267
  init_secret_quarantine();
302256
302268
  init_agent_tools();
302269
+ init_intake();
302270
+ init_manager();
302257
302271
 
302258
302272
  // packages/execution/dist/tools/video-understand.js
302259
302273
  import { join as join9, basename as basename4, isAbsolute as isAbsolute3, resolve as resolve6 } from "node:path";
@@ -303329,6 +303329,17 @@ var init_secret_quarantine = __esm({
303329
303329
  }
303330
303330
  });
303331
303331
 
303332
+ // packages/execution/dist/mcp/intake.js
303333
+ var init_intake = __esm({
303334
+ "packages/execution/dist/mcp/intake.js"() {
303335
+ "use strict";
303336
+ init_client();
303337
+ init_manager();
303338
+ init_secret_store();
303339
+ init_secret_quarantine();
303340
+ }
303341
+ });
303342
+
303332
303343
  // packages/execution/dist/mcp/agent-tools.js
303333
303344
  var init_agent_tools = __esm({
303334
303345
  "packages/execution/dist/mcp/agent-tools.js"() {
@@ -303339,6 +303350,7 @@ var init_agent_tools = __esm({
303339
303350
  init_secret_store();
303340
303351
  init_secret_quarantine();
303341
303352
  init_md_intake();
303353
+ init_intake();
303342
303354
  }
303343
303355
  });
303344
303356
 
@@ -303354,6 +303366,8 @@ var init_mcp = __esm({
303354
303366
  init_secret_store();
303355
303367
  init_secret_quarantine();
303356
303368
  init_agent_tools();
303369
+ init_intake();
303370
+ init_manager();
303357
303371
  }
303358
303372
  });
303359
303373
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.946",
3
+ "version": "1.0.947",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.946",
9
+ "version": "1.0.947",
10
10
  "hasInstallScript": true,
11
11
  "license": "CC-BY-NC-4.0",
12
12
  "dependencies": {
@@ -5458,9 +5458,9 @@
5458
5458
  "license": "MIT"
5459
5459
  },
5460
5460
  "node_modules/brace-expansion": {
5461
- "version": "5.0.12",
5462
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
5463
- "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
5461
+ "version": "5.0.13",
5462
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.13.tgz",
5463
+ "integrity": "sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ==",
5464
5464
  "license": "MIT",
5465
5465
  "dependencies": {
5466
5466
  "balanced-match": "^4.0.2"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.946",
3
+ "version": "1.0.947",
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",