VSS2-04 (SLM-68): semantic opaque regions and hygienic splicing#346
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reached
Next review available in: 4 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…(SLM-68) VSS2-04: make user-defined/template regions first-class semantic objects rather than absent text. Adds a Torch-free opaque_regions module (opaque-region IDs + conservative summaries + hygienic splice/verify), a ProgramSpec.opaque_regions field, and pack slots wiring openui region extraction/realization. The structural solver operates on stable opaque-region IDs; the final pass inserts supplied values through the pack, canonicalizes, and re-verifies. Verified locally (opaque-region + progspec + solver tests pass, no regression). No ship claim.
30fa6d3 to
7c4ec2a
Compare
Closes SLM-68.
What changed
src/slm_training/dsl/opaque_regions.pywithOpaqueRegionKind,OpaqueRegionSummary,OpaqueRegion,OpaqueRegionBinding,OpaqueRealizationResult, andrealize_opaque_regions.ProgramSpecwithopaque_regions; historical records without the field still round-trip.DslPackslotsopaque_region_extractor,fragment_parser,region_splicer; registered an OpenUI extractor that classifiesCONTENT_PROPSplaceholders (e.g.:hero.title) asCONTENT_VALUEregions.tests/test_dsl/test_opaque_regions.py.docs/design/vss2-04-opaque-regions.md.Verification
ruff checkpasses on touched files.pytest tests/test_dsl/test_opaque_regions.py tests/test_data/test_progspec.py tests/test_dsl/test_pack.py -q→ 45 passed.python -m scripts.repo_policyok.git diff --checkclean..githooks/check-changedpasses for the changed files.Honesty
Wiring / fixture evidence only. No model, checkpoint, eval run, or ship gate is claimed.