Skip to content

SCY-1: data guard and data folders outside the source folder - #1

Merged
b070nd merged 8 commits into
mainfrom
feature/SCY-1-stoxicity-core
Nov 9, 2026
Merged

b070nd merged 8 commits into
mainfrom
feature/SCY-1-stoxicity-core

Conversation

@b070nd

@b070nd b070nd commented Nov 9, 2026

Copy link
Copy Markdown
Owner

What

  • A guard against publishing real data: git hooks (.githooks/pre-commit, pre-push) refuse databases, statements, prices, credentials and build output. The same check runs in CI as the no-data job.
  • The guard fails closed: a content scan that cannot run blocks instead of passing.
  • Ignore rules for data and exports; the built binary is no longer tracked.
  • STOXICITY_DATA_DIR and STOXICITY_BACKUP_DIR go in the git-ignored .env.local; backup.sh reads the same settings as the program; docs/data-location.md explains how to move an installation.
  • Three tests with wall-clock limits (keystroke time, saving 10,000 articles, comparing backup.sh with the program) no longer fail on slow shared CI runners.

How to check

  • make hooks turns the hooks on; make guard runs the check.
  • The CI jobs test and no-data must pass (the main ruleset requires both).

Not in this PR

The price-history work and other local changes are not included.

…mit or push databases, statements, prices, credentials and build output, the same check in CI, ignore rules for data and exports, and the built binary untracked

make hooks turns the hooks on once per clone; make guard checks everything not yet on a remote.
… byte that is not UTF-8) blocks instead of passing
… and STOXICITY_BACKUP_DIR go in the git-ignored .env.local, backup.sh reads the same settings as the program, and docs/data-location.md says how to move an installation
…with the race detector took 370ms against a 250ms limit; it still catches a tenfold slowdown
…he sqlite3 tool has no FTS5, as on the macOS runner, instead of failing
…t, since a shared macOS runner with the race detector took 15s against a 10s limit; it still catches a tenfold slowdown
…eady, so Stop can no longer kill it before the line is in the log (failed on the Ubuntu runner)
@b070nd
b070nd merged commit 90d0db8 into main Nov 9, 2026
3 checks passed
@b070nd
b070nd deleted the feature/SCY-1-stoxicity-core branch November 9, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant