Distinguish metadata slice views from cycles

This commit is contained in:
2026-11-26 01:30:49 +00:00
parent b6f04297d4
commit 97bcf8cae6
4 changed files with 78 additions and 3 deletions

View File

@@ -215,6 +215,12 @@ No public grammar/documentation change.
## Stage 4 — Distinguish Finite Slice Views From Cycles
**Completed.** Metadata recursion tracks each nonempty slice's visible length
with its type and pointer, and skips cycle tracking for empty views. Regressions
reproduced the shared-prefix failure and cover detached sharing, nil/empty views,
and actual map and slice cycles; existing tests cover concrete containers. Both
specified package tests pass. No follow-up remains.
**Coverage:** CAT-013. **Prerequisites:** none.
In source `metadata.go`, include visible length in active slice identity with