Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/missionmatch / internal/modules/commandcenter/dto.go |
| Date | Not specified in source |
| Repository | Janady13/missionmatch |
| Revision | 09015496d565a172bcaa15cfe9a8e4b072b13df0 |
| Branch | workstream-b-screenmatch |
| Path or archive member | internal/modules/commandcenter/dto.go |
| Original SHA-256 | b50317fa3dc3429146dfda1d434e8319b86e70e91cab67275ae26f8c60018693 |
| Git blob SHA | efe8b3d3c7d7164240ef04f315e29b76a0b8437b |
| Reading-copy SHA-256 | b50317fa3dc3429146dfda1d434e8319b86e70e91cab67275ae26f8c60018693 |
Every recorded occurrence
These 35 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | workstream-b-screenmatch | 09015496d565a172bcaa15cfe9a8e4b072b13df0 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | workstream-d-command-center | 255e7d1d420abf5e277d0cd8c9b14f6f72b6acb9 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | workstream-d-missionmatch | 3be46ba89edb737182075a2b320509b42dc916f8 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | workstream-e-dataflow-deploy | 433815a042f9741411e60fa553fe72143e9b10db | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | w3-ai-staffing-recommendations | 43d56387270ef4da4cabd794d97ca6a49909bc7d | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | workstream-e-commercial-stubs | 4437da660539284a400ee380b9b427a300c369ee | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | ws3-clearance | 4b8e7ce594c068621867f9c9deed0ec64ae6c553 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | workstream-c-slatematch | 5cd60c918301b46ecd6ed3e03e20c395da0062e2 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | ai-intelligence-layer | 5d5ddff70393a197c5f54a45280bb5dd42b24755 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | ws6-retrieval | 6c56e29231ec05735927fa265c97d517499dfeaf | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | per-tenant-routing | 9bde0f9a74b89d01980fa658e5253acda7528d0c | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | ai-brain-live | aac32fc49c878cc5bca099459307611562d0bac1 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | ws1-ontology-sync | b596f449a32a1016fbd403c36505cc00a1ac9ee6 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | ruthless-debug-sweep | b7d742f8f032984be3817efffa3eb8b13b651c1f | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | deploy-and-ops | bdacd9d0b4d5998d25fc74bf4007f4c3ec538c7a | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | phase2-eval-fairness | d361af254701975fe239927656ababb56374655e | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | workstream-a-shared-core | e0de03ac3a1ec826bd15d0e048e3b02baa23eeff | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | ws2-alias-relationship | e4dada4601c6eb101830f9d223a9655dfa120616 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | per-tenant-routing | 9bde0f9a74b89d01980fa658e5253acda7528d0c | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | ws6-retrieval | 6c56e29231ec05735927fa265c97d517499dfeaf | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | workstream-a-shared-core | e0de03ac3a1ec826bd15d0e048e3b02baa23eeff | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | workstream-c-slatematch | 5cd60c918301b46ecd6ed3e03e20c395da0062e2 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | ws1-ontology-sync | b596f449a32a1016fbd403c36505cc00a1ac9ee6 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | w3-ai-staffing-recommendations | 43d56387270ef4da4cabd794d97ca6a49909bc7d | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | ws3-clearance | 4b8e7ce594c068621867f9c9deed0ec64ae6c553 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | workstream-d-command-center | 255e7d1d420abf5e277d0cd8c9b14f6f72b6acb9 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | phase2-eval-fairness | d361af254701975fe239927656ababb56374655e | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | workstream-e-dataflow-deploy | 433815a042f9741411e60fa553fe72143e9b10db | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | ruthless-debug-sweep | b7d742f8f032984be3817efffa3eb8b13b651c1f | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | ai-intelligence-layer | 5d5ddff70393a197c5f54a45280bb5dd42b24755 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | deploy-and-ops | bdacd9d0b4d5998d25fc74bf4007f4c3ec538c7a | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | workstream-b-screenmatch | 09015496d565a172bcaa15cfe9a8e4b072b13df0 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | workstream-e-commercial-stubs | 4437da660539284a400ee380b9b427a300c369ee | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | ai-brain-live | aac32fc49c878cc5bca099459307611562d0bac1 | Open original |
| Janady13/missionmatch / internal/modules/commandcenter/dto.go | workstream-d-missionmatch | 3be46ba89edb737182075a2b320509b42dc916f8 | Open original |
Recovered source transcript
Download complete source text ↓259 lines · 11.3 KB
// Package commandcenter computes the Workforce Command Center™ executive dashboard, an org-level,
// RLS-scoped, set-based COVERAGE rollup answering "Can we staff this mission today?". It adds NO new
// per-candidate scoring; it reuses the engine's clearance ordinals + effective-status rule (via the
// mm_lvl_ord/mm_poly_ord SQL functions, locked to the engine by test) and the persisted slate bands.
// All math is shopspring/decimal; every aggregate runs inside one tenant transaction.
package commandcenter
// View is the full GET /api/command-center payload.
type View struct {
AsOf string `json:"as_of"`
OrganizationID string `json:"organization_id"`
GeneratedAt string `json:"generated_at"`
Meta Meta `json:"meta"`
Banner Banner `json:"banner"`
MissionReadiness MissionReadiness `json:"mission_readiness"`
ActiveOpportunities []Opportunity `json:"active_opportunities"`
StaffingGaps []Gap `json:"staffing_gaps"`
ClearanceIntelligence ClearanceIntel `json:"clearance_intelligence"`
LaborCategoryCoverage []LcatCoverage `json:"labor_category_coverage"`
ProposalReadiness ProposalReadiness `json:"proposal_readiness"`
WinImpact WinImpact `json:"win_impact"`
HeatMap []HeatMetro `json:"heat_map"`
UpcomingOpportunities []UpcomingOpportunity `json:"upcoming_opportunities"`
IncumbentLandscape []IncumbentRef `json:"incumbent_landscape"`
AIRecommendations []Recommendation `json:"ai_recommendations"`
ActionCenter ActionCenter `json:"action_center"`
}
// UpcomingOpportunity is one planning stage federal forecast surfaced beside the current readiness. It
// is planning data subject to change and never alters the current readiness or Revenue at Risk numbers.
// The fit is honest: AvailableClearedInState is a real bench count, and the comparable requirement
// coverage is the engine backed eligibility of the org's similar requirements (no parallel scoring). A
// bare forecast carries no skills, so there is no precise match score; FitNote states this plainly.
type UpcomingOpportunity struct {
RecordID string `json:"record_id"`
Title string `json:"title"`
Agency string `json:"agency"`
NAICS string `json:"naics,omitempty"`
PlaceOfPerformance string `json:"place_of_performance,omitempty"`
State string `json:"state,omitempty"`
SetAside string `json:"set_aside,omitempty"`
EstimatedValue *string `json:"estimated_value"`
EstimatedAwardDate string `json:"estimated_award_date,omitempty"`
IncumbentName string `json:"incumbent_name,omitempty"`
PlanningNote string `json:"planning_note"`
AvailableClearedInState int `json:"available_cleared_in_state"`
ComparableRequirements int `json:"comparable_requirements"`
ComparableCovered int `json:"comparable_covered"`
FitNote string `json:"fit_note"`
Adoptable bool `json:"adoptable"`
}
// IncumbentRef is one incumbent and award context row from the contract award feed: who holds a contract
// in the org's domain, with the real award value and its provenance. It is competitive intelligence read
// beside the matched workforce, never a fabricated figure.
type IncumbentRef struct {
RecordID string `json:"record_id"`
Incumbent string `json:"incumbent"`
IncumbentUEI string `json:"incumbent_uei,omitempty"`
Agency string `json:"agency"`
NAICS string `json:"naics,omitempty"`
Value *string `json:"value"`
ValueSource string `json:"value_source,omitempty"`
AwardDate string `json:"award_date,omitempty"`
Source string `json:"source"`
}
type Meta struct {
Empty bool `json:"empty"`
Notes []string `json:"notes"`
}
type Banner struct {
TotalClearedWorkforce int `json:"total_cleared_workforce"`
AvailableCandidates int `json:"available_candidates"`
ProposalReadyCandidates int `json:"proposal_ready_candidates"`
ActiveRequirements int `json:"active_requirements"`
StaffingGaps int `json:"staffing_gaps"`
HighRiskOpportunities int `json:"high_risk_opportunities"`
}
type MissionReadiness struct {
Score string `json:"score"`
Band string `json:"band"`
Status string `json:"status"`
Drivers []Driver `json:"drivers"`
AvailabilityReqCoverage string `json:"availability_req_coverage"`
Flags []string `json:"flags"`
}
type Driver struct {
Key string `json:"key"`
Label string `json:"label"`
Pct string `json:"pct"`
State string `json:"state"`
Weight string `json:"weight"`
}
type Opportunity struct {
OpportunityID string `json:"opportunity_id"`
Name string `json:"name"`
CustomerAgency string `json:"customer_agency,omitempty"`
SolicitationNumber string `json:"solicitation_number,omitempty"`
DueDate string `json:"due_date,omitempty"`
Value *string `json:"value"`
ReadinessScore string `json:"readiness_score"`
TotalRequirements int `json:"total_requirements"`
CoveredRequirements int `json:"covered_requirements"`
HeadcountNeeded int `json:"headcount_needed"`
HeadcountCovered int `json:"headcount_covered"`
KeyPersonnelOpen int `json:"key_personnel_open"`
StaffingRisk string `json:"staffing_risk"`
StaffingRiskCode string `json:"staffing_risk_code"`
}
type Gap struct {
LaborCategory string `json:"labor_category"`
RequiredLevel string `json:"required_level"`
RequiredLevelLabel string `json:"required_level_label"`
Unmet int `json:"unmet"`
BlocksKeyPersonnel bool `json:"blocks_key_personnel"`
ImpactedOpportunities []string `json:"impacted_opportunities"`
ValueAtRisk *string `json:"value_at_risk"`
// W2 counted basis: how the dollar was derived, so it is auditable, not a bare sum.
PricedOpportunities int `json:"priced_opportunities"` // opportunities with a value (counted)
UnpricedOpportunities int `json:"unpriced_opportunities"` // opportunities with a null value (excluded)
TotalOpportunities int `json:"total_opportunities"` // priced plus unpriced
ValueRepresentative bool `json:"value_representative"` // true unless every priced opp is sam or usaspending
ValueBasis string `json:"value_basis"` // human readable counted basis line
// W2 modeled Mission Readiness Impact: the coverage delta from filling this gap.
ImpactModeledPct string `json:"impact_modeled_pct"` // points of overall coverage, decimal StringFixed(2)
ImpactModeledLabel string `json:"impact_modeled_label"` // modeled framing copy
Headline string `json:"headline"`
Recommendation string `json:"recommendation"`
}
type ClearanceIntel struct {
InventoryByLevel []LevelCount `json:"inventory_by_level"`
InventoryByPoly []PolyCount `json:"inventory_by_poly"`
AvailabilityWindows AvailWindows `json:"availability_windows"`
Expiring ExpiringSummary `json:"expiring"`
}
type LevelCount struct {
Level string `json:"level"`
Label string `json:"label"`
Total int `json:"total"`
Available int `json:"available"`
}
type PolyCount struct {
Poly string `json:"poly"`
Label string `json:"label"`
Total int `json:"total"`
Available int `json:"available"`
}
type AvailWindows struct {
Now int `json:"now"`
D30 int `json:"d30"`
D60 int `json:"d60"`
D90 int `json:"d90"`
}
type ExpiringSummary struct {
Expired int `json:"expired"`
Due30 int `json:"due_30"`
Due60 int `json:"due_60"`
Due90 int `json:"due_90"`
ReinvestigationOverdue int `json:"reinvestigation_overdue"`
Alerts []ExpiryAlert `json:"alerts"`
}
type ExpiryAlert struct {
CandidateID string `json:"candidate_id"`
FullName string `json:"full_name"`
ClearanceLevel string `json:"clearance_level"`
DaysUntilExpiry int `json:"days_until_expiry"`
Severity string `json:"severity"`
}
type LcatCoverage struct {
LaborCategory string `json:"labor_category"`
Filled int `json:"filled"`
Demanded int `json:"demanded"`
Coverage string `json:"coverage"`
Color string `json:"color"`
}
type ProposalReadiness struct {
Ready int `json:"ready"`
AtRisk int `json:"at_risk"`
KeyPersonnelMissing int `json:"key_personnel_missing"`
LaborCategoriesMissing int `json:"labor_categories_missing"`
ReadyOpportunities []OppRef `json:"ready_opportunities"`
AtRiskOpportunities []OppRef `json:"at_risk_opportunities"`
KeyPersonnelMissingOpportunities []OppRef `json:"key_personnel_missing_opportunities"`
LaborCategoriesMissingOpportunities []OppRef `json:"labor_categories_missing_opportunities"`
}
type OppRef struct {
OpportunityID string `json:"opportunity_id"`
Name string `json:"name"`
}
type WinImpact struct {
HighImpactCount int `json:"high_impact_count"`
Top []WinCandidate `json:"top"`
}
type WinCandidate struct {
CandidateID string `json:"candidate_id"`
FullName string `json:"full_name"`
ClearanceLevel string `json:"clearance_level"`
Poly string `json:"poly"`
YearsExperience int `json:"years_experience"`
}
type HeatMetro struct {
Metro string `json:"metro"`
Total int `json:"total"`
Available int `json:"available"`
Cleared int `json:"cleared"`
}
type Recommendation struct {
Severity string `json:"severity"`
Message string `json:"message"`
ActionTarget string `json:"action_target"`
RelatedIDs []string `json:"related_ids"`
SourceRef string `json:"source_ref"`
}
type ActionCenter struct {
SuggestedRequirementID *string `json:"suggested_requirement_id"`
SuggestedOpportunityID *string `json:"suggested_opportunity_id"`
OpenOpportunitiesWithoutSlate int `json:"open_opportunities_without_slate"`
RequirementsUnscreened int `json:"requirements_unscreened"`
Launch []Launch `json:"launch"`
}
type Launch struct {
Product string `json:"product"`
Action string `json:"action"`
Label string `json:"label"`
Route string `json:"route"`
}
// AdoptForecastInput is the operator supplied detail that turns a bare forecast into a scorable
// requirement. The forecast supplies the title, agency, and place of performance; the operator supplies
// the clearance, years, and the mandatory skills the engine needs.
type AdoptForecastInput struct {
RequiredLevel string `json:"required_level"`
RequiredPoly string `json:"required_poly"`
RequiredYears int `json:"required_years"`
KeyPersonnel bool `json:"key_personnel"`
Skills []string `json:"skills"`
}
// AdoptForecastResult returns the new requirement the engine will score on the next refresh.
type AdoptForecastResult struct {
RequirementID string `json:"requirement_id"`
Title string `json:"title"`
}