Repository navigation
feat(atlas): weekly data-integrity sweep into the data-integrity issues - #365
Merged
Merged
Conversation
GET /api/ops/integrity (DIGEST_TOKEN-gated, read-only, all orgs) runs deterministic certain-only rules (lib/integrity.ts, reusing pd-check sync holds, cleanTechNote, cleanPersonName, checkDisciplines). A weekly Action reconciles the findings into issues #338-#348 plus one catch-all: appends new lines, ticks gone ones, never deletes or edits human-touched lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0152aazG7AAEF6rWPWCedVgY
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A fully automatic weekly sweep that keeps the
data-integrityissues (#338–#348) current.GET /api/ops/integrity: gated byDIGEST_TOKEN(constant-time bearer compare), read-only, all orgs. Returns{projectCount, findings: [{cause, projectId, field, problem}]}.atlas/lib/integrity.ts: pure, deterministic, certain-only rules, with vitest tests on fictional data.problemis always a fixed sentence and never includes a stored value, so no names, emails or handles can reach the public issues.cleanPersonName), role labels glued to a name, two people joined with and/&/slash, GitHub handles (in parentheses or as @handle), emailspd-check(email, logistics, template text, duplicated text) on the blurb, contact bleed in the tech note, and an email in client_desccleanTechNotewould strip (template prompts, "/ Design System", TBD lines, comment anchors, meeting notes)password:followed by a secret-like value.git; pd_url that is a Drive folder or not a URL; drive_url that is not a Drive linkcheckDisciplines), and two runs with the same term and coursescripts/integrity-sweep/sweep.mjs(--self-check,--dry-run): maps each cause to its issue in one table. Causes with no issue go to one catch-all issue, which the script creates once (labeldata-integrity, marker<!-- atlas-integrity:other -->). How it edits issues:- [ ] \id` (field): problem ` and ticks its own lines once the finding is gone..github/workflows/integrity-sweep.yml: runs Mondays at 14:00 UTC, and can be dispatched by hand with adry_runinput. Permissions arecontents: readandissues: write. Secrets reach the script throughenv:only, and the self-check runs before anything else.Small change:
pd-check.tsnow exportsEMAIL_RE,HOLD_BLURBandHOLD_TECHso the sweep reuses the same rules.Setup needed
INTEGRITY_URL, e.g.https://atlas.buspark.io/api/ops/integrity.DIGEST_TOKENalready exists. Prod deploys are manual, so the route has to be deployed to the Worker before the first run.dry_run: true.Tests
npx tsc --noEmitpassesnpx vitest run: 236 passednode scripts/integrity-sweep/sweep.mjs --self-checkpasses🤖 Generated with Claude Code
https://claude.ai/code/session_0152aazG7AAEF6rWPWCedVgY