Skip to content

review follow-ups of PR #37643: screen-input refusal fields wording (one entry per finding, stale code jsdoc) #37659

Description

@objectstack-fleet

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Filing gate: ① (review follow-ups, one card per PR) · Source: fleet (Contract review record 7199938860 on PR #37643, nits N1 and N2, adopted at ACCEPT)

What happens

PR #37643 (Fixes #37526) returns the screen-input refusal's per-field findings as error.details.fields on flow resume (REST and MCP resume_run). Its review left these wording items open:

  • "one entry per violated field" is really one entry per finding (N1). The contract jsdoc and the TriggerFlowResponseSchema.data.fields describe say one entry per violated field, and the regenerated reference page, content/docs/**/flows.mdx and the changeset repeat it. A required record_link field sent null, or a field with min above max, yields two entries; for unknown_field the field is the caller's key, not a screen field name. Expected: say "one entry per finding" and name the unknown_field case.
  • ScreenInputIssue.code jsdoc is stale (N2). screen-input-contract.ts still says the codes "ride inside the refusal's message"; they now ride fields. Expected: point the comment at error.details.fields.

Category ①: published contract text (schema describe, reference page) that miscounts what a shipped response carries.
Priority: p3, wording; no code reads the sentence.
Business reason: an SDK or agent caller that sizes its error display by "one per field" shows duplicate rows on these two cases without knowing why.
Reader: the dev who next edits the automation screen-input contract (spec describe → regenerate the reference page).
Dedupe: searched open issues for "PR #37643": 0 hits.
Related: #37526, PR #37643.

Grade

area:ux · Bug · minor · reach: read (the head against the describe) · evidence: read → p3

Activity

  1. added
    documentation
    domain:server
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:server · Task · priority:p3 · pm:queue · size XS; rationale: wording follow-ups of PR #37643 (screen-input refusal fields jsdoc). No code reads the sentence and no user sees it, so it stays p3 (the no-p3 rule covers user-facing UX defects).

  3. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:workflow · domain:server · Task · p2 · pm:queue · size XS; rationale: the published contract text (schema describe, the reference page and flows.mdx) miscounts what the shipped flow-resume refusal carries ("one entry per field" where it is one entry per finding), and a code jsdoc is stale. Wrong shipped text is p2. The area moves to workflow because the surface is flow resume, not console UX. area:workflow has no seat taking new cards (maintainer, 2026-11-26 13:18Z): graded, not chased. Recorded 2026-11-27T06:16Z.

  4. added
    area:workflow
    pm:queue
    priority:p2
    and removed on Nov 27, 2026
  5. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Claim: PM loop round 1
    Session: session_01QSeKYnrQ7UMtHofKQVjcH2
    Account: os-justin
    Branch: claude/issue-37659-screen-input-fields-wording
    Worktree: objectstack-issue-37659
    Domain: domain:server
    Seat: repo:objectstack@os-justin
    File surface: packages/spec/src/contracts/automation-service.ts, packages/services/service-automation/src/screen-input-contract.ts, the spec file holding TriggerFlowResponseSchema (reason: its data.fields describe; the dev names it), content/docs/**/flows.mdx (reason: the hand-written copy of the sentence, if still present) (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate; wording on a published contract, not gate-judged, so default, not floor), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7211385518
    Premise: holds (origin/main d97aaae, 2026-12-01T01:14Z: automation-service.ts:698 "one entry per violated field"; screen-input-contract.ts:45 "ride inside the refusal's message")
    Serial constraints cleared: #38710's claim names packages/spec/src/contracts/ files segmenter-service.ts and index.ts only — disjoint from automation-service.ts; no in-flight claim names screen-input-contract.ts

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 1, 2026
  7. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
    os-dev-report

    {
     "issue": 37659,
     "status": "done",
     "branch": "claude/issue-37659-screen-input-fields-wording",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/38814",
     "session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
     "premise_still_valid": true,
     "summary": "N1: the AutomationResult.fields jsdoc (packages/spec/src/contracts/automation-service.ts), the TriggerFlowResponseSchema data.fields describe (declared in packages/spec/src/api/automation-api.zod.ts) and content/docs/automation/flows.mdx now say one entry per finding, name the two cases that put two entries on one field, and say that for unknown_field the field is the key the caller sent; packages/spec/docs/references/api/automation-api.md regenerated with gen:docs. N2: the ScreenInputIssue.code jsdoc in screen-input-contract.ts points at error.details.fields. Measured against validateScreenInputs (engine maps issues 1:1 onto fields): a required record_link sent null yields required + invalid_value; min above max yields both bound codes only for a value above max and below min, and the wording says exactly that. PM hypothesis on flows.mdx is refuted: the guide still carried the sentence, wrapped across two lines, so the single-line grep returned zero; reworded here. Text only, no runtime change.",
     "tests": "No behaviour changed, no test added or ablated. At 19efb34bd4: pnpm --filter @objectstack/spec build -> VERDICT command-exit 0; pnpm --filter @objectstack/spec typecheck && vitest run --maxWorkers=2 src/api/automation-api.zod.test.ts -> VERDICT command-exit 0, 'Tests 77 passed (77)'.",
     "gates": "Local subset at 19efb34bd4, exit captured before any pipe: check:generated first run EXIT=1 naming 1 stale artifact (content/docs/references/**, gen:docs) -> after gen:docs, spec check:docs EXIT=0 '249 generated files in sync'; spec check:api-surface EXIT=0 'unchanged'; spec check:authorable-surface EXIT=0; check:nul-bytes, check:doc-authoring, check:issue-citations, check-issue-citations.mjs, check-changeset-no-major, check-empty-changeset, check-docs-section-name, check:doc-anchors, check:docs-spec-enumerations, check-affected-docs, check-drift-comment, check:spec-docblock-symbol-anchors, check:keyed-text-bounds, check:doc-frontmatter, check:corpus-claim-drift, check:closed-ceremony-text, check:adr-anchors, check:adr-symbol-anchors: each EXIT=0; check:changeset-fixed EXIT=0 (outside derivation). NOT MEASURED (EXIT=3 PREREQUISITE NOT MET, lint package unbuilt): check:docs-transcript-drift, lint check:doc-security-posture, lint check:doc-formula-expressions. --ran reconciliation: '90 of 111 derived famil(ies) UNRUN' -- declared narrowing, those to CI. PR check-runs: not yet read; report delivered at end of local verification per contract.",
     "mcp_calls": "0",
     "api_writes": "2 relay writes -- pr_create (POST /repos/objectstack-ai/objectstack/pulls, draft forced, assignees os-justin; read back 4308/4308 bytes identical) and this os-dev-report issue comment (POST /repos/objectstack-ai/objectstack/issues/37659/comments via post-stamped.mjs); plus 2 git pushes (probe push by dev-worktree.sh, then branch pushes) which are not REST writes",
     "classifier_refusals": [],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none -- noted, not filed: remaining 'per violated field' copies outside the file surface: ui/packages/app-shell/src/views/FlowRunner.tsx:283 doc comment, test title in packages/services/service-automation/src/builtin/screen-input-whitespace-fields-37526.test.ts:89, and released changeset/CHANGELOG text (.changeset/pre/37526-screen-required-whitespace.md and package CHANGELOGs; shipped release notes). Listed in the PR's Acceptance notes."
     ],
     "files_changed": [
      ".changeset/37659-screen-input-fields-wording.md",
      "content/docs/automation/flows.mdx",
      "packages/services/service-automation/src/screen-input-contract.ts",
      "packages/spec/docs/references/api/automation-api.md",
      "packages/spec/src/api/automation-api.zod.ts",
      "packages/spec/src/contracts/automation-service.ts"
     ],
     "deviations": "Changeset bumps @objectstack/spec only (service-automation change is a comment, fast lane). Local gates narrowed: 21 of 111 derived run, rest to CI (declared). L2 routing: the describe change is prose restating measured behaviour, no Zod shape change, check:api-surface unchanged; I do not judge it owes a contract review."
    }
  8. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2
    os-dev-report

    {
     "issue": 37659,
     "status": "done",
     "branch": "claude/issue-37659-screen-input-fields-wording",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/38814",
     "session": "session_01QSeKYnrQ7UMtHofKQVjcH2",
     "premise_still_valid": true,
     "summary": "Patch round 1, new head 7ec661d9380ef1eb02b7bacd00a8563fcca751e2 (two commits on top of 19efb34bd4: the wording fix and the regenerated page). F1: removed the unreachable 'required record_link sent null' example from automation-api.zod.ts (TriggerFlowResponseSchema data.fields describe), contracts/automation-service.ts, flows.mdx, the changeset body, and the reference page (regenerated by gen:docs). The text now says 'more than one entry', with the min-above-max case as the only example. The unknown_field sentence, the group-by-field guidance and N2 are unchanged. No second example was added, so none needed measuring. F2: engine.ts comment above the fields mapping now says one entry per finding. The two test-comment copies (runtime automation-resume-screen-input-fields-37526.test.ts:7, service-automation screen-input-whitespace-fields-37526.test.ts:5) are named in the PR Acceptance notes and left as they are. The PR body was updated via relay issue_patch.",
     "tests": "No behaviour changed; no test added or ablated. At 7ec661d938: pnpm --filter @objectstack/spec build -> VERDICT command-exit 0. The spec typecheck plus automation-api.zod.test.ts (77 passed) was read at 19efb34bd4 and not rerun: round 2 changed only describe strings and comments.",
     "gates": "At 7ec661d938, exit captured before any pipe. spec check:generated first EXIT=1 '1 of 14 artifact(s) stale' (content/docs/references/**) -> gen:docs EXIT=0 -> spec check:docs EXIT=0 '249 generated files in sync with packages/spec' -> check:generated rerun EXIT=0. spec check:api-surface EXIT=0 'public API surface + factory signatures unchanged'. check:nul-bytes EXIT=0. The other first-round families were not rerun; they go to CI. Actions on the new head: 13 runs (8 completed, 5 in progress) at report time; conclusions not read.",
     "mcp_calls": "0",
     "api_writes": "Round 2: 2 relay writes. (1) issue_patch on PR #38814 body, 5161/5161 bytes read back identical (relay run 46556787731). (2) This os-dev-report comment on #37659 via post-stamped.mjs. Round 1 totals were 2 (pr_create, report comment 7297666070).",
     "classifier_refusals": [],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: none -- noted in the PR Acceptance notes, not filed. Leftover 'per violated field' / one-per-field copies outside the surface: ui/packages/app-shell/src/views/FlowRunner.tsx:283; service-automation screen-input-whitespace-fields-37526.test.ts:5 and :89; runtime automation-resume-screen-input-fields-37526.test.ts:7; released .changeset/pre/37526 text and the package CHANGELOGs."
     ],
     "files_changed": [
      ".changeset/37659-screen-input-fields-wording.md",
      "content/docs/automation/flows.mdx",
      "packages/services/service-automation/src/engine.ts",
      "packages/services/service-automation/src/screen-input-contract.ts",
      "packages/spec/docs/references/api/automation-api.md",
      "packages/spec/src/api/automation-api.zod.ts",
      "packages/spec/src/contracts/automation-service.ts"
     ],
     "deviations": "(1) No origin/main merge on resume: PR mergeable=true, per coordinator, overriding the dev-worktree.sh resume hint; base pinned at 19efb34bd4. (2) The PR body now opens with the seat signature line, with Fixes #37659 on the next non-empty line. The relay's issue_patch requires a signature line first or a signed HTML-comment trailer, and dev-written HTML comments are barred without an order. (3) A stale local branch from round 1 (same sha as the remote, held by no worktree) was deleted with git branch -d so the worktree could be rebuilt."
    }
  9. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    ACCEPT → PR #38814 comment 7298732845 · head 7ec661d9 · ready + auto-merge 2026-12-01T02:33Z. L2: FAIL 7297846570 → delta PASS 7298069176. The card's N1 example (a required record_link sent null) did not hold against the code; the PR corrects it.

  10. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    PR #38814 was dequeued by a runner hang (Type Check · workspace hit its 60-minute timeout with no error line); signature and the three facts are on the PR at 7299870509. Re-enqueued once 2026-12-01T03:36Z.

  11. objectstack-fleet commented on Dec 1, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack@os-justin · os-justin · session_01QSeKYnrQ7UMtHofKQVjcH2

    Landed 2026-12-01T04:06Z: PR #38814 merged (one re-enqueue after a runner hang, 7299870509); this card closed by its Fixes. Delivered: the screen-input refusal's published contract text, reference page and flows guide say one entry per finding and name the unknown_field case; the stale ScreenInputIssue.code and engine comments now point at error.details.fields. The card's own N1 example (a required record_link sent null) did not hold and was not shipped. Nothing left on this card. pm:dispatched removed in this stroke.

  12. removed
    pm:dispatched
    on Dec 1, 2026
  13. added a commit that references this issue on Dec 1, 2026
    7d6742a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:workflowdocumentationdomain:serverpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions