# Archive Batch — Wiring Audit #5 (companions/) — 2026-05-28

Archived during Wiring Audit #5 (`_council/2026-05-28-wiring-companions/CLOSED.md`).

DUAL-purpose audit: standard wiring audit AND dead-code triage in one pass.

35 files archived + 1 relocate + ~30 in-place line cleanups (companion.timerowner tag teardown).

---

## UNREACHABLE refactor leftovers (reach F1)

| File (archived path uses double-underscore for slashes) | Why |
|---|---|
| `handler__math__xp_bar.mcfunction` | Self-recursive painter, sole self-call at L6. Replaced by inline tellraw lore in `companion_info_chat.mcfunction` during menu_v2 refactor. |
| `handler__menu_v2__info_lore_line.mcfunction` | Self-recursive iterator, sole self-call at L14. Replaced by `companion_info_chat` direct-render pattern. |
| `handler__active__abilities__passive__spirit_wolf_set_dmg.mcfunction` | 2-LOC orphan macro stub. Inlined into `spirit_wolf.mcfunction:14-33` during abilities-v2 refactor; stub forgotten. |

## Orphan advancement (reach F3 + correctness F3)

| File | Why |
|---|---|
| `advancement__companions__player_death.json` | Impossible trigger + no reward function. No callers. |

## Legacy v1 `rolls/<rarity>.json` (obtain V2)

Replaced by `rolls/biome/pool_<rarity>.json` pattern.

| File |
|---|
| `loot_table__companions__rolls__common.json` |
| `loot_table__companions__rolls__uncommon.json` |
| `loot_table__companions__rolls__rare.json` |
| `loot_table__companions__rolls__ornate.json` |
| `loot_table__companions__rolls__exquisite.json` |
| `loot_table__companions__rolls__mythical.json` |

## Test fixture (obtain V3)

| File | Why |
|---|---|
| `loot_table__companions__test__all_items.json` | Test fixture, not referenced by any `spawn_all_pets`-style admin/dev path. |

## v1 stick-menu predicates (obtain V4)

18 dead predicates from the v1 stick-based catalogue menu (replaced by book-based `menu_v2/`).

| File |
|---|
| `predicate__companions__abilities__penguin.json` |
| `predicate__companions__clear_item.json` |
| `predicate__companions__clicked_item.json` |
| `predicate__companions__empty_mainhand.json` |
| `predicate__companions__forest_biome.json` |
| `predicate__companions__holding_companion_menu.json` |
| `predicate__companions__is_moving.json` |
| `predicate__companions__lush_caves.json` |
| `predicate__companions__menu__close.json` |
| `predicate__companions__menu__companion.json` |
| `predicate__companions__menu__convert.json` |
| `predicate__companions__menu__despawn.json` |
| `predicate__companions__menu__has_vehicle.json` |
| `predicate__companions__menu__menu_item.json` |
| `predicate__companions__menu__next.json` |
| `predicate__companions__menu__non_interactable.json` |
| `predicate__companions__menu__previous.json` |
| `predicate__companions__menu__visibility.json` |

## v1 stick-menu item_modifiers (obtain SF1)

5 dead item_modifiers from the v1 stick-based catalogue menu.

| File |
|---|
| `item_modifier__companions__hidden.json` |
| `item_modifier__companions__level_display.json` |
| `item_modifier__companions__make_menu_item.json` |
| `item_modifier__companions__max_level.json` |
| `item_modifier__companions__visibility.json` |

## In-place tag cleanup — `companion.timerowner` (race S5, after W1+W2)

Tag became dead-weight after W1+W2 race fixes replaced `@a[tag=companion.timerowner]` with `@s`.

- Removed `tag @s add companion.timerowner` from L1 of 21 schedule files: `3s.mcfunction`, `5s.mcfunction`, `10s.mcfunction`, `12s.mcfunction`, `14s.mcfunction`, `16s.mcfunction`, `18s.mcfunction`, `20s.mcfunction`, `22s.mcfunction`, `24s.mcfunction`, `26s.mcfunction`, `28s.mcfunction`, `30s.mcfunction`, `1m.mcfunction`, `1m30s.mcfunction`, `2m.mcfunction`, `2m30s.mcfunction`, `3m.mcfunction`, `12h.mcfunction`, `18h.mcfunction`, `1d.mcfunction`
- Removed `tag @a remove companion.timerowner` cleanup at `timer.mcfunction:33` (replaced with bare `return 0`) and `timer.mcfunction:119` (line deleted)

`strip_player_zero.mcfunction:642,2363` Pioneer-wipe cleanup lines kept — harmless legacy purge of historical player Tag.

---

## Relocate (not archive)

| Old path | New path | Why |
|---|---|---|
| `data/evercraft/function/companions/handler/menu_v2/give_catalogue.mcfunction` | `data/evercraft/function/admin/give/companion_catalogue.mcfunction` | Admin shortcut — belongs under `admin/give/` per Council #4 relocation precedent. |

---

## Convening reference

See `_council/2026-05-28-wiring-companions/README.md` + `RECON.md` + `chat/SYNTHESIS.md` + `CLOSED.md`.
