Skip to content

client.lists: rows like any read, no walk to List, and its documentation corrected - #71

Merged
jallers merged 6 commits into
masterfrom
claude/lists-corrections
Nov 27, 2026
Merged

jallers merged 6 commits into
masterfrom
claude/lists-corrections

Conversation

@jallers

@jallers jallers commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Up to date with master, which now has the two pull requests this was stacked on; the diff is this change alone. Towards alpha.13; the version is not bumped.

A review of what alpha.12 shipped for client.lists found one real fault, three wrong statements in its documentation, and one hazard. Each correction below was then proved against an instance.

Breaking

  • Rows are translated like any other row. The endpoint sends every value as a string, and alpha.12 passed that on: a status's Order was "115" from client.lists and 115 from client.query, against the rule that a row has one shape on every read (spec 000 §2). Now a number is a number, a Boolean a Boolean, a relation a Ref or null. A multi-value relation can no longer be selected; a date is still refused, because the endpoint writes it in the server's culture format. Migration: drop a Number(row.Order) or a comparison with "True".
  • /wire's validValues takes sort as one attribute name, not a list. The endpoint sorts by one attribute, ascending, and ignores without an error a name the list type does not have.

Fixed

  • A list type is told from its own definition. alpha.12 walked up the type's ancestors to reach List, which cost a type load and made a test serving captured meta.v1 types serve Status as well as StoryStatus. Each inherited attribute already names the ancestor that defines it, so a type with an attribute inherited from List is a list type. A unit test checks that mark against every type in the metamodel, both ways. It was also checked against four product releases' metamodels, custom dropdowns included: no list type sits more than two levels below List, and every one carries the mark.
  • An empty answer could be the server giving up. When the server cannot work out its rule for lack of context, it answers no values and no error. client.lists always sends the project. For a new regression suite, whose rule goes through its regression plan, it now refuses the call without context: { RegressionPlan } instead of answering []. (The product gives a regression suite no list attribute of its own; this matters for a custom dropdown on one.)
  • Three statements in alpha.12's documentation were wrong:
    • "A team's process replaces the scheme's statuses only." The team's own values replace the scheme's for any list the team owns values of. alpha.12's fixture team owned only statuses.
    • "The project's scheme decides." True for work items, issues, requests, goals, strategic themes, retrospectives, environments, regression tests and regression plans. For members, budgets, projects, iterations, change sets, attachments and build runs every active value is valid, with no scheme involved.
    • The team step exists only on an instance with team workspaces enabled, which was not said.
  • What a write enforces was implied to be more than it is, and is now stated and tested: only the Status of a story or defect, and only against its team. Any other list value, an inactive status, and a status outside the scheme were accepted. Moving a story or defect to another project or team clears a status that is not valid there, with no failure, unless the same write sets one. A team's workflow rules can still refuse a status the list offers. The README says this is what one release does and not a contract: the product has added enforcement over time, so the list is the rule to follow.

Added

  • context on the type-and-scope form: any attribute of the asset to be.
  • team: null on the asset form: as if the asset were on no team.
  • The type loads, and the requests for several attributes, go out together, as on every other read. alpha.12 sent them one after another.

Removed from the documentation

The README and the service's header no longer discuss an instance without the endpoint or the absence of a fallback. alpha.12's published changelog entry is left as it was written.

A decision for the reviewer

Sending the valid-values requests together is my choice. alpha.12 sent them in series, on the argument that the testing instance is shared; that is a poor reason for how a published client behaves, and every other read here already goes out in parallel. It is one line to reverse.

Verification

  • npm run verify at the head commit: 297 unit tests in 37 files, all passing.
  • The integration tier against the API-testing instance, with the list-values suite at 14 tests: all passing, 3 skipped by design. New live proofs, each on fixtures the suite creates and deletes by exact OID:
    • a team that owns a priority is offered that priority and not the scheme's, while its Status still comes from the scheme; team: null returns the scheme's values;
    • Order from client.lists equals Order from client.query for the same status, as a number;
    • with no scope in the context the endpoint answers 200 and no values; a sort the list type lacks is ignored;
    • on a write: three kinds of out-of-list Priority accepted, an inactive status accepted, three team mismatches refused with Violation'PrimaryWorkitemCannotHaveInvalidStatus;
    • a status outside the scheme is cleared, with no failure, when the story moves to a team, and a status the scheme selects survives the same kind of move.
  • The full tier was last run before the final commits and the merge of master; those add the two write-side tests (run on their own, passing) and wording.

Consumers

Two consumers adopted alpha.12's string values. Both checked this change against their code and report nothing breaks: neither reads Order from a client.lists row. Both will drop the Status and List types from their captured metadata fixtures, which are no longer asked for.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Rgicmffzzwb2CzyeDSEhBm

…ir own definition, and its documentation corrected

The endpoint sends every value as a string and alpha.12 passed that on,
so Order was "115" here and 115 from client.query. Values are now
translated by the list type's schema. A list type is recognised by the
attributes it inherits from List, with no walk up its ancestors. The
type loads and the requests go out together. The type-and-scope form
takes more context, and a new regression suite is refused without its
plan, since the server answers "no values" when it cannot work its rule
out. team: null asks as if on no team.

Corrected: a team's own values replace the scheme's for any list, not
for Status only; the scheme decides for some asset types and not for
others; the team step needs team workspaces; sort is one attribute.
Each proved live on fixtures of the suite's own.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rgicmffzzwb2CzyeDSEhBm
Only the Status of a story or defect, against its team. Any other list
value, an inactive status and one outside the scheme are accepted; a
move clears a status that is not valid in the new place.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rgicmffzzwb2CzyeDSEhBm
…s, not a contract

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rgicmffzzwb2CzyeDSEhBm
…es endpoint

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Rgicmffzzwb2CzyeDSEhBm
@jallers
jallers merged commit b8c380b into master Nov 27, 2026
4 checks passed
@jallers
jallers deleted the claude/lists-corrections branch November 27, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants