Skip to content

fix: tolerate missing budgets in job list output#51

Open
antfleet-ops wants to merge 1 commit into
Virtual-Protocol:mainfrom
antfleet-ops:fix/acp-cli-job-list-missing-budget
Open

fix: tolerate missing budgets in job list output#51
antfleet-ops wants to merge 1 commit into
Virtual-Protocol:mainfrom
antfleet-ops:fix/acp-cli-job-list-missing-budget

Conversation

@antfleet-ops

Copy link
Copy Markdown

Summary

  • make non-TTY acp job list handle missing v2 budgets the same way as TTY output
  • print N/A instead of calling BigInt() on a missing budget

Fixes #39.

Verification

  • npm run typecheck
  • npm run build

AntFleet audit provenance

Filed from antfleet-ops after AntFleet's two-model Virtuals repo scan found the non-TTY formatter could crash on valid active v2 jobs whose budget field is absent.

Constraint: preserve existing TTY and JSON behavior.\nRejected: BigInt(j.budget) without presence check | valid v2 jobs can omit budget.\nConfidence: high\nScope-risk: narrow\nDirective: keep CLI formatters tolerant of nullable backend fields.\nTested: npm run typecheck; npm run build\nNot-tested: live backend job list response.
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.

Handle missing v2 job budgets in non-TTY job list output

1 participant