Files
reverse-engineering-anything/docs/specs/agent-environments/list-lines/plan.md
T
Edgar Arakelyan 4043e71f6c feat(environment): list every entity on a list's whole lines (#5787)
Derive whole-collection membership per checked list line while preserving
recorded membership, counters, source Evidence and independent write claims.

Integrate current main without losing its shared path decoder. Keep later or
ambiguously positioned pages recorded rather than inventing earlier entities.

Validation: 543 focused/adjacent tests, nine README checks, complete static/docs
checks, repeated regression runs, and real retained GitHub-label CLI/MCP
load/reset workflows. An actual Codex session returned the correct facts;
its over-strict grader failure and same-trace semantic verification are recorded.

Evidence and limitations:
https://github.com/morluto/rea/pull/5787#issuecomment-6338446674
Tracking: #6262; feature scope: #4933.

Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
2026-10-22 18:34:56 +08:00

884 B

Implementation plan

  1. Gate. Judge each latest list recording on its own for paging-only query, totals, next page and state order; keep all when every line passes and otherwise name the passing lines in all_record_ordinals; reproduce each line with its own membership.
  2. Counters. Count number-of-items members as item totals.
  3. Consumers. One helper says whether a view lists all on a line; serving, the write gate's list checks and the insert retry use it, and an argument-less call may answer on any such line.
  4. Absences. When a read shows an entity absent, drop it from every write's claim on its collection, so a write left with none no longer counts there.
  5. Tests and docs. Domain and serving tests as the acceptance lists; the membership row of the environment-state docs and the list answer row of the agent-environment docs.