fix(parser): preserve Antigravity CLI effort metadata - #1461
Conversation
roborev: Combined Review (
|
3a2d8bd to
18d7b74
Compare
roborev: Combined Review (
|
18d7b74 to
077080b
Compare
roborev: Combined Review (
|
Antigravity embeds compiled protobuf descriptors that name the SQLite metadata fields. The parser previously treated those fields as anonymous numbers and recursively accepted the first matching nested tags. Follow the descriptor-backed chat model and executor paths for current records. Keep the bounded legacy walk for older persisted records that do not contain chat_model, and record the release evidence used to verify the schema.
roborev: Combined Review (
|
Keep main's rewritten Grok format evidence while preserving the branch's Antigravity descriptor provenance. This removes the pull request conflict without restoring the Markdown formatter instability fixed on main.
roborev: Combined Review (
|
Problem
Antigravity CLI 1.1.5 stores generation data in a new format.
gen_metadata.idxidentifies a generation. It does not identify a step.Protobuf field 2 contains the step indices for the generation.
Generation field 19 contains the base model slug:
The related
executor_metadatafield 28 contains the model effort:AgentsView currently uses
gen_metadata.idxas the step index. This behavior can attach data to the wrong step.It can also discard usage data when the two indices differ.
AgentsView does not read the model effort from the executor metadata.
As a result, the parsed model can lose its Low, Medium, or High effort.
Closes #1460.
Change
step_typevalue only when field 1 is absent.endStepincludes that index.gen_metadata.idxonly when generation field 2 is absent.Compatibility
The change keeps support for older session formats.
Sessions without
executor_metadatacontinue to parse.Sessions without generation field 2 continue to use the index-aligned format.
A complete field 21 label remains authoritative:
AgentsView does not apply an executor model when the base model slugs differ.
Verification
The regression tests cover these conditions:
step_typevalue differs from protobuf field 1.-highsuffix.These commands completed successfully:
The Markdown source checks also passed.
The complete documentation check could not load
origin/docs-assets. The fork does not contain that artifact branch.Two independent reviewers found no remaining issues after the final fixes.
Data safety
The parser only reads the existing SQLite metadata.
This change does not modify a session database.
This change does not connect to the central PostgreSQL database.
This change does not run
agentsview pg push.This change does not start a resync.
This change does not change the remote backup.