Enforce successor security identity - #276
Conversation
…' into codex/ocf-vesting-graph-integrity
…y' into codex/ocf-security-id-uniqueness
…tegory' into codex/ocf-schema-constraints-category
…egory' into codex/ocf-stock-security-balance
…' into codex/ocf-vesting-graph-integrity
…y' into codex/ocf-security-id-uniqueness
…tegory' into codex/ocf-schema-constraints-category
…egory' into codex/ocf-stock-security-balance
…' into codex/ocf-vesting-graph-integrity
…y' into codex/ocf-security-id-uniqueness
…dates' into codex/ocf-balance-security-continuity
|
Restacked onto #274 exact head Fresh local validation is green: all 695 DAML scripts (693 behavioral + 2 setup), the 108-script focused balance/continuity suite, codegen/package verification, formatting, ESLint (0 errors; 2 pre-existing warnings), DAML lint, pinned OCF schema parity (55/55), 15-DAR integrity, and |
|
@copilot review exact head |
Reviewed exact head |
|
@codex review exact head @coderabbitai review exact head |
|
@cursor review Please review exact head |
|
✅ Action performedReview finished.
|
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 5f2444c. Configure here.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5f2444ca74
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@copilot review |
Reviewed the current exact head for successor continuity, retirement/cycle handling, and conversion output reconciliation. I did not find additional actionable issues requiring code changes. |
|
@codex review exact head @coderabbitai review exact head |
|
@cursor review Please review exact head |
|
✅ Action performedReview finished.
|
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 6925fe6. Configure here.
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Feature/test follow-up is complete at exact commit The PR already contained the convertible principal/currency integrity implementation. This follow-up closes the remaining transfer edge-case coverage: a transfer cannot exceed the source investment amount, transfer currency must match the issuance currency, and an exact full transfer with one result and no residual balance succeeds. Local validation on this feature commit passed: No package version, DAR backup, dependency, workflow-policy, or release-policy files changed in this follow-up. The PR intentionally remains draft and unassigned until stack normalization is complete and the resulting exact head passes CI and refreshed automated review gates. |
Preliminary OCF validation-policy auditPolicy: OCF Validation Policy Appears supported
Needs line-by-line evidence or narrowing
Proposed next step |
|
Standalone-restack note (no replay or database write performed): This PR cannot be safely retargeted to Known data impact also makes this a poor “merge with no data changes” candidate: the read-only audit found nine deterministic partial equity-compensation histories whose Recommended next step: first define a standalone continuity implementation against current-main state (or merge an independently approved balance foundation), then rerun the exact dev/prod replay before considering this PR mergeable. Current PR head remains |
Standalone reset and data statusThis PR has been rebuilt on current The current four-file diff validates structural successor identity only. Local clean build, DAR integrity/version policy, DAML lint, and diff checks pass. GitHub CI is running. Data status: no dev or production replay has yet been run for this exact standalone head. Treat data compatibility as unconfirmed until those exact-head replays complete; no database update is proposed by this reset. |
Standalone exact-rule data audit (read-only)Exact head Production: 1,621 relevant objects / 66 portals; 0 findings for every rule. This PR introduces no production successor-identity data conflict. Development: 2,477 relevant objects / 178 portals; findings across 9 portals.
Assessment: the narrowed structural rules are appropriate and production-clean, but this is not an early merge candidate because development contains both deterministic and ambiguous lineage conflicts. Keep it behind #269/#253/#278 while those cleaner PRs are resolved. |
Individual OCF and data auditExact scope reviewed: base OCF supportSource of truth reviewed at Open-Cap-Format-OCF
Data impact
RecommendationNeeds policy confirmation plus business/fixture input; not an early merge candidate. Keep the structural successor rules, decide whether cross-family uniqueness is intentional, resolve the ambiguous Vortex/Quine and fixture lineage, then run exact-head dev and production replays. No database change is proposed by this audit. |
Summary
Adds the smallest contract-level validation for structural successor security identity, independently of quantities, economics, dates, or reference resolution.
The validation covers stock transfers, cancellations, repurchases, conversions, reissuances, and consolidations; warrant transfers, cancellations, and exercises; convertible transfers, cancellations, and conversions; and equity-compensation transfers, cancellations, exercises, and releases.
Deliberate exclusions
This PR does not validate successor reference existence/type, quantities, economic terms, dates, running balances, or lifecycle terminality. Those concerns belong to separate, individually testable changes.
OCF basis
security_idis created by an issuance and identifies the security in future transactionsPackage
main; no stacked PR dependency.OpenCapTable-v340.0.3candidate DAR.Validation
Exact head:
e0d5a442c8092ff6f965438a28f44eaf3d2ce2c1npm run clean && npm run buildnpm run verify-darsnpm run check:dar-version-policynpm run lint:damlgit diff --checkReplay status
Dev and production database replays have not yet been run against this exact standalone head.