Skip to content

Non-negotiable rules

This page is the canonical copy of these rules. The CONTRIBUTING.md file of each repo links to this page and does not repeat the full text. To cite or update a rule, do it on this page.

These rules are not bureaucracy. They stop a well-intentioned change from causing a real problem: a legal problem, a loss of clinical trust, or an invalid study. Read them before you write your first line of code, not after.

Term Meaning
Stealth The status of the registry and of the collaborating physicians and entities. Nobody signed an NDA, but you treat them as if an NDA exists.
Public surface Any place that people outside the authorized group can see. Examples: public repos, posts, demos to third parties, a portfolio, LinkedIn.
Corpus The 110 real patient notes. The study reports its results against these notes.
Synthetic note An invented note. It contains no real patient data.
Held-out data Data that is not in the corpus.

The registry and the collaborating physicians and entities are in stealth.

  • Do not name the registry on a public surface.
  • Do not name the collaborating physicians or the entities involved on a public surface.
  • Do not imply their endorsement or participation on a public surface.
  • If you are not sure that a place is a public surface, ask before you publish.

This site is public. Do not put PHI, secrets, or real patient data on this site.

2. Real patient data never goes into a repo

Section titled “2. Real patient data never goes into a repo”

The corpus is real patient information. The filenames are patient names. The corpus stays outside git on purpose.

  • Do not put the corpus in a repo. This includes a private repo. This includes a copy “only for tests”.
  • Use synthetic notes. Do not use the real corpus.
  • If you need more synthetic variety, write invented notes.
  • Do not ask for the real notes for local development.

These synthetic notes already exist:

Location Contents
src/routes/persona-isolation.test.ts and persona-runtime-guard.test.ts in pokta-grader-bioagent One note at a time.
biobadamex-sweep-dry-run.ts in the monorepo Hardcoded examples.

None of these sets has 110 notes.

3. Study integrity: the easiest rule to break by accident

Section titled “3. Study integrity: the easiest rule to break by accident”
  • Measure on held-out data each improvement whose number supports the study.
  • Do not measure that number on the 110 notes of the corpus.

This is the reason. You tune a change while you look at its result on the 110 notes. Then you report that number as a study result. Thus you train against the test set. The number increases because you tuned for that set, not because the system extracts better in general. This makes the comparison between arms invalid, and that comparison is the purpose of the study.

You can break this rule with no bad intent. “I improved the score” feels good, and the score is the nearest metric. The rule exists because this is the most natural error.

Improve any of the three systems as a product: that is the goal, and it is correct. The rule only controls where you measure the number that you show as a study result.

These rules apply to the two code repos (pokta-grader-bioagent, pokta-care-monorepo) and to this documentation site.

  • Do not work directly on main.
  • Do not push directly to main.
  • Always use a branch, a PR and a human review.
  • Do not push third-party forks (for example, BioAgents) back to upstream or third-party remotes.

These items have no decision yet:

  • Compensation and formal collaboration terms for external contributors.
  • Coordination of pending handoffs with Dr. Erick Zamora.
  • Whether the team builds the optional fourth arm of the study.

If one of these items blocks you, tell the person who onboarded you. Do not make your own solution for a decision that is not yours.