Skip to content

feat(census)!: list what every object references and the hierarchy holding it - #61

Merged
nichinichisou0609 merged 1 commit into
redesign/depotfrom
redesign/census-refs
Oct 14, 2026
Merged

nichinichisou0609 merged 1 commit into
redesign/depotfrom
redesign/census-refs

Conversation

@nichinichisou0609

Copy link
Copy Markdown
Collaborator

Summary

  • The census (nnnotes.census/2, unity.census version 3) reads each object's typetree and records refs (the object ids its references name) and unit (the root GameObject of the prefab hierarchy holding it). A request's reachable objects follow from censuses alone, as a superset of what the unity.export documents reference.
  • Shipped MonoBehaviour type trees are selected by the stored type hash. The census of a built-in APK file reads with them, and atom typetrees names them in its key.
  • unity.export contexts key shipped type trees by type hash.

Tests

  • Census tests rewritten on the fake Unity environment: units, references, binding scripts, shipped trees, stage key.
  • Export tests cover hash-keyed shipped trees, including a tree that does not fit its object.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

…lding it

The census (document nnnotes.census/2, stage version 3) reads every object's
typetree and records two new fields per object: `refs`, the object ids its
references name, and `unit`, the root GameObject of the hierarchy whose prefab
holds it. The objects reachable from a request therefore follow from censuses
alone, before anything is converted; they are a superset of the references in
the unity.export documents.

Shipped MonoBehaviour type trees are now selected by the type hash the file
stores for an object. The census of a built-in file of the APK reads its
MonoBehaviours with them and names them in its key (atom `typetrees`).

BREAKING CHANGE: census documents are nnnotes.census/2, and the unity.export
context keys shipped type trees by type hash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nichinichisou0609
nichinichisou0609 merged commit 2462fd7 into redesign/depot Oct 14, 2026
8 checks passed
@nichinichisou0609
nichinichisou0609 deleted the redesign/census-refs branch October 14, 2026 18:54
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