diff --git a/cmd/mcp-rental-listings/main.go b/cmd/mcp-rental-listings/main.go index 11a6e26..0722efc 100644 --- a/cmd/mcp-rental-listings/main.go +++ b/cmd/mcp-rental-listings/main.go @@ -15,15 +15,15 @@ import ( // listing is the normalized response shape. type listing struct { - Source string `json:"source"` - ListingID string `json:"listing_id"` - Title string `json:"title"` - City string `json:"city"` - Country string `json:"country"` + Source string `json:"source"` + ListingID string `json:"listing_id"` + Title string `json:"title"` + City string `json:"city"` + Country string `json:"country"` MonthlyRent float64 `json:"monthly_rent"` - Currency string `json:"currency"` - ContactPhone string `json:"contact_phone,omitempty"` - ListingURL string `json:"listing_url,omitempty"` + Currency string `json:"currency"` + ContactPhone string `json:"contact_phone,omitempty"` + ListingURL string `json:"listing_url,omitempty"` } // validateURL keeps us from accidentally crawling private nets. diff --git a/internal/archival/landing/page.go b/internal/archival/landing/page.go index 054a9c2..4dc91c9 100644 --- a/internal/archival/landing/page.go +++ b/internal/archival/landing/page.go @@ -7,13 +7,13 @@ import "fmt" // Citation is the metadata that drives the landing page. type Citation struct { - DOI string - Year int - URL string - Title string - Bytes int64 - Records int - SHA256 string + DOI string + Year int + URL string + Title string + Bytes int64 + Records int + SHA256 string } // BibTeX returns the BibTeX entry. diff --git a/internal/archival/snapshot/snapshot.go b/internal/archival/snapshot/snapshot.go index 261ee08..764c4d0 100644 --- a/internal/archival/snapshot/snapshot.go +++ b/internal/archival/snapshot/snapshot.go @@ -7,10 +7,10 @@ import "time" // Spec drives a snapshot export. type Spec struct { - Year int - Region string - DestBucket string - StoreClass string // "cold", "deep-archive", "tape" + Year int + Region string + DestBucket string + StoreClass string // "cold", "deep-archive", "tape" } // Result is the produced artifact. diff --git a/internal/archival/timemachine/asof.go b/internal/archival/timemachine/asof.go index b7cf798..17b8b95 100644 --- a/internal/archival/timemachine/asof.go +++ b/internal/archival/timemachine/asof.go @@ -13,7 +13,7 @@ type Query struct { // Resolver maps an AsOf date to the storage paths that cover it. type Resolver struct { - AnnualArchives map[int]string // year -> archive URL + AnnualArchives map[int]string // year -> archive URL MonthlyDeltas map[string]string // "2026-05" -> delta URL } diff --git a/internal/callerid/power/aware.go b/internal/callerid/power/aware.go index 50d0852..4f5a550 100644 --- a/internal/callerid/power/aware.go +++ b/internal/callerid/power/aware.go @@ -7,7 +7,7 @@ package power type Mode string const ( - ModeNormal Mode = "normal" + ModeNormal Mode = "normal" ModeBatterySaver Mode = "battery_saver" ) diff --git a/internal/capacity/alumni/alumni.go b/internal/capacity/alumni/alumni.go index bfc8169..479aca0 100644 --- a/internal/capacity/alumni/alumni.go +++ b/internal/capacity/alumni/alumni.go @@ -6,10 +6,10 @@ import "time" // Member is one alumni record. type Member struct { - ID string - OperatorID string - LeftAt time.Time - Reason string + ID string + OperatorID string + LeftAt time.Time + Reason string StayConnected bool } diff --git a/internal/capacity/groups/regional.go b/internal/capacity/groups/regional.go index d20423d..9bbea18 100644 --- a/internal/capacity/groups/regional.go +++ b/internal/capacity/groups/regional.go @@ -4,8 +4,8 @@ package groups // Region is a working group region. type Region struct { - ID string - Name string + ID string + Name string Coordinator string } diff --git a/internal/capacity/mentor/match.go b/internal/capacity/mentor/match.go index 7941d31..acedfbd 100644 --- a/internal/capacity/mentor/match.go +++ b/internal/capacity/mentor/match.go @@ -6,9 +6,9 @@ import "strings" // Operator is one operator profile. type Operator struct { - ID string - Country string - Region string + ID string + Country string + Region string Languages []string IsMentor bool OpenSlots int diff --git a/internal/capacity/metrics/partner.go b/internal/capacity/metrics/partner.go index 3ed306a..25c0486 100644 --- a/internal/capacity/metrics/partner.go +++ b/internal/capacity/metrics/partner.go @@ -7,12 +7,12 @@ import "time" // Snapshot is one per-partner measurement. type Snapshot struct { - PartnerID string - At time.Time - VerdictsLast30d int + PartnerID string + At time.Time + VerdictsLast30d int UniqueUsersLast30d int - UnresolvedAppeals int - MentorshipMinutes int + UnresolvedAppeals int + MentorshipMinutes int } // Healthy reports whether the partner is hitting the soft floors. A diff --git a/internal/capacity/onboarding/selfserve.go b/internal/capacity/onboarding/selfserve.go index 1e05f3d..36dd950 100644 --- a/internal/capacity/onboarding/selfserve.go +++ b/internal/capacity/onboarding/selfserve.go @@ -9,10 +9,10 @@ import "time" // Step is one step in the partner self-serve flow. type Step struct { - ID string - Title string - EstMinutes int - Order int + ID string + Title string + EstMinutes int + Order int } // Defaults returns the canonical ordered steps. diff --git a/internal/compliance/audit/iso27001.go b/internal/compliance/audit/iso27001.go index 36988b3..ae1c8b3 100644 --- a/internal/compliance/audit/iso27001.go +++ b/internal/compliance/audit/iso27001.go @@ -24,7 +24,7 @@ func Defaults() []Retention { // ISO 27001 controls. The verifier walks the chain and recomputes // hashes. type IntegrityCheck struct { - At time.Time - EntriesChecked int - BrokenAt int // -1 if intact + At time.Time + EntriesChecked int + BrokenAt int // -1 if intact } diff --git a/internal/compliance/dpdpa/consent.go b/internal/compliance/dpdpa/consent.go index 7192514..dfd110b 100644 --- a/internal/compliance/dpdpa/consent.go +++ b/internal/compliance/dpdpa/consent.go @@ -9,9 +9,9 @@ import "time" type Purpose string const ( - PurposeVerdict Purpose = "verdict-generation" - PurposeResearch Purpose = "research-sharing" - PurposeRegulator Purpose = "regulator-forwarding" + PurposeVerdict Purpose = "verdict-generation" + PurposeResearch Purpose = "research-sharing" + PurposeRegulator Purpose = "regulator-forwarding" PurposeImproveAgent Purpose = "improve-agent" ) diff --git a/internal/compliance/pdpl/residency.go b/internal/compliance/pdpl/residency.go index 5a65227..6abcd19 100644 --- a/internal/compliance/pdpl/residency.go +++ b/internal/compliance/pdpl/residency.go @@ -15,8 +15,8 @@ const ( // TransferDecision is the outcome of a cross-border check. type TransferDecision struct { - Allowed bool - Mechanism string // "adequacy", "scc", "consent", "data-localised" + Allowed bool + Mechanism string // "adequacy", "scc", "consent", "data-localised" JustificationRequired bool } diff --git a/internal/defense/effectiveness/report.go b/internal/defense/effectiveness/report.go index 13445fc..b47dd3b 100644 --- a/internal/defense/effectiveness/report.go +++ b/internal/defense/effectiveness/report.go @@ -27,13 +27,13 @@ type Row struct { // Summary is the monthly aggregate. type Summary struct { - Month time.Month - Year int - Total int - Accepted int - Rejected int - Ignored int - Respawned int + Month time.Month + Year int + Total int + Accepted int + Rejected int + Ignored int + Respawned int MedianHoursOnline int } diff --git a/internal/defense/takedown/registrar.go b/internal/defense/takedown/registrar.go index e4a0dbe..6fb0873 100644 --- a/internal/defense/takedown/registrar.go +++ b/internal/defense/takedown/registrar.go @@ -11,12 +11,12 @@ import ( // Packet is the assembled report. type Packet struct { - Registrar string - Domain string - ReportedAt time.Time - Evidence []Evidence - ContactEmail string - ContactOrg string + Registrar string + Domain string + ReportedAt time.Time + Evidence []Evidence + ContactEmail string + ContactOrg string } // Evidence is one item attached to the packet. diff --git a/internal/edu/commission/illegal.go b/internal/edu/commission/illegal.go index 6eed3db..0b2699f 100644 --- a/internal/edu/commission/illegal.go +++ b/internal/edu/commission/illegal.go @@ -6,9 +6,9 @@ package commission // Rule captures the per-country position on student-paid commissions. type Rule struct { - Country string + Country string StudentMaxFeeUSD float64 - Notes string + Notes string } // Defaults is a seed table. diff --git a/internal/edu/ngo/partner.go b/internal/edu/ngo/partner.go index 9fa4f31..9d9d425 100644 --- a/internal/edu/ngo/partner.go +++ b/internal/edu/ngo/partner.go @@ -7,12 +7,12 @@ import "time" // Partner is a student association running an edu instance. type Partner struct { - ID string - Name string - Country string - Logo string - Theme string - Members int + ID string + Name string + Country string + Logo string + Theme string + Members int ActivatedAt time.Time } diff --git a/internal/edu/rules/millpack.go b/internal/edu/rules/millpack.go index 013c342..842154a 100644 --- a/internal/edu/rules/millpack.go +++ b/internal/edu/rules/millpack.go @@ -12,12 +12,12 @@ type Flag struct { // Submission is the input. type Submission struct { - Institution string - Program string - OffersLifeExperience bool - AccreditorClaim string + Institution string + Program string + OffersLifeExperience bool + AccreditorClaim string UnaccreditedConfirmed bool - WebsiteAgeDays int + WebsiteAgeDays int UncorroboratedProgram bool } diff --git a/internal/embassy/analytics/aggregate.go b/internal/embassy/analytics/aggregate.go index c23994d..2efe053 100644 --- a/internal/embassy/analytics/aggregate.go +++ b/internal/embassy/analytics/aggregate.go @@ -6,12 +6,12 @@ import "time" // WeekStats is one week of activity for one kiosk. type WeekStats struct { - KioskID string - WeekStart time.Time - Sessions int - GreenVerdicts int - YellowVerdicts int - RedVerdicts int + KioskID string + WeekStart time.Time + Sessions int + GreenVerdicts int + YellowVerdicts int + RedVerdicts int OverridesByOfficer int AvgSessionSeconds int } diff --git a/internal/embassy/checklist/green.go b/internal/embassy/checklist/green.go index c70789c..a6a6b5e 100644 --- a/internal/embassy/checklist/green.go +++ b/internal/embassy/checklist/green.go @@ -7,8 +7,8 @@ import "io" // Item is one checklist line. type Item struct { - Code string - Label string + Code string + Label string Mandatory bool } diff --git a/internal/embassy/fleet/fleet.go b/internal/embassy/fleet/fleet.go index 9cc372f..ab10dda 100644 --- a/internal/embassy/fleet/fleet.go +++ b/internal/embassy/fleet/fleet.go @@ -9,11 +9,11 @@ import ( // Kiosk is one deployed device. type Kiosk struct { - ID string - Embassy string - Country string - Version string - LastHeartbeat time.Time + ID string + Embassy string + Country string + Version string + LastHeartbeat time.Time OnlineHours24h int } diff --git a/internal/embassy/officer/mode.go b/internal/embassy/officer/mode.go index 4713102..2f2c6e3 100644 --- a/internal/embassy/officer/mode.go +++ b/internal/embassy/officer/mode.go @@ -21,12 +21,12 @@ type Note struct { // Override records an officer-issued change to a verdict band. type Override struct { - OfficerID string - At time.Time - FromBand string - ToBand string - Reason string - VerdictID string + OfficerID string + At time.Time + FromBand string + ToBand string + Reason string + VerdictID string } // ValidateOverride enforces that an officer override has a documented diff --git a/internal/embassy/printer/escpos.go b/internal/embassy/printer/escpos.go index 7f7d197..17dd5af 100644 --- a/internal/embassy/printer/escpos.go +++ b/internal/embassy/printer/escpos.go @@ -10,12 +10,12 @@ import ( // Command bytes per the ESC/POS reference manual. var ( - cmdInit = []byte{0x1B, 0x40} - cmdBoldOn = []byte{0x1B, 0x45, 0x01} - cmdBoldOff = []byte{0x1B, 0x45, 0x00} - cmdCenter = []byte{0x1B, 0x61, 0x01} - cmdLeft = []byte{0x1B, 0x61, 0x00} - cmdCut = []byte{0x1D, 0x56, 0x00} + cmdInit = []byte{0x1B, 0x40} + cmdBoldOn = []byte{0x1B, 0x45, 0x01} + cmdBoldOff = []byte{0x1B, 0x45, 0x00} + cmdCenter = []byte{0x1B, 0x61, 0x01} + cmdLeft = []byte{0x1B, 0x61, 0x00} + cmdCut = []byte{0x1D, 0x56, 0x00} ) // Printer is a minimal wrapper. diff --git a/internal/greenops/benchmarks/release.go b/internal/greenops/benchmarks/release.go index acf8c30..cccfa45 100644 --- a/internal/greenops/benchmarks/release.go +++ b/internal/greenops/benchmarks/release.go @@ -6,20 +6,20 @@ import "time" // Row is one per-release measurement. type Row struct { - Release string - CapturedAt time.Time - JoulesPerVerdict float64 - TokensPerVerdict int + Release string + CapturedAt time.Time + JoulesPerVerdict float64 + TokensPerVerdict int MCPCallsPerVerdict int GramsCO2PerVerdict float64 } // Regression is the per-axis tolerance. type Regression struct { - JoulesPctMax float64 - TokensPctMax float64 + JoulesPctMax float64 + TokensPctMax float64 MCPCallsPctMax float64 - CO2PctMax float64 + CO2PctMax float64 } // Default is the tolerance Joblantern publishes — small regressions diff --git a/internal/greenops/colocation/region.go b/internal/greenops/colocation/region.go index eff6f2e..2cf73c3 100644 --- a/internal/greenops/colocation/region.go +++ b/internal/greenops/colocation/region.go @@ -4,8 +4,8 @@ package colocation // Region is a colocation candidate. type Region struct { - ID string - Name string + ID string + Name string GridGCO2PerKWh float64 } diff --git a/internal/greenops/footprint/report.go b/internal/greenops/footprint/report.go index 56d9f9b..7fbe619 100644 --- a/internal/greenops/footprint/report.go +++ b/internal/greenops/footprint/report.go @@ -6,12 +6,12 @@ import "time" // Sample is one verdict's resource use. type Sample struct { - VerdictID string - At time.Time - CPUSeconds float64 - LLMtokens int - BytesEgress int64 - Region string + VerdictID string + At time.Time + CPUSeconds float64 + LLMtokens int + BytesEgress int64 + Region string GridGCO2PerKWh float64 } @@ -33,9 +33,9 @@ func (s Sample) GramsCO2() float64 { // MonthlySummary is the aggregate. type MonthlySummary struct { - Month time.Month - Year int - Verdicts int - TotalGramsCO2 float64 - PerVerdictGrams float64 + Month time.Month + Year int + Verdicts int + TotalGramsCO2 float64 + PerVerdictGrams float64 } diff --git a/internal/greenops/grid/electricitymaps.go b/internal/greenops/grid/electricitymaps.go index 28fc299..757aacf 100644 --- a/internal/greenops/grid/electricitymaps.go +++ b/internal/greenops/grid/electricitymaps.go @@ -15,9 +15,9 @@ type Intensity float64 // Sample is one measurement. type Sample struct { - Region string - At time.Time - Value Intensity + Region string + At time.Time + Value Intensity } // Client is the abstraction. diff --git a/internal/greenops/models/small.go b/internal/greenops/models/small.go index d02cb4e..fb5d432 100644 --- a/internal/greenops/models/small.go +++ b/internal/greenops/models/small.go @@ -5,8 +5,8 @@ package models // Choice is the policy for one stage. type Choice struct { - Stage string - Primary string + Stage string + Primary string Tiebreak string } diff --git a/internal/greenops/page/public.go b/internal/greenops/page/public.go index 4181aec..9487655 100644 --- a/internal/greenops/page/public.go +++ b/internal/greenops/page/public.go @@ -6,12 +6,12 @@ import "fmt" // Data is what the page expects. type Data struct { - Month string - Verdicts int - TotalGramsCO2 float64 - PerVerdictGrams float64 - GreenSchedulerHours int - BatchInLowCarbonPct float64 + Month string + Verdicts int + TotalGramsCO2 float64 + PerVerdictGrams float64 + GreenSchedulerHours int + BatchInLowCarbonPct float64 } // Render produces a deterministic HTML page. diff --git a/internal/greenops/sla/relaxed.go b/internal/greenops/sla/relaxed.go index 4e0ce42..74acf93 100644 --- a/internal/greenops/sla/relaxed.go +++ b/internal/greenops/sla/relaxed.go @@ -9,9 +9,9 @@ import "time" type Path string const ( - PathSubmit Path = "submit" - PathView Path = "view" - PathAggregate Path = "aggregate" + PathSubmit Path = "submit" + PathView Path = "view" + PathAggregate Path = "aggregate" PathBatchRedTeam Path = "batch-red-team" ) diff --git a/internal/kg/lod/contentneg.go b/internal/kg/lod/contentneg.go index 5cc6a8b..09123a1 100644 --- a/internal/kg/lod/contentneg.go +++ b/internal/kg/lod/contentneg.go @@ -12,9 +12,9 @@ import ( type Format string const ( - FormatHTML Format = "text/html" - FormatTurtle Format = "text/turtle" - FormatJSONLD Format = "application/ld+json" + FormatHTML Format = "text/html" + FormatTurtle Format = "text/turtle" + FormatJSONLD Format = "application/ld+json" ) // Negotiate picks a format from an Accept header. @@ -32,9 +32,9 @@ func Negotiate(accept string) Format { // Handler is the LOD content-negotiating handler. type Handler struct { - HTML func(w http.ResponseWriter, r *http.Request) - Turtle func(w http.ResponseWriter, r *http.Request) - JSONLD func(w http.ResponseWriter, r *http.Request) + HTML func(w http.ResponseWriter, r *http.Request) + Turtle func(w http.ResponseWriter, r *http.Request) + JSONLD func(w http.ResponseWriter, r *http.Request) } func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { diff --git a/internal/kg/provenance/quad.go b/internal/kg/provenance/quad.go index 0610cd2..2e81e8c 100644 --- a/internal/kg/provenance/quad.go +++ b/internal/kg/provenance/quad.go @@ -7,11 +7,11 @@ import "time" // Quad is a triple plus the named-graph context. type Quad struct { - Subject string - Predicate string - Object string - Graph string - Source string // e.g. "mcp-registry:gov-uk" + Subject string + Predicate string + Object string + Graph string + Source string // e.g. "mcp-registry:gov-uk" HarvestedAt time.Time } diff --git a/internal/kg/schema/mapping.go b/internal/kg/schema/mapping.go index b535d46..e79bbe9 100644 --- a/internal/kg/schema/mapping.go +++ b/internal/kg/schema/mapping.go @@ -12,15 +12,15 @@ const Base = "https://joblantern.org/kg/" type Predicate string const ( - PredHasRiskBand Predicate = "hasRiskBand" - PredHasIndustry Predicate = "hasIndustry" - PredHasCountry Predicate = "hasCountry" - PredHasPhone Predicate = "hasPhone" - PredHasEmail Predicate = "hasEmail" - PredHasDirector Predicate = "hasDirector" - PredHasAddress Predicate = "hasAddress" - PredHasEvidence Predicate = "hasEvidence" - PredVerifiedAt Predicate = "verifiedAt" + PredHasRiskBand Predicate = "hasRiskBand" + PredHasIndustry Predicate = "hasIndustry" + PredHasCountry Predicate = "hasCountry" + PredHasPhone Predicate = "hasPhone" + PredHasEmail Predicate = "hasEmail" + PredHasDirector Predicate = "hasDirector" + PredHasAddress Predicate = "hasAddress" + PredHasEvidence Predicate = "hasEvidence" + PredVerifiedAt Predicate = "verifiedAt" ) // VerdictIRI returns the IRI for a verdict id. diff --git a/internal/kg/vocab/align.go b/internal/kg/vocab/align.go index 6c27e9c..11ec771 100644 --- a/internal/kg/vocab/align.go +++ b/internal/kg/vocab/align.go @@ -5,7 +5,7 @@ package vocab // Alignment maps a Joblantern predicate to one or more equivalent // external predicates. type Alignment struct { - Local string + Local string EquivalentTo []string } diff --git a/internal/marketplace/operator/api.go b/internal/marketplace/operator/api.go index d596085..015b412 100644 --- a/internal/marketplace/operator/api.go +++ b/internal/marketplace/operator/api.go @@ -16,9 +16,9 @@ type Subscription struct { // Notification is the wire form delivered to operator endpoints. type Notification struct { - IncidentID string `json:"incident_id"` - ListingID string `json:"listing_id"` - Band string `json:"band"` - Confidence float64 `json:"confidence"` - At time.Time `json:"at"` + IncidentID string `json:"incident_id"` + ListingID string `json:"listing_id"` + Band string `json:"band"` + Confidence float64 `json:"confidence"` + At time.Time `json:"at"` } diff --git a/internal/marketplace/redflags/rules.go b/internal/marketplace/redflags/rules.go index 31bcad5..e5a28da 100644 --- a/internal/marketplace/redflags/rules.go +++ b/internal/marketplace/redflags/rules.go @@ -12,12 +12,12 @@ type Flag struct { // Submission is the input the rule pack consumes. type Submission struct { - PaymentMethod string - ShippingMethod string - PriceBelowMedianRatio float64 - OfferOnlyByDirect bool + PaymentMethod string + ShippingMethod string + PriceBelowMedianRatio float64 + OfferOnlyByDirect bool BuyerPaysShippingViaSeller bool - AdvanceFeeRequested bool + AdvanceFeeRequested bool } // Scan runs the rule pack. diff --git a/internal/multitenant/export/offboard.go b/internal/multitenant/export/offboard.go index 5469dc3..a93d4a4 100644 --- a/internal/multitenant/export/offboard.go +++ b/internal/multitenant/export/offboard.go @@ -8,13 +8,13 @@ import "time" // Archive describes the offboarding bundle. type Archive struct { - TenantID string - GeneratedAt time.Time - Verdicts int - Evidence int - BlocklistRow int + TenantID string + GeneratedAt time.Time + Verdicts int + Evidence int + BlocklistRow int BytesEstimate int64 - URL string + URL string } // OffboardSchedule returns the deletion deadline (now + 30 days). diff --git a/internal/multitenant/onboarding/flow.go b/internal/multitenant/onboarding/flow.go index c2a000f..738d62a 100644 --- a/internal/multitenant/onboarding/flow.go +++ b/internal/multitenant/onboarding/flow.go @@ -10,12 +10,12 @@ import ( // Application is the signup payload. type Application struct { - Slug string - DisplayName string - ContactEmail string - Country string - Mission string - NGORegistry string + Slug string + DisplayName string + ContactEmail string + Country string + Mission string + NGORegistry string NGORegistryID string } diff --git a/internal/multitenant/sla/monitor.go b/internal/multitenant/sla/monitor.go index 34e26f5..972aba1 100644 --- a/internal/multitenant/sla/monitor.go +++ b/internal/multitenant/sla/monitor.go @@ -7,10 +7,10 @@ import "time" // Target is the SLA target per plan. type Target struct { - PlanID string - UptimePct float64 - VerdictP99Ms int - SupportHours string + PlanID string + UptimePct float64 + VerdictP99Ms int + SupportHours string } // Plans is the canonical SLA table. diff --git a/internal/personalization/bias/audit.go b/internal/personalization/bias/audit.go index 04c1732..bcd4586 100644 --- a/internal/personalization/bias/audit.go +++ b/internal/personalization/bias/audit.go @@ -24,9 +24,9 @@ type Profile struct { // Result records the audit outcome for one pair. type Result struct { - Pair Pair - BandA string - BandB string + Pair Pair + BandA string + BandB string Equivalent bool } diff --git a/internal/personalization/explain/reason.go b/internal/personalization/explain/reason.go index 4de2fe5..b9db55c 100644 --- a/internal/personalization/explain/reason.go +++ b/internal/personalization/explain/reason.go @@ -10,9 +10,9 @@ import ( // Factors is the structured input to the explainer. type Factors struct { - RoleMismatch bool - SalaryFarAboveBand bool - DestinationAnomaly bool + RoleMismatch bool + SalaryFarAboveBand bool + DestinationAnomaly bool YearsBelowRequirement bool } diff --git a/internal/personalization/privacy/memonly.go b/internal/personalization/privacy/memonly.go index 12a35f1..034cc61 100644 --- a/internal/personalization/privacy/memonly.go +++ b/internal/personalization/privacy/memonly.go @@ -25,9 +25,9 @@ func Scrub(b []byte) { type Consent string const ( - RetainNo Consent = "no" - RetainResearchOnly Consent = "research-only" - RetainImproveAgent Consent = "improve-agent" + RetainNo Consent = "no" + RetainResearchOnly Consent = "research-only" + RetainImproveAgent Consent = "improve-agent" ) // PersistAllowed returns whether the supplied consent permits writing diff --git a/internal/personalization/salary/tier.go b/internal/personalization/salary/tier.go index 96de09a..4aea2bd 100644 --- a/internal/personalization/salary/tier.go +++ b/internal/personalization/salary/tier.go @@ -8,11 +8,11 @@ package salary // Band is the inferred plausible salary range for a candidate at a // destination country. type Band struct { - Country string - Currency string - RoleP25 float64 - RoleP50 float64 - RoleP75 float64 + Country string + Currency string + RoleP25 float64 + RoleP50 float64 + RoleP75 float64 } // Bump computes a risk adjustment based on how far the offered diff --git a/internal/personalization/ui/factors.go b/internal/personalization/ui/factors.go index 7425a0e..b7cfb26 100644 --- a/internal/personalization/ui/factors.go +++ b/internal/personalization/ui/factors.go @@ -3,9 +3,9 @@ package ui // FactorRow is one factor as rendered to the user. type FactorRow struct { - Label string - Value string - Impact string // "raises risk", "lowers risk", "neutral" + Label string + Value string + Impact string // "raises risk", "lowers risk", "neutral" } // Render produces a stable, presentation-ready slice of rows from a diff --git a/internal/redteam/adversarial/evade.go b/internal/redteam/adversarial/evade.go index bde311b..aeb15ed 100644 --- a/internal/redteam/adversarial/evade.go +++ b/internal/redteam/adversarial/evade.go @@ -23,7 +23,7 @@ func (PhoneSplitter) Mutate(body string) string { type HomographSwap struct{} func (HomographSwap) Mutate(body string) string { - r := strings.NewReplacer("URGENT", "URGEN" + string('Т'), "Pay", "Pаy") + r := strings.NewReplacer("URGENT", "URGEN"+string('Т'), "Pay", "Pаy") return r.Replace(body) } diff --git a/internal/redteam/bounty/intake.go b/internal/redteam/bounty/intake.go index 000ccf9..43dc96d 100644 --- a/internal/redteam/bounty/intake.go +++ b/internal/redteam/bounty/intake.go @@ -7,12 +7,12 @@ import "time" // Submission is the wire form of a bounty submission. type Submission struct { - ID string - ReporterEmail string - Severity string // "low", "medium", "high", "critical" - Title string - Summary string - ReceivedAt time.Time + ID string + ReporterEmail string + Severity string // "low", "medium", "high", "critical" + Title string + Summary string + ReceivedAt time.Time PgpFingerprint string } diff --git a/internal/redteam/defense/depth.go b/internal/redteam/defense/depth.go index d0f0f80..2325692 100644 --- a/internal/redteam/defense/depth.go +++ b/internal/redteam/defense/depth.go @@ -6,11 +6,11 @@ package defense type Layer string const ( - LayerRules Layer = "rules" - LayerAgent Layer = "agent" - LayerHumanMod Layer = "moderation" - LayerRegistry Layer = "registry" - LayerNetwork Layer = "network" + LayerRules Layer = "rules" + LayerAgent Layer = "agent" + LayerHumanMod Layer = "moderation" + LayerRegistry Layer = "registry" + LayerNetwork Layer = "network" ) // Catch records which layers stopped a given attack. diff --git a/internal/redteam/detection/dashboard.go b/internal/redteam/detection/dashboard.go index 3577a16..063e6f8 100644 --- a/internal/redteam/detection/dashboard.go +++ b/internal/redteam/detection/dashboard.go @@ -5,8 +5,8 @@ import "time" // Point is one daily measurement. type Point struct { - Day time.Time - DetectionRate float64 // 0..1 + Day time.Time + DetectionRate float64 // 0..1 AdversarialRate float64 } diff --git a/internal/redteam/generator/synthetic.go b/internal/redteam/generator/synthetic.go index 79bf024..5327acd 100644 --- a/internal/redteam/generator/synthetic.go +++ b/internal/redteam/generator/synthetic.go @@ -7,16 +7,16 @@ import "time" // Listing is a generated test listing. type Listing struct { - ID string - Title string - Body string - Country string - Industry string - Phone string - Email string - Domain string - Salary float64 - Currency string + ID string + Title string + Body string + Country string + Industry string + Phone string + Email string + Domain string + Salary float64 + Currency string GroundTruth string // "scam", "ambiguous", "legit" } diff --git a/internal/redteam/regression/promote.go b/internal/redteam/regression/promote.go index 182f47d..8c57ec7 100644 --- a/internal/redteam/regression/promote.go +++ b/internal/redteam/regression/promote.go @@ -6,12 +6,12 @@ import "time" // Promotion is one promoted fixture entry. type Promotion struct { - FixtureID string - BodySHA256 string - Mutators []string - PromotedAt time.Time - PromotedBy string - Rationale string + FixtureID string + BodySHA256 string + Mutators []string + PromotedAt time.Time + PromotedBy string + Rationale string } // File is the on-disk format we serialise to internal/redteam/corpus. diff --git a/internal/regulator/bulletins/sign.go b/internal/regulator/bulletins/sign.go index e63b99a..77b045e 100644 --- a/internal/regulator/bulletins/sign.go +++ b/internal/regulator/bulletins/sign.go @@ -15,13 +15,13 @@ import ( // Bulletin is one signed public statement. type Bulletin struct { - ID string `json:"id"` - Regulator string `json:"regulator"` - IssuedAt time.Time `json:"issued_at"` - Title string `json:"title"` - Body string `json:"body"` - Signature string `json:"signature"` - KeyFingerprint string `json:"key_fingerprint"` + ID string `json:"id"` + Regulator string `json:"regulator"` + IssuedAt time.Time `json:"issued_at"` + Title string `json:"title"` + Body string `json:"body"` + Signature string `json:"signature"` + KeyFingerprint string `json:"key_fingerprint"` } // canonical returns the canonical JSON used as the signing payload. diff --git a/internal/regulator/dashboard/national.go b/internal/regulator/dashboard/national.go index 6a4469d..dc60ad9 100644 --- a/internal/regulator/dashboard/national.go +++ b/internal/regulator/dashboard/national.go @@ -7,14 +7,14 @@ import "time" // Stats is the canonical national view served to a regulator account. type Stats struct { - Country string `json:"country"` - GeneratedAt time.Time `json:"generated_at"` - TotalVerdicts int `json:"total_verdicts"` - RedVerdicts int `json:"red_verdicts"` - YellowVerdicts int `json:"yellow_verdicts"` - GreenVerdicts int `json:"green_verdicts"` - TopRedFlags []Bucket `json:"top_red_flags"` - TopDestinationIndustries []Bucket `json:"top_destination_industries"` + Country string `json:"country"` + GeneratedAt time.Time `json:"generated_at"` + TotalVerdicts int `json:"total_verdicts"` + RedVerdicts int `json:"red_verdicts"` + YellowVerdicts int `json:"yellow_verdicts"` + GreenVerdicts int `json:"green_verdicts"` + TopRedFlags []Bucket `json:"top_red_flags"` + TopDestinationIndustries []Bucket `json:"top_destination_industries"` } // Bucket is a label/count pair. diff --git a/internal/regulator/tier.go b/internal/regulator/tier.go index 56270d8..9816ced 100644 --- a/internal/regulator/tier.go +++ b/internal/regulator/tier.go @@ -20,13 +20,13 @@ import ( // Account is a verified regulator principal. type Account struct { - ID string - Country string - Agency string - OfficialEmail string - OfficialDomain string - LetterSHA256 string - VerifiedAt time.Time + ID string + Country string + Agency string + OfficialEmail string + OfficialDomain string + LetterSHA256 string + VerifiedAt time.Time MTLSFingerprint string } diff --git a/internal/rental/redflags/rules.go b/internal/rental/redflags/rules.go index ac60b89..b8b1895 100644 --- a/internal/rental/redflags/rules.go +++ b/internal/rental/redflags/rules.go @@ -39,9 +39,9 @@ func Scan(s Submission) []Flag { // Submission is the rental input the rule pack consumes. type Submission struct { - DepositMethod string - NoInPersonViewingOffered bool - ReverseImageHits int - RentBelowMarketRatio float64 - UrgencyPhrases int + DepositMethod string + NoInPersonViewingOffered bool + ReverseImageHits int + RentBelowMarketRatio float64 + UrgencyPhrases int } diff --git a/internal/rental/shared.go b/internal/rental/shared.go index 3573078..2a37fd2 100644 --- a/internal/rental/shared.go +++ b/internal/rental/shared.go @@ -8,27 +8,27 @@ import "context" // Verdict is a housing-specific verdict. type Verdict struct { - ID string - RiskScore int - RiskBand string - RedFlags []string - Citations []string + ID string + RiskScore int + RiskBand string + RedFlags []string + Citations []string JoinedJobID string } // Submission is the input to the rental agent. type Submission struct { - Country string - City string - ListingURL string - ListingText string - MonthlyRent float64 - Currency string - DepositMethod string - ContactPhone string - ContactEmail string - LandlordName string - ImageURLs []string + Country string + City string + ListingURL string + ListingText string + MonthlyRent float64 + Currency string + DepositMethod string + ContactPhone string + ContactEmail string + LandlordName string + ImageURLs []string } // AgentRunner is the contract the rental agent expects from the diff --git a/internal/research/advisory/board.go b/internal/research/advisory/board.go index 5f28132..d4b3331 100644 --- a/internal/research/advisory/board.go +++ b/internal/research/advisory/board.go @@ -5,11 +5,11 @@ package advisory // Member is one board member. type Member struct { - ID string - Name string - Field string // "migration", "labor-econ", "law", "ml-ethics", "data-engineering" + ID string + Name string + Field string // "migration", "labor-econ", "law", "ml-ethics", "data-engineering" Affiliation string - Term string // "2026-2028" + Term string // "2026-2028" } // Defaults captures the seed composition. diff --git a/internal/research/opendata/schedule.go b/internal/research/opendata/schedule.go index 75746bf..6d043e7 100644 --- a/internal/research/opendata/schedule.go +++ b/internal/research/opendata/schedule.go @@ -5,9 +5,9 @@ import "time" // Release is one scheduled open-data release. type Release struct { - Cadence string - Window time.Duration - Format string + Cadence string + Window time.Duration + Format string } // Defaults captures the schedule. diff --git a/internal/research/sandbox/provision.go b/internal/research/sandbox/provision.go index 2b93232..bf4eb41 100644 --- a/internal/research/sandbox/provision.go +++ b/internal/research/sandbox/provision.go @@ -11,21 +11,21 @@ import ( // Spec is what the partnership requested. type Spec struct { - PartnerID string - Region string // residency-compliant - StartAt time.Time - EndAt time.Time - Tier string // "B" or "C" - Fields []string + PartnerID string + Region string // residency-compliant + StartAt time.Time + EndAt time.Time + Tier string // "B" or "C" + Fields []string } // Provisioning is the lifecycle status. type Provisioning struct { - Spec Spec - State string // "pending", "ready", "destroyed" - StateAt time.Time - Hostname string - Database string + Spec Spec + State string // "pending", "ready", "destroyed" + StateAt time.Time + Hostname string + Database string } // Validate enforces the minimum invariants. diff --git a/internal/researchapi/agreements/workflow.go b/internal/researchapi/agreements/workflow.go index 4b89afc..3fa0b7f 100644 --- a/internal/researchapi/agreements/workflow.go +++ b/internal/researchapi/agreements/workflow.go @@ -24,18 +24,18 @@ const ( // Agreement is a researcher data-use agreement. type Agreement struct { - ID string - ResearcherEmail string - Organization string - Tier string - CreatedAt time.Time - Status Status - BodySHA256 string - ResearcherSig []byte - JoblanternSig []byte - ResearcherPubKey ed25519.PublicKey - JoblanternPubKey ed25519.PublicKey - Body string + ID string + ResearcherEmail string + Organization string + Tier string + CreatedAt time.Time + Status Status + BodySHA256 string + ResearcherSig []byte + JoblanternSig []byte + ResearcherPubKey ed25519.PublicKey + JoblanternPubKey ed25519.PublicKey + Body string } // Sign hashes the body, validates the researcher signature and moves diff --git a/internal/researchapi/export/bulk.go b/internal/researchapi/export/bulk.go index 2d82062..5297e60 100644 --- a/internal/researchapi/export/bulk.go +++ b/internal/researchapi/export/bulk.go @@ -12,11 +12,11 @@ import ( // Cursor is the opaque page handle exchanged with researchers. type Cursor struct { - After time.Time `json:"after"` - ID string `json:"id"` - PageSize int `json:"n"` - Tier string `json:"t"` - IssuedAt time.Time `json:"iat"` + After time.Time `json:"after"` + ID string `json:"id"` + PageSize int `json:"n"` + Tier string `json:"t"` + IssuedAt time.Time `json:"iat"` } // Encode serialises a cursor to a URL-safe string. diff --git a/internal/scale/costtrack/cost.go b/internal/scale/costtrack/cost.go index 7fe94d9..9ea31bd 100644 --- a/internal/scale/costtrack/cost.go +++ b/internal/scale/costtrack/cost.go @@ -7,11 +7,11 @@ import "time" // Sample is one measurement. type Sample struct { - VerdictID string - At time.Time - LLMCents float64 - MCPCents float64 - StorageCents float64 + VerdictID string + At time.Time + LLMCents float64 + MCPCents float64 + StorageCents float64 BandwidthCents float64 } @@ -22,9 +22,9 @@ func (s Sample) Total() float64 { // MonthlyRollup is the aggregate. type MonthlyRollup struct { - Month time.Month - Year int + Month time.Month + Year int VerdictCount int - TotalCents float64 - MedianCents float64 + TotalCents float64 + MedianCents float64 } diff --git a/internal/scale/objstore/s3.go b/internal/scale/objstore/s3.go index 52b9393..925a9e9 100644 --- a/internal/scale/objstore/s3.go +++ b/internal/scale/objstore/s3.go @@ -11,11 +11,11 @@ import ( // Object is a stored artifact. type Object struct { - Bucket string - Key string - Size int64 - SHA256 string - Reader io.ReadCloser + Bucket string + Key string + Size int64 + SHA256 string + Reader io.ReadCloser } // Store is the abstraction. diff --git a/internal/trustsafety/appeals/process.go b/internal/trustsafety/appeals/process.go index d97840c..cd42dee 100644 --- a/internal/trustsafety/appeals/process.go +++ b/internal/trustsafety/appeals/process.go @@ -12,24 +12,24 @@ import ( type Stage string const ( - StageIntake Stage = "intake" - StageEvidence Stage = "evidence" - StageVote Stage = "vote" - StageDecided Stage = "decided" + StageIntake Stage = "intake" + StageEvidence Stage = "evidence" + StageVote Stage = "vote" + StageDecided Stage = "decided" ) // Appeal is the council appeal record. type Appeal struct { - ID string - Subject string - FiledBy string - FiledAt time.Time - Stage Stage - StageAt time.Time - Decision string - DecidedAt time.Time - Recused []string - Votes map[string]string // seatID -> "uphold"|"reject"|"abstain" + ID string + Subject string + FiledBy string + FiledAt time.Time + Stage Stage + StageAt time.Time + Decision string + DecidedAt time.Time + Recused []string + Votes map[string]string // seatID -> "uphold"|"reject"|"abstain" } // Promote advances the appeal to the next stage. Returns an error if diff --git a/internal/trustsafety/conflict/coi.go b/internal/trustsafety/conflict/coi.go index 38f552e..bd4c8a4 100644 --- a/internal/trustsafety/conflict/coi.go +++ b/internal/trustsafety/conflict/coi.go @@ -5,10 +5,10 @@ import "time" // Declaration is a single COI disclosure. type Declaration struct { - SeatID string - DeclaredAt time.Time - Scope string // free-text; e.g. "funded by ACME" - Active bool + SeatID string + DeclaredAt time.Time + Scope string // free-text; e.g. "funded by ACME" + Active bool } // MustRecuse reports whether a seat should recuse from a case whose diff --git a/internal/trustsafety/emergency/protocol.go b/internal/trustsafety/emergency/protocol.go index 3b5e0ed..398b3fc 100644 --- a/internal/trustsafety/emergency/protocol.go +++ b/internal/trustsafety/emergency/protocol.go @@ -12,17 +12,17 @@ import ( // Vote is one emergency vote. type Vote struct { - SeatID string - CastAt time.Time - Decision string // "approve" / "deny" + SeatID string + CastAt time.Time + Decision string // "approve" / "deny" } // Action is the emergency case in progress. type Action struct { - ID string - OpenedAt time.Time - Votes []Vote - Ratified bool + ID string + OpenedAt time.Time + Votes []Vote + Ratified bool Rolledback bool } diff --git a/internal/trustsafety/funding/independence.go b/internal/trustsafety/funding/independence.go index 7ac4b52..71860ba 100644 --- a/internal/trustsafety/funding/independence.go +++ b/internal/trustsafety/funding/independence.go @@ -5,8 +5,8 @@ package funding // Funder is one income source. type Funder struct { - ID string - Name string + ID string + Name string Annual float64 } diff --git a/internal/trustsafety/membership/seats.go b/internal/trustsafety/membership/seats.go index 4dd8d8d..6cbb141 100644 --- a/internal/trustsafety/membership/seats.go +++ b/internal/trustsafety/membership/seats.go @@ -10,22 +10,22 @@ import ( type SeatKind string const ( - SeatNGO SeatKind = "ngo" - SeatTechnical SeatKind = "technical" - SeatAcademic SeatKind = "academic" - SeatRegulator SeatKind = "regulator" + SeatNGO SeatKind = "ngo" + SeatTechnical SeatKind = "technical" + SeatAcademic SeatKind = "academic" + SeatRegulator SeatKind = "regulator" SeatEngineering SeatKind = "engineering" ) // Seat is one occupied seat. type Seat struct { - ID string - Kind SeatKind - Holder string + ID string + Kind SeatKind + Holder string Affiliation string - StartedAt time.Time - EndsAt time.Time - Suspended bool + StartedAt time.Time + EndsAt time.Time + Suspended bool } // Active reports whether the seat is currently held. diff --git a/internal/trustsafety/minutes/publish.go b/internal/trustsafety/minutes/publish.go index 0f4da84..0aeb9d7 100644 --- a/internal/trustsafety/minutes/publish.go +++ b/internal/trustsafety/minutes/publish.go @@ -7,17 +7,17 @@ import "time" // Minute is one published meeting record. type Minute struct { - ID string - MeetingAt time.Time - Quorum bool - Topics []Topic + ID string + MeetingAt time.Time + Quorum bool + Topics []Topic PublishedAt time.Time } // Topic is one discussion item. type Topic struct { - Title string - Outcome string + Title string + Outcome string CasesRef []string Redacted bool } diff --git a/internal/trustsafety/removal/cause.go b/internal/trustsafety/removal/cause.go index fbb31b7..36566d6 100644 --- a/internal/trustsafety/removal/cause.go +++ b/internal/trustsafety/removal/cause.go @@ -6,10 +6,10 @@ package removal type Cause string const ( - CauseBreachCOI Cause = "undeclared-conflict" - CauseAbsenteeism Cause = "persistent-absenteeism" - CauseConfidentiality Cause = "confidentiality-breach" - CauseMisconduct Cause = "documented-misconduct" + CauseBreachCOI Cause = "undeclared-conflict" + CauseAbsenteeism Cause = "persistent-absenteeism" + CauseConfidentiality Cause = "confidentiality-breach" + CauseMisconduct Cause = "documented-misconduct" ) // Threshold returns the council vote share required to remove a seat.