Skip to content

Inductive mode & Draft with Director silently use the first corpus (no picker) — PII hazard #9

Description

@markalvaw

What

Inductive mode and Draft with Director (app/js/screens/constructs.js) silently operate on the project's first corpus — they read project.corpora[0] with no picker, and the inductive route defaults body.corpusId ?? project.corpora[0].id.

Impact

If the first corpus is an unmasked (scan) import — which you can't delete (see related issue) — these buttons send unmasked text to the model with no way to choose a pseudonymized corpus instead. A real PII hazard on sensitive data.

Fix

Add a corpus picker to inductive/draft (the Corpus Brief already takes an explicit corpus); don't silently default to [0].

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions