Enforce non-empty OCF arrays and quality guardrails#424
Enforce non-empty OCF arrays and quality guardrails#424HardlyDifficult wants to merge 37 commits into
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 |
…nto codex/schema-cardinality-guardrails # Conflicts: # test/declarations/publicApi.types.ts
|
Current head 6e9619a is green, merge-clean, unassigned, and thread-free. Advancing to Stage 2 and queuing automated review. CodeRabbit is deferred to the org-wide cooldown and remains queued without a ping. |
|
@copilot review |
|
cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 6e9619a. Configure here.
Reviewed the current head commit ( |
|
@coderabbitai pause |
✅ Action performedReviews paused. |
…hema-cardinality-guardrails # Conflicts: # src/functions/OpenCapTable/convertibleIssuance/getConvertibleIssuanceAsOcf.ts # src/functions/OpenCapTable/stockIssuance/getStockIssuanceAsOcf.ts # src/types/native.ts
…hema-cardinality-guardrails
|
Material parent propagation complete at exact head 0a2c6df, incorporating #423 at 543d116. Source typecheck passed on canton-node-sdk 0.0.227, preserving this PR's schema-cardinality guardrails plus canonical exhaustive relationships and symmetric vesting-graph validation. The PR remains draft and unassigned while CI runs. |
|
Fresh cardinality-boundary audit hardening is pushed at exact head The shared array boundary now snapshots dense arrays without invoking accessors/proxy traps and supports explicit min/max/exact counts, required element parsers, exact string validation, and duplicate detection with item path/context. Schema This eliminates prior cases where sparse/wrong-type/accessor arrays produced runtime-invalid |
…hema-cardinality-guardrails # Conflicts: # src/functions/OpenCapTable/warrantIssuance/getWarrantIssuanceAsOcf.ts # test/schemaAlignment/canonicalOcfObjectInventory.json # test/schemaAlignment/schemaConformance.test.ts # test/schemaAlignment/schemaConformanceRegistry.ts
|
Corrected stack propagation is pushed at Validation on this exact head:
The PR remains draft and unassigned while fresh CI runs on this material revision. No reviewer requests were made during propagation. |
|
@copilot review Please review exact current head |
Reviewed exact current head |
|
@cursor review Please review exact current head |
…hema-cardinality-guardrails
|
Cursor’s exact-head maintainability/security finding is addressed at Independent audit and validation are green: targeted 8 suites / 364 tests; full |
|
@copilot review Please review exact current head |
Reviewed exact current head |
|
@cursor review Please review exact current head |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 1557d19. Configure here.
|
Returned to draft because upstream #417 received a material exact-head corrective revision after full CodeRabbit review. This stacked PR will remain held until the audited #417 head and each intervening parent are propagated normally; fresh CI and Copilot-first reviewer gates are required afterward. |
…hema-cardinality-guardrails # Conflicts: # test/declarations/publicApi.types.ts # test/schemaAlignment/canonicalOcfObjectInventory.json # test/schemaAlignment/schemaConformance.test.ts # test/schemaAlignment/schemaConformanceHarness.ts # test/schemaAlignment/schemaConformanceRegistry.ts
|
Closing for the contract-owned validation pivot. SDK-enforced non-empty arrays, cardinality constraints, positivity checks, and similar quality guardrails duplicate invariants that DAML should execute and report. Any independently useful representation fixes, such as lossless zero/negative-zero handling, will be absorbed into a transport-focused decoder change instead. Branch retained for reference. |
Summary
minItems: 1property withNonEmptyArrayand enforce the same cardinality at runtime[]Validation
npm run test:ci— 90 suites / 5,326 tests passednpm run test:declarationsnpm run typechecknpm run buildnpm run lintnpm run format9352fc7438bcdb50ee066e0e785db9c1a7b823f1Stack