# v3 — Blender-first appearance and mechanical feedback

## Current acceptance: articraft_baseline_v1

The user requested a bar close to the first Articraft+Blender version. Preserve appearance; do not remesh, bore holes or redesign assemblies solely to eliminate automated overlap/contact reports. Structure, physical mesh health, genuine motion/limit failures and bridge integrity remain blocking. Missing mass and reference-pose overlaps/contact gaps are diagnostics, as in the native compiler kinematic lane. Proceed to final render/review when blockers clear. A reviewer must identify a concrete visible/functional defect; diagnostic count/depth alone is not a rejection. This is not a collision-free or dynamics-ready certification. Earlier failed attempts remain historical; this profile is not the former all-pose collision gate.


The default entry now runs **independent Blender native generation → post-generation bridge/Articraft checks → Blender final review**. Stage A uses the native Codex tool loop with only the object brief and native Blender physics requirements. It has an empty workspace, no SDK quickstart, no Articraft system prompt, no compile tool and no required interchange JSON. See [NATIVE_PROMPT.md](NATIVE_PROMPT.md) and [native_prompts](native_prompts).

Stage B begins only after asset.blend is delivered. The bridge extracts body ownership, joints, explicit physical limits, observed motion ranges, a spanning tree, studio geometry and shader helpers. It creates the interchange mapping after generation. Unsupported/ambiguous structure still fails explicitly. The physics and final appearance gates remain in force.

Fresh runs: `python run_one.py scissor_lift` (default two-stage route). `--native-only` delivers the Blender checkpoint without claiming mechanical acceptance. `--source` / `--checkpoint-run` route existing assets directly to the post-generation stage. No fresh generation is allowed through `--mechanical-only` without an input.

Both stages share one accounting ledger and one time allowance. Native CLI events and requests are retained separately from Articraft tool events, with a hash-linked handoff. The first actual native request is inspected before forwarding and fails if downstream SDK/schema instructions leaked in.

The earlier eight v3 pilots used the mixed prompt setup and are historical debugging attempts, not evidence for this corrected native-first condition. Their errors and costs remain preserved. The corrected entry has boundary and fixture tests; it has not yet completed a new paid eight-asset benchmark.

## Implemented

- New generation requires actual Blender rigid bodies and matching enabled FIXED / HINGE / SLIDER constraints; endpoint, pivot/axis and limit declarations must agree. Extra active constraints cannot be omitted silently.
- Legacy animation intake retains actual evaluated motion, extracts hierarchy-based body groups and joint candidates, and records demonstrated ranges separately from physical limits. Unconfirmed candidates cannot pass conversion.
- Per-body local frames and per-object rest bindings preserve arbitrary Blender origins. Every mapped vertex is checked across at least 101 phases plus animation-key neighborhoods; changing scale, geometry or topology fails rigid conversion.
- SDK checks validate actual reference states and independently regenerate poses through FK. Mesh health, mass, mounting contact, all-body overlap and declared task range checks produce structured feedback. Neighboring bodies are not globally collision-exempt.
- The return bridge retains original object identities, material graphs and UV coordinates, bakes evaluated rigid geometry into a presentation copy, drives it with accepted SDK poses, and checks pose correspondence. Texture-coordinate helpers require explicit body/WORLD bindings; missing image dependencies fail.
- The Agent runs initial appearance review → conversion/mechanical repair → bounded final review → package. The first final pass stops; at most two final-review repairs. Final packaging preserves the editable Blender file with packed images, the SDK build/export, correspondence and curated evidence. Raw traces remain outside the delivery.
- Cost-aware tracked backend, no automatic ambiguous paid resubmission, soft generation/review request boundaries and private request accounting are reused from the previous version.

## Entry points

Run heavy work on an allocated compute node. Python environment:
`../articraft-latest/repo/.venv/bin/python`.

No API calls, existing asset conversion/check:

```bash
python pipeline.py /absolute/workspace --stop inspect
python pipeline.py /absolute/workspace --require-native
```

Workspace inputs: `asset.blend` and normally `authoring.json`. `--require-native` enforces new-asset physical constraint authoring. Without it, a legacy asset still requires confirmed mechanical definitions before acceptance. `--stop inspect` returns exit code 2 when mapping/confirmation/repairs remain; it writes inventory, candidates and feedback rather than pretending the asset is accepted.

Paid generation/repair (not launched as part of implementation):

```bash
python run_one.py tracked_excavator
python run_one.py folding_stroller
python run_one.py tracked_excavator --source /absolute/asset.blend --authoring /absolute/authoring.json
```

`main.py`, `mechanism.json`, intake/binding/motion files and feedback are derived each compile. Edit Blender geometry/movement. For native inputs, the bridge regenerates `authoring.json`; manual mapping edits are only for explicitly supplied legacy/ambiguous inputs. Do not edit derived mechanics to bypass correspondence. The delivered `main.py` is relocatable beside its JSON inputs with the SDK installed.

## Validation completed

Native-first correction (2026-09-28): **28 automated tests passed**, real Codex CLI first-request capture passed with a local stub backend (zero API calls), and **three schema-free Blender inputs** completed native extraction → SDK checks/export → material-preserving Blender return. Fixed: 101 poses; hinge and slider: 105 poses each. Evidence: native_boundary_checks/. The native/bridge tests cover the phase boundary and actual file conversion; a corrected paid eight-case generation cohort has not run.

Earlier implementation baseline:

- **15 automated tests passed** (`release_checks.log`): wrong joint axis/pivot/limit detection, confirmed versus inferred states, ownership, nonidentity rest placement, compile freshness, real-constraint requirements, relocatable SDK build, legacy candidate ranges, and the real Agent's initial review → compile → final review → stop/package sequence with a scripted model (zero API calls).
- **Three real Blender round trips passed:** fixed, hinge and slider; SDK USDZ export and Blender return. Hinge/slider checked 105 poses; fixed checked 101. Maximum observed return transform element error was about 1.3e-7.
- **Four Blender fault files were rejected:** nonrigid scaling, missing shader-coordinate helper mapping, unbound visible geometry, missing texture file. See `checks.log` and `test_outputs/*/pipeline_result.json`.
- Actual six-panel procedural-material renders were generated before and after conversion. Four corresponding panels match exactly; the other two have mean absolute RGB difference below 0.00014 on a 0–255 scale. This is one controlled fixture, not proof for every Blender material.
- The earlier native excavator produces 13 motion/hierarchy candidates and remains unaccepted pending mechanical mapping/repair; original input was not edited.
- Syntax/import lint: Ruff F/E9 checks. No paid v3 model requests made during implementation.

## Scope limits

The bridge represents every SDK joint-axis subset, with finite or unbounded limits: fixed, continuous/limited hinges, sliders, cylindrical, ball, planar and general D6 joints. Connected free-root assemblies are retained without invented anchors. Closed-loop FK replay has positive and broken-closure regression coverage. Full complex closed-loop geometry/contact acceptance remains unproven. Active spring/motor force equivalence, cloth dynamics, animated shader parameters, UDIM/movie/sequence textures and linked-library packaging are not supported. Strict overlap diagnostics can reject intended penetrations; there is no model-authored collision exemption bypass. Complete bearing retention and internal attachment semantics are not certified. Explicit mass is retained where provided, but inertia is derived from imported geometry and not claimed identical to Blender's collision-shape inertia.

Full complex-asset quality, real model repair convergence, target-simulator readiness and the $1–3 cost objective remain unmeasured. The scripted review test checks control flow, not model visual judgment.

Public method page: https://dashboard.ai-research-wk.com/reports/articraft/articulated-assets-v3-method.html

## Native benchmark bridge corrections (28 September)

The frozen eight-run native-first cohort remains unchanged. During its first mechanical handoff, a valid single-axis GENERIC constraint and distinct Blender names differing by whitespace caused bridge failures. The active source now canonicalizes equivalent fixed/scalar generic constraints without changing the source asset, and uses stable hashed SDK shape names while preserving original object bindings.

Evidence: `bridge_encoding_fix.json`; 39 regression tests, three real GENERIC Blender→SDK→Blender fixture round trips, and the unmodified native scissor-lift Run 1 converted with 109/109 sampled kinematic states reproduced. This diagnostic does not certify collisions or final delivery. Continuous rotation and multiple-DOF GENERIC constraints remain outside this release.

The review/feedback corrections are recorded in `review_feedback_fix.json`: diverse observed-pose sampling replaces start/middle/end aliasing, and mechanical feedback exposes grouped failures before long check-name lists. The final reviewer receives measured joint ranges. The full regression suite now has 44 passing tests. Corrected paid mechanical continuations reuse saved native assets and retain all earlier costs; see `LATEST_REPAIR_BATCH.json`.

Joint parity correction (2026-09-28): continuous sampled angles and per-DOF ranges replace the previous finite scalar-only restriction. Free-root USDZ is in the SDK canonical frame; Blender world placement is retained separately. See `joint_parity_checks/results.json` for actual Blender→SDK→Blender evidence and `joint_parity_tests.log` for regressions. Dense pose sampling is required for turn reconstruction; no guarantee is made for unsampled revolutions.

Evaluated curves/surfaces/text now enter the physical mesh path without changing the source Blender file. See `surface_bridge_fix.json`: native curve/text round trip with preserved material graph identities, UV checks, and three paired renders (maximum mean RGB difference 0.000062 on a 0–255 scale). Numeric physical-mesh normalization is recorded per shape. Failed structural/kinematic gates skip downstream collision work; a passing gate still covers every sampled pose.

Visual/physical separation: optional collision.json preserves complete render surfaces while selecting explicit SDK collision shapes. Decorations require explicit same-body ownership/support declarations; hidden proxies require recorded correspondence, rigidity and explicit body mass. Refer to AUTHORING.md. Existing assets are repaired locally; no full regeneration is required for local defects. Original benchmark failures remain historical results.

Functional acceptance: acceptance_policy.py separates blocking faults from advisory findings; bounded numeric tolerances, reference-contact warnings, small overlap allowances and exact contact_interfaces.json declarations replace the earlier zero-defect contact policy. Full motion/collision coverage is still required for a pass. See functional_acceptance_fix.json for new evidence; earlier benchmark results are not relabeled.
