Repository navigation
Protect HR tasks and personnel data at model boundaries - #21
Merged
Merged
Conversation
… run query_datalake takes only a query name from the `datalake` catalog in policy.yaml (demo/datalake.py holds the synthetic datasets). Unknown queries, queries the role may not run, and queries whose result could not be sent on (model limit, or Jev's while the AI check is on) are refused before they run, with one neutral reason. A result's class comes from the query the gateway let through; a missing or different label withholds it. Lower-class views exist only as declared transformations (sector counts for the deal team, small groups dropped). tests/test_datalake.py; decisions.md D7. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
gadzbi123
marked this pull request as ready for review
October 4, 2026 00:14
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.
HR requests could ask the model to judge employees under a harmless X-Purpose header, and confidential purpose text could be recorded even when a request was blocked. This adds HR purpose enforcement before both the task model and Jev, plus protected synthetic personnel-data tools.
Validation: final integrated pytest suite 289 passed, 1 live-network test skipped; git diff --check passed. Implementation and independent security review used Claude Opus. Final focused independent Opus verification passed: 116 HR/reporting tests, no new blockers. Accepted limitations are tracked below.
Known limits: deterministic signatures do not cover every paraphrase. Confirmed conservative false positives for technical performance wording and negated statements are tracked in #20. Existing audit records are preserved; historical free-text purposes are not rewritten.
Board task: Enforce X-Purpose + HR role (no judging employees), https://github.com/orgs/TheRealStartup/projects/1.