Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/missionmatch / internal/modules/matching/engine/frozen_test.go |
| Date | Not specified in source |
| Repository | Janady13/missionmatch |
| Revision | 09015496d565a172bcaa15cfe9a8e4b072b13df0 |
| Branch | workstream-b-screenmatch |
| Path or archive member | internal/modules/matching/engine/frozen_test.go |
| Original SHA-256 | ce88ebe586e8dd85f9dfa57e309ede535a0e7578522c18a070ceefc98a387318 |
| Git blob SHA | a614214567f9d54d90a2bbcd8936321b0d63e94d |
| Reading-copy SHA-256 | ce88ebe586e8dd85f9dfa57e309ede535a0e7578522c18a070ceefc98a387318 |
Every recorded occurrence
These 13 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/matching/engine/frozen_test.go | workstream-b-screenmatch | 09015496d565a172bcaa15cfe9a8e4b072b13df0 | Open original |
| Janady13/missionmatch / internal/modules/matching/engine/frozen_test.go | workstream-d-missionmatch | 3be46ba89edb737182075a2b320509b42dc916f8 | Open original |
| Janady13/missionmatch / internal/modules/matching/engine/frozen_test.go | workstream-e-dataflow-deploy | 433815a042f9741411e60fa553fe72143e9b10db | Open original |
| Janady13/missionmatch / internal/modules/matching/engine/frozen_test.go | w3-ai-staffing-recommendations | 43d56387270ef4da4cabd794d97ca6a49909bc7d | Open original |
| Janady13/missionmatch / internal/modules/matching/engine/frozen_test.go | workstream-c-slatematch | 5cd60c918301b46ecd6ed3e03e20c395da0062e2 | Open original |
| Janady13/missionmatch / internal/modules/matching/engine/frozen_test.go | ai-intelligence-layer | 5d5ddff70393a197c5f54a45280bb5dd42b24755 | Open original |
| Janady13/missionmatch / internal/modules/matching/engine/frozen_test.go | workstream-a-shared-core | e0de03ac3a1ec826bd15d0e048e3b02baa23eeff | Open original |
| Janady13/missionmatch / internal/modules/matching/engine/frozen_test.go | workstream-c-slatematch | 5cd60c918301b46ecd6ed3e03e20c395da0062e2 | Open original |
| Janady13/missionmatch / internal/modules/matching/engine/frozen_test.go | w3-ai-staffing-recommendations | 43d56387270ef4da4cabd794d97ca6a49909bc7d | Open original |
| Janady13/missionmatch / internal/modules/matching/engine/frozen_test.go | workstream-e-dataflow-deploy | 433815a042f9741411e60fa553fe72143e9b10db | Open original |
| Janady13/missionmatch / internal/modules/matching/engine/frozen_test.go | ai-intelligence-layer | 5d5ddff70393a197c5f54a45280bb5dd42b24755 | Open original |
| Janady13/missionmatch / internal/modules/matching/engine/frozen_test.go | workstream-b-screenmatch | 09015496d565a172bcaa15cfe9a8e4b072b13df0 | Open original |
| Janady13/missionmatch / internal/modules/matching/engine/frozen_test.go | workstream-d-missionmatch | 3be46ba89edb737182075a2b320509b42dc916f8 | Open original |
Recovered source transcript
Download complete source text ↓39 lines · 1.8 KB
package engine
import "testing"
// TestFrozenScoringConstants pins the EXACT value of every scoring constant, not merely an invariant
// over them. TestWeightsSumToOne proves the six weights add to 1.00, but a redistribution (say
// clearance 0.30 and skills 0.20) still sums to 1.00 while silently changing every score. The platform
// is a shared, three tool product whose acceptance criterion is that the same candidate shows the same
// Match and Mission Readiness numbers in screenMATCH, slateMATCH, and missionMATCH, and that the
// weights and bands never change. This test is the guard: any edit to a weight, a band cut, the
// semantic threshold, or the model version fails the build, so a refactor that splits the one engine
// across three tool routers can never drift a number. Change a value here only with explicit
// instruction, and bump and register ModelVersion when you do.
func TestFrozenScoringConstants(t *testing.T) {
cases := []struct {
name string
got string
want string
}{
{"WeightClearance", WeightClearance.String(), "0.25"},
{"WeightSkills", WeightSkills.String(), "0.25"},
{"WeightCerts", WeightCerts.String(), "0.15"},
{"WeightCustomer", WeightCustomer.String(), "0.15"},
{"WeightExperience", WeightExperience.String(), "0.1"},
{"WeightLocation", WeightLocation.String(), "0.1"},
{"BandGreenMin", BandGreenMin.String(), "90"},
{"BandYellowMin", BandYellowMin.String(), "75"},
{"DefaultSemanticThreshold", DefaultSemanticThreshold.String(), "0.8"},
}
for _, c := range cases {
if c.got != c.want {
t.Errorf("%s is %s, frozen value is %s: weights and bands must not change", c.name, c.got, c.want)
}
}
if ModelVersion != "v1.0.0" {
t.Errorf("ModelVersion is %q, frozen value is %q: bump it only when the weights or band cuts change, and register the new version", ModelVersion, "v1.0.0")
}
}