ReviewOS

home-lang/home

Port gRPC StatusBuilder API

#255
Closed chris opened this 10 days ago ·
10 days ago

Bun corpus source

  • Position: 3996/4708
  • File: js/third_party/grpc-js/test-status-builder.test.ts
  • Current state: unsupported module syntax during corpus preparation
  • Upstream coverage: 2 assertions

Scope

Port grpc-js StatusBuilder with module/root export identity, fluent withCode, withDetails, and withMetadata methods, and omission of unset fields from build().

Tracked from #66.

10 days ago

Implemented and pushed in c4258d7e5 (feat(third-party): port gRPC status builder).

Bun corpus position 3996 (js/third_party/grpc-js/test-status-builder.test.ts) is fully ported:

  • root and build/src/status-builder exports share the exact same StatusBuilder constructor
  • withCode, withDetails, and withMetadata are fluent
  • build() returns a fresh status object and omits every unset field
  • the upstream file is locked into the permanent third-party mini-suite

Validation:

  • position 3996: 2 passed, 0 failed, 0 todo, 0 unsupported
  • positions 3995–3996: 47 passed, 0 failed, 4 upstream todos, 0 unsupported
  • permanent corpus accounting, 22/22 gRPC diagnostics, SQL adapter contracts, and third-party mini-suite: all green
  • zig fmt --check and git diff --check: clean

Cumulative ledger through position 3996: 338 executable files, 2,907 passed, 217 todo, 0 failed, 0 unsupported, 171 allowed-empty.

Tracked from umbrella #66.

Sign in to comment on this issue.