Skip to content

apollo_storage: remove compiler backward compatibility marker#13313

Open
noamsp-starkware wants to merge 1 commit intonoam.s/apollo_central_sync_use_starknet_version_as_single_source_of_truth_for_non_bc_classesfrom
noam.s/apollo_storage_remove_compiler_backward_compatibility_marker
Open

apollo_storage: remove compiler backward compatibility marker#13313
noamsp-starkware wants to merge 1 commit intonoam.s/apollo_central_sync_use_starknet_version_as_single_source_of_truth_for_non_bc_classesfrom
noam.s/apollo_storage_remove_compiler_backward_compatibility_marker

Conversation

@noamsp-starkware
Copy link
Copy Markdown
Contributor

@noamsp-starkware noamsp-starkware commented Mar 17, 2026

Note

Medium Risk
Removes a persisted marker and shifts MarkerKind serialization discriminants, which can break compatibility when reading existing DB/test fixtures or communicating with older nodes expecting the old enum layout.

Overview
Removes the CompilerBackwardCompatibility marker from storage APIs: drops its MarkerKind variant and deletes the corresponding read/write methods from class_manager and the marker request handling/tests.

Updates MarkerKind serialization/test enums to close the gap, renumbering GlobalRoot to 8 to match the removed variant.

Written by Cursor Bugbot for commit 6d84ecf. This will update automatically on new commits. Configure here.

@reviewable-StarkWare
Copy link
Copy Markdown

This change is Reviewable

Copy link
Copy Markdown
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link
Copy Markdown

Artifacts upload workflows:

@noamsp-starkware noamsp-starkware marked this pull request as ready for review March 17, 2026 15:22
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

ClassManagerBlock = 7,
CompilerBackwardCompatibility = 8,
GlobalRoot = 9,
GlobalRoot = 8,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renumbered serialization discriminant breaks existing stored data

High Severity

GlobalRoot serialization discriminant changed from 9 to 8 after removing CompilerBackwardCompatibility. Any existing database entries for GlobalRoot (stored as byte 9) will fail to deserialize, and any leftover CompilerBackwardCompatibility entries (stored as byte 8) will be misread as GlobalRoot. The discriminant for GlobalRoot needs to remain 9 to preserve backward compatibility with persisted data.

Additional Locations (1)
Fix in Cursor Fix in Web

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bump the storage version. @MohammadNassar1 is planning to break the storage too

Copy link
Copy Markdown
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ShahakShama reviewed 6 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on MohammadNassar1).

ClassManagerBlock = 7,
CompilerBackwardCompatibility = 8,
GlobalRoot = 9,
GlobalRoot = 8,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bump the storage version. @MohammadNassar1 is planning to break the storage too

@github-actions
Copy link
Copy Markdown

There hasn't been any activity on this pull request recently, and in order to prioritize active work, it has been marked as stale.
This PR will be closed and locked in 7 days if no further activity occurs.
Thank you for your contributions!

@github-actions github-actions Bot added the stale label Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants