Documentation
¶
Overview ¶
Package t324 measures the T32.4 direct-search topology against T32.2's source-free trigger and T32.3's independent public oracle. Production packages must not import spike packages.
Index ¶
- Constants
- func DecodeStrict[T any](data []byte) (T, error)
- func MarshalCanonical(value any) ([]byte, error)
- func SHA256(data []byte) string
- func ValidateReceipt(receipt Receipt) error
- type BuildMeasurement
- type Claims
- type Correctness
- type Environment
- type Inputs
- type NeutralCost
- type NoOpMeasurement
- type PredicateMeasurement
- type ProfileMeasurement
- type QueryMeasurement
- type ReaderMeasurement
- type Receipt
- type TopologyDecision
- type TriggerDecision
Constants ¶
View Source
const ReceiptSchema = "t324-search-topology-cost-receipt-v1"
Variables ¶
This section is empty.
Functions ¶
func DecodeStrict ¶
func MarshalCanonical ¶
func ValidateReceipt ¶
Types ¶
type BuildMeasurement ¶
type Claims ¶
type Claims struct {
SourceFree bool `json:"source_free"`
SelectsInitialTopology bool `json:"selects_initial_topology"`
EstablishesSLO bool `json:"establishes_slo"`
EstablishesAccuracy bool `json:"establishes_accuracy"`
AuthorizesMultiServiceRelease bool `json:"authorizes_multi_service_release"`
ChangesProductionBehavior bool `json:"changes_production_behavior"`
}
type Correctness ¶
type Correctness struct {
Revisions int `json:"revisions"`
OracleQueries int `json:"oracle_queries"`
ExecutedQueries int `json:"executed_queries"`
AuthorityEmptyQueries int `json:"authority_empty_queries"`
AuthorityAdmissionChecked bool `json:"authority_admission_checked"`
AllCodeEqual bool `json:"all_code_equal"`
ServiceEqual bool `json:"service_equal"`
PredicatesInsideZoekt bool `json:"predicates_inside_zoekt"`
BroadQueriesEqual bool `json:"broad_queries_equal"`
AdversarialRankingStable bool `json:"adversarial_ranking_stable"`
TopKEqual bool `json:"top_k_equal"`
RevisionBound bool `json:"revision_bound"`
PerRevisionCatalogEqual bool `json:"per_revision_catalog_equal"`
PriorRevisionRepeatable bool `json:"prior_revision_repeatable"`
BranchABASelectionEqual bool `json:"branch_a_b_a_selection_equal"`
}
type Environment ¶
type NeutralCost ¶
type NeutralCost struct {
Build BuildMeasurement `json:"build"`
Reader ReaderMeasurement `json:"reader"`
ColdQueryMS int64 `json:"cold_query_ms"`
WarmQueryMS int64 `json:"warm_query_ms"`
QueryCount int `json:"query_count"`
ResultDigest string `json:"result_digest"`
}
type NoOpMeasurement ¶
type PredicateMeasurement ¶
type ProfileMeasurement ¶
type ProfileMeasurement struct {
Name string `json:"name"`
Services int `json:"services"`
Files int `json:"files"`
Memberships int `json:"memberships"`
Build BuildMeasurement `json:"build"`
SingleFileEdit BuildMeasurement `json:"single_file_edit"`
Reader ReaderMeasurement `json:"reader"`
Queries QueryMeasurement `json:"queries"`
Predicates PredicateMeasurement `json:"predicates"`
NoOp NoOpMeasurement `json:"no_op"`
}
type QueryMeasurement ¶
type QueryMeasurement struct {
QueryCount int `json:"query_count"`
ColdTotalUS int64 `json:"cold_total_us"`
WarmTotalUS int64 `json:"warm_total_us"`
ColdWarmEqual bool `json:"cold_warm_equal"`
BroadTopK int `json:"broad_top_k"`
ServiceTopK int `json:"service_top_k"`
ResultDigest string `json:"result_digest"`
}
type ReaderMeasurement ¶
type Receipt ¶
type Receipt struct {
Schema string `json:"schema"`
MeasuredOn string `json:"measured_on"`
Inputs Inputs `json:"inputs"`
Environment Environment `json:"environment"`
Trigger TriggerDecision `json:"cohort_trigger"`
Correctness Correctness `json:"correctness"`
NeutralCost NeutralCost `json:"neutral_cost"`
Profiles []ProfileMeasurement `json:"profiles"`
Decisions []TopologyDecision `json:"decisions"`
Claims Claims `json:"claims"`
}
type TopologyDecision ¶
Click to show internal directories.
Click to hide internal directories.