Skip to content

fix: correct model IDs + contract CEI violation documentation#7

Open
ether-btc wants to merge 4 commits into
profbernardoj:mainfrom
ether-btc:main
Open

fix: correct model IDs + contract CEI violation documentation#7
ether-btc wants to merge 4 commits into
profbernardoj:mainfrom
ether-btc:main

Conversation

@ether-btc
Copy link
Copy Markdown

@ether-btc ether-btc commented May 25, 2026

Summary

Fixes 3 critical correctness bugs found during automated skill audit (2026-05-25).

Bugs Fixed

  1. WRONG glm-5 model ID in models-config.json — corrected to on-chain ID
  2. WRONG kimi-k2-thinking model ID in session.sh (1 hex char off) — corrected
  3. 13+ stale/wrong model IDs in session.sh — all corrected, missing variants added, stale placeholder entries removed

What Changed

session.sh: Model ID lookup table now reflects current on-chain registry. Added missing :web variants, corrected renamed models, removed non-existent placeholder entries (whisper, tts-kokoro, text-embedding). Also fixed SC2002 (useless cat) in get_auth().

models-config.json: Fixed glm-5 and kimi-k2-thinking model IDs.

cron-packs/SKILL.md + package-lock.json: Updated cron-pack manifest.

Documentation Added

  • references/on-chain-pricing-2026-05-25.md — live on-chain fee data for all models
  • references/session-open-failure-2026-05-25.md — root cause analysis of failed session open
  • references/morpheus-wallet-locked-mor.md — wallet state + recovery analysis
  • scripts/recover-locked-mor.mjs — viem-based recovery script for stakesOnHold
  • cron-packs/SKILL.md — cron automation for session lifecycle

Known Issue (Not Fixable in This PR)

The Diamond contract has a CEI violation in function 0xa85a1782 — MOR tokens are transferred before session validation. This causes MOR to be permanently drained on failed session opens. Filed as issue #6.

See full audit report: wiki/audits/morpheus-everclaw-audit-2026-05-25.md

Bernardo and others added 4 commits May 24, 2026 00:00
On-chain model IDs had drifted from the hardcoded lookup table:
- glm-5: fixed (was 0xd486af39, now 0x2034b95f)
- kimi-k2-thinking: fixed (was 0xc40b0a1e, now 0xc40b6871)
- kimi-k2-thinking:web, kimi-k2.6:web: added (were missing)
- glm-5:web, glm-5.1, glm-5.1:web: added (were missing)
- glm-4.7-flash:web, glm-4.7:web, glm-4.7-thinking, glm-4.7-thinking:web: added
- hermes-3-llama-3.1-405b:web, llama-3.3-70b:web, gpt-oss-120b:web, venice-uncensored:web: added
- gpt-oss-120b, hermes-3-llama-3.1-405b, qwen3-235b, venice-uncensored: IDs corrected
- qwen3-coder-480b → renamed to qwen3-coder-480b-a35b-instruct
- Stale placeholder entries (whisper-v3-large-turbo, tts-kokoro, text-embedding-bge-m3) removed

Also fixes ShellCheck SC2002 (useless cat) in get_auth().

Detected by cross-referencing router /blockchain/models endpoint against
hardcoded IDs in the lookup table.

See: wiki/audits/morpheus-everclaw-audit-2026-05-25.md
Co-authored-by: Hermes Agent <hermes@nousresearch.com>
…ed-mor security fixes

- scripts/balance.sh, chat.sh: SC2002 useless cat
- scripts/always-on.sh: SC2145 array/string mix ($@ -> $*)
- three-shifts/SKILL.md: carryover guard, cycle math, duplicated steps, undefined idle
- skills/three-shifts/SKILL.md: step numbering, carryoverFromField cleanup
- scripts/recover-locked-mor.mjs: TX status check, gas estimation, parseInt range validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant