15 KiB
Playbook — standard procedures (Claude, Codex, Qwen)
Owner 2026-11-28: "everything you have already fixed, you should be able to provide way better processes".
Every recurring job type has ONE procedure here. Before inventing a new approach, find the matching section; when a
job teaches something new, update the section in the same commit. Dated ops/<job>-<date>/ folders are evidence of
one run, not the tool: promote anything reusable into ops/<area>/ and link it here.
0. Rules that apply to every job
- Check prior work first:
git log --oneline -i --grep=<topic>,codex/outbox.jsonlsubjects, memory, this file. - Catalogue first, never one instance: the first artifact of a job is a JSON catalogue of ALL affected rows/files (incl. future ones), produced by a script; fixes are rules applied to the catalogue.
- Real data fix, no workaround; client-native data first (DB2/content) over gateway behaviour.
- Offline proof before the client: host test or read-back of the exact bytes; LOCAL only for what needs the engine.
- One frozen candidate per handoff, named in the handoff with its gate command (see P2). No "please test X" without a directory and a command.
- Commit every fix in the repo it touches; doc/playbook updates ride in the same commit.
- Changelog: every step published to the
octochannel gets a player-facing line inCHANGELOG.md(newest date on top, step id in backticks), committed with the ship and pushed to Gitea.
Lanes
| Lane | Does | Hands off |
|---|---|---|
| Qwen (local, cheap, slow) | bulk mechanical text: Lua 5.0->5.1 rewrites, report triage (llm/jobs/report-triage/triage.jsonl) |
files + results.jsonl; never ships |
| Codex | catalogue builders, converters, host tests, content candidates, RE of client readers | frozen candidate dir + gate command (outbox type=handoff) |
| Claude | planning, deterministic converters, integration, LOCAL engine tests, signing, shipping, owner contact | shipped step ids + owner note |
Deterministic transforms go in a script (e.g. llm/jobs/addon-convert/xml_convert.py), not a model; Qwen only gets
the parts that need judgment, and its output is always syntax-checked and reviewed.
P1. Octo -> Forever parity transfer (any asset class)
When a post-pass adds a model sequence, rebuild its native animation-ID hash after all sequence/track appends; slot zero is not a direct Stand index. Reuse ops/m2_sequence_hash.py and the registered m2-native-sequence-hash regression. insert_stand now preserves the alias/track contract while rebuilding lookup termination (Q84, docs/evidence/content-data/stand-lookup84-20261128/report.md).
Owner rule 2026-11-28: where Octo changed something, Octo's version replaces the native one; where it is the same, keep native.
- Detect with
ops/octo_parity/turtle_changed.py <globs> --changed-only: Turtle =patch-*.mpq, base 1.12 = every other archive (Blizzardpatch.MPQis base). Output:turtle-new/turtle-changed/same. - Compare to native, not only to 1.12: for data rows, map Octo rows to native DB2 rows (
ops/claude_recipe_parity/ effective.pyE.table(name)['rows']gives the installed client's effective rows incl. hotfixes). A row is "same" when its referenced assets resolve to the same file names (native FDID -> listfile name) and none isturtle-*. - Classify each catalogue entry into one transfer kind and use the existing tool:
- DB2 rows (emotes, spells, recipes, items): row builder in the style of
ops/claude_recipe_parity/build_rows.py(emit add/rewrite with prior row) -> content bake. - The shipped 70334 charge-only provider can be reproduced from a checkout with
python3 -B ops/octo_parity/compose_charge_provider.py --output-dir /tmp/charge-generated(choose a new directory). The producer selects the protected pre-charge Git revision, reuses the checked SpellEffect schema and reconstructs the ten changed page replies. Its adjacent fixture retains the 333 source-approved row/spell/slot identities and only the row visibility exceptions observed on those pages. To compare the source cohort and both compiled host providers, runpython3 -B tests/charge_provider_replies_test.py --source-plan PLAN --codecs PRE_CHARGE CHARGE_ONLY. - Spell coefficients: use
ops/octo_parity/audit_spell_effect_coefficients.py --helpto join the current world spell templates and overrides, original DBC definitions, and selected native table dumps. Compare normal direct data replies as well as physical SpellEffect rows. The source call sites can bypass a nonzero coefficient. Caster-ignore flags, low-level penalties, script-specific bonuses and target-dependent effects require separate qualification. Exercise source roll ranges and contributions withpython3 tests/spell_effect_coefficients_test.py. - Sounds: Octo WAV/MP3 -> new FDIDs + SoundKit/SoundKitEntry rows; point the native row at the new kit.
- Character/creature animations: retarget (
ops/content-rude3-20261126/compose/fkcheck/ground). Check AnimationData.Flags first when legs stay still: full-body needs 0x40000000 (memory tauren-rude-native-anim). Any M2 written must use the shared sequence-hash helperops/m2_sequence_hash.py(cumulative quadratic probe, Q76). Useops/m2_sequence_refs.py <selected-model-inventory.json> <output.json>to validate sequence links, lookup values, authored-ID native lookup reachability and component track references. Pass--skeletonsfor selected SKEL files.lookup_reachability_complete=falsemeans a probe-budget hold, not a proven loop or a clean pass; see Q84 reachability proof. Match report IDs and verified updater content keys before attributing a new incident or changing an asset. - Game objects: GO authority profile row
{entry,type,display,sizeBits,"name",{{data0..23}}}sorted by entry, and rebuild natives against it (deployable toys: memory octo-deployable-toys). - Models/textures:
gomodels/crmodelsbuilders; collision blob entry for every imported M2 (memory model-blob-collision).
- DB2 rows (emotes, spells, recipes, items): row builder in the style of
- Gate: read-back of every changed file in the frozen store (CascLib), plus a client-read gate addon when the engine
must load it (template:
build/queue76-world-entry-20261128/client-gate/). In-game Lua checks must NOT testGetBuildInfo()== 70334: our Compat.lua reports 0.9.6/16001; the host-sidepreparealready pins the build. - Ship with P2.
P2. Content step: test then ship
CL=.../claude-lane/content; F=$CL/<name>-frozen-candidate; cp -a --reflink=always <candidate> $F
T=/mnt/Games/@project/scratch/<name>-testrepo; cp -a --reflink=always /mnt/Games/@project/patchserver/repo $T
cd wt-master-merge/ops/patchserver
python3 publish.py --repo $T --channel octo add-content $F --base-search $CL; python3 publish.py --repo $T --channel octo add-store $F
python3 store_step.py apply /mnt/Games/OctoWoW-LOCAL-Client --repo $T --id <key8> # LOCAL test
# test passes ->
R=/mnt/Games/@project/patchserver/repo; (same two publish.py lines with --repo $R)
ps -eo args | awk '$1 ~ /WowB\.exe$/' # must be empty before touching OCTO
python3 store_step.py apply /mnt/Games/OctoWoW-Windows-Client --repo $R --id <key8>; sh push_vps.sh
rm -rf $T
Keep clients clean: no rollback/preimage/test addon left in client dirs; compact (ops/casc_compact.py) after several
manual steps (memory keep-clients-clean).
P3. Natives / codec ship
Build from master (runtime/claude-natives-integrate-20261122/win-master.sh OCTO, win-master-local.sh LOCAL Wire/
Bridge — never swap them). Codec: ninja -C win-master-local-trace gateway_protocol first, then
claude-lane/codec-<name>/build.sh. Strip debug, sign with osslsigncode, verify, install _classic_beta_ +
_classic_beta_/D3D12, publish.py add-files, push, Gitea export (ops/publish_export.py). Run
bash ops/regression_gate.sh before every install.
Natives build inputs (2026-11-28): GW_GAMEOBJECT_AUTHORITY_PACKAGE_INCLUDE must be the SHIPPED codec's
compatibility-include (copy under claude-lane/natives-package-include-*), not master include/: the master default
item_random_property_profile.hpp is empty, so mail/AH items lost their "of the X" suffix. Always configure through the
win-master*.sh scripts (a hand-set CMake cache had kept go-authority-20261127, dropping Sacred Chalice); check
grep GW_GAMEOBJECT_AUTHORITY CMakeCache.txt before shipping a Backend.
Which binary carries a change: anything compiled into gateway_protocol (CMakeLists add_library(gateway_protocol plus
its target_sources, e.g. src/aura_state.cpp, src/object_updates.cpp; forever_create.cpp is in the codec closure)
reaches the client only through forever_codec.dll. Rebuilding/installing the three GWNative DLLs alone does not ship it
(#38: aura-state fix installed as DLLs only had no effect). Codec job = copy the latest claude-lane/codec-<name>/
build.sh + closure into a new dir, rebuild the protocol lib, run build.sh, strip, sign, install both folders.
The November 28 Q103 charge release shipped signed codec a1cd4faf. Its source closure is
build/q103-charge-provider-20261128/windows/closure under the project root. The next job is already
staged at gateway/runtime/continuation-20261113/claude-lane/codec-next-after-q103-20261128/.
Its parent.json pins manifest ce7751fbad173ce7eabe806974cd08666799affed35dc15a5bd86dd7c8a9712d.
Apply the next source change to that copy. It carries the 192 corrected charge replies and their ten updated hotfix pages.
For a client-visible transport missing from a realm, establish whether the source sends its create and compare
the static spawn with the normal type-11 serializer. Generate the Undercity lift catalogue with
ops/undercity_transport_spawns.py. Its host gate compares a stream missing the nine spawns with an otherwise
identical stream containing the real spawns. Check mixed delivery and world transitions before the LOCAL visual test.
For melee presentation, replay a peer create carrying a combat victim, then a name reply.
Check that the observer receives one AttackStart after both units become visible. Include a stop before the
reply and a removed victim. Target selection and the in-combat flag also occur outside auto-attack.
Run ctest --test-dir <host-build> -R '^native-peer-melee-visibility$' --output-on-failure with the source-matched codec.
For combat-log changes, check the source effect handler and the native sender as well as both packet writers.
For SMSG_SPELLLOGEXECUTE effect 68, the source supplies the interrupting caster and spell plus each victim and its interrupted spell.
The native sender emits one SMSG_SPELL_INTERRUPT_LOG per victim, followed by any regular SMSG_SPELL_EXECUTE_LOG effects.
Admit the entire group against the record and byte capacity left after other world output.
Run ctest --test-dir <host-build> -R '^native-spell-interrupt-execute$' --output-on-failure to check the complete mixed stream.
P4. Addon port (1.12 -> 70334)
- XML:
llm/jobs/addon-convert/xml_convert.py(deterministic). Handler args come from itsPARAMStable; only OnEvent is vararg —...in any other handler is a compile error. - Lua: Qwen
run.py(syntax-checked, rejected files retried), Codex review for API semantics. - LOCAL: install,
/reload, readWTF/Account/SavedVariables/OctoErrLog.lua(not screenshots) for that addon's errors, exercise the main feature, check taint ("Interface action failed because of an AddOn"). - Pass -> Gitea only (never patch channel/VPS). Fail -> remove from LOCAL, keep the tested copy in claude-lane.
P5. LOCAL engine test
Harness claude-lane/local-helm-tmog-test-20261123: cc514.py (Blasphemy, GM), cc342.py (Bereander, GM); commands
through p-click (chat /..., key ..., quit). Prefer a Lua readback addon writing SavedVariables over OCR.
After every run: _classic_beta_/Errors delta, kill stale umu/gamescope chains by PID (only the LOCAL chain - never match
every WowB.exe, the owner's OCTO client may be running).
Server-side GM/console commands without a client or restart: ops/local_gm.py '<command>' (SOAP on 127.0.0.1:7878, LOCAL
mangosd built with ENABLE_SOAP=ON). GM levels are cached in mangosd: change them with account set gmlevel <acc> <n>,
not SQL. .gobject add writes to the world DB permanently - delete test spawns afterwards.
P6. Bug reports
llm/jobs/report-triage/triage.jsonl first (Qwen pre-classified), then the raw report only for the chosen ones.
Every report becomes a catalogue question ("which other items/races/zones have this?") before a fix is queued.
P7. Map / world editing (Noggit Red, #127)
Status 2026-11-30: tile 32_48 renders fully in Noggit; edit -> ops/editor_export_127.py -> LOCAL content child proven
(client stands on the edited hill). Editing raise/lower = Shift/Ctrl + left mouse; Ctrl+S saves only changed tiles.
Server map/vmap data is NOT updated by the export: server GroundZ/LoS/pathing keep the old ground until rebuilt.
Server tile: ops/editor_server_overlay_127.py -> isolated 1.12 Data + patch-9.MPQ; run server tools from
build/editor127-extractors in ubuntu:22.04 (mapextractor -i <Data parent> -o <out> -e 1 -f 1; -f 1 = server's int16 heights);
unedited control must be byte-equal to the server's maps/.map before installing; copy only the edited tile file,
restart mangosd under the restart gate (nobody online, no client.lock, Codex quiet).
- Editor:
tools/noggit-red/build/bin/noggit(Linux build recipeops/noggit/). Run nested so it never takes the desktop:HOME=<scratch>/noggit-home QT_QPA_PLATFORM=xcb gamescope -W 1600 -H 900 -- ./noggitfrom build/bin. Projects come from therecent_projectsarray in<HOME>/.config/Noggit/Noggit.conf; project file names must be lowercase (editor-project-127/octoeditor127.noggitproj, ClientVersion "Wrath Of The Lich King"). - Staging client:
python3 ops/editor_client_127.py->/mnt/Games/@project/editor-client-127/Data/{common.MPQ, patch.MPQ,enUS/locale-enUS.MPQ}(directories as archives; every path inside lowercase; DBCs rewritten to 3.3.5 by bundled DBD column names;enUS/realmlist.wtfneeded for locale detection). Reads Octo read-only, never writes under ~/Games/octo. Test:tests/editor_client_127_test.py. - Export back: edited ADT -> existing chain (split -> ocean normalize -> still/river from MCLQ -> off-sea retype (1325,19034) -> strip MCLQ -> WDT MAID / model.blob collision / minimap) -> content step (P2). Never ship from the editor folder directly.
- Spawns (LOCAL only):
ops/editor_spawns.py plan <list.json>prints.go xyz+.npc/.gobject addlines;apply --display <LOCAL> --chat <chat.py>types them as an in-game GM (console cannot spawn). Applied lists are logged next to the list for undo; spawns persist in tw_world. - Noggit log:
build/bin/log.txt— a missing-table message names the exact staged path to add.