Repository navigation
Description
Implement permanent bundles, registration, readiness and version routing
Parent: #4626 · Complete tracking register
Proposed target: 5.0-dev. This is a workstream tracking issue, not a claim that the release branch exists or the implementation is done. Owner: QuantumExplorer. Dates and effort remain unset.
Scope
Implement bounded upload/admission, immutable archive, 0/1 versus smart 0..4 layout, whole-bundle 80% readiness and timed activation, cancellation/replacement, deprecation and latest routing.
Specification
DVM-01 · DVM-02 · DVM-03 · DVM-04
The current parent acceptance and module/capability appendices remain authoritative; these DIP drafts add proposed engineering detail without silently approving open allocations.
Completion criteria
Complete every listed task acceptance item, its applicable capability matrix, and the linked specification vectors. Record actual PR/test evidence; drafting is not production completion.
Task acceptance
R06-04
- Implement canonical code/version storage, contract references, queries, and protocol activation initialization. Retain all accepted versions permanently; separate any temporary upload staging and local compiled artifacts.
Prerequisites: R06-05, R06-09.
Modules: EXEC_STORE, DPP. Original task context.
R06-05
- Extend contract create/update transitions for large canonical code and declarations; implement bounded versioned envelopes, native validation, costs, CheckTx and all transport/execution paths. Benchmark proposed size limits and decide whether chunking is necessary.
Q39 (confirmed direction): Substantially extend contract create and update state transitions to carry large code/declarations. Apply larger bounded limits consistently on every ingress path; do not merely introduce an unrelated upload route. Initial single-transition form and exact sizes are engineering proposals.
Prerequisites: None recorded.
Dependents: R06-04, R06-06, R06-07.
Modules: DPP, VALIDATE, ABCI, WIRE. Original task context. Refinements (not extra dependency edges): FIX-06.
R06-07
- Test authorized deployment, hash mismatches, duplicate/replayed submissions, maximum size, permanent old-version retention and wipe survival. If chunking is selected, also specify and test ordering, partial uploads, staging ownership, completion, cleanup and refund rules.
Q13 (confirmed): Do not expire pending deployments automatically. Allow authorized cancellation before activation, including during the wait; retain accepted canonical code permanently and refund unused preparation funds to the recorded payer after completed costs. Q39 (confirmed direction): Substantially extend contract create and update state transitions to carry large code/declarations. Apply larger bounded limits consistently on every ingress path; do not merely introduce an unrelated upload route. Initial single-transition form and exact sizes are engineering proposals.
Prerequisites: R06-04, R06-05, R06-06, R06-08, FIX-06.
Dependents: None recorded.
Modules: EXEC_STORE, READINESS, DRIVE_TESTS. Original task context.
R08-03
- Add versioned module references and method/capability declarations to contracts. Specify how validation-module updates interact with contract-version activation, deprecation and protected documents; do not retain the old immutable-field restriction without resolving that interaction.
Q12 (confirmed): Allow one pending executable update. A replacement atomically cancels the previous pending vote round and activation timer; current active code serves until the replacement is ready. Bind votes to deployment/round so they cannot transfer to replacement code. Q15 (confirmed): No universal protocol warning period. A contract may promise an upgrade/removal delay; an announced promise cannot be shortened. Deprecation remains a warning and does not itself disable execution. Q16 (confirmed direction): Use the declared authorized update/self-upgrade policy to deprecate or retire versions; enforce any notice the contract promised. A new version does not automatically retire all previous versions, and all canonical code remains permanent. Q18 (confirmed): Reuse existing versioned DPP/Drive index-update rules exactly. Do not introduce a new index-backfill/migration subsystem. The inspected v1 validator rejects adding, removing or changing indexes on existing document types; new types may declare indexes through normal validation. Q23 (confirmed): A network-voted freeze needs a network vote to lift it: strictly more than two-thirds of all active eligible evonodes, one vote each, a one-week window and early approval after eligibility recheck. Authorized contract updates stay frozen. Contract-defined freezes retain their declared rules; a wipe remains permanent. Named-module scope: Implement a canonical named-module bundle manifest, exact module/interface bindings, public method routing, a permanent archive deduplicated within each contract, and current-state manifest/module proofs. Contract-local layout: Enforce contract kind and selected keys: data-only creation and ordinary updates have exactly 0/1, with no empty 2/3/4 placeholders; smart creation has root 1 with left 0 and right 3(children 2,4). Apply the 0/1 skeleton first, then 2/3/4 as distinct Merk applications within one atomic transaction; never merge fresh initialization into one 0..4 batch. Accepted authorized data-to-smart conversion adds 2/3/4 atomically while preserving existing native state; a rejected conversion cannot leave smart namespaces behind. Reads never allocate missing namespaces. Test kind/namespace proofs, persisted/reopened roots, descendant growth, rollback, both proposal paths, fee estimates and proofs. Preserve the live smart namespace skeleton and permanent accepted archives for pending/inactive versions. Keep AVL balancing enabled; inspect historical roots before conversion rather than assuming arbitrary insertion histories have the desired shape.
Prerequisites: R07-02, R08-02.
Dependents: R08-05.
Modules: ABI, DPP, EXEC_STORE. Original task context. Refinements (not extra dependency edges): FIX-11, SDK-04.
R08-11
- Wire runtime and serialization generations into the final PV15–PV17 allocation and document compilation readiness, lifecycle, error handling and upgrade behavior using the approved decisions.
Q02 (confirmed direction): Coordinate engine behavior changes through normal protocol upgrades and preserve historical replay. Select the exact release, locked dependencies, Cranelift configuration and adoption evidence through engineering tests.
Prerequisites: R08-08, R08-09.
Dependents: None recorded.
Modules: VERSION, DPP. Original task context.
R08-12
- Implement distinct evonode readiness votes with threshold-triggered eligibility pruning against agreed current membership. Reconsider on membership changes and commit only a fully validated 80% crossing.
Q10 (confirmed direction): When readiness could cross 80%, revalidate voters against current agreed active membership and prune ineligible votes before accepting the crossing. A count tree may maintain raw votes but is not eligibility proof. Membership changes must also trigger reconsideration; bounded checks must use one coherent membership view. Q11 (confirmed direction): Use committed chain timestamps and a defined activation boundary. Every node must use the same Core membership view referenced by the Platform block, after the same membership-update phase. Preserve additional wait clamp(T, 2 minutes, 1 hour); exact phase/predicate belongs in the DIP. Named-module scope: Readiness reports bind the complete manifest/bundle hash, version, round and profile. Prepare/compile all modules and validate all bindings before reporting; never activate a partial bundle. Deployment checks execute no guest initialization. Integrated linker, admission and ABI must pass before readiness acceptance.
Prerequisites: None recorded.
Dependents: None recorded.
Modules: READINESS, EXEC_STORE. Original task context. Refinements (not extra dependency edges): FIX-09.
R08-13
- Specify consensus-time and activation-block conventions; implement the additional wait clamp(T, 2 minutes, 1 hour). Test just below/at 80%, duplicate votes, threshold persistence, and timing below/inside/above both bounds. New work from the review.
Q10 (confirmed direction): When readiness could cross 80%, revalidate voters against current agreed active membership and prune ineligible votes before accepting the crossing. A count tree may maintain raw votes but is not eligibility proof. Membership changes must also trigger reconsideration; bounded checks must use one coherent membership view. Q11 (confirmed direction): Use committed chain timestamps and a defined activation boundary. Every node must use the same Core membership view referenced by the Platform block, after the same membership-update phase. Preserve additional wait clamp(T, 2 minutes, 1 hour); exact phase/predicate belongs in the DIP.
Prerequisites: None recorded.
Dependents: None recorded.
Modules: READINESS, JOBS_STORE, VERSION. Original task context. Refinements (not extra dependency edges): FIX-09.
R08-14
- Implement pending update replacement/cancellation, permanent accepted code, unused preparation refunds, no automatic expiry, and node/cache/engine recovery without a below-threshold fallback.
Q10 (confirmed direction): When readiness could cross 80%, revalidate voters against current agreed active membership and prune ineligible votes before accepting the crossing. A count tree may maintain raw votes but is not eligibility proof. Membership changes must also trigger reconsideration; bounded checks must use one coherent membership view. Q12 (confirmed): Allow one pending executable update. A replacement atomically cancels the previous pending vote round and activation timer; current active code serves until the replacement is ready. Bind votes to deployment/round so they cannot transfer to replacement code. Q13 (confirmed): Do not expire pending deployments automatically. Allow authorized cancellation before activation, including during the wait; retain accepted canonical code permanently and refund unused preparation funds to the recorded payer after completed costs. Named-module scope: Replace/cancel whole pending bundles atomically, preserve every accepted manifest and canonical module blob permanently, and prevent old bundle reports/timers from transferring to a replacement.
Prerequisites: None recorded.
Dependents: None recorded.
Modules: READINESS, EXEC_STORE, LIFECYCLE. Original task context. Refinements (not extra dependency edges): FIX-09.
R11-14
- Implement declared update authority, optional contract-promised notice, explicit deprecation/retirement, direct supported-version selection and latest cross-contract/scheduled routing. Preserve canonical code and atomic pending-update replacement.
Q12 (confirmed): Allow one pending executable update. A replacement atomically cancels the previous pending vote round and activation timer; current active code serves until the replacement is ready. Bind votes to deployment/round so they cannot transfer to replacement code. Q15 (confirmed): No universal protocol warning period. A contract may promise an upgrade/removal delay; an announced promise cannot be shortened. Deprecation remains a warning and does not itself disable execution. Q16 (confirmed direction): Use the declared authorized update/self-upgrade policy to deprecate or retire versions; enforce any notice the contract promised. A new version does not automatically retire all previous versions, and all canonical code remains permanent. Q17 (confirmed): Direct users may explicitly select a still-supported old executable version. Direct calls without a version, cross-contract calls and scheduled jobs resolve the latest visible executable version; no cross-contract or scheduled old-version pin/fallback. Current native storage/authorization rules still apply to old code. Q23 (confirmed): A network-voted freeze needs a network vote to lift it: strictly more than two-thirds of all active eligible evonodes, one vote each, a one-week window and early approval after eligibility recheck. Authorized contract updates stay frozen. Contract-defined freezes retain their declared rules; a wipe remains permanent.
Prerequisites: None recorded.
Dependents: None recorded.
Modules: DPP, EXEC_STORE, CALLS, CLIENT. Original task context.
FIX-06
- Enforce code-specific admission limits before full decoding
Bounded canonical create/update envelope parser, substantial family-specific size limits and coherent DAPI/mempool/block/SDK admission. Reject malformed/over-limit input before large allocation; keep ordinary family limits. Q39 (confirmed direction): Substantially extend contract create and update state transitions to carry large code/declarations. Apply larger bounded limits consistently on every ingress path; do not merely introduce an unrelated upload route. Initial single-transition form and exact sizes are engineering proposals. Q40 (confirmed delegation): Maintain one protocol-versioned allocation register. Supply provisional numeric limits and prices now, then measure and revise before activation. Allocate wire/storage/ABI IDs from actual registries; keep engine/profile pin and unmeasured native costs explicitly unresolved.
Prerequisites: None recorded.
Dependents: R06-07.
Modules: VALIDATE, DPP, WIRE. Original task context.
FIX-09
- Make readiness transport and missing-cache behavior deterministic
Bounded/deduplicated readiness transport, threshold-time eligibility pruning and coherent membership reference. Replacement cancels old rounds and timers. No automatic expiry or cold-cache fee; missing artifacts make nodes unready. Test retransmission and mechanism failure separately from withheld reports. Q10 (confirmed direction): When readiness could cross 80%, revalidate voters against current agreed active membership and prune ineligible votes before accepting the crossing. A count tree may maintain raw votes but is not eligibility proof. Membership changes must also trigger reconsideration; bounded checks must use one coherent membership view. Q11 (confirmed direction): Use committed chain timestamps and a defined activation boundary. Every node must use the same Core membership view referenced by the Platform block, after the same membership-update phase. Preserve additional wait clamp(T, 2 minutes, 1 hour); exact phase/predicate belongs in the DIP. Q14 (confirmed): The deployer pays bounded protocol validation and readiness-verification costs. Evonodes pay their own compilation. No local-time compilation bill, cold-cache surcharge or repeated preparation charge on execution.
Prerequisites: None recorded.
Dependents: R14-04.
Modules: READINESS, WIRE, RUNTIME. Original task context.
FIX-11
- Define public-method compatibility and warning behavior
Stable method ABI and compatibility report. No protocol minimum warning period; enforce contract-promised notice. Direct callers may select supported old versions; cross-contract calls and schedules use latest. Signature compatibility does not prove semantic equivalence. Q15 (confirmed): No universal protocol warning period. A contract may promise an upgrade/removal delay; an announced promise cannot be shortened. Deprecation remains a warning and does not itself disable execution. Q16 (confirmed direction): Use the declared authorized update/self-upgrade policy to deprecate or retire versions; enforce any notice the contract promised. A new version does not automatically retire all previous versions, and all canonical code remains permanent.
Prerequisites: None recorded.
Dependents: SDK-04.
Modules: CALLS, BUILD, CLIENT. Original task context.
Coordination and dependencies
Task-level prerequisites above govern order. Workstreams contain multiple stages, so a cross-link is not a claim that the entire other issue must close first. These are Markdown relationships, not native GitHub blocked-by edges. The parent dependency register preserves all 234 links, reasons and explicit/inferred labels.
- R06-09 → R06-04 (inferred): Rebased source dependency; confirm the implementation ordering. Implementation prerequisite inferred from the described interfaces.
- R06-05 → R06-06 (inferred): Rebased source dependency; confirm the implementation ordering. Implementation prerequisite inferred from the described interfaces.
- R06-06 → R06-07 (inferred): Rebased source dependency; confirm the implementation ordering. The end-to-end code-blob proof uses section 6.3 range proofs.
- R06-08 → R06-07 (inferred): Rebased source dependency; confirm the implementation ordering. The end-to-end code-blob proof uses section 6.3 range proofs.
- R06-04 → R08-02 (inferred): Rebased source dependency; confirm the implementation ordering. Implementation prerequisite inferred from the described interfaces.
- R07-02 → R08-03 (inferred): Rebased source dependency; confirm the implementation ordering. Implementation prerequisite inferred from the described interfaces.
- R08-02 → R08-03 (inferred): Rebased source dependency; confirm the implementation ordering. Implementation prerequisite inferred from the described interfaces.
- R08-03 → R08-05 (inferred): Rebased source dependency; confirm the implementation ordering. Implementation prerequisite inferred from the described interfaces.
- R08-08 → R08-11 (inferred): Rebased source dependency; confirm the implementation ordering. Implementation prerequisite inferred from the described interfaces.
- R08-09 → R08-11 (inferred): Rebased source dependency; confirm the implementation ordering. Implementation prerequisite inferred from the described interfaces.
- FIX-09 → R14-04 (inferred): Testnet exercises the selected readiness and cache recovery rules.
- FIX-11 → SDK-04 (inferred): Latest-version clients follow the declared warning/compatibility policy.
PR and evidence tracking
Create focused PRs against the chosen development branch. Link this issue with Refs #<issue-number> for partial work. Do not use Fixes for the whole workstream until every listed full task and acceptance criterion is complete.
For a PR that completes an entire task, add a standalone line in its actual PR body: Dash-Tasks: <completed task IDs>. Replace the placeholder with only fully completed IDs. Preparation PRs use ordinary references and omit the completion marker for their broader parent tasks. The site reads this marker on PRs in dashpay/platform and dashpay/grovedb: draft = red, ready for review = yellow, merged with no linked open PR = green. Closed-unmerged is not completion. This does not automatically close issue checkboxes and does not prove acceptance tests passed; reviewers must record the evidence.
| Evidence | Link / result |
|---|---|
| Implementation PRs | Pending |
| Canonical vectors and targeted tests | Pending |
| Upgrade/replay/conservation evidence, where applicable | Pending |
| Remaining full-task acceptance | All unchecked above |
Activity
feat(platform): version tables for compilation readiness at protocol 17
feat(dpp): compilation readiness round, report record, scan cursor an…
feat(drive): compilation readiness rounds, reports, cursors, deadline…
test(drive): compilation readiness storage tests
feat(drive-abci): create the compilation readiness structures on upgr…
refactor(drive): type the retired readiness queue entry