Validate stock corporate action reader payloads#437
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Note Reviews pausedUse the following commands to manage reviews:
Use the checkboxes below for quick actions:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai pause |
✅ Action performedReviews paused. |
…coder-backed-corporate-action-readers
|
Corporate-action reader hardening and final parent propagation are complete at exact head aeb3918. Exact audited #436 head a801319 is a verified ancestor. The scoped five-family implementation preserves decoder-backed contract/template validation, exact writers and public types, and inherited guardrails. Exact validation passes: full 115 suites / 7,560 tests, typecheck, lint, formatting, build, declarations, exact-public/cardinality, and package-consumer gates. Independent audit found no issue. Keeping this PR draft/unassigned while fresh remote CI reruns. |
|
Hardening and exact-base propagation are pushed at The merged implementation preserves #436 global decoder ownership and writer refinements while adding full-wrapper validation, both Party checks, pinned semantics, SDK-only reissuance cardinality, deeply readonly/frozen results, and source/built/package type parity for all five corporate-action families. Exact-head local validation is green: focused 13 suites / 733 tests; full coverage 118 suites / 7,926 tests; declarations/build/exact-public/cardinality/package consumer; typecheck; lint; formatting; schema inventories; package dry-run; ancestry and diff checks. Fresh hosted |
|
CI remediation pushed in The prior Fresh local evidence:
The PR remains draft and unassigned. No reviewers have been requested while the fresh hosted checks run. |
Summary
OcpClient, manifest, source declaration, built declaration, and package-consumer contractsOcfStockReissuance.resulting_security_idsasNonEmptyArray<string>and register that intentional SDK-only schema refinementWhy
These five corporate-action families previously mixed raw create-argument trust, hand-written wire types, mutable public results, and incomplete DAML semantic checks. The SDK now validates the generated wrapper and payload correlation before conversion, preserves exact diagnostics and ownership boundaries, and makes invalid states unrepresentable where the protocol permits. Strict rejection is intentional and backwards-incompatible.
Validation
npm run test:ci: 118 suites / 7,926 testsnpm run test:declarations: clean build plus source, built, exact-public, built-cardinality, and package-consumer contractsnpm run typechecknpm run lintnpm run formatnpm run clean && npm run fix(hosted pre-build lint order)npm pack --json --dry-run: 1,270 files; 591,686-byte tarball; 3,297,955 bytes unpackedStack
755c56b51fc33931c49ca83244d0573b088536e3206539f66ad6ec21e53ddabebb5c3e6ba6f4df74