Sample
Prove BufferGeometry.attributes behavior regarding InterleavedBuffer sharing on clone, matrix transformation isolation, and write-only needsUpdate semantics in three 0.185.1.
sha256:ccf77a5f7c1d7339622c21cac780775cb81b2a9d16de462b90eb25a4a88382df
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- node
- Operating system
- linux
- Architecture
- x64
- Runtime
- node
- Language
- node
- Package manager
- npm
Verification-run environments
- Execution context
- node 22
- Operating system
- linux alpine · musl
- Architecture
- x64
- Runtime
- node 22
- Language
- javascript
- Package manager
- npm
- Execution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-18
Case
- Goal
- Prove BufferGeometry.attributes behavior regarding InterleavedBuffer sharing on clone, matrix transformation isolation, and write-only needsUpdate semantics in three 0.185.1. HOW
- Packages
-
three 0.185.1
- Environment
- node
- Created
- 2026-08-18T00:48:17Z
Commonly assumed
Cloning an InterleavedBufferAttribute preserves its interleaved layout and BufferAttribute.needsUpdate is a readable boolean flag.
The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.
Contract
- BufferGeometry.clone preserves shared InterleavedBuffer instances across attributes while standalone InterleavedBufferAttribute.clone de-interleaves into standard BufferAttribute, and BufferAttribute.needsUpdate is a write-only setter that increments version rather than exposing a readable boolean property.
- BufferGeometry.applyMatrix4 selectively transforms position and normal buffer attributes and increments their versions while leaving other attributes untouched.
- BufferGeometry.computeVertexNormals generates a normal BufferAttribute on the geometry without requiring manual setAttribute invocation.
- Direct dictionary assignment to BufferGeometry.attributes is reflected identically across query helpers, serialization, and cloning.
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- node 22 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-18 · ed25519:d91480838ac982c9