recallnest 1.4.1
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/.claude-plugin/CLAUDE.md +29 -0
- package/.claude-plugin/marketplace.json +18 -0
- package/.env.example +3 -0
- package/.github/workflows/ci.yml +28 -0
- package/.mcp.json +9 -0
- package/CHANGELOG.md +51 -0
- package/CLAUDE.md +42 -0
- package/DEMO.md +94 -0
- package/EVAL.md +89 -0
- package/FAILURES.md +75 -0
- package/LICENSE +21 -0
- package/OPERATIONS.md +59 -0
- package/README.md +427 -0
- package/README_CN.md +425 -0
- package/ROADMAP.md +198 -0
- package/assets/recallnest-workbench.png +0 -0
- package/assets/ui/app.js +807 -0
- package/assets/ui/index.html +154 -0
- package/assets/ui/styles.css +605 -0
- package/assets/wechat-qr.jpg +0 -0
- package/config.json.example +38 -0
- package/daily-recall.sh +87 -0
- package/daily-reflections/2026-03-05.md +15 -0
- package/daily-reflections/2026-03-06.md +15 -0
- package/daily-reflections/2026-03-07.md +7 -0
- package/daily-reflections/2026-03-08.md +34 -0
- package/daily-reflections/2026-03-09.md +35 -0
- package/daily-reflections/2026-03-10.md +36 -0
- package/daily-reflections/2026-03-11.md +35 -0
- package/daily-reflections/2026-03-12.md +36 -0
- package/daily-reflections/2026-03-13.md +35 -0
- package/daily-reflections/2026-03-14.md +35 -0
- package/daily-reflections/2026-03-15.md +35 -0
- package/daily-reflections/2026-03-16.md +41 -0
- package/daily-reflections/2026-03-17.md +10 -0
- package/daily-reflections/2026-03-18.md +10 -0
- package/daily-reflections/2026-03-19.md +10 -0
- package/daily-reflections/2026-03-20.md +10 -0
- package/daily-reflections/2026-03-21.md +10 -0
- package/daily-reflections/2026-03-22.md +10 -0
- package/daily-reflections/2026-03-23.md +10 -0
- package/daily-reflections/2026-03-24.md +10 -0
- package/daily-reflections/2026-03-25.md +32 -0
- package/daily-reflections/2026-03-26.md +37 -0
- package/daily-reflections/2026-03-27.md +35 -0
- package/daily-reflections/2026-03-28.md +35 -0
- package/daily-reflections/2026-03-29.md +35 -0
- package/daily-reflections/2026-03-30.md +36 -0
- package/daily-reflections/2026-03-31.md +35 -0
- package/daily-reflections/2026-04-01.md +35 -0
- package/docs/api-reference.md +1291 -0
- package/docs/architecture.md +168 -0
- package/docs/memory-boundary-contract.md +226 -0
- package/docs/memory-categories.md +119 -0
- package/docs/pipeline-audit-ultramemory.md +177 -0
- package/docs/plans/2026-03-08-query-expansion.md +270 -0
- package/docs/plans/2026-03-16-continuity-layer.md +196 -0
- package/docs/plans/mcp-tiering-plan.md +126 -0
- package/docs/research/recall-quality-audit-2026-03-22.md +153 -0
- package/docs/self-evolution.md +198 -0
- package/docs/superpowers/plans/2026-03-19-ingest-pipeline-upgrade.md +782 -0
- package/docs/superpowers/specs/2026-03-19-ingest-pipeline-upgrade-design.md +77 -0
- package/docs/superpowers/specs/2026-03-23-pull-claude-desktop-design.md +95 -0
- package/eval/cases.json +85 -0
- package/eval/continuity/case-seeds.json +90 -0
- package/eval/continuity/cases.json +302 -0
- package/eval/continuity/memory-seeds.json +26 -0
- package/eval/continuity/pattern-seeds.json +100 -0
- package/eval/continuity/results-2026-03-16.md +117 -0
- package/eval/continuity/results-2026-03-19.md +453 -0
- package/eval/continuity/runbook.md +110 -0
- package/eval/continuity/seed-cases.md +54 -0
- package/eval/reports/2026-03-06-abstract-query-baseline.md +96 -0
- package/eval/reports/2026-03-06-aws-ssh-baseline.md +82 -0
- package/eval/reports/2026-03-06-baseline.md +82 -0
- package/eval/reports/query-expansion.md +138 -0
- package/integrations/README.md +57 -0
- package/integrations/claude-code/README.md +133 -0
- package/integrations/claude-code/claude-md-snippet.md +31 -0
- package/integrations/claude-code/setup.sh +66 -0
- package/integrations/claude-code/smoke-continuity.sh +452 -0
- package/integrations/codex/README.md +49 -0
- package/integrations/codex/agents-md-snippet.md +31 -0
- package/integrations/codex/setup.sh +58 -0
- package/integrations/examples/claude-agent-sdk/memory-agent.ts +182 -0
- package/integrations/examples/langchain/memory-chain.py +111 -0
- package/integrations/examples/openai-agents-sdk/memory-agent.py +109 -0
- package/integrations/gemini-cli/README.md +57 -0
- package/integrations/gemini-cli/gemini-md-snippet.md +31 -0
- package/integrations/gemini-cli/setup.sh +64 -0
- package/integrations/shared/install-managed-block.sh +51 -0
- package/lm +19 -0
- package/package.json +50 -0
- package/plan-v1.2-distributable.md +105 -0
- package/scripts/archive-distilled-junk.ts +116 -0
- package/scripts/backfill-l0l1l2.ts +98 -0
- package/scripts/blind-scan.ts +588 -0
- package/scripts/cleanup-step1-exact-dups.ts +117 -0
- package/scripts/cleanup-step2-template-dups.ts +113 -0
- package/scripts/cleanup-step3-stale-content.ts +149 -0
- package/scripts/cleanup-step4-orphan-scopes.ts +131 -0
- package/scripts/delete-distilled-junk.ts +88 -0
- package/scripts/distill-facts.ts +305 -0
- package/scripts/health-check.ts +343 -0
- package/scripts/incremental-ingest.sh +71 -0
- package/scripts/mlp-health-check.ts +382 -0
- package/scripts/pull-claude-desktop.ts +515 -0
- package/scripts/re-ingest-cc.sh +66 -0
- package/scripts/rebalance-memory-health.ts +181 -0
- package/scripts/run-desktop-ingest.sh +11 -0
- package/scripts/start-server.sh +12 -0
- package/scripts/viz-dashboard.html +423 -0
- package/scripts/viz-export.ts +703 -0
- package/src/__tests__/access-tracker-novelty.test.ts +228 -0
- package/src/__tests__/auto-consolidation.test.ts +168 -0
- package/src/__tests__/auto-recall.test.ts +131 -0
- package/src/__tests__/batch-dedup.test.ts +65 -0
- package/src/__tests__/capture-engine.test.ts +1142 -0
- package/src/__tests__/capture-heuristic.test.ts +171 -0
- package/src/__tests__/cascade-forget.test.ts +210 -0
- package/src/__tests__/category-min-scores.test.ts +33 -0
- package/src/__tests__/confidence-tracker.test.ts +196 -0
- package/src/__tests__/conflict-advisor.test.ts +206 -0
- package/src/__tests__/conflict-escalation.test.ts +149 -0
- package/src/__tests__/conflict-lifecycle.test.ts +83 -0
- package/src/__tests__/conflict-output.test.ts +85 -0
- package/src/__tests__/conflict-store.test.ts +374 -0
- package/src/__tests__/consolidation-engine.test.ts +181 -0
- package/src/__tests__/context-composer-pins.test.ts +64 -0
- package/src/__tests__/context-composer-task-selection.test.ts +24 -0
- package/src/__tests__/context-renderer.test.ts +91 -0
- package/src/__tests__/continuity-eval.test.ts +275 -0
- package/src/__tests__/continuity-schema.test.ts +97 -0
- package/src/__tests__/core-recall-eval.test.ts +235 -0
- package/src/__tests__/core-summary.test.ts +109 -0
- package/src/__tests__/dedup-actions.test.ts +58 -0
- package/src/__tests__/deterministic-id.test.ts +39 -0
- package/src/__tests__/doctor.test.ts +303 -0
- package/src/__tests__/drill-down.test.ts +108 -0
- package/src/__tests__/embedder.test.ts +122 -0
- package/src/__tests__/entity-resolver.test.ts +58 -0
- package/src/__tests__/event-segmenter.test.ts +153 -0
- package/src/__tests__/hotness-blend.test.ts +76 -0
- package/src/__tests__/ingest.test.ts +360 -0
- package/src/__tests__/kg-extractor.test.ts +184 -0
- package/src/__tests__/kg-store.test.ts +198 -0
- package/src/__tests__/llm-consolidation.test.ts +226 -0
- package/src/__tests__/memory-boundaries.test.ts +237 -0
- package/src/__tests__/memory-health-rebalance.test.ts +144 -0
- package/src/__tests__/memory-output.test.ts +215 -0
- package/src/__tests__/multi-vector.test.ts +242 -0
- package/src/__tests__/ppr-traversal.test.ts +256 -0
- package/src/__tests__/preference-guard-smoke.test.ts +211 -0
- package/src/__tests__/preference-matcher.test.ts +230 -0
- package/src/__tests__/preference-slots.test.ts +106 -0
- package/src/__tests__/prospective-memory.test.ts +283 -0
- package/src/__tests__/query-entity-detector.test.ts +171 -0
- package/src/__tests__/query-expander.test.ts +34 -0
- package/src/__tests__/recall-mode.test.ts +64 -0
- package/src/__tests__/result-synthesizer.test.ts +198 -0
- package/src/__tests__/resume-context.test.ts +4743 -0
- package/src/__tests__/retrieval-trace.test.ts +213 -0
- package/src/__tests__/retriever-boundary-weight.test.ts +136 -0
- package/src/__tests__/retroactive-boost.test.ts +223 -0
- package/src/__tests__/scope-inventory.test.ts +200 -0
- package/src/__tests__/scope-policy.test.ts +69 -0
- package/src/__tests__/session-checkpoint.test.ts +259 -0
- package/src/__tests__/session-gc.test.ts +215 -0
- package/src/__tests__/store-scope-audit.test.ts +81 -0
- package/src/__tests__/temporal-parser.test.ts +241 -0
- package/src/__tests__/term-registry.test.ts +121 -0
- package/src/__tests__/tool-output-compressor.test.ts +133 -0
- package/src/__tests__/version-manager.test.ts +213 -0
- package/src/__tests__/workflow-observation.test.ts +400 -0
- package/src/access-tracker.ts +316 -0
- package/src/adaptive-retrieval.ts +64 -0
- package/src/api-server.ts +667 -0
- package/src/asset-sync.ts +79 -0
- package/src/auto-consolidation.ts +133 -0
- package/src/auto-gc.ts +124 -0
- package/src/auto-recall.ts +95 -0
- package/src/capture-engine.ts +931 -0
- package/src/capture-heuristic.ts +177 -0
- package/src/cascade-forget.ts +135 -0
- package/src/chunker.ts +253 -0
- package/src/cli.ts +1917 -0
- package/src/confidence-tracker.ts +166 -0
- package/src/conflict-advisor.ts +433 -0
- package/src/conflict-engine.ts +181 -0
- package/src/conflict-escalation.ts +138 -0
- package/src/conflict-lifecycle.ts +67 -0
- package/src/conflict-output.ts +218 -0
- package/src/conflict-schema.ts +130 -0
- package/src/conflict-store.ts +127 -0
- package/src/consolidation-engine.ts +256 -0
- package/src/context-composer-pins.ts +183 -0
- package/src/context-composer-queries.ts +121 -0
- package/src/context-composer-scope.ts +56 -0
- package/src/context-composer-stable-selection.ts +200 -0
- package/src/context-composer-stable.ts +217 -0
- package/src/context-composer-task-fallbacks.ts +36 -0
- package/src/context-composer-task-ranking.ts +197 -0
- package/src/context-composer-task-results.ts +137 -0
- package/src/context-composer-task-selection.ts +342 -0
- package/src/context-composer-text.ts +57 -0
- package/src/context-composer.ts +300 -0
- package/src/context-renderer.ts +179 -0
- package/src/decay-engine.ts +189 -0
- package/src/doctor.ts +543 -0
- package/src/embedder.ts +557 -0
- package/src/entity-resolver.ts +131 -0
- package/src/eval.ts +632 -0
- package/src/event-segmenter.ts +216 -0
- package/src/ingest.ts +1822 -0
- package/src/kg-extractor.ts +217 -0
- package/src/kg-store.ts +353 -0
- package/src/legacy-scope-review.ts +53 -0
- package/src/llm-client.ts +629 -0
- package/src/llm-consolidation.ts +168 -0
- package/src/mcp-server.ts +1337 -0
- package/src/memory-assets.ts +475 -0
- package/src/memory-boundaries.ts +354 -0
- package/src/memory-health-rebalance.ts +220 -0
- package/src/memory-output.ts +474 -0
- package/src/memory-schema.ts +184 -0
- package/src/multi-vector.ts +234 -0
- package/src/noise-filter.ts +155 -0
- package/src/ppr-traversal.ts +279 -0
- package/src/preference-matcher.ts +174 -0
- package/src/preference-slots.ts +259 -0
- package/src/prospective-memory.ts +198 -0
- package/src/query-entity-detector.ts +207 -0
- package/src/query-expander.ts +98 -0
- package/src/result-synthesizer.ts +114 -0
- package/src/retrieval-profiles.ts +101 -0
- package/src/retrieval-trace.ts +94 -0
- package/src/retriever.ts +1338 -0
- package/src/retroactive-boost.ts +154 -0
- package/src/rif.ts +73 -0
- package/src/runtime-config.ts +172 -0
- package/src/schema-utils.ts +56 -0
- package/src/scope-inventory.ts +310 -0
- package/src/scope-policy.ts +142 -0
- package/src/session-engine.ts +168 -0
- package/src/session-output.ts +96 -0
- package/src/session-schema.ts +60 -0
- package/src/session-store.ts +293 -0
- package/src/stderr-log.ts +16 -0
- package/src/store.ts +903 -0
- package/src/temporal-parser.ts +318 -0
- package/src/term-registry.ts +791 -0
- package/src/tool-output-compressor.ts +115 -0
- package/src/tracker.ts +57 -0
- package/src/ui-server.ts +430 -0
- package/src/version-manager.ts +172 -0
- package/src/workflow-observation-engine.ts +316 -0
- package/src/workflow-observation-managed.ts +83 -0
- package/src/workflow-observation-output.ts +86 -0
- package/src/workflow-observation-schema.ts +87 -0
- package/src/workflow-observation-scope-review.ts +409 -0
- package/src/workflow-observation-store.ts +69 -0
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Weibull Decay Engine + Tier Manager
|
|
3
|
+
*
|
|
4
|
+
* Borrowed from memory-lancedb-pro v1.1.0 smart-memory architecture.
|
|
5
|
+
* Implements Weibull stretched-exponential decay and three-tier memory lifecycle.
|
|
6
|
+
*
|
|
7
|
+
* Three tiers simulate human memory consolidation:
|
|
8
|
+
* Peripheral (fast decay) ⟷ Working (standard) ⟷ Core (slow decay)
|
|
9
|
+
*
|
|
10
|
+
* No LLM required — pure math + access statistics.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
// ============================================================================
|
|
14
|
+
// Tier Definitions
|
|
15
|
+
// ============================================================================
|
|
16
|
+
|
|
17
|
+
export type MemoryTier = "core" | "working" | "peripheral";
|
|
18
|
+
|
|
19
|
+
interface TierParams {
|
|
20
|
+
/** Weibull shape parameter: <1 = slow start, >1 = fast start */
|
|
21
|
+
beta: number;
|
|
22
|
+
/** Minimum score multiplier (decay floor) */
|
|
23
|
+
floor: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Tier-specific decay parameters */
|
|
27
|
+
export const TIER_PARAMS: Record<MemoryTier, TierParams> = {
|
|
28
|
+
core: { beta: 0.8, floor: 0.85 }, // Sub-exponential: slow forgetting
|
|
29
|
+
working: { beta: 1.0, floor: 0.65 }, // Standard exponential
|
|
30
|
+
peripheral: { beta: 1.3, floor: 0.45 }, // Super-exponential: fast forgetting
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// ============================================================================
|
|
34
|
+
// Promotion / Demotion Thresholds
|
|
35
|
+
// ============================================================================
|
|
36
|
+
|
|
37
|
+
export interface TierThresholds {
|
|
38
|
+
/** Peripheral → Working: minimum access count */
|
|
39
|
+
workingAccessMin: number;
|
|
40
|
+
/** Peripheral → Working: minimum importance */
|
|
41
|
+
workingImportanceMin: number;
|
|
42
|
+
/** Working → Core: minimum access count */
|
|
43
|
+
coreAccessMin: number;
|
|
44
|
+
/** Working → Core: minimum importance */
|
|
45
|
+
coreImportanceMin: number;
|
|
46
|
+
/** Demotion: days without access before downgrade */
|
|
47
|
+
demotionStaleDays: number;
|
|
48
|
+
/** Demotion: minimum access count to resist demotion */
|
|
49
|
+
demotionAccessMin: number;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export const DEFAULT_TIER_THRESHOLDS: TierThresholds = {
|
|
53
|
+
workingAccessMin: 3,
|
|
54
|
+
workingImportanceMin: 0.5,
|
|
55
|
+
coreAccessMin: 10,
|
|
56
|
+
coreImportanceMin: 0.8,
|
|
57
|
+
demotionStaleDays: 60,
|
|
58
|
+
demotionAccessMin: 3,
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
// ============================================================================
|
|
62
|
+
// Weibull Decay
|
|
63
|
+
// ============================================================================
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Compute Weibull decay factor for a memory entry.
|
|
67
|
+
*
|
|
68
|
+
* Formula: floor + (1 - floor) * exp(-λ * t^β)
|
|
69
|
+
* where λ = ln(2) / halfLife^β
|
|
70
|
+
*
|
|
71
|
+
* At t = halfLife: factor = floor + (1 - floor) * 0.5
|
|
72
|
+
* At t = 0: factor = 1.0
|
|
73
|
+
* At t → ∞: factor = floor
|
|
74
|
+
*/
|
|
75
|
+
export function weibullDecay(
|
|
76
|
+
ageDays: number,
|
|
77
|
+
halfLifeDays: number,
|
|
78
|
+
tier: MemoryTier = "peripheral",
|
|
79
|
+
): number {
|
|
80
|
+
if (halfLifeDays <= 0 || ageDays <= 0) return 1.0;
|
|
81
|
+
|
|
82
|
+
const { beta, floor } = TIER_PARAMS[tier];
|
|
83
|
+
const lambda = Math.LN2 / Math.pow(halfLifeDays, beta);
|
|
84
|
+
const decay = Math.exp(-lambda * Math.pow(ageDays, beta));
|
|
85
|
+
|
|
86
|
+
return floor + (1 - floor) * decay;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// ============================================================================
|
|
90
|
+
// Tier Resolution
|
|
91
|
+
// ============================================================================
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Determine a memory's current tier from its metadata.
|
|
95
|
+
* Falls back to heuristic based on importance if no tier is stored.
|
|
96
|
+
*/
|
|
97
|
+
export function resolveTier(metadata?: string): MemoryTier {
|
|
98
|
+
if (!metadata) return "peripheral";
|
|
99
|
+
|
|
100
|
+
try {
|
|
101
|
+
const meta = JSON.parse(metadata) as Record<string, unknown>;
|
|
102
|
+
|
|
103
|
+
// Explicit tier stored in metadata
|
|
104
|
+
if (meta.tier === "core" || meta.tier === "working" || meta.tier === "peripheral") {
|
|
105
|
+
return meta.tier;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
// Heuristic for entries without explicit tier:
|
|
109
|
+
// - Pinned assets (importance ≥ 0.95) → core
|
|
110
|
+
// - High importance (≥ 0.8) → working
|
|
111
|
+
// - Everything else → peripheral
|
|
112
|
+
const importance = typeof meta.importance === "number" ? meta.importance : 0;
|
|
113
|
+
const accessCount = typeof meta.accessCount === "number" ? meta.accessCount : 0;
|
|
114
|
+
|
|
115
|
+
if (importance >= 0.95 || accessCount >= 10) return "core";
|
|
116
|
+
if (importance >= 0.8 || accessCount >= 3) return "working";
|
|
117
|
+
return "peripheral";
|
|
118
|
+
} catch {
|
|
119
|
+
return "peripheral";
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// ============================================================================
|
|
124
|
+
// Tier Promotion / Demotion
|
|
125
|
+
// ============================================================================
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Evaluate whether a memory should be promoted or demoted.
|
|
129
|
+
* Returns the new tier (may be the same as current).
|
|
130
|
+
*/
|
|
131
|
+
/**
|
|
132
|
+
* Synaptic homeostasis: when core tier exceeds capacity, raise promotion thresholds.
|
|
133
|
+
* Prevents "everything is important = nothing is important" problem.
|
|
134
|
+
*/
|
|
135
|
+
export function homeostasisAdjustedThresholds(
|
|
136
|
+
coreCount: number,
|
|
137
|
+
thresholds: TierThresholds = DEFAULT_TIER_THRESHOLDS,
|
|
138
|
+
coreCap = 500,
|
|
139
|
+
): TierThresholds {
|
|
140
|
+
if (coreCount <= coreCap) return thresholds;
|
|
141
|
+
// Scale factor: 1.0 at cap, up to 2.0 at 3x cap
|
|
142
|
+
const overflow = Math.min(coreCount / coreCap, 3.0);
|
|
143
|
+
return {
|
|
144
|
+
...thresholds,
|
|
145
|
+
coreAccessMin: Math.ceil(thresholds.coreAccessMin * overflow),
|
|
146
|
+
coreImportanceMin: Math.min(thresholds.coreImportanceMin * (0.5 + 0.5 * overflow), 0.98),
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function evaluateTierChange(
|
|
151
|
+
currentTier: MemoryTier,
|
|
152
|
+
accessCount: number,
|
|
153
|
+
importance: number,
|
|
154
|
+
lastAccessedAt: number,
|
|
155
|
+
thresholds: TierThresholds = DEFAULT_TIER_THRESHOLDS,
|
|
156
|
+
): MemoryTier {
|
|
157
|
+
const now = Date.now();
|
|
158
|
+
const daysSinceAccess = lastAccessedAt > 0
|
|
159
|
+
? (now - lastAccessedAt) / 86_400_000
|
|
160
|
+
: Infinity;
|
|
161
|
+
|
|
162
|
+
// --- Promotion ---
|
|
163
|
+
if (currentTier === "peripheral") {
|
|
164
|
+
if (accessCount >= thresholds.workingAccessMin && importance >= thresholds.workingImportanceMin) {
|
|
165
|
+
return "working";
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if (currentTier === "working" || currentTier === "peripheral") {
|
|
170
|
+
if (accessCount >= thresholds.coreAccessMin && importance >= thresholds.coreImportanceMin) {
|
|
171
|
+
return "core";
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// --- Demotion ---
|
|
176
|
+
if (currentTier === "core") {
|
|
177
|
+
if (daysSinceAccess > thresholds.demotionStaleDays && accessCount < thresholds.demotionAccessMin) {
|
|
178
|
+
return "working";
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
if (currentTier === "working") {
|
|
183
|
+
if (daysSinceAccess > thresholds.demotionStaleDays && accessCount < thresholds.demotionAccessMin) {
|
|
184
|
+
return "peripheral";
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return currentTier;
|
|
189
|
+
}
|