ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/missionmatch / internal/modules/matching/engine/frozen_test.go

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/missionmatch / internal/modules/matching/engine/frozen_test.go
DateNot specified in source
RepositoryJanady13/missionmatch
Revision4b8e7ce594c068621867f9c9deed0ec64ae6c553
Branchws3-clearance
Path or archive memberinternal/modules/matching/engine/frozen_test.go
Original SHA-256397ab8e9059d2b63e4f374287a9255e538a6cf702d51cca911e361d379877f6d
Git blob SHAac148adb01add9a452bec4dfcbe6d010ac13d8bb
Reading-copy SHA-256397ab8e9059d2b63e4f374287a9255e538a6cf702d51cca911e361d379877f6d

Original source ↗

Recovered source transcript

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.62"}, } 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.3.0" { t.Errorf("ModelVersion is %q, frozen value is %q: bump it only when the weights, band cuts, or semantic threshold change, and register the new version", ModelVersion, "v1.3.0") } }

Search equations, builds, manuscript text, and recovered sources.