The GitHub Actions job "CI" on 
tvm-ffi.git/main-dev/2026-08-31/refl_type_final_polymorphic has succeeded.
Run started by GitHub user Seven-Streams (triggered by Seven-Streams).

Head commit for run:
4dca0e814e663cf0e26405d3b8263d0944dcb3bf / yuchuan <[email protected]>
[CORE] Publish type finality from ObjectDef

`Class::_type_final` never reaches the runtime: `TVMFFITypeInfo` and
`TVMFFITypeMetadata` expose the type index, depth, ancestors, fields, methods
and total size, but nothing about whether a class admits subtypes — the
child-slot arguments stay inside the registry. A binding generator that wants
to store an object by value has no way to ask.

Every `ObjectDef<Class>` now registers `__ffi_type_final__` as a bool type
attribute, reusing the mechanism `RegisterTypeAttrValue` already provides, and
`ObjectInfo.is_final` surfaces it to the stub generator. It stays `None` for a
type registered without an `ObjectDef` (e.g. `ffi.Object`), so a registered
`False` remains distinguishable from "never published".

Signed-off-by: yuchuan <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01F1LHd8fc6UFbnoa3U4dzDf

Report URL: https://github.com/apache/tvm-ffi/actions/runs/33424673705

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to