pluribus-context 0.3.21 → 0.3.22

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.22 - 2026-05-19
4
+
5
+ - Extended `pluribus audit --fidelity-report` with `loadEvidence` receipts so reviewers can see whether generated context is expected to enter through native file discovery or a generic agent fallback.
6
+ - Added explicit runtime dedupe uncertainty via `load-dedupe-not-proven` warnings and `runtime-load-dedupe-not-proven` semantic markers, making native-vs-hook-vs-manual duplication an evidence question.
7
+ - Updated the audit JSON schema, community review packet, README shortcut, and portability fidelity docs with `loadedBy`, `effectiveSource`, hook/session-start flags, resume behavior, and dedupe risk.
8
+
3
9
  ## 0.3.21 - 2026-05-19
4
10
 
5
11
  - Extended `pluribus audit --fidelity-report` with `effectiveContext` evidence so monorepo reviewers can see that built-in targets currently prove repo-root context only, not root→subpath inheritance or path isolation.
package/README.md CHANGED
@@ -14,7 +14,7 @@ It shows where instructions keep their semantics, where they are downgraded to a
14
14
 
15
15
  It is **not** a persistent memory layer, retrieval system, agent orchestrator, or agent-merging framework. Think `CLAUDE.md`, `.cursorrules`, `copilot-instructions.md`, `AGENTS.md` — one intentional context, multiple generated outputs.
16
16
 
17
- **Reviewer shortcut:** evaluating Pluribus for a list, newsletter, package roundup, or tool directory? Use the [Community Review Packet](docs/community-review-packet.md) for copy-paste directory submission fields, safety/removability notes, feedback links, and a disposable 60-second smoke test. If you only run one command, try `npx --yes pluribus-context@latest audit --json --fidelity-report` to see native discovery surfaces, generic fallbacks, manual activation requirements, and semantic differences.
17
+ **Reviewer shortcut:** evaluating Pluribus for a list, newsletter, package roundup, or tool directory? Use the [Community Review Packet](docs/community-review-packet.md) for copy-paste directory submission fields, safety/removability notes, feedback links, and a disposable 60-second smoke test. If you only run one command, try `npx --yes pluribus-context@latest audit --json --fidelity-report` to see native discovery surfaces, generic fallbacks, load evidence, manual activation requirements, effective context scope, and semantic differences.
18
18
 
19
19
  ---
20
20
 
@@ -100,7 +100,7 @@ mkdir pluribus-fidelity && cd pluribus-fidelity
100
100
  npx --yes pluribus-context@latest init --name "Fidelity review" --description "Native vs fallback smoke" --tools bob,openclaw
101
101
  npx --yes pluribus-context@latest sync
102
102
  npx --yes pluribus-context@latest audit --json --fidelity-report --output fidelity.json
103
- node -e "const r=require('./fidelity.json'); console.log(r.fidelityReport.targets.map(t => ({ toolId: t.toolId, file: t.files[0], nativeDiscoverySurface: t.nativeDiscoverySurface, genericFallback: t.genericFallback, manualActivationRequired: t.manualActivationRequired, effectiveContextScope: t.effectiveContext?.scope })))"
103
+ node -e "const r=require('./fidelity.json'); console.log(r.fidelityReport.targets.map(t => ({ toolId: t.toolId, file: t.files[0], nativeDiscoverySurface: t.nativeDiscoverySurface, genericFallback: t.genericFallback, manualActivationRequired: t.manualActivationRequired, effectiveContextScope: t.effectiveContext?.scope, loadedBy: t.loadEvidence?.loadedBy, dedupeRisk: t.loadEvidence?.dedupeRisk })))"
104
104
  ```
105
105
 
106
106
  Expected result:
@@ -108,7 +108,8 @@ Expected result:
108
108
  - Bob writes `.bob/rules/pluribus.md` and reports `nativeDiscoverySurface: ".bob/rules/*.md"`, `genericFallback: false`, `manualActivationRequired: false`.
109
109
  - OpenClaw writes `AGENTS.md` and reports `nativeDiscoverySurface: "AGENTS.md"`, `genericFallback: true`, `manualActivationRequired: false`.
110
110
  - Both targets report `effectiveContext.scope: "repo-root"` and `pathScoped: false`; for monorepos this is a warning that subdirectory inheritance/isolation still needs a separate smoke.
111
- - This is the core Pluribus distinction for reviewers: generated file exists is not enough; the report should show whether the target uses native discovery or a generic fallback, and what effective context scope has actually been proven.
111
+ - Both targets include `loadEvidence`: Bob is `loadedBy: "native-file-discovery"`; OpenClaw is `loadedBy: "generic-agent-file"`; both currently report `dedupeRisk: "unknown"` because Pluribus does not prove runtime deduplication across native files, hooks, generated imports, or manual injection.
112
+ - This is the core Pluribus distinction for reviewers: generated file exists is not enough; the report should show whether the target uses native discovery or a generic fallback, how the context is expected to be loaded, and what effective context scope has actually been proven.
112
113
 
113
114
  ## Useful links
114
115
 
@@ -77,7 +77,7 @@ Pluribus is intentionally narrower than a skill registry or memory layer:
77
77
  - `pluribus.md` keeps the claim in one reviewed source of truth.
78
78
  - `sync --dry-run` previews target-specific outputs before writing files.
79
79
  - generated files carry a warning header so manual edits are visible.
80
- - `audit --json --fidelity-report` gives CI/reviewers a machine-readable check for missing/drifted outputs plus target-by-target section loss, activation shape, native discovery surface, resolution anchor, generic fallback status, effective context scope, and portability warnings.
80
+ - `audit --json --fidelity-report` gives CI/reviewers a machine-readable check for missing/drifted outputs plus target-by-target section loss, activation shape, native discovery surface, resolution anchor, generic fallback status, load evidence, effective context scope, and portability warnings.
81
81
  - remote imports are opt-in, locked, cached, and digest-checked before becoming shared context.
82
82
 
83
83
  That does **not** prove runtime behavior. You still need tool-specific smoke tests for load order, path/glob activation, available tools, MCP servers, and permission semantics.
@@ -90,10 +90,11 @@ For each selected target, the JSON report includes:
90
90
  - `resolutionAnchor` — where the generated surface is resolved from today (`repo-root` for built-in targets).
91
91
  - `genericFallback` — whether the output is a broad agent fallback surface rather than a target-specific native surface.
92
92
  - `manualActivationRequired` — whether Pluribus knows the output requires manual activation after generation. Built-in project-wide targets are currently `false`; future scoped/skill targets may differ.
93
- - `effectiveContext` — what Pluribus can prove about the context a target receives. Built-in targets currently report `scope: repo-root`, `pathScoped: false`, `inheritance: none-modeled`, and `overrideBehavior: none-modeled`; this is explicit evidence that monorepo path inheritance/isolation still needs a separate smoke.
94
- - `semanticDifference` — a compact list such as `section-loss`, `project-wide-only`, `no-path-scope-evidence`, or `generic-agent-file` so reviewers can distinguish “file exists” from “same behavior is preserved.”
93
+ - `loadEvidence` — how the generated context is expected to enter the agent session. Built-in targets currently report `loadedBy` (`native-file-discovery` or `generic-agent-file`), `effectiveSource`, `deliveryMechanism`, `hookInstalled: false`, `injectedOnSessionStart: false`, `resumeBehavior: not-proven`, and `dedupeRisk: unknown`; this makes native-vs-hook-vs-manual duplication an explicit evidence question instead of an assumption.
94
+ - `effectiveContext` — what Pluribus can prove about the context a target receives. Built-in targets currently report `scope: repo-root`, `pathScoped: false`, `inheritance: none-modeled`, `overrideBehavior: none-modeled`, plus the inferred `loadedBy` and `effectiveSource`; this is explicit evidence that monorepo path inheritance/isolation still needs a separate smoke.
95
+ - `semanticDifference` — a compact list such as `section-loss`, `project-wide-only`, `no-path-scope-evidence`, `generic-agent-file`, or `runtime-load-dedupe-not-proven` so reviewers can distinguish “file exists” from “same behavior is preserved.”
95
96
 
96
- These fields are intentionally boring. They help reviewers catch cases like “installed files exist but the agent will not discover them,” “two targets share a generic file but do not actually have the same loading semantics,” or “root and subfolder instruction files exist but nobody has proven the effective context for `apps/client/`.”
97
+ These fields are intentionally boring. They help reviewers catch cases like “installed files exist but the agent will not discover them,” “a hook injects the same context already loaded natively,” “two targets share a generic file but do not actually have the same loading semantics,” or “root and subfolder instruction files exist but nobody has proven the effective context for `apps/client/`.”
97
98
 
98
99
  ## Suggested workflow for maintainers
99
100
 
@@ -101,8 +102,9 @@ These fields are intentionally boring. They help reviewers catch cases like “i
101
102
  2. Generate target outputs with `sync --dry-run` and inspect semantic loss.
102
103
  3. Keep target-native instructions when a semantic cannot be represented everywhere.
103
104
  4. Commit a small audit artifact (`pluribus audit --json --fidelity-report --output reports/pluribus-audit.json`) when you want CI/review evidence.
104
- 5. For monorepos, treat `effectiveContext.scope: repo-root` as a warning, not proof. Add a target-specific smoke for the path you care about, for example `apps/client/` should load root + client context but not `apps/auth/` rules.
105
- 6. Update the claim whenever a new target is added, a tool changes capability names, a subdirectory context is introduced, or a permission/security default changes.
105
+ 5. For hook/native/manual mixes, treat `loadEvidence.dedupeRisk: unknown` as a warning, not proof. Add a target-specific receipt for `loadedBy`, `hookInstalled`, `injectedOnSessionStart`, and resume behavior before claiming deduplication.
106
+ 6. For monorepos, treat `effectiveContext.scope: repo-root` as a warning, not proof. Add a target-specific smoke for the path you care about, for example `apps/client/` should load root + client context but not `apps/auth/` rules.
107
+ 7. Update the claim whenever a new target is added, a tool changes capability names, a subdirectory context is introduced, a hook/manual injection path changes, or a permission/security default changes.
106
108
 
107
109
  ## Feedback wanted
108
110
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pluribus-context",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
4
4
  "description": "AI context/rules sync and fidelity audit CLI for CLAUDE.md, Claude Code, Cursor rules, Copilot instructions, OpenClaw, Windsurf, Continue, Zed, Bob, and semantic drift.",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/caioribeiroclw-pixel/pluribus#readme",
@@ -129,14 +129,37 @@
129
129
  },
130
130
  "fidelityTarget": {
131
131
  "type": "object",
132
- "required": ["toolId", "files", "activation", "representedSections", "unsupportedSections"],
132
+ "required": [
133
+ "toolId",
134
+ "files",
135
+ "nativeDiscoverySurface",
136
+ "resolutionAnchor",
137
+ "genericFallback",
138
+ "manualActivationRequired",
139
+ "activation",
140
+ "loadEvidence",
141
+ "effectiveContext",
142
+ "semanticDifference",
143
+ "representedSections",
144
+ "unsupportedSections"
145
+ ],
133
146
  "properties": {
134
147
  "toolId": { "type": "string" },
135
148
  "files": {
136
149
  "type": "array",
137
150
  "items": { "type": "string" }
138
151
  },
152
+ "nativeDiscoverySurface": { "type": ["string", "null"] },
153
+ "resolutionAnchor": { "type": "string" },
154
+ "genericFallback": { "type": "boolean" },
155
+ "manualActivationRequired": { "type": "boolean" },
139
156
  "activation": { "$ref": "#/$defs/fidelityActivation" },
157
+ "loadEvidence": { "$ref": "#/$defs/loadEvidence" },
158
+ "effectiveContext": { "$ref": "#/$defs/effectiveContext" },
159
+ "semanticDifference": {
160
+ "type": "array",
161
+ "items": { "type": "string" }
162
+ },
140
163
  "representedSections": {
141
164
  "type": "array",
142
165
  "items": { "type": "string" }
@@ -148,6 +171,70 @@
148
171
  },
149
172
  "additionalProperties": false
150
173
  },
174
+ "loadEvidence": {
175
+ "type": "object",
176
+ "required": [
177
+ "loadedBy",
178
+ "effectiveSource",
179
+ "deliveryPath",
180
+ "deliveryMechanism",
181
+ "hookInstalled",
182
+ "injectedOnSessionStart",
183
+ "manualInjectionRequired",
184
+ "resumeBehavior",
185
+ "dedupeKey",
186
+ "dedupeRisk",
187
+ "evidence",
188
+ "note"
189
+ ],
190
+ "properties": {
191
+ "loadedBy": { "type": "string" },
192
+ "effectiveSource": { "type": ["string", "null"] },
193
+ "deliveryPath": { "type": ["string", "null"] },
194
+ "deliveryMechanism": { "type": "string" },
195
+ "hookInstalled": { "type": "boolean" },
196
+ "injectedOnSessionStart": { "type": "boolean" },
197
+ "manualInjectionRequired": { "type": "boolean" },
198
+ "resumeBehavior": { "type": "string" },
199
+ "dedupeKey": { "type": "string" },
200
+ "dedupeRisk": { "type": "string" },
201
+ "evidence": {
202
+ "type": "array",
203
+ "items": { "type": "string" }
204
+ },
205
+ "note": { "type": "string" }
206
+ },
207
+ "additionalProperties": false
208
+ },
209
+ "effectiveContext": {
210
+ "type": "object",
211
+ "required": [
212
+ "scope",
213
+ "pathScoped",
214
+ "inheritance",
215
+ "overrideBehavior",
216
+ "isolationEvidence",
217
+ "entrypoints",
218
+ "loadedBy",
219
+ "effectiveSource",
220
+ "note"
221
+ ],
222
+ "properties": {
223
+ "scope": { "type": "string" },
224
+ "pathScoped": { "type": "boolean" },
225
+ "inheritance": { "type": "string" },
226
+ "overrideBehavior": { "type": "string" },
227
+ "isolationEvidence": { "type": "string" },
228
+ "entrypoints": {
229
+ "type": "array",
230
+ "items": { "type": "string" }
231
+ },
232
+ "loadedBy": { "type": "string" },
233
+ "effectiveSource": { "type": ["string", "null"] },
234
+ "note": { "type": "string" }
235
+ },
236
+ "additionalProperties": false
237
+ },
151
238
  "fidelityActivation": {
152
239
  "type": "object",
153
240
  "required": ["kind", "evidence"],
@@ -294,7 +294,8 @@ function buildFidelityReport({ cwd, sections, tools, loadSkill }) {
294
294
  const discovery = inferDiscovery(toolId, outputFiles)
295
295
  const represented = presentSections.filter((name) => representedSections.has(name.toLowerCase()))
296
296
 
297
- const effectiveContext = inferEffectiveContext(toolId, outputFiles)
297
+ const loadEvidence = inferLoadEvidence(toolId, outputFiles, discovery, activation)
298
+ const effectiveContext = inferEffectiveContext(toolId, outputFiles, loadEvidence)
298
299
 
299
300
  return {
300
301
  toolId,
@@ -304,8 +305,9 @@ function buildFidelityReport({ cwd, sections, tools, loadSkill }) {
304
305
  genericFallback: discovery.genericFallback,
305
306
  manualActivationRequired: discovery.manualActivationRequired,
306
307
  activation,
308
+ loadEvidence,
307
309
  effectiveContext,
308
- semanticDifference: summarizeSemanticDifference({ unsupportedSections, activation, discovery, effectiveContext }),
310
+ semanticDifference: summarizeSemanticDifference({ unsupportedSections, activation, discovery, effectiveContext, loadEvidence }),
309
311
  representedSections: represented,
310
312
  unsupportedSections,
311
313
  }
@@ -338,6 +340,14 @@ function buildFidelityReport({ cwd, sections, tools, loadSkill }) {
338
340
  })
339
341
  }
340
342
 
343
+ if (targets.some((target) => target.loadEvidence?.dedupeRisk === 'unknown')) {
344
+ warnings.push({
345
+ code: 'load-dedupe-not-proven',
346
+ target: '*',
347
+ message: 'Load evidence records the expected delivery path, but Pluribus does not currently prove runtime deduplication across native files, hooks, generated imports, or manual injection.',
348
+ })
349
+ }
350
+
341
351
  const advancedSections = ['workflow', 'context', 'examples', 'anti-patterns'].filter((name) => lowerPresentSections.has(name))
342
352
  if (advancedSections.length > 0 && warnings.some((warning) => warning.code === 'section-not-rendered-by-target')) {
343
353
  warnings.push({
@@ -398,7 +408,27 @@ function inferDiscovery(toolId, outputFiles) {
398
408
  }
399
409
  }
400
410
 
401
- function inferEffectiveContext(toolId, outputFiles) {
411
+ function inferLoadEvidence(toolId, outputFiles, discovery, activation) {
412
+ const primaryFile = outputFiles[0] || null
413
+ const loadedBy = discovery.genericFallback ? 'generic-agent-file' : 'native-file-discovery'
414
+
415
+ return {
416
+ loadedBy,
417
+ effectiveSource: primaryFile,
418
+ deliveryPath: primaryFile,
419
+ deliveryMechanism: discovery.genericFallback ? 'generated-generic-fallback' : 'generated-native-surface',
420
+ hookInstalled: false,
421
+ injectedOnSessionStart: false,
422
+ manualInjectionRequired: discovery.manualActivationRequired,
423
+ resumeBehavior: 'not-proven',
424
+ dedupeKey: primaryFile ? `${toolId}:${loadedBy}:${primaryFile}` : `${toolId}:${loadedBy}:unknown`,
425
+ dedupeRisk: 'unknown',
426
+ evidence: outputFiles,
427
+ note: `${toolId} load path is inferred from generated files and known discovery surfaces; verify runtime loading/deduplication in the target agent when hooks, imports, or manual injection are also used.`,
428
+ }
429
+ }
430
+
431
+ function inferEffectiveContext(toolId, outputFiles, loadEvidence) {
402
432
  return {
403
433
  scope: 'repo-root',
404
434
  pathScoped: false,
@@ -406,11 +436,13 @@ function inferEffectiveContext(toolId, outputFiles) {
406
436
  overrideBehavior: 'none-modeled',
407
437
  isolationEvidence: 'not-modeled',
408
438
  entrypoints: outputFiles,
439
+ loadedBy: loadEvidence.loadedBy,
440
+ effectiveSource: loadEvidence.effectiveSource,
409
441
  note: `${toolId} output is audited as repo-root context only; verify subdirectory load order separately in monorepos.`,
410
442
  }
411
443
  }
412
444
 
413
- function summarizeSemanticDifference({ unsupportedSections, activation, discovery, effectiveContext }) {
445
+ function summarizeSemanticDifference({ unsupportedSections, activation, discovery, effectiveContext, loadEvidence }) {
414
446
  const differences = []
415
447
 
416
448
  if (unsupportedSections.length > 0) {
@@ -433,6 +465,10 @@ function summarizeSemanticDifference({ unsupportedSections, activation, discover
433
465
  differences.push('manual-activation-required')
434
466
  }
435
467
 
468
+ if (loadEvidence?.dedupeRisk === 'unknown') {
469
+ differences.push('runtime-load-dedupe-not-proven')
470
+ }
471
+
436
472
  return differences.length > 0 ? differences : ['no-known-template-loss']
437
473
  }
438
474
 
@@ -452,10 +488,13 @@ function printFidelityReport(report) {
452
488
  const scope = target.effectiveContext?.scope
453
489
  ? `; effective context: ${target.effectiveContext.scope}`
454
490
  : ''
491
+ const loadedBy = target.loadEvidence?.loadedBy
492
+ ? `; loaded by: ${target.loadEvidence.loadedBy}`
493
+ : ''
455
494
  const semantics = target.semanticDifference?.length
456
495
  ? `; semantic: ${target.semanticDifference.join(', ')}`
457
496
  : ''
458
- console.log(` • ${target.toolId}: ${target.activation.kind}${discovery}${scope}${unsupported}${semantics}`)
497
+ console.log(` • ${target.toolId}: ${target.activation.kind}${discovery}${scope}${loadedBy}${unsupported}${semantics}`)
459
498
  }
460
499
 
461
500
  for (const warning of report.warnings) {
@@ -1 +1 @@
1
- export const VERSION = '0.3.21'
1
+ export const VERSION = '0.3.22'