ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/missionmatch / internal/modules/eeo/repo.go

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/missionmatch / internal/modules/eeo/repo.go
DateNot specified in source
RepositoryJanady13/missionmatch
Revision720d47fae476b0d38477ae4401697d372b1ea2bc
Branchfeature/opportunity-to-outcome
Path or archive memberinternal/modules/eeo/repo.go
Original SHA-2563562db997ab4cb71988694b4dd174d70d961d5126c432853237e9a9fa1526c5b
Git blob SHAbca46237b86134504be2704a1985abe0156b0e6f
Reading-copy SHA-2563562db997ab4cb71988694b4dd174d70d961d5126c432853237e9a9fa1526c5b

Original source ↗

Every recorded occurrence

These 12 records contain identical original source bytes. Their paths and revisions remain part of the archive.

Original recordBranch or archiveRevision / identifierOriginal location
Janady13/missionmatch / internal/modules/eeo/repo.gofeature/opportunity-to-outcome720d47fae476b0d38477ae4401697d372b1ea2bcOpen original
Janady13/missionmatch / internal/modules/eeo/repo.gocollision-deconfliction4ee5a09972608ed89f8377c6665542d5f450f0a6Open original
Janady13/missionmatch / internal/modules/eeo/repo.gom5-price-to-win41000ad30fff4129fdaf5ec84e15ba14c27d4890Open original
Janady13/missionmatch / internal/modules/eeo/repo.gomaster1e9249840a4302ec82e123b9c9cb6f75badea3e4Open original
Janady13/missionmatch / internal/modules/eeo/repo.gomag-substrateb82c7100a492dec67dfd1eda6b3f53def859be35Open original
Janady13/missionmatch / internal/modules/eeo/repo.gotime-to-fill-survivalb66e1e505863d4f17741a4b9ede73509e45bd6c6Open original
Janady13/missionmatch / internal/modules/eeo/repo.gographrag-foundationb0ddeb9f633fd138d09309d1a17b7d13bc3a67f7Open original
Janady13/missionmatch / internal/modules/eeo/repo.gopresentation-readinesseb574acaa29d71ce4d0f852572e87c275c79fdb7Open original
Janady13/missionmatch / internal/modules/eeo/repo.govendor-intelligencefe9796a19c261951d3f2565206c0c1b5ac294465Open original
Janady13/missionmatch / internal/modules/eeo/repo.gophase2-connectorse038d4c687aec16f8bd9bc4d907eea14d91f8704Open original
Janady13/missionmatch / internal/modules/eeo/repo.gofeature/aioe-upgrade2178e7298d0e5d9af83afa12402fd587f0ba6ed8Open original
Janady13/missionmatch / internal/modules/eeo/repo.gocapture-readinessbae6af7cb2997e819174a9e9cfff5e16067a1975Open original

Recovered source transcript

package eeo import ( "context" "errors" "time" "github.com/jackc/pgx/v5" ) // activeModelVersion returns the version string of the AEDT scoring model in force at snapshot time: the // aedt_model_versions row with the latest effective_from, the same ordering the governance read path // uses. The compliance role has SELECT on aedt_model_versions (granted in migration 0010). When the // registry is empty it returns an empty string, which the snapshot stores as the model_version default. func activeModelVersion(ctx context.Context, tx pgx.Tx) (string, error) { var version string err := tx.QueryRow(ctx, activeModelVersionQuery).Scan(&version) if errors.Is(err, pgx.ErrNoRows) { return "", nil } if err != nil { return "", err } return version, nil } const activeModelVersionQuery = ` SELECT version FROM aedt_model_versions ORDER BY effective_from DESC, version LIMIT 1` // insertSnapshot appends one fairness_snapshots row through the compliance pool inside the tenant tx, so // RLS scopes the write to the caller's org. The organization_id is taken from the GUC the tenant tx set, // never from a client value, exactly like the candidate_demographics insert. selection_rate and // impact_ratio bind as decimals (impact_ratio is NULL for the reference group). func insertSnapshot(ctx context.Context, tx pgx.Tx, snapAt time.Time, model string, r snapshotRow) error { var impact any if r.impactRatio != nil { impact = *r.impactRatio } _, err := tx.Exec(ctx, insertSnapshotQuery, snapAt, r.decisionContext, r.groupLabel, r.selected, r.total, r.selectionRate, impact, r.belowThreshold, model) return err } const insertSnapshotQuery = ` INSERT INTO eeo.fairness_snapshots (organization_id, snapshot_at, decision_context, group_label, selected, total, selection_rate, impact_ratio, below_threshold, model_version) VALUES ( NULLIF(current_setting('app.current_org_id', true), '')::uuid, $1, $2, $3, $4, $5, $6, $7, $8, $9)` // trendQuery reads every appended snapshot for the caller's org at or after the since instant, ordered // by bucket then time so each (decision_context, group_label) series arrives chronologically. RLS scopes // it to the caller's org. impact_ratio is nullable and scans into a pointer. const trendQuery = ` SELECT decision_context, group_label, snapshot_at, selected, total, selection_rate, impact_ratio, model_version FROM eeo.fairness_snapshots WHERE snapshot_at >= $1 ORDER BY decision_context, group_label, snapshot_at`

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