Scan your whole stack
Latest version: vgit:96be9c2b5565db720cd81e3d873614f2d5b7598e
solana-dlmm was last scanned on 20 Nov 2026 at commit 96be9c2b. Risk score 42 of 100 (medium). No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 96be9c2b | 3 rules fired |
Findings for commit 96be9c2b. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
A script shipped with the skill sends a credential or secret value into a network call, posts to a data-collection endpoint (a paste or request-capture service), or fetches a cloud metadata address.
MEDIUMThe score describes 96be9c2b; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Automated lifecycle of a Solana Meteora DLMM concentrated liquidity position: Screen Pools (Fee/TVL, TVL, Volatility, Base Token Safety Gates) → Deploy Single-Sided SOL LP Position → Monitor Active Bins / PnL → Exit Out-of-Range or SL/TP positions → Account realized yields.
<profile>/skills/solana-dlmm/scripts/ (symlinked to this repo's assets/skill/scripts/ by install.sh — edit here, it's live everywhere)
Automated signals (--from-pool, --from-signal and --from-batch) use sol_bidask in every
mode, including turnover and pulse. The pipeline enforces this even when a stale
prompt supplies another --strategy. It targets roughly 35% downside coverage,
subject to bin-step and rent limits; filled bins still acquire token exposure.
Manual runs without a signal retain strategy overrides. Venue toggles come from
the daemon configuration; exit thresholds and position budgets come from SOUL.md
with the script defaults as fallback. Do not infer live settings from old reports.
dlmm_pipeline.py — Ingestion PipelinePurpose: Screens Meteora's pool discovery API and deploys into the best candidate.
Command: python3 ~/.hermes/profiles/<profile>/skills/solana-dlmm/scripts/dlmm_pipeline.py --mode <casual|multiday>
Two modes with isolated position budgets (2 slots each, max 4 total):
--mode casual (30m timeframe — volume spike plays, hold 2-6h):
--mode multiday (24h timeframe — quality holds, target 24h+):
Shared filters (both modes):
Flags: --analyze-only (screen only, non-blocking), --pool <ADDR>, --strategy <NAME>
AI context (--pick-context --mode <mode>): prints local time, cached Redis
positions and learned weights in one read-only command. No RPC, screening or deploy.
Missing position metadata leaves the mode count null. This is ranking context;
the pipeline rechecks live holding, cooldown, sizing and risk gates before entry.
The DLMM webhook advertises Hermes's terminal toolset (terminal plus process
management), covering the context and pipeline commands. Other sessions
use their configured toolsets; webhook reports still pass through the receipt guard.
AI pick (--from-pool <pool address> --audit --mode <mode>): the webhook
agent's one deploy command. The pipeline reads the pick's record verbatim from
the scanner's delivery journal (newest prepared row carrying that pool in that
mode, at most 30 minutes old; SOLANA_DELIVERY_PATH overrides the default
~/.local/state/azimuth/solana_deliveries.jsonl) and then takes the
--from-signal path unchanged. Hand-copied JSON was the dominant way an AI turn
broke (copy slips, shell quoting, and silently retyped base_mint/dev
values). --audit runs audit_token.py on the base mint first: FAIL prints
❌ REJECT audit_token: <reason> and stops before any live gate; UNKNOWN is
unavailable evidence and continues. --from-signal '<record JSON>' remains the
fallback when no delivered record is found.
Batch mode (--from-batch '<payload array>' --mode <mode>): consumes the
azimuth daemon's whole signal batch and replaces the LLM agent's pick step —
deterministic conviction re-rank (dev-exit / global-fees / PVP hard rejects,
GMGN boosts+penalties, darwinian signal weights from Redis), sol_bidask strategy enforced in code, and runner-up fallback when a live
gate (bin-array rent, entry timing) rejects the top pick. Used by the daemon's
DEPLOY_CMD direct mode.
LLM candidate fallback: when a live gate rejects the pick before submission, try the next candidate in the same batch. A timeout or an unverified deployment requires checking the process and on-chain positions before another attempt.
Entry memory gates (all modes, incl. --from-signal / --from-batch):
sol:dlmm:cooldown:<SYMBOL>) and pool cooldown (sol:dlmm:cooldown:pool:<POOL>) — skip while set.sol:dlmm:history:pool:<POOL>) show >= 2 past closes netting negative PnL — this pool already cost us.signal field) — feeds the darwinian weights (see dlmm_weights.py).dlmm_monitor.py — Position MonitorEach real monitor tick checks PnL with dlmm_executor.js pnl-onchain <POOL> <POSITION>.
This read-only command values native inventory and unclaimed fees at active-bin
spot against the actual initial SOL transfer. It accepts only a SOL-only entry
with complete funded-bin coverage and no later position transactions. A fresh
verified mark supplies ordinary stops, trailing peaks, range and unclaimed fees,
replacing the separate active-bin command. The read has a three-second deadline;
unsupported or unavailable proofs retain indexed PnL and active-bin fallback.
Catastrophic-read protection reuses that result rather than querying twice. A native
confirmed loss can reach exit rules even before age three minutes; an unavailable
proof keeps the existing young-position protection and mature-position retry.
The mark excludes rent, network and exit costs and is not realized profit or NAV.
Pool and position reads are sequential confirmed RPC reads, not an atomic snapshot.
Purpose: Monitors all open positions in Redis and checks SL/TP or Out-of-Range limits.
Command: python3 ~/.hermes/profiles/<profile>/skills/solana-dlmm/scripts/dlmm_monitor.py
Exits managed:
Hard Stop-Loss (script default -8%); emergency floor is 3 percentage points lower and bypasses grace/AI holds.RUG_M5_PCT) — emergency close NOW, same class as the emergency SL floor. Fail-open on missing 5m data.Max Out of Range Minutes fuse (currently 45m) plus a profit lock — pnl_pct >= +1.5% closes immediately, banking the frozen win. Token-side OOR (full token bag, decaying every tick) gets the fast SOUL OOR Downside Max Minutes fuse (currently 5m); one one-shot green-5m-candle grace extension, then closes via the dump path. Orientation must be positively known (meta.sol_is_x) — unknown defaults to the patient fuse.Min Exit Liquidity) — exit before the position strands. Re-checked every cycle; fail-open on fetch error.Trailing TP Trigger (currently 4%); exit floor is a profit ratchet (peak ≥5% locks ≥+3%, ≥10% locks ≥+7%, ≥20% locks 70% of peak, ≥30% locks 75%; below that, flat Trailing TP Drop from peak).Hard Stop-Loss — always closes immediately, bypassing the SL grace, AI holds, and indicator timing. SL grace itself only applies to a young (\<15m) in-range position with fee/TVL ≥ 10%.RUG_BLACKLIST_TTL_DAYS (default 7d) via one TTL'd key per mint, sol:dlmm:blocklist:mint:<MINT>, and the deployer for DEV_BLOCKLIST_TTL_DAYS (default 30d) via one TTL'd key per wallet, sol:dlmm:blocklist:dev:<WALLET>. Both checked by the pipeline before every deploy. Each side was a permanent set once — the mint until 2026-08-07, the deployer until 2026-08-12 — because discovery recycles a small ticker pool and a small set of launchpad-scale deployers, so a monotonic blocklist eventually starves the mode of candidates, silently (every batch just reports no candidate). The deployer window is the longer of the two: a wallet that rugs once can mint again, which makes the claim stronger — but not permanent. A re-blacklist refreshes the window, so a repeat rug keeps its ban.--report-only is read-only — never claims/closes/redeploys (incl. fee_compounding & partial_harvest strategies) — with ONE exception: an emergency close (SL floor breach / rug velocity / thin liquidity) executes even in report-only, because the cron runs report-only and the agent hop adds minutes. Pass --no-enforce for pure reporting.<profile>/memories/dlmm_closes.jsonl (uniform schema, API-verified PnL, carries the entry-signal snapshot) AND to per-pool memory sol:dlmm:history:pool:<POOL> (last 10 closes, 30d expiry — the pipeline's "past losses" skip gate reads this and fires when 2+ closes net at or below POOL_MEMORY_NET_FLOOR_PCT, default -10%; it fired on ANY negative sum until 2026-08-07, which rejected pools that had merely churned to a fraction of a percent below break-even; the daemon ships a summary as prior_closes/prior_net_pnl_sol on future signals for that pool). Audit journal vs Meteora portfolio API ground truth with python3 .../scripts/dlmm_reconcile.py [--days 30].sol:dlmm:cooldown:pool:<POOL>) — fee flow that already decayed doesn't recover within the 1h symbol cooldown, so block the pool itself from immediate re-entry.dlmm_weights.py --quiet (self-guarded, never fails the monitor).Close GUARD (overrides all exits above): NEVER close when in_range AND fee_per_tvl_24h >= 10% AND no hard rule triggered. Do not discretionarily close an empty-triggered_rules position unless 5m <= -3% OR break_even_days >= 5. Hard floor pnl < -25% and thin-liquidity always close. (Full policy: SOUL.md §9 "Close GUARD".) The --override-close path enforces this in code and refuses a healthy close unless --force.
AI HOLD blocks --override-close: If ai_hold_active: true in the report, do NOT call --override-close — the code will exit(2) and refuse. Only exceptions: (1) pass --force for genuine manual override, or (2) pnl_pct <= -25% (hard SL emergency, hold auto-bypassed by code). If conditions worsened to emergency, use --force and explain in --reason.
Who sets an AI hold: the sol_dlmm_ai_exit_review cron (every 5m). It is the LLM's ONLY authority over exits — it may defer a non-emergency close by 10-20 minutes and may do nothing else; it cannot close, claim, or deploy. Its pre-run script (<profile>/scripts/sol_dlmm_exit_review_gate.py, installed from assets/hermes/scripts/) emits {"wakeAgent": false} unless a position sits in a band approaching a suppressible rule, so most 5m ticks cost no model call. Those bands must stay ahead of the rules: the 20s loop closes on the same tick a rule fires, so a review that waited for triggered_rules would always arrive after the close. Every hold is journaled to <profile>/memories/ai_holds.jsonl and increments sol:dlmm:position:<addr>:ai_hold_count (7d TTL), which log_close stamps onto the close record as ai_holds — without that field, held and unheld closes are indistinguishable afterwards and the whole arrangement is unmeasurable.
Exit chokepoint: dlmm_monitor.py is the ONLY authorized closer — it sets DLMM_CLOSE_AUTH after the GUARD/rules pass. A raw node dlmm_executor.js close <addr> is REFUSED (exit 3) unless --force/DRY_RUN. The gateway agent and the spot fast-monitor must never close DLMM positions directly.
dlmm_weights.py — Darwinian Signal WeightsPurpose: Learns which entry signals predict positive cash after fees and matched rent refunds. Uses cached accounting proofs for single-position roots closed in the last 60d; missing proofs, recenter chains and bounds that cannot establish win/non-win are excluded. Needs >= 10 examples with both wins and non-wins. Produces a signed lift per signal; each weight then steps 35% of the way toward 1.0 + 3 × lift, clamped [0.3, 2.5]. Persists weights, lifts and outcome_basis to <profile>/memories/signal_weights.json, mirrored to Redis sol:dlmm:signal_weights, which the deploy pick reads when ranking candidates. The first cash recalc preserves existing weights and smoothing; later recalcs keep the six-hour guard. This measures historical separation, not future profit.
Two properties are deliberate, both applied 2026-08-13 after an audit found 10 of 14 weights sitting exactly on a clamp after 108 recalcs:
SIGNAL_NAMES here must stay identical to WEIGHTED_SIGNALS_HIGHER_IS_BETTER in dlmm_pipeline.py. Six non-directional signals (volatility, mcap, tvl, fee_pct, swap_count, bot_holders_pct) were learned but never applied, and because their lift went through abs() it was never negative — so they monopolised the boost quartile and pushed the signals that do score toward the floor. They are retired and pruned from stored state. Adding a signal here means teaching the pipeline to apply it, not just appending a name.A weight near 1.0 is ambiguous on its own — "no evidence" and "evidence of no effect" both land there — which is why the lifts map is published alongside it and --show prints both columns.
Commands:
python3 ~/.hermes/profiles/<profile>/skills/solana-dlmm/scripts/dlmm_weights.py --show — print current weightspython3 .../dlmm_weights.py --force — recalc now (normally self-guarded to once per 6h, auto-run by the monitor)dlmm_realized.py — Realized-PnL ReconciliationPurpose: Turns the close journal into money. dlmm_closes.jsonl's pnl_sol is the monitor's MARK one tick before the close, and a mark can be fiction: three closes on 2026-08-17..18 were booked at -100.00% while the on-chain flows show every deposit returned in full. This pass writes <profile>/memories/dlmm_realized.jsonl — one line per closed position, carrying Meteora's aggregated deposit / withdrawal / fee flows in SOL, so realized_sol holds no price opinion of ours. Append-only and idempotent (a position is fetched once).
apply_realized() is the LP join used by dlmm_stats.py and the Hermes proposal brief: they prefer realized_sol over the journal figure and stamp pnl_basis (realized | mark). A position the reconciler has not fetched keeps its mark and is counted as unmeasured — never as 0.0. dlmm_weights.py instead requires proved cash outcomes from cached accounting.
Measured over the 7d to 2026-08-19, the journal mark overstated the week's loss many times over versus the on-chain flows. Nearly all of that gap is the three phantom rows; the rest is the mark systematically overstating BOTH wins and losses. Commands:
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.