Asi nhero-scramble
Derangement-based medication name scrambling for nhero. No medication maps to its own initial letter. Full derangement with GF(3) conservation. Append-only index — medications can be added but never removed from the scramble table.
install
source · Clone the upstream repo
git clone https://github.com/plurigrid/asi
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/plurigrid/asi "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/nhero-scramble" ~/.claude/skills/plurigrid-asi-nhero-scramble && rm -rf "$T"
manifest:
skills/nhero-scramble/SKILL.mdsource content
nhero-scramble
Derangement-based name scrambling. Append-only.
Rules
- No medication maps to its own initial letter (derangement)
- GF(3) sum of assigned letters must equal world trit (-1 for H)
- New medications are appended, never removed (append-only)
- Letter assignment maximizes Hamming distance from H and natural initial
CLI
python3 hero_scramble.py table # show full table python3 hero_scramble.py lookup q # q → Vyvanse python3 hero_scramble.py reverse Vyvanse # Vyvanse → q python3 hero_scramble.py set x 400 # set Magnesium to 400mg python3 hero_scramble.py add Melatonin # auto-assign deranged letter
Append-Only Protocol
The scramble index is append-only:
appends a new (letter, medication) pairadd
updates dosage but never removes the mappingset- No
orremove
operation existsdelete - Historical mappings are preserved for audit trail
- On-chain:
is the commitmentkeccak256(scramble_index)
Parent
Part of the nhero hierarchy.