feat: implement render engine with resolution decay (#39) #41
Closed
xiaoju
wants to merge 1 commits from
fix/39-render-resolution-decay into main
pull from: fix/39-render-resolution-decay
merge into: uncaged:main
uncaged:main
uncaged:fix/90-list-meta-schema
uncaged:feat/82-schema-p3
uncaged:feat/82-schema-p2
uncaged:fix/83-put-hash-pipe
uncaged:fix/82-meta-schema-nested-validation
uncaged:feat/82-schema-p1-leaf-constraints
uncaged:fix/72-template-envelope
uncaged:fix/71-refs-walk-var-envelope
uncaged:fix/70-simple-envelope
uncaged:fix/75-output-schemas
uncaged:fix/74-remove-cat-schema
uncaged:fix/73-auto-bootstrap
uncaged:fix/66-e2e-snapshot-tests
uncaged:fix/e2e-reporter-containerName
uncaged:fix/51-schema-validation
uncaged:fix/55-store-path-validation
uncaged:fix/46-phase4-cleanup
uncaged:fix/40-liquidjs-integration
uncaged:fix/38-template-cli
uncaged:fix/39-render-rebase
uncaged:fix/37-builtin-schema-aliases
uncaged:fix/34-cli-var-rewrite
uncaged:fix/32-variable-model-refactor
uncaged:fix/23-gc-integration
uncaged:fix/22-tag-label-query
uncaged:fix/27-phase1-code-style-fixes
uncaged:fix/24-ucas-alias
uncaged:fix/21-variable-crud
uncaged:fix/tsconfig-workspace-paths
uncaged:fix/align-versions-0.5.0
uncaged:fix/15-self-validating-meta-schema
uncaged:issue-11-remove-store-list
uncaged:feat/12-no-null-type
uncaged:feat/9-list-by-type
uncaged:cli/global-store-path
1 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
ac87d2ccb3 |
feat: implement render engine with resolution decay (#39)
Implement Phase 3: render core engine with resolution-based decay and default YAML rendering. Core Features: - Resolution decay model: child nodes receive resolution = parent × decay - Epsilon threshold: nodes with resolution ≤ epsilon render as cas:<hash> - Default YAML output format with 2-space indentation - Cycle detection via visited set - Floating-point tolerance for epsilon comparisons Implementation: - packages/json-cas/src/render.ts: Core render function - packages/json-cas/src/render.test.ts: 38 comprehensive tests - packages/cli-json-cas: ucas render command with --resolution, --decay, --epsilon flags - CLI integration tests for render command Tests: All 276 tests pass (38 new render tests, 3 CLI tests) Build: Clean compilation with tsc Lint: Passes biome check Fixes #39 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |