ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/missionmatch / db/migrations/0040_alerts_collision.sql

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/missionmatch / db/migrations/0040_alerts_collision.sql
DateNot specified in source
RepositoryJanady13/missionmatch
Revision720d47fae476b0d38477ae4401697d372b1ea2bc
Branchfeature/opportunity-to-outcome
Path or archive memberdb/migrations/0040_alerts_collision.sql
Original SHA-256ae21156f10ef8e5a991c61b5827c543529a9e92fc0c44705417b040537c594f1
Git blob SHAaa03045237b7b2db838498ca10e322795b7de681
Reading-copy SHA-256ae21156f10ef8e5a991c61b5827c543529a9e92fc0c44705417b040537c594f1

Original source ↗

Every recorded occurrence

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

Original recordBranch or archiveRevision / identifierOriginal location
Janady13/missionmatch / db/migrations/0040_alerts_collision.sqlfeature/opportunity-to-outcome720d47fae476b0d38477ae4401697d372b1ea2bcOpen original
Janady13/missionmatch / db/migrations/0040_alerts_collision.sqlfeature/aioe-upgrade2178e7298d0e5d9af83afa12402fd587f0ba6ed8Open original

Recovered source transcript

-- +goose Up -- Add the fourth watch loop trigger type, collision, to the alerts.alert_type closed set. Cross opportunity -- collision deconfliction flags when a candidate (most sharply a scarce cleared one) is proposed or approved on -- the slates of two or more DISTINCT competing OPEN opportunities at once, so a capture team never quietly -- double commits the same scarce cleared person across competing bids. It is an ADVISORY finding surfaced like -- every other alert (unread, read, dismissed), with a deterministic suggested primary a human resolves; it -- never auto rejects a slate member. No new table: it rides the existing alerts table, sweep, audit, and -- endpoints. Only the alert_type CHECK widens by one value. ALTER TABLE alerts DROP CONSTRAINT IF EXISTS alerts_alert_type_check; ALTER TABLE alerts ADD CONSTRAINT alerts_alert_type_check CHECK (alert_type IN ('recompete_winnable', 'clearance_expiring', 'gap_fillable', 'collision')); -- +goose Down -- Clear the rows the narrower vocabulary cannot express BEFORE narrowing it. Without this the ADD fails -- with a check violation and the whole rollback aborts: goose runs a migration in a transaction, so the -- DROP above rolls back with it and nothing is corrupted, but the rollback is BLOCKED, which is the worst -- moment to discover it since a rollback is usually being attempted under pressure. -- -- Deleted rather than remapped: a collision alert has no meaning in a schema that does not know the type, -- and the sweep that produced it regenerates from live data on its next run. DELETE FROM alerts WHERE alert_type = 'collision'; ALTER TABLE alerts DROP CONSTRAINT IF EXISTS alerts_alert_type_check; ALTER TABLE alerts ADD CONSTRAINT alerts_alert_type_check CHECK (alert_type IN ('recompete_winnable', 'clearance_expiring', 'gap_fillable'));

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