Expand description
Shared code review models for Bcode.
Structs§
- Adversarial
Review Validation Error - Portable validation error for adversarial review contracts.
- Archive
Review Workspace Request - Request payload for
review.workspace.archive. - Archive
Review Workspace Response - Response payload for
review.workspace.archive. - Create
Review Workspace Request - Request payload for
review.workspace.create. - Create
Review Workspace Response - Response payload for
review.workspace.create. - Delete
Draft Request - Request payload for
draft.delete. - Delete
Draft Response - Response payload for
draft.delete. - Delete
Review AiExchange Request - Request payload for
review.ai_exchange.delete. - Delete
Review AiExchange Response - Response payload for
review.ai_exchange.delete. - Draft
Anchor - Persisted draft anchor.
- Draft
Comment - Persisted draft comment.
- External
Publish Review Request - Request payload for external publisher operations.
- External
Review Anchor Mapping - Provider-neutral mapping from external diff coordinates to a local anchor.
- External
Review Comment - A provider-neutral externally hosted review comment.
- External
Review Identity - Provider-neutral identity for an external review object.
- External
Review Import Record - Durable provider-neutral external review import snapshot.
- External
Review Import Request - Read-only external review import request.
- External
Review Import Response - Read-only external review import response.
- External
Review Thread - A provider-neutral externally hosted review thread.
- GetReview
Diff Request - Request payload for
review.diff.get. - GetReview
Thread Request - Request payload for
review.thread.get. - GetReview
Workspace Request - Request payload for
review.workspace.get. - GetReview
Workspace Response - Response payload for
review.workspace.get. - Link
Thread Session Request - Request payload for
thread.link_session. - Link
Thread Session Response - Response payload for
thread.link_session. - List
Drafts Request - Request payload for
draft.list. - List
Drafts Response - Response payload for
draft.list. - List
External Review Imports Request - Request to list durable external import snapshots.
- List
External Review Imports Response - Response containing durable external import snapshots.
- List
Publish Records Request - Request payload for listing publish records for a workspace.
- List
Publish Records Response - Response payload for listing publish records.
- List
Review AiExchanges Request - Request payload for
review.ai_exchanges.list. - List
Review AiExchanges Response - Response payload for
review.ai_exchanges.list. - List
Review Publishers Response - Response payload for publisher list.
- List
Review Suggestions Request - Request payload for
review.suggestions.list. - List
Review Suggestions Response - Response payload for
review.suggestions.list. - List
Review Workspaces Request - Request payload for
review.workspace.list. - List
Review Workspaces Response - Response payload for
review.workspace.list. - Materialize
Review Workspace Request - Request payload for
review.workspace.materialize. - Materialize
Review Workspace Response - Response payload for
review.workspace.materialize. - Publish
Review Preview Response - Response payload for publish preview.
- Publish
Review Request - Request payload for built-in publish operations.
- Publish
Review Response - Response payload for publish submit.
- Repository
File Request - Request payload for repository file browsing.
- Repository
File Response - Response payload for repository file browsing.
- Resolve
Thread Request - Request payload for
thread.resolve. - Resolve
Thread Response - Response payload for
thread.resolve. - Review
AiExchange - Provider-neutral durable metadata for a non-publishable review AI exchange.
- Review
Assignment - One independent reviewer assignment bound to one exact repository snapshot.
- Review
Bundle - Provider-neutral review bundle.
- Review
Bundle Line - A provider-neutral selected review line reference.
- Review
Bundle Thread - Provider-neutral review thread bundle.
- Review
Consensus - Complete bounded consensus over one exact panel result.
- Review
Consensus Decision - One auditable consensus decision for a submitted finding.
- Review
Context Request - Request payload for review context operations scoped to a target.
- Review
Execution Facts - Exact normalized model and tool facts recorded for one reviewer.
- Review
File - Parsed review file.
- Review
File Summary - Compact file summary for review context.
- Review
Finding - Stable snapshot-bound normalized review finding.
- Review
Hunk - Unified diff hunk.
- Review
Importer Manifest - External review importer manifest.
- Review
Line - A line in a unified diff hunk.
- Review
Panel Assignment Request - Deterministic request to materialize one independent assignment per reviewer.
- Review
Panel Assignments - Ordered exact assignments for one review round and repository snapshot.
- Review
Panel Result - Ordered independent reports for one exact repository snapshot.
- Review
Publish Record - Publish history metadata for a review workspace.
- Review
Publisher Capabilities - Review publisher capabilities.
- Review
Publisher Manifest - Review publisher manifest.
- Review
Publisher Route - External publisher route metadata.
- Review
Report - One independent typed reviewer report for one exact assignment and snapshot.
- Review
Repository Commit - Repository commit available for source pickers.
- Review
Repository Snapshot - Exact immutable repository state reviewed by every member of one panel.
- Review
Source - One source of reviewable content in a workspace.
- Review
Source Diagnostic - Diagnostic produced while materializing one review source.
- Review
Source Range - Exact optional repository source range for one finding.
- Review
Suggestion - Provider-neutral durable AI-suggested review comment.
- Review
Surface - Normalized reviewable surface produced by workspace sources.
- Review
Workspace - Durable review workspace assembled from one or more review sources.
- Review
Workspace List Item - Summary metadata for a review workspace picker row.
- Review
Workspace Materialization - Materialized workspace review data.
- Review
Workspace Presentation State - Durable Code Review-owned semantic presentation state.
- Save
Draft Request - Request payload for
draft.save. - Save
Draft Response - Response payload for
draft.save. - Save
External Review Import Request - Request to atomically replace an external import snapshot.
- Save
External Review Import Response - Response after saving an external import snapshot.
- Save
Publish Record Request - Request payload for recording an external publish result.
- Save
Publish Record Response - Response payload for recording an external publish result.
- Save
Review AiExchange Request - Request payload for
review.ai_exchange.save. - Save
Review AiExchange Response - Response payload for
review.ai_exchange.save. - Save
Review Suggestion Request - Request payload for
review.suggestion.save. - Save
Review Suggestion Response - Response payload for
review.suggestion.save. - Update
Draft Request - Request payload for
draft.update. - Update
Draft Response - Response payload for
draft.update. - Update
Review Workspace Request - Request payload for
review.workspace.update. - Update
Review Workspace Response - Response payload for
review.workspace.update.
Enums§
- External
Anchor Mapping Status - Confidence of mapping an external comment to the current local review.
- External
Review Thread State - Provider-neutral state of an externally hosted review thread.
- Review
AiExchange Status - Durable lifecycle for one reviewer-authored AI exchange.
- Review
Anchor Kind - Review thread anchor scope.
- Review
Consensus Disposition - Consensus treatment of one submitted finding identity.
- Review
File Status - File status in a review.
- Review
Finding Disposition - Reviewer’s requested treatment before consensus disposition.
- Review
Finding Severity - Severity of one normalized review finding.
- Review
Line Kind - Diff line kind.
- Review
Round Outcome - Terminal result of one bounded adversarial review round.
- Review
Scope - Stable review scope used for draft persistence and publishing.
- Review
Source Diagnostic Severity - Severity for a source materialization diagnostic.
- Review
Source Kind - Supported source kinds for building a review workspace.
- Review
Suggestion Status - Durable AI-suggested review comment lifecycle.
- Review
Surface Kind - Normalized review surface kind.
- Review
Target - Supported local Git review target.
- Review
Thread Kind - Local review thread kind.
- Review
Thread Severity - Local review thread severity.
Constants§
- ADVERSARIAL_
REVIEW_ CONTRACT_ VERSION - Current portable adversarial review contract version.
- CODE_
REVIEW_ SERVICE_ INTERFACE_ ID - Code review plugin service interface.
- MAX_
ADVERSARIAL_ REVIEWERS - Maximum reviewers retained in one panel result.
- MAX_
ADVERSARIAL_ REVIEW_ FACTS - Maximum model/tool fact entries retained for one reviewer.
- MAX_
ADVERSARIAL_ REVIEW_ FINDINGS - Maximum findings retained in one report or consensus.
- MAX_
ADVERSARIAL_ REVIEW_ TEXT_ BYTES - Maximum UTF-8 bytes retained in one evidence/remediation field.
- OP_
REVIEW_ AI_ EXCHANGES_ LIST - Operation that lists durable, non-publishable review AI exchanges.
- OP_
REVIEW_ AI_ EXCHANGE_ DELETE - Operation that explicitly deletes a durable review AI exchange.
- OP_
REVIEW_ AI_ EXCHANGE_ SAVE - Operation that creates or updates a durable, non-publishable review AI exchange.
- OP_
REVIEW_ BUNDLE_ GET - Operation that returns a provider-neutral review bundle.
- OP_
REVIEW_ EXTERNAL_ IMPORTS_ LIST - Operation that lists saved external review import snapshots.
- OP_
REVIEW_ EXTERNAL_ IMPORT_ SAVE - Operation that saves a provider-neutral external review import snapshot.
- OP_
REVIEW_ IMPORTER_ IMPORT - Operation that imports external review state without mutating it.
- OP_
REVIEW_ IMPORTER_ MANIFEST - Operation that returns an external review importer manifest.
- OP_
REVIEW_ PUBLISHERS_ LIST - Operation that lists review publishers.
- OP_
REVIEW_ PUBLISHER_ MANIFEST - Operation that returns an external publisher manifest.
- OP_
REVIEW_ PUBLISHER_ PREVIEW - Operation that previews an external publisher request.
- OP_
REVIEW_ PUBLISHER_ SUBMIT - Operation that submits an external publisher request.
- OP_
REVIEW_ PUBLISH_ PREVIEW - Operation that previews a review publish operation.
- OP_
REVIEW_ PUBLISH_ RECORDS_ LIST - Operation that returns publish records for a durable workspace.
- OP_
REVIEW_ PUBLISH_ RECORD_ SAVE - Operation that saves publish history for an externally handled publisher.
- OP_
REVIEW_ PUBLISH_ SUBMIT - Operation that submits a review publish operation.
- OP_
REVIEW_ REPO_ FILE_ GET - Operation that returns repository file content for review browsing.
- OP_
REVIEW_ SUGGESTIONS_ LIST - Operation that lists durable AI-suggested review comments.
- OP_
REVIEW_ SUGGESTION_ SAVE - Operation that creates or updates a durable AI-suggested review comment.
- OP_
REVIEW_ WORKSPACE_ ARCHIVE - Operation that archives a durable review workspace.
- OP_
REVIEW_ WORKSPACE_ CREATE - Operation that creates a durable review workspace.
- OP_
REVIEW_ WORKSPACE_ GET - Operation that fetches a durable review workspace.
- OP_
REVIEW_ WORKSPACE_ LIST - Operation that lists durable review workspaces.
- OP_
REVIEW_ WORKSPACE_ MATERIALIZE - Operation that materializes review workspace sources into reviewable surfaces.
- OP_
REVIEW_ WORKSPACE_ UPDATE - Operation that updates a durable review workspace.
- REVIEW_
AI_ EXCHANGE_ SCHEMA_ VERSION - Current persisted schema version for review AI exchanges.
- REVIEW_
IMPORTER_ INTERFACE_ ID - External review importer service interface.
- REVIEW_
PUBLISHER_ INTERFACE_ ID - Review publisher service interface.
- REVIEW_
WORKSPACE_ PRESENTATION_ SCHEMA_ VERSION