Skip to content

Repair pilot finger influences with public causal CI proof - #9

Open
rubenmarcus wants to merge 12 commits into
fix/character-rig-robustness-20261109from
fix/capitao-grip-public-20261110
Open

rubenmarcus wants to merge 12 commits into
fix/character-rig-robustness-20261109from
fix/capitao-grip-public-20261110

Conversation

@rubenmarcus

Copy link
Copy Markdown
Member

Scope

Add the minimum offline deformation prerequisite for the capitao-caveira pilot. This PR does not approve the pilot's visual weapon contact, change client behavior, publish asset payloads, or process the other 29 characters.

  • Pin the exact source and existing donor hashes in a public anatomical annotation.
  • Transfer only distal non-thumb Hand influence to the existing Curl joints, with anatomical pivots and fresh hierarchy-derived inverse bind matrices.
  • Preserve rest positions, topology, UVs, normals, materials, images, rights, animation files, joint hierarchy and joint order.
  • Refuse unsupported input, missing skin slots, and existing output/report paths. Validate the entire source and new pack before publishing a new local candidate.
  • Share the existing hand-edge ceiling from POSE_THRESHOLDS.synthetic.handMaxEdge; do not change the legacy client curl limits or introduce runtime grip metadata.

Stacked dependencies

Base: fix/character-rig-robustness-20261109 at 4050b5d, PR #6 (itself stacked on #4).

This branch explicitly replays the seven existing optional-clip contract commits from PR #5 (8f966f1..0930753) because the pilot already contains shared states and meshopt family/extra animation packs. No existing upstream branch combines #5 and #6. Replayed commits on this branch: 94cff55, 8665245, 0431e5e, 6e689f4, 7f108a7, 1ea580f, f2a02de. They are dependency code, not newly invented clip behavior.

Own changes: b914b85, 9af4360, and independent-review corrections in 1c64637.

Public CI proof

npm run check now runs character-grip-public-check.mjs: generated in-memory anatomy, the same production gate's nominal case and five causal mutants (zero finger influence, changed rest shape, palm-as-finger, reversed hinge with corrected inverse bind, cancelling negative weights), plus actual Three.js SkinnedMesh parity at 0.55 and 0.95 radians using runtime Euler XYZ addition. It needs no private payload, licensed animation, Blender, browser or paid service.

Observed public fixture: all five mutants rejected; maximum offline/Three.js vertex difference 6.40e-8 m. Generated temporary packs exercise the actual repair CLI, including internal source symlinks, source immutability, report-preparation failure, injected evidence-publication failure/rollback, and an eleven-clip pack missing required runtime state identities. The old syntax-only gap is closed.

Verification

Node 22.23.4, with its bin directory explicitly prepended to PATH (the host's default node is 16):

  • npm ci
  • npm run check
  • npm run check:asset-gen
  • npm run check:asset-gen -- --mutante=sem-refine — expected exit 1 on AG2
  • npm run smoke:pack — exercises actual pack-builder/validator CLIs
  • Exact local private pilot character-grip-check.mjs ... --mutants — nominal passes, all five mutants rejected
  • Exact local private pilot validate-pack.mjs .../0.2.1/manifest.json — 15 hashed files, meshy-28, 4905/5000 triangles, 5131584/8388608 bytes, all 11 state clips

The private pack and payload evidence are not part of this public PR. Versions 0.2.0 and 0.2.1 remain immutable. No generation or production deployment is triggered.

Independent adversarial review

The read-only reviewer identified five issues before publication: possible symlink write-through into the source, partial publication after report failure, count-only state completeness, acceptance of cancelling negative skin components, and a reversed-frame mutant rejected only by bind error. All were fixed with causal regressions. Re-review found no remaining actionable issue, including a separate review of the final explicit declared-file materialization cutover. The numeric prerequisite remains separate from visual acceptance.

Explicit non-approval

The private 0.2.1 candidate has 384 left / 379 right Curl-influenced vertices, protected palm/thumb displacement zero, and maximum bind difference 1.19e-7 m. These numbers establish real finger deformation only. Actual-client review still found weapon/socket calibration and contact-orientation issues, owned by the separate client lane. Do not infer acceptable AK grip from this numeric gate. No batching, publishing/promotion, or merge is authorized by this PR.

Characters may now declare an animations.extra map of named clips beyond
the states: fixed vocabulary names (locomotion, weapon handling, damage
reactions, melee, round outcomes) or an emote_ prefix with a suffix. Keys
match ^[a-z][a-z0-9_]{1,40}$; each entry carries file, duration, loop,
rootMotion and source. Extra files are declared in files under the
animations.extra.<name> role, so duplicates, missing paths and the byte
budget (extras included) are enforced before any payload is hashed, and
each extra GLB must contain an animation named exactly as its key.

Agent: Claude Code
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
The valid fixture now ships two extra clips (a vocabulary name and an
emote_ name) and a no-extras pack stays valid. Twelve new mutants cover
the contract: unknown, state-colliding, bare-prefix and pattern-violating
names; missing, duplicated, shared, non-GLB and misnamed clip files;
entries with missing or mistyped fields; and extras pushing the pack over
its byte budget.

Agent: Claude Code
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
Adopt the 45 names the animation conversion library proposes (branch
feat/animation-conversion-20261109, PROPOSED_EXTRA_NAMES; every name is
used by at least one key of library/index.json): 8-way walk/run/sprint
diagonals, sprint gaits, crouched locomotion and aim, standing turns,
jump phases, pistol variants and death variants.

extraClipNames is now coreExtraClipNames (23) plus
converterExtraClipNames (45, sorted to diff against the converter's own
sorted export). assertExtraClipVocabulary enforces the single source:
the vocabulary must equal the core set plus the converter set, with no
duplicates, state collisions or pattern breaks. The converter must
import extraClipNames from this module instead of keeping its own copy
(noted in docs/character-pack.md).

Agent: Claude Code
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
The synthetic fixture now carries a converter-named extra
(sprint_fwd_left) alongside strafe_left and emote_danca, proving the new
names validate end to end through the pack contract. New check cases:

- PASS: assertExtraClipVocabulary on the real exports (68 names = 23
  core + 45 converter)
- Mutant: a converter key outside the vocabulary (vault_low) fails for
  the missing-name reason
- Mutant: a vocabulary name outside the core and converter sets
- Mutant: a dropped core name
- Mutant: a duplicate vocabulary entry

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

The animation converter now emits per character one GLB per family
(states, loco, combat, ceremony) plus one GLB per emote. The contract
accepts that layout without dropping the per-state/per-clip one:

- several animations.<state> roles may share one states pack whose clip
  names are the state names, and several animations.extra.<name> roles
  may share one family-pack file whose clip names are the keys; a file
  can never mix state and extra roles, and emote keys always keep one
  file per key;
- extra entries gain an optional family field (loco|combat|ceremony|
  emote) that must match clipFamily, a mirror of the converter's
  packFamily (that branch is stacked on this one, so the mirror is
  proven against a snapshot of its answers instead of an import);
- every key must exist as an animation name inside its shared GLB, and
  shared animation GLBs are read once per file during validation.

Agent: Claude Code
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
The fixture now carries a loco family pack shared by two extras next to
a per-file extra and proves both layouts valid, plus a states.glb pass
case. New rejections, each for its stated reason: a key missing inside
the family pack, an emote sharing any file (family or another emote), a
declared family mismatching the clip name, a family outside the enum,
one file mixing clip families, and a states pack missing a state clip.
A snapshot parity table locks clipFamily to the converter's packFamily
answers (83 names, emotes mapped to the contract family emote), with a
poisoned-mirror mutant.

Agent: Claude Code
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
The real family GLBs (legacy-out capitao-caveira, character-clips@2)
store buffer 0 as the EXT_meshopt_compression stream in the BIN chunk
plus a virtual fallback buffer for the uncompressed view sizes, which
the strict one-self-contained-buffer rule rejected. readGlb gains
allowMeshoptFallback: animation reads accept that layout with the
compressed stream ranges bounds-checked against the BIN chunk, while
the model read stays strict because its skin bytes are read raw.
Proved on the real pack (14 files, 4596362 bytes, 11 states, 74 extras
across loco/combat/ceremony/emotes) and with synthetic cases: a
meshopt-shaped family pack validates, the strict default still rejects
it, a second buffer without the fallback marker is refused, and a
stream past the BIN chunk is out of bounds.

Agent: Claude Code
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
Keep the immutable pack repair separate from visual weapon-contact approval. Share the existing hand stretch ceiling and provide causal mutants.

Agent: Claude Code
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
Generate synthetic anatomy in memory, share all four production gate mutants, and compare every vertex with a Three.js SkinnedMesh using the runtime Euler operation. No private payload is required.

Agent: Claude Code
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
Materialize declared payloads, stage evidence before publishing and roll back on its commit failure. Require all eleven named states and finite nonnegative skin components. Prove the flexion-direction mutant independently of bind error and exercise the real CLI failure paths with generated public fixtures.

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

Copy link
Copy Markdown
Member Author

Verification at head 1c64637: Studio CI is green. Node 22 local checks, the public in-memory SkinnedMesh fixture, five causal mutants, real repair-CLI symlink/source-immutability and evidence-rollback cases, complete eleven-state identity rejection, and generic pack CLI smoke all pass. Independent review findings were corrected before publication and the final staging cutover was re-reviewed. No private payload, immutable pack update, client integration, batch generation, deployment or merge is included. Visual weapon-contact approval remains with the separate runtime pilot review.

@rubenmarcus

Copy link
Copy Markdown
Member Author

Local verification on head 1c64637 (Linux, Node 26.12.1): npm ci PASS; npm run check PASS (134 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.

…61109' into fix/capitao-grip-public-20261110
@rubenmarcus

Copy link
Copy Markdown
Member Author

Merged the current #6 base into this branch; head 2db14f0. Local Linux verification with Node 26.12.1: npm ci, npm run check, npm run check:asset-gen, and npm run smoke:pack all passed. Independent review is still required on this head.

…61109' into fix/capitao-grip-public-20261110
@rubenmarcus

Copy link
Copy Markdown
Member Author

Merged the updated #6 base again after its isolated-clip QA fix; current head 2469251 passes npm run check, check:asset-gen and smoke:pack locally. Review is required on this final head.

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