HumankindAssetFramework

Plan: an advisor for cutting, fusing and reducing unit models

Draft 2026-11-09. Status: proposal, nothing built. Written for Sebastiaan and for whoever implements a phase.

1. What the plan is for

Turning a ripped model into a unit costs hours of hand work in three windows, and almost all of that time is decisions, not computation. The Cutter, the Fuser and the Vehicle Lab already do the cutting, welding and collapsing in seconds; what takes the time is deciding, part by part, what each of up to 3,350 rows is and what should happen to it. Three kinds of decision:

Decision Where What the user does today Why it is slow
Identify: junk, interior, outer skin, deck, canvas, rope Cutter (Split, X), Lab (Ignore) Clicks rows, reads the preview, deletes what looks useless Nothing says a 10-triangle sheet is the ship’s outer skin; wrong deletes come back as see-through hulls
Group: which plates form one shell, which part mirrors which Fuser (⊕ letters, mirror finder) Assigns letters row by row, side by side Hundreds of plates per hull; the geometry already knows which plates touch
Tier: role per part, reduce dial per role, under 30k triangles Lab (roles, Vertices control, Verify) Marks roles, sets 15 dials, reads the projection, re-marks Role is a judgement; the dials are an optimisation the user does by hand against the projection

The aim is an advisor that makes a first pass at all three and hands the result to the user as proposed marks in the windows that exist, to accept, change or reject. It never applies anything on its own. This keeps the one design rule that has held up in this project: the user marks, roles decide (explicit-marking-beats-heuristics). The advisor is a faster way to produce marks, not a hidden heuristic.

2. What we already have

Ground truth, written by the user over months. Every saved recipe, sidecar and fuse report is a record of the user’s judgement on a real model:

Asset Count What it teaches
Vehicle Lab recipes 26, with 5,284 parts Per part: name, vertex count, centre, size, visibility, bone, offset, scale, and the role the user chose; per model the 15 reduce dials
Marks sidecars (.marks.txt) 22 Which parts the user split (S) and deleted (X)
Fuse sidecars (.fuse.txt) 27 Which parts the user grouped into which shell
Fuse reports 14 Per sheet verdicts, warnings, faces rewound
GLB files in D:\3DModels 148 across 65 model folders, of which 50 split, 21 fused, 8 cut The inputs and outputs of every stage

Three caveats on the corpus. It is skewed to ships (about two thirds of the parts); tanks, aircraft and guns are thin. Recipes can be stale against their re-cut sources, 3 of 20 were when last checked, so they must be re-probed through tools/recipe_migrate.py and the fuse reports before use. And most parts carry the default role, so the informative labels are a minority: on the role task the metric must be per role, not overall accuracy.

Signals the code already computes. The C# probe gives each part its island count, bounding box, vertex count, and the escape-ray Visibility verdict; the Lab tags parts the inside-out fix would flip (⟲) and finds flat parts (the deck finder); the Fuser’s mirror finder pairs parts across the centreline; Verify prints the per-role vertex statistics and the post-dial projection. These are the advisor’s inputs, and they are deterministic and tested.

A local model that can read tables and images. The home PC runs Ollama with qwen3.6:35b-a3b-q3, which has a vision encoder, and gpt-oss:20b. Both are the user’s own, on the user’s own machine, so the privacy question that constrains PET does not arise here; the models are still kept local.

3. Which tool for which decision

Not every decision wants a language model, and the plan says so up front:

4. Phases

Each phase ends with a number against held-out models, never with “looks right”. Hold out whole models, not parts: leave-one-model-out over the 26 recipes.

Phase 0: the harness and the baseline

Status (2026-11-09): built, except the Bake Tests row. The two scripts exist; their unit tests run in the push gate (Tests/test_advisor_corpus.py); the export and the evaluation are commands, not a row, because the corpus lives on this machine’s D:\3DModels and there is no proposer to run yet. The row comes with Phase 1’s first proposer. The manual timing has not been done; it waits for the next new model.

The evaluation keeps answers out of held-out proposer inputs. test_rows exposes the explicit PART_FEATURES allowlist in evaluate.py: identifiers, names, geometry and the visibility/flip/bone probe observations. It omits truth, roles, marks, fuse outcomes, placement edits and recipe joins; test_model exposes only model/category/files, never saved dials. Training records retain their labels. Fold arguments are copied so a proposer cannot change scoring truth or contaminate a later fold by normalizing its inputs in place. The corpus CSVs retain all columns for auditing.

The sidecar reader accepts ASCII signed Int32 indices, preserves both readings of legacy names ending in |<number> and refuses ambiguous matches, as the Workshop does. Feature-cache keys retain nanosecond timestamps, so equal-size edits within a second invalidate the cached geometry. These review regressions bring the advisor suite to 35 cases. On the real 33,441-row corpus (65 folders), the built-in baseline reports before and after isolating proposer inputs are identical: those baselines never used the leaked answers. A cached export still takes about 3 seconds.

python tools/advisor/corpus.py --out C:/tmp/haf-advisor        # 65 folders, about 6 minutes cold since the merge port, 3 s from the cache
python tools/advisor/evaluate.py --corpus C:/tmp/haf-advisor --write baseline.md

What the export found about the corpus itself, before any metric:

The baselines, leave-one-model-out, pooled (the full tables are in baseline.md beside the export):

Task Population Trivial baseline Best cheap baseline
Role 4,588 labelled parts in 26 models (Body 2,830, Turret 607, Wheel 479, Ignore 256, then a long tail; armour 3,527 of them, nearly all the Ehrhardt) always Default: 1 % right majority role of the other models: Body 62 % precision / 100 % recall, every other role 0 %
Delete 29,482 parts in the 52 files the user judged (marks, letters or a recipe), 10,673 deleted (36.2 %) once a deletion at a later stage file counts for the same part at the earlier one (Phase 1’s status; it was 7,241 before) never: recall 0 % the smallest tenth of each file: 57 % precision / 20 % recall; every interior part (vis = 0, the probe’s verdict for every file since Phase 1): 88 % precision / 14 % recall
Delete, the user’s own marks the same files without the 2,128 parts the Workshop marks itself: 27,354 parts, 8,589 positives (31.4 %) never the smallest tenth: 39 % precision / 15 % recall; every interior part: 84 % / 13 %. Size alone finds the tool’s deletions, not the user’s; the verdict finds one in eight of the user’s at high precision
Split 10,457 splittable parts in the 11 raw and cut files with marks, 178 marked S or T (1.7 %) never multi-island part above the file’s median size: 18 % precision / 79 % recall; every multi-island part: 14 % / 100 %
Group 19,056 parts in 27 files with letters; 1.34 M of 21.1 M pairs truly together all apart: 0 % recall; all together: 6 % precision one group per material name: 14 % precision / 1 % recall of the together pairs
Dials 16 recipes carrying dials; a dial a recipe lacks reads as the Lab’s default (rigging 75, structure 50, else 0) median dial of the other models: body 23 points mean error, structure 13, rudder 40, default 50 the category’s median: body 22, structure 10, rudder 26, default 27

What the numbers say about the phases: the Split heuristic recalls four in five of the user’s splits at one right proposal in five, so Phase 1’s island-dominance rule has a precision job, not a recall job; grouping by name is useless, so Phase 1’s contact graph has the whole job; deletion by size finds only what the Workshop already deletes by itself, and the user’s own deletions had no cheap signal until the probe’s visibility verdict was in the table for every file (Phase 1: it is now, and the deletion proposer builds on it); roles are 62 % Body and the interesting roles are a few hundred parts each, so Phase 2 and 3 are judged per role, never overall.

Phase 1: deterministic proposers

Status (2026-11-09): the Split proposer and the deletion proposer are built and measured, with the probe’s visibility verdict in the table for every file; grouping is not started.

Phase 2: role classifier without a language model

Phase 3: the language model as role advisor

Phase 4: the vision gate on deletions

Phase 5: the dial solver

Phase 6: integration

5. Risks and limits

6. What to decide now

  1. Whether the prize is worth the build: Phase 0’s timing of one manual run answers that with minutes. Still open; the harness is built, the stopwatch has not run.
  2. The order after Phase 0. The baselines (above) say: Split first, because the island heuristic already recalls 79 % of the user’s splits and only its precision is missing; then the visibility verdict into the table (the probe’s escape rays for every file, not only the recipe’s), because the user’s own deletions have no cheap signal without it; grouping by the contact graph after that. Split and the verdict are done (Phase 1’s status), the deletion proposer with them; grouping is next. The most interesting is still Phase 4.
  3. Where the advisor runs: on the home PC beside Unity, accepting the VRAM conflict, or on a second card.
  4. What the dial solver optimises: the saved dials sit above 30,000 projected vertices on 12 of 16 recipes, so “under 30k” is not what the user has been doing. Read the Factory’s Reduce to ~tris against the Lab’s dials on the shipped bakes before Phase 5 gets an objective.

7. Pointers