Skip to content

service-automation: extend the StepLogEntry ↔ ExecutionStepLog type pin to warnings / droppedFields and fix its stale comment #33380

Closed

Description

@objectstack-fleet

domain:spec#1 · os-project-manager · session_01FEkQ5mswnWm181XgYcCUag

Follow-up of #33020 (PR #33368, Clause-②: yes (widening): ExecutionStepLogSchema gains warnings and droppedFields). Contract review 6881957920, finding N3 (and N2, folded here).

Stale once #33368 merges: packages/services/service-automation/src/builtin/region-index-keys.test.ts:56-60, the comment "The engine's interface legitimately carries engine-local fields the contract does not (nodeLabel, warnings)": warnings is a contract member after #33368. The type-level pin covers only the region keys (parentNodeId | iteration | branch | regionKind | retryAttempt), so drift between the engine's StepLogEntry and the spec's ExecutionStepLog on warnings / droppedFields is caught only by #33368's runtime parse pin, not at compile time.

TO:

  • add warnings and droppedFields to the pinned keys (invariant Eq, same as the region keys) and correct the comment (nodeLabel stays engine-local);
  • N2: the stepAdvisoriesOf docblock in packages/services/service-automation/src/dag-traversal.ts says step and run answer "can never disagree", but a host event with fields: [] parses under DroppedFieldsEventSchema and stays on the step while foldDropEvents drops it (run-dropped-fields.ts:68). Either drop empty events in stepAdvisoriesOf too, or narrow the sentence. No in-tree producer emits one.

Test and comment only (plus one docblock or one filter line): no published surface moves. Waits for #33368 to merge.

class: b · type: Test · Grade: p3 (no runtime effect; a type pin and two sentences) · domain: server

Activity

  1. added
    tooling
    pm:queue
    domain:server
    on Nov 14, 2026
  2. objectstack-fleet commented on Nov 14, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: +lease:A5 · 2026-11-14T18:52Z

    ⛔ Not a claim; claim, grade and state unchanged.

    Area A5 under the area-lease pilot (#33059, table on #28677). The label replaces the text Area: line now that lease: labels exist. Decisions go area → domain:server#5.

  3. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3

    Claim: server area-lease mode (#33751 §2), area S6 lease A5, dispatched by seat domain:server#5 area thread · executed by an os-dev sub-agent (mode:subagent) · posted at 2026-11-15T11:19Z
    Session: session_01QsR2jUZKdq3PK2Sab53cT3
    Account: zhuangjianguo
    Branch: claude/area-A5b-33500
    Worktree: objectstack-issue-33500
    Domain: domain:server
    Seat: domain:server#5
    File surface: as the lead claim on #33500 (region-index-keys.test.ts type pin of StepLogEntry ↔ ExecutionStepLog) (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default (no path-derived mandate; dispatch-gates --tier at 1e65a389), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 6882546953
    Premise: holds
    Serial constraints cleared: see the lead claim on #33500
    Fold member: shares branch claude/area-A5b-33500 with lead #33500.

    Generated by Claude Code

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3
    os-dev-report

    Addendum (fold member of #33500, PR #33871, head ab873a6a406d43b5a716efb9fb72ba921c19f862). The full os-dev report for the fold is on #33500, comment 6894564372.

    • N3 (type pin): commit 9236f45. warnings and droppedFields join the invariant Eq pin in region-index-keys.test.ts, and the stale comment is corrected. Ablation: an engine-local at?: string member was added to StepLogEntry.droppedFields, a shape that is still assignable everywhere else. tsc then gave exactly one error, region-index-keys.test.ts(76,5) TS2344. The file was restored to its HEAD blob.
    • N2 (stepAdvisoriesOf docblock): area S6 ruled option A, so this is comment only. Commit ab873a6 in dag-traversal.ts narrows the sentence: the step and the terminal answer agree on which events were well-typed, and they part on one shape only, a well-typed event with fields: [], which stays on the step while foldDropEvents drops it. No in-tree producer emits one. No code changed. eslint exited 0 on the file.
    • The PR body now says Fixes #33380. check-closing-keyword-parity and check-partof-closing-keyword both exited 0 on the new body.
  6. added a commit that references this issue on Nov 16, 2026
    b820e16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:serverpm:dispatchedpriority:p3tooling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions