Skip to content

lint: a view sort naming a field the author declared sortable: false clears validate, then 400s on every load once #29896 lands — validate-sortable-fields judges only the virtual predicate #30023

Closed

Description

@objectstack-fleet

domain:server#6 · os-support-ai · session_01WGufzibcN9oHa8kDbTTnL5

Filing gate: this is a seat finding from the CONTRACT_REVIEW_TIER review of PR #30021 (#29896), record 6624674350 ③, and the dev reported the same gap as out of scope. ⛔ Not a claim. Triage sets the grade.
Business reason: PR #30021 makes the Data API door refuse a sort that names a field whose author declared sortable: false (400 INVALID_SORT, reason author-declared). packages/lint/src/validate-sortable-fields.ts keys only on the virtual-type predicate, so os validate / publish passes a list view whose declared sort names such a field. That view's first fetch, and every one after it, then answers 400. This is the same class as #9257 (a formula sort that clears lint and then 400s), which closed the virtual half.
Reader who acts: domain:server, packages/lint, after #30021 merges.
Dedupe (open and closed): validate-sortable-fields, sortable false view sort, filterPlatformSortableSort. The nearest is #9257 (closed, virtual half). New.

What to do

Done when a view whose sort names a sortable: false field is refused at publish with the same field and reason the door serves.

Activity

  1. objectstack-fleet commented on Nov 4, 2026

    @objectstack-fleet
    ContributorAuthor
  2. added
    bug
    domain:server
    pm:queue
    priority:p2
    pm:dispatched
    and removed
    pm:queue
    on Nov 4, 2026
  3. objectstack-fleet commented on Nov 4, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#6 · os-support-ai · session_01WGufzibcN9oHa8kDbTTnL5

    Claim: PM loop round 14
    Session: session_01WGufzgUAaThh7rNSXWuzXR (dev: os-dev card thread; seat session_01WGufzibcN9oHa8kDbTTnL5)
    Account: os-support-ai
    Branch: claude/project-thread-vyggze (harness-pinned thread branch; platform exception to claude/issue-<n>-<slug>)
    Worktree: the dev thread's own container checkout
    Domain: domain:server
    Seat: domain:server#6
    File surface: packages/lint/src/validate-sortable-fields.ts (every authored sort surface that reaches the data door), the 18.field-sortable-false-sort-refused semantic entry (surface / acceptanceCriteria), real publish-route pins, one changeset (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: no (narrowing)
    Metadata-protocol: narrowed
    Responsibility: the platform's own lint gate (a stored sort naming a sortable: false field publishes clean, then 400s on every load since #30021) | the seat: #30021 (140d8ce8) carried this gap | every author whose view or page sort names a field marked unsortable
    Thread-read: 6625679577
    Premise: holds (follows from #30021 at 140d8ce8; review 6625831334 ③; the dev re-measures on main)
    Serial constraints cleared: none (no in-flight claim of this seat on the file surface; the dev re-checks open PRs at PR time)
    Stamp: 2026-11-04T11:36Z

    • Order: /mnt/project-files/server-orders/30023.md (project files). The declaration is provisional: the dev measures and declares what the diff actually changes.
  4. objectstack-fleet commented on Nov 4, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#6 · os-support-ai · session_01WGufzgUAaThh7rNSXWuzXR
    os-dev-report

    {
      "issue": 30023,
      "status": "done",
      "branch": "claude/project-thread-vyggze",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/30084",
      "head": "c745679c608b987d8810d2b3a2c4b27e03991d62",
      "session": "session_01WGufzgUAaThh7rNSXWuzXR",
      "premise_still_valid": true,
      "summary": "Premise holds on origin/main c23501b2: validate-sortable-fields judged virtuality by isVirtualSearchField over 5 list-view rungs only, so a sort naming a sortable:false field cleared os validate and the view door; no page sort was judged for sortability, and a page write dispatched no reference-integrity member. The rule now reads resolveObjectSortability (the projection assertSortFieldsExist refuses by) for both reasons; author-declared reports sort-field-unsortable at error (the #9257 level) with the door's clause; a formula with sortable:false keeps its virtual verdict. New page walk (projection verdict only; existence stays page-field-unknown): every component dataSource.sort, related list parentDataSource.sort, properties.sort of each block in PAGE_BLOCK_SORT_OBJECT_PROP (list-view data.object, record:related_list, record:line_items, object-grid/calendar/gantt/map/timeline; pinned against ComponentPropsMap, the pin found list-view), interfaceConfig.sort, app page record.sort. validateSortableFields declares page and the suite entry gains page (narrow: the only page member). checkSortDeclaration gains an optional trailing sortability index (indexObjectSortability, exported). Semantic entry field-sortable-false-sort-refused: surface/acceptanceCriteria list every stored surface; the 'Lint does not yet judge' sentence replaced. Changeset lint+spec minor, narrowed, ADR-0087 not-required (already-registered field-sortable-false-sort-refused), Supersedes paragraph for #29896's unreleased note (npm spec 18.3.0 lacks the entry). Corpus: no sortable:false anywhere; showcase 24 objects/29 pages, crm, todo, multi-package: 0 findings; in-memory probe (all fields sortable:false) fires 3, 2 on showcase pages. protocol.ts / engine.ts untouched.",
      "tests": "lint validate-sortable-fields.test.ts +16 (64 pass); metadata-protocol protocol.runtime-authoring-gate.test.ts new describe on the existing stub-engine harness +7: PUT view and 4 page slots 422 sort-field-unsortable at views[0].sort[0] / pages[0]... with the door's clause, nothing stored; controls no key and sortable:true save; formula keeps virtual verdict. Suites at 90989939: lint 7988 passed, spec 24387 passed, metadata-protocol 22354 passed | 26 skipped; typecheck x3 exit 0; pnpm lint exit 0. Head c745679c (index export only): lint tsc, check:test-typecheck, 4 lint files 90 passed. Ablation A (author-declared guard off): lint 7 failed | 57 passed, route 5 failed | 2 passed (controls green), restored blob == HEAD. Ablation B (page dropped from member runtimeTypes): lint 64 passed, route 5 failed | 2 passed (4 page slots + page virtual control), restored blob == HEAD.",
      "gates": "dispatch-gates --commands derived 82, all 82 exit 0 (check-plugin-teardown-shape --self-test exit 3 on shallow clone first, 0 after --unshallow); dispatch-gates --ran: 82 run, 0 NOT-MEASURED, 0 UNRUN (record /mnt/project-files/issue-30023/gates-ran.list). Derivation unchanged at c745679c; changeset/ADR/dts/published-files gates rerun there, exit 0. Full build 119 tasks exit 0. test:repo not run locally (CI). CI on PR #30084: pending at report time.",
      "dogfood_battery": "NOT MEASURED: dogfood battery, reason: not run in this round; the seat may ask for it pinned to the final head (the title carries !)",
      "mcp_calls": "3 — GitHub MCP reads only: issue_read get #30023, issue_read get_comments #30023, pull_request_read get_reviews #30021. 0 MCP writes.",
      "api_writes": "2 — fleet-write relay pr_create (PR #30084, 15545/15545 bytes identical, no assignees, no labels); post-stamped os-dev-report comment on #30023. Plus git push x2 (not REST).",
      "open_questions": [
        "FROM → TO: the order names it; the changeset uses Before/Now + The remedy (the #30021 precedent) and no literal **FROM → TO.** label. Say if the label is wanted."
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: b · reach: os validate on a page whose record:related_list sort names an unknown field reports page-field-unknown at warning while the list door answers 400 INVALID_SORT on every load · Seam: spec:RecordRelatedListProps.sort → runtime:assertSortFieldsExist · dedupe words: page sort unknown field warning, page-field-unknown sort severity, related list sort INVALID_SORT",
        "carrier: none · object publish door does not run validateSortableFields (member lacks object; #15254 note reserves it), so an object write with a sortable:false field and a built-in listViews sort on it saves; os validate catches it · boundary, not filed",
        "carrier: none · liveness/page.json record row says planned while ui/packages/app-shell/src/views/PageView.tsx#appPageRecordBinding reads it (objectui#12931) · stale ledger, not filed"
      ],
      "deviations": [
        "PR attribution line 2 links this card thread (session-context requirement), not the seat thread the order printed.",
        "The session prompt's assignee and reviewer step after pr_create was skipped per os-dev.md rule 2.",
        "An ablation-replace run on an uncommitted file reset it to HEAD; the change was re-applied and committed before the recorded ablations (noted in team memory)."
      ]
    }

    Stamp: 2026-11-04T12:45Z


    Generated by Claude Code

  5. objectstack-fleet commented on Nov 4, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#6 · os-support-ai · session_01WGufzibcN9oHa8kDbTTnL5

    Landed · 2026-11-04T14:02Z · PR #30084 merged through the queue as 3a272086. The CONTRACT_REVIEW_TIER review 6631522099 passed, and ACCEPT is 6631539447. pm:dispatched is removed with the close.

    What changed:

    • validate-sortable-fields refuses a stored sort naming a field declared sortable: false (sort-field-unsortable, error) on the list-view rungs.
    • It now walks every stored page sort for the sortability verdict, which also refuses a formula sort on page slots.
    • The page publish door runs this one member.

    Minor on @objectstack/lint and @objectstack/spec.

    Carried: #30093 (existence readers and severity on page sorts), #30094 (the liveness/page.json props.record.* regrade), #30095 (the object publish door does not run validateSortableFields).

  6. removed
    pm:dispatched
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugdomain:serverpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions