fix: migrate discos-cli to current EvidenceOS protocol#146
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
evidenceos-protocol/evidenceos-coreAPIs and the new request/response field names so runtime and verification flows continue to work.Description
discos-clidependencies:evidenceos-coreandevidenceos-protocolincrates/discos-cli/Cargo.tomlso protocol constants andsafety_policyresolve against the workspace API.CreateClaimV2Requestcall sites to include the new fieldsnullspec_id,dp_epsilon_budget, anddp_delta_budget, and convertedepoch_sizeusing.into()where appropriate; preserved dual-use policy logic and fixed borrowing/binding issues (ref cmd, cloning, and dereferencing) to avoid partial-move errors.CommitArtifactsRequestshape by building aVec<pb::Artifact>(mapping digest→artifact_hash, name→kind) and passingartifactspluswasm_modulein a singlecommit_artifactsRPC, and updated the CLI output to use the responsestatefield.etl_root_hash→root_hash,inclusion→inclusion_proof,consistency→consistency_proof,etl_tree_size→tree_size,sth_signature→signed_tree_head(extracting.signature), andcapsule→capsule_bytes, and fixed conversions for proof node vectors and types.Freezeoutput to usestateinstead offrozenand changed revocation watching to iterateWatchRevocationsResponse.entriesand use the current entry fields (reason,timestamp_unix).Serializeon the protoFeatureFlagsby converting it to a stable printable JSON string viaformat!("{:?}", ...)when embedding in server JSON output.args.log.clone()for env filter, adjust boolean/borrow dereferences) to make the changes build cleanly.Testing
cargo check -p discos-cliand the check completed with no errors.cargo build -p discos-cliand it finished successfully (EXIT:0).cargo check --workspaceand it completed with no errors.cargo fmtto apply formatting (an initialcargo fmt --checkreported diffs), after which formatting checks passed.Codex Task