You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prototype recursive rfl::TaggedUnion $defs cycle-breaking in JSON Schema #103
How should rfl::json::to_schema break $defs recursion cycles for recursive rfl::TaggedUnion types (such as AST nodes referencing themselves via rfl::Box<T> or indirect containers) without requiring manual ReflectionType wrapper structs?
Scope trim: Cross-field struct invariants (left < right, mutual exclusion, schema dependentRequired/oneOf from osmium-tool#3) were explicitly ruled out of scope on Lane 4 Map.
Prototype & Measurement Plan
Prototype on:showcase/all-lanes — emit cycle-safe $ref entries in $defs for recursive rfl::TaggedUnion graphs.
Measure against real Showcase Migrations: Verify recursive TaggedUnion schema generation cleanly emits valid Draft 2020-12 $defs without manual ReflectionType wrapper structs (validating against solidity#3 Yul AST fixtures).
Judges & landing: Run Judges (gemini-4-neon + claude-opus-5-5 high via antigravity delegates) on the prototype diff and measurements; if green, coordinator's call to land on showcase/all-lanes.
changed the title [-]Prototype move-only rfl::Box inside recursive rfl::TaggedUnion and evaluate cross-field struct invariants[/-][+]Prototype recursive rfl::TaggedUnion $defs cycle-breaking in JSON Schema[/+]on Nov 27, 2026
Landed on showcase/all-lanes at b73c8aea (dual-Judge approved by claude-opus-5-5 high + gemini-4-neon high; 467/467 targets 0 warnings, 1,129/1,129 CTests).
Implemented JSON Schema $defs cycle-breaking for recursive rfl::TaggedUnion in Parser_default.hpp (named subclasses & annotated/SchemaName-overridden bare aliases via ParserTaggedUnion::to_schema_body) and ParserTaggedUnion.hpp (bare recursive aliases via (_definitions, name)-keyed thread_local active set with noexcept iterator RAII guard; non-recursive bare TaggedUnion stays inline).
Verified with direct recursion (rfl::Box & std::vector), mutual recursion (Stmt <-> ValueExpr), named subclasses with SchemaName, annotated bare aliases, and non-recursive inline preservation in tests/json/test_schema_ext_and_recursive_tu.cpp.
Activity
clockblocker commentedon Nov 27, 2026
Delta & Scope Split (
solidity#3,osmium-tool#3):rfl::Box<T>copy rejection bug inParserTaggedUnion::wrap_if_necessaryis now tracked as a directready-for-agentbugfix: rfl::TaggedUnion: fix move-only / rfl::Box rejection in ParserTaggedUnion::wrap_if_necessary.rfl::TaggedUnion$defscycle-breaking without forcing manualReflectionTypewrapper structs (clockblocker/solidity#3), andleft < right, mutual exclusion, schemadependentRequired/oneOf) againstosmium-tool#3.[-]Prototype move-only rfl::Box inside recursive rfl::TaggedUnion and evaluate cross-field struct invariants[/-][+]Prototype recursive rfl::TaggedUnion $defs cycle-breaking in JSON Schema[/+]feat(schema,enum): implement Batch 2B (#115, #100, #101, #103)
fix(schema,enum): resolve all dual-Judge blockers on Batch 2B
clockblocker commentedon Nov 27, 2026
Landed on
showcase/all-lanesatb73c8aea(dual-Judge approved byclaude-opus-5-5high +gemini-4-neonhigh; 467/467 targets 0 warnings, 1,129/1,129 CTests).$defscycle-breaking for recursiverfl::TaggedUnioninParser_default.hpp(named subclasses & annotated/SchemaName-overridden bare aliases viaParserTaggedUnion::to_schema_body) andParserTaggedUnion.hpp(bare recursive aliases via(_definitions, name)-keyedthread_localactive set withnoexceptiterator RAII guard; non-recursive bareTaggedUnionstays inline).rfl::Box&std::vector), mutual recursion (Stmt <-> ValueExpr), named subclasses withSchemaName, annotated bare aliases, and non-recursive inline preservation intests/json/test_schema_ext_and_recursive_tu.cpp.