Files
praxisandClaude Fable 5.2 ade859f153 Project overview, working rules and build system
11 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:47 +02:00

120 lines
18 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## Batch execution and duplicate-check policy
Reuse and improve the existing item/model/material import, conversion, selector, composition and publication pipeline before adding a new mechanism. Missing appearance links or race/sex/equipment selectors do not justify reimporting assets that are already present. Use the pinned REA consumer contract to repair those relationships in batches.
Use the local Octo client, source item catalogue, existing native indexes and pinned REA receipts as the primary inputs. Load and join shared data once per batch. Do not repeat frozen asset exports, database scans, original-handler reads, hash sweeps or unchanged tests between steps or agent handoffs. Accept a recorded successful focused check from the agent that owns the change. Run one focused correctness validation for each completed changed batch; repeat only the changed, failed or unresolved portion. A new integration boundary requires its own relevant check, not a repeat of already established evidence. Correct shared item classes/families in bulk; inspect individual records manually only when their mapping is genuinely ambiguous or missing. Remove duplicate implementation work when found rather than adding another review stage. Keep routine visible output to three short lines.
## One-pass workflow for all tasks
The duplicate-check policy applies to every task, including login, UI actions, readiness, builds, packaging, REA, database reads, asset work and agent handoffs—not just automated tests. Existing successful evidence remains authoritative until its relevant input, process/session lifetime, artifact or behavior changes. Record that dependency and reuse the result; do not add another check to confirm a check already passed. A failure invalidates only the affected result, not the whole completed workflow.
Use the shortest existing supported action path. For an owned local test client, establish the current process/session and required UI once, then enter the account, press Tab, enter the password and press Enter once. Use clipboard paste only when supported by the actual native client input path; otherwise use the existing supported text entry. Do not erase a populated field merely to demonstrate the input sequence. Keep credentials private and preserve the clipboard when used. Do not OCR each field, loop over input backends, relaunch an already usable client, or repeat authentication because a later UI/readiness step is pending. Resume that step in the existing session. Never automatically replay credentials after a failed submission.
Keep essential process ownership, focus, credential handling and destructive-action protections at the action boundary. Do not layer equivalent guards, replace authoritative native state with weaker OCR guesses, or build new validation frameworks for routine actions. Keystroke dispatch is only an attempted action, not proof that text was pasted or authentication succeeded. A failed text-entry mechanism must be corrected before another credential submission; do not repeat the same sequence or add per-field OCR loops. Use one authoritative readiness signal per transition; only a new relevant failure or changed dependency justifies rechecking it. Do not poll unrelated state or rescan completed inputs while waiting.
Before repeating any work, identify what changed and which result that change invalidates. If nothing relevant changed, proceed from the saved result. Accept the owning agent's recorded focused validation. Run an affected meaningful check once after a completed change and a runtime acceptance only where it resolves a distinct unverified behavior. Do not add tests for documentation-only edits or tests that merely mirror implementation.
Save full diagnostics to private runtime files before running commands; emit at most three short status lines. Do not expose full scripts, patches, diffs, build logs or credentials through tool output. Update current checkpoints when work completes so later turns and agents resume the next unfinished action instead of reconstructing completed steps.
# Working instructions
## REA first
Begin every running, pending, and new task with a REA assessment of the original client behavior relevant to the task, before implementation. Reuse verified captures, exact symbols, original source, hashes, and existing REA receipts instead of importing or analyzing the same binary again. Record the relevant evidence and unresolved questions. Source-only assumptions do not replace REA when original client behavior is unresolved.
Keep analysis bounded to the handler, packet layout, data relationship, or asset-loading path that answers the current question. Expand only when the evidence requires it. For packaging or other work that introduces no new runtime behavior, reuse and identify the established REA contract; do not invent a new disassembly task.
Implement from the observed contract, then run the affected meaningful tests and a focused native acceptance check where needed. Distinguish source verification, offline tests, successful packaging, and actual in-game verification. Do not describe an untested runtime change as fixed.
## Output and continuity
For managed native client tests, reuse the existing authenticated source/native world and gameplay-policy proof before input. The UI OCR zone allowlist is incomplete (for example, Camp Narache); do not add a second zone-label gate after authoritative world readiness. A helper exit code or preparing phase alone does not prove world entry. Resolve first-run preset UI once using the original controls, then resume the existing session rather than submitting credentials again.
Keep routine user-facing and command output to at most three short lines unless the user requests a report. Save full build, test, and diagnostic output under runtime. Do not print source dumps, full diffs, packet payloads, credentials, or session keys.
Avoid repeating broad test suites after every small step. Reuse valid results until a relevant change, failure, or unresolved concern justifies another check. Parallelize independent authorized work without overlapping file ownership.
Continue authorized work unless the user explicitly stops it. Preserve the latest requested priorities and deferred work in docs/DEVELOPMENT_BACKLOG.md.
## Saved REA system job and next build
All unresolved content and gameplay behavior belongs in the dedicated saved REA system job: items, spells, talents, buffs, debuffs, maps, combat synchronization and character models, including all transparency families. Reuse prior decoded evidence before new analysis, compare source/native relationships, then apply shared corrections through existing pipelines. Ordinary implementation, build/package/storage work and actual acceptance consume these findings and do not require fresh REA analysis. Corpse transparency, resurrection popup and accept-revive are user-confirmed fixed; reopen only for demonstrated regressions.
Next-build gates include Warrior Execute, catalogue-wide green properties and item set relationships, and Windhorn head/shoulder materials and attachment placement. Do not substitute selected named-item fixes for the complete catalogue pass. Future Windows compilation uses the authorized VM; future Linux build output uses its confirmed share. Preserve original and last working clients; no further cleanup is requested.
## Catalogue-wide protocol correlation
Use the saved REA job to correlate the available server's complete opcode, update-field and relevant flag catalogues with actual gateway dispatch/policy admission and Forever native fields, events and listeners. Reuse the cached source/native declaration inventories and pinned original handler receipts; do not repeat broad generic API traces or timed-out native binary analysis. Exact names, numeric equality and normalized aliases are candidate evidence only, not proof of semantic equivalence or working listeners. Include payload framing/lifecycle, definition and asset closure, and every applicable catalogue relationship. Record unobserved Octo fork behavior as held rather than assuming the local source is identical. After current fixes, expand every system's coverage to complete source catalogues with measured resolved/held denominators.
## Persistent continuation requirement
Continue authorized unfinished work unless the user explicitly asks to stop or pause. Status questions, observations, screenshots and brief replies steer the active work; they do not end or pause it. After answering, resume the next unfinished action in the same turn. Do not end a turn merely after acknowledging a task, recording an observation, delegating work or reporting status. Stop only for explicit user direction, a required unresolved user input/approval, a genuine external blocker, or an enforced execution/budget limit; state the exact reason and preserve the next action. Never claim background execution continues after the turn ends unless an actual running job exists.
## VM share build shell
The confirmed VM share permits direct execution. For GNU Make builds on this CIFS share, pass `-- SHELL=/bin/bash` to `cmake --build`; the default `/bin/sh` fails absolute-directory transitions on this mount while Bash succeeds. Reuse the saved successful gateway-wire compilation and direct-execution receipts under runtime/continuation-20261022; do not repeat mount diagnostics unless the mount changes.
## Known client recovery and continuous execution
- Run short client actions in the foreground with a roughly 10-second tool wait and consume their result immediately. Finish the requested login/UI action chain before unrelated analysis; do not leave a two-second UI action as a background job while planning. Use asynchronous execution for actual long converter/build batches.
- Use capabilities from the exact installed helper path being executed, or a saved matching-version receipt. Do not inspect canonical workspace helpers and assume the installed client's older copies expose identical flags or RPCs.
- When the recurring owned-client logout failure interrupts another task, use the user-selected recovery: restart the owned client stack and resume the authorized login/context. Do not reopen logout, input-backend, packet or padding investigations unless the user prioritizes that fix or relevant evidence changes. Reuse the saved contracts.
- Restart completion includes the already-authorized login and requested context. Do not stop at the login or character-select screen merely to report a completed launch. Never replay credentials after a genuine rejected submission.
- Use the established uinput path. Pass `--preserve-account` only when the current field is positively known to match; a blank field requires normal account entry. Use actual native-window dimensions for pointer actions, not resized preview coordinates.
- Keep the Octo-to-Forever converter and independent map batches progressing alongside prioritized loader/race work. A priority change does not park independent authorized lanes.
- Resume from `runtime/continuation-20261028/login-races-priority/current-checkpoint.json` and each owning agent's finite handoff. Do not reconstruct completed work. Distinguish implemented, tested, installed and native-accepted changes in status updates.
<!-- recorded-native-actions-20261028 -->
Recorded local native action corrections: the explicit `client_ui.activate(after_octo_notice=True)` path completes the authorized owned X input-focus transfer and verifies it before returning; KWin activation success alone was insufficient. Standing user authorization recorded 2026-11-17: "you can always take focus if i'm playing on octo". For the exact owned test-client PID, lifetime and window, use that existing path immediately without another notice or permission request. Reviewed runners opt in with `GW_OWNED_FOCUS_STANDING_AUTH=1`; the original client never receives automation input. Keep one persistent input session for a batch.
After authoritative native World readiness, reuse the accepted `Controller.action("enable-native-channel-policy")` path and its policy proof. The optional request-only route failed to advance during lifetime258868; do not repeat authentication or investigate logout when this later policy step is pending.
The local fixture target Praxis4520 has rank0; do not type GM travel commands from it. Reuse the existing separate rank4 actor4509 admin session, summon/arrival evidence and cleanup through the reviewed local batch. A dispatched chat command is not a captured Source acknowledgement.
<!-- incremental-casc-rollback-contract-20261029 -->
## Incremental CASC rollback contract
The current cold installer and rollback are reviewed manual recipes, not generated by `ops/casc_*` or `ops/published_client_assets.py`. Future batches must parameterize the corrected recipe at `runtime/continuation-20261028/map-publication-prep/cold-adoption/rollback-combined-cold-content-once.prepared.py` and consume its saved installer journal. Do not reconstruct rollback from an older prepared script or its old instructions. The owning resolution is `runtime/continuation-20261028/map-publication-prep/cold-adoption/rollback6572-actual-resolution-and-future-recipe.private.json`.
- Native CASC can prune selected parent `.idx` generations while a candidate runs. The installer must preserve the complete selected parent index preimages. Rollback must restore those preimages **before** deleting candidate index files, even when the installer never overwrote a parent file. Preserve displaced or generated index metadata for diagnosis.
- Installer `preserved_derived_mappings` paths are relative to **`client/Data`**: `data/shmem` means `client/Data/data/shmem`, never `client/data/shmem`. Preserve/quarantine derived mappings at their actual Data-prefixed paths and let native CASC regenerate them only after the complete parent indices are restored. Do not reintroduce stale mappings or discard their backups.
- Keep original clients, candidate stores and rollback preimages. A successful file restoration is offline evidence; startup integrity remains a distinct acceptance boundary. Reuse the recorded real regression: nine missing parent generations and nine empty generation-1 indices were repaired, all sixteen selected parent index identities were restored, and Root accepted startup plus one login on PID295554. Do not repeat that accepted check unless its relevant inputs change.
## Parallel work with Claude — 2026-11-13 (user directive)
Claude Code and Codex now work this repository at the same time. The user assigns lanes; Claude writes Codex's task brief at
`runtime/continuation-20261113/codex/TASKS.md` and reads Codex's results. Rules for both agents:
- **Inbox / outbox.** Codex takes tasks from `codex/TASKS.md` in order. Codex appends one JSON line per state change to
`runtime/continuation-20261113/codex/outbox.jsonl` and writes one `codex/<task-id>/report.md` per task. Claude merges accepted
results into `docs/DEVELOPMENT_BACKLOG.md` and the checkpoints. Codex does not edit the backlog or Claude's checkpoint keys
(`runtime/continuation-20261110/current-checkpoint.json`); its own checkpoint is `codex/current-checkpoint.json`.
- **Client lock.** There is one disposable client and one local Docker server. Before installing a store, changing
`tw_char.characters` or launching the client, acquire the lock: `mkdir runtime/continuation-20261113/client.lock` (atomic; failure means
it is held). Then write `owner`, `task` and `since` into `client.lock/info`. Release with `rm -rf` on that literal path when done. If the lock is
older than 60 minutes and `pgrep -x WowB.exe` is empty, you may break it and note that in the outbox. Never kill a WowB.exe whose
`/proc/<pid>/cwd` is outside `Forever-Local-Disposable-20261110`, nor one launched while the other agent holds the lock (the user may be
playing in it).
- **Install recipe (disposable only).** Only when no WowB.exe is running: `rm -rf <disposable>/runtime/native-client/Data` (literal path),
`cp -a --reflink=always <candidate>/Data <disposable>/runtime/native-client/Data`, `sed -i s/<installed key>/<new key>/g .build.info`, remove `Data/data/*.lru`.
Before you release the lock, record the installed key in `client.lock/info` and in your outbox line. Never touch the user's Octo client or original clients.
- **Store suffixes and FDI ranges** keep candidates apart. Claude uses `-mapsZ42…` and FDIs 8722000–8739999. Codex uses `-mapsC01…` and FDIs
8740000–8759999. Both build from the recorded chain head (`maps_chain_head` in Claude's checkpoint, currently `-mapsZ41`). When a fix is
accepted, its owner records the new head. The other agent rebases by copying the new head's three input JSONs to a fresh suffix and rerunning
its fix scripts (fix scripts must stay re-runnable on any suffix).
- **Shared tools** (`W/frame-map-wdt`, `assemble-map-wdt`, `check-store`, `O/build-gap`, `ops/casc_*`): change them only in a backwards-compatible way.
Name the change in the outbox.
- **Commits.** Commit only your own paths with `git commit -- <paths>`, never `git add -A`. Leave files the other agent or the user modified untouched.
`runtime/` is ignored, so evidence stays there.
- **Standing approval for Codex (user, 2026-11-13).** "I want it to not ask me for approval of any sort, grant it already." Codex never asks the
user for approval or confirmation. It proceeds with all project work: installs and rollbacks on the disposable client, local Docker
DB/server changes, launching/killing its own disposable client, owned-window input, reading its own client's process memory, builds
(local/VM), commits of its own paths. The only exceptions stay the hard limits above: the user's Octo credentials, the user's own
clients and original/last-working clients, rollback preimages, and destructive actions outside owned paths. If a sandbox denies a write,
record it in the outbox, continue with independent work, and retry once access is available. Do not stop the run.
## User authorization and one-pass continuation — 2026-11-06
The user explicitly authorizes necessary project work with available tools and parallel workers, including local/VM client builds, input, and one qualified credential submission after a diagnosed failure and a relevant implementation or diagnostic change. Continue without redundant permission requests. The no-auto-replay rule above means do not blindly repeat an unchanged failed submission or retry inside the same process; it does not cancel this explicit authorization for a new, focused run after the cause or observability has changed. Keep credentials private, exact process ownership, rollback, and any automatic approval-review boundary. A status question or new patch notice steers ongoing work and does not pause it.