Skip to content

Character pack builder: the pipeline's deterministic promotion step - #8

Open
rubenmarcus wants to merge 6 commits into
feat/pack-optional-clips-20261109from
feat/character-pack-builder-20261109
Open

rubenmarcus wants to merge 6 commits into
feat/pack-optional-clips-20261109from
feat/character-pack-builder-20261109

Conversation

@rubenmarcus

Copy link
Copy Markdown
Member

Stacked on #5 (pack optional clips), sibling of #4/#6 (Blender rig) and #7 (animation conversion). This is the P6 piece: the standard process gets its one promotion tool.

What

  • tools/characters/build-character-pack.mjs (npm run pack:build-character): turns standard pipeline outputs — rigged meshy-28 GLB + passing pose-test.json, a character-clips@2 clip dir, its clip QA report, the studio-assets character folder (PROVENANCE.md ## Rights) at a recorded revision, and preview renders — into an immutable kind: character pack under <out>/character/<id>/<version>, validated in place by the shared contract validator.
  • Deterministic: same inputs produce byte-identical manifests anywhere; a rebuild over an identical published version is a no-op, a differing one is refused (pack_version_exists).
  • Fails closed: rig pose gate (pose_gate_failed), non-rig clip QA failures outside an explicit --allow-qa=<clip|*>:<substring> ([rig: …]-tagged failures stay rig-repair work), converter schema/id/model SHA chain, contract vocabulary and family layout, rights (status/basis/public-domain citations), triangle (cap 15000) and byte (8388608 declared) budgets, preview signatures. Families come from the contract's own clipFamily, so the manifest can never disagree with the validator mirror.
  • docs/character-pipeline.md: the end-to-end standard process (concept/rights → owner-run Mint model → Blender rig + pose gate → animation bake + clip QA → pack build + validate → client verify/install → release pin), with commands, gates, budgets, the pilot quality reference and the private/public artifact boundary. The client side keeps the rule: no new character GLBs under public/.
  • tools/checks/character-pack-builder-check.mjs in npm run check: synthetic fixtures only (no real GLB committed), builds and validates a pack through the CLI, proves byte-determinism and the immutable-version rule, and rejects 27 gate mutants for their own error codes.

Measured

  • npm run check (Node 26.12.1 local): 138 PASS lines, including the new builder check (39 cases; base suite was 98).
  • Real-data smoke (private bytes, not committed): capitao-caveira from the 2026-11 pilot outputs builds to 15 files, 5131480/8388608 bytes, 4905/5000 triangles; rebuilt in another root with the identical manifest SHA abce638c75d3…; byte total matches the packs-lote report. A QA report with real non-rig failures (adjim, 64 [clip: …] entries) refuses the build with qa_failure_not_allowed.

For the reviewer

Agent: Claude Code

Promotes standard pipeline outputs (rigged meshy-28 GLB with a passing
pose test, character-clips@2 packs with a clip QA report, studio-assets
PROVENANCE rights, previews) into an immutable kind: character pack,
validated in place by the shared contract validator. Fails closed on the
rig pose gate, non-rig clip QA failures outside an explicit allowlist,
the model SHA chain, the contract vocabulary and layout, rights,
budgets, preview signatures and already-published versions.

Agent: Claude Code
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
Builds a synthetic pipeline output (skinned meshy-28 GLB, family packs,
pose test, QA report, PROVENANCE, preview; no real asset bytes), packs
it through the CLI and the library entry, rebuilds it byte-identical in
another root and over the same immutable version, and rejects 27 gate
mutants with their own error codes, from a failed pose gate and
uncovered QA failures to rights, budget, preview, vocabulary and layout
breaks. Wired into npm run check.

Agent: Claude Code
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
End-to-end route for every new third-person character: concept and
rights in studio-assets, owner-run Mint model, Blender rig with the
pose gate, animation bake with clip QA, deterministic pack build and
validation, client verify/install, release pin. Records the gates,
budgets, commands, quality reference of the 2026-11 pilots and where
private artifacts live; the client keeps receiving no new GLBs under
public/.

Agent: Claude Code
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
@rubenmarcus

Copy link
Copy Markdown
Member Author

CI note: no pull_request workflow run was created for this PR (last Studio CI run on any branch was 07:45Z, ~2h before this PR; the client repo under the same org creates runs normally). Dispatched ci.yml manually on the head commit: run 42595124893 — Validate public studio: success on 1ae26e4 (the exact PR head). Local npm run check (Node 26.12.1): 138 PASS lines, including the new builder check (39 cases).

--omit-extra=<key>[:<reason>] drops an optional extra that the owner
cut from one character's pack: its family GLB is rewritten without the
clip (same encoding, the other clips decode identically), it leaves
animations.extra, its QA results stop gating the build, and one
source.provenance line records the reason plus every QA failure of the
clip. States can never be omitted; a key outside the vocabulary, given
twice, never baked, or with nothing to cite is refused.

Agent: Claude Code
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
The omitted clip is gone from the rewritten loco.glb and the manifest,
the 3.666x stretch that justified it is recorded, the CLI reports it,
and omitting a state, an unknown or repeated key, a clip the converter
never baked, or a clip with nothing to cite is rejected with its own
code. A kept extra with the same failure still refuses the build.

Agent: Claude Code
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
Agent: Claude Code
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
@rubenmarcus

Copy link
Copy Markdown
Member Author

Local verification on head 6268d71 (Linux, Node 26.12.1): npm ci PASS; npm run check PASS (148 PASS lines); npm run check:asset-gen PASS (4 PASS lines); npm run smoke:pack PASS (68 PASS lines). Blender 5.2.0 LTS is installed; these synthetic gates do not establish a real-asset or visual approval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant