Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 93 additions & 33 deletions README.md

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Third-party data, content and software

The [MIT License](LICENSE) covers the code and documentation written for Forebear. It does not cover the FDA material, manufacturer-authored text or third-party software described here, which keep their own terms. This file states what the repository contains and the terms its sources publish. It is not legal advice.

## FDA data

| What | Where in the repo | Published terms |
| --- | --- | --- |
| openFDA records: 510(k), device recall, enforcement and classification endpoints | `data/raw/openfda/`, and derived values in `data/forebear.rl` | openFDA dedicates its content and data to the public domain under [CC0 1.0](https://open.fda.gov/license/), with no warranty. Its [terms](https://open.fda.gov/terms/) ask for credit (not required) and the license asks users not to imply endorsement. |
| FDA-authored pages, such as 510(k) clearance letters and recall records on accessdata.fda.gov | Page text in `data/raw/summaries/`; links throughout the docs | FDA states that fda.gov content is not copyrighted and is in the public domain, "unless otherwise noted" ([website policies](https://www.fda.gov/about-fda/about-website/website-policies)). |

Data provided by the U.S. Food and Drug Administration (<https://open.fda.gov>). FDA has not reviewed or endorsed Forebear, and its warranties disclaimer applies to everything derived from these sources.

## 510(k) summary text written by manufacturers

A 510(k) summary is written by the company that submitted the device (21 CFR 807.92) and published by FDA. openFDA's terms note that some FDA-published data "may not be public domain", including copyrightable works that private entities gave to FDA. Forebear therefore **does not claim** that summary text is public domain.

- **What is included.** `data/raw/summaries/{K}.json` and `data/raw/ocr/{K}.json` hold the extracted text of each cached FDA PDF, page by page, with its URL and SHA-256. The PDFs themselves are not included. The Relate store, the example reports in `docs/investigations/` and the UI show short quoted excerpts with page numbers.
- **Why.** The text is there so that every predicate citation can be checked against its source and the graph can be rebuilt offline (`tests/test_reproducibility.py`). Each excerpt links back to FDA's copy of the PDF.
- **Rights.** Any rights in this text stay with its authors, and the MIT License does not apply to it. Rights holders who want their text removed from the cache can ask the maintainer through the repository. `scripts/fetch_data.py` regenerates the cache from FDA when a redistributable copy is not wanted.

## Names and trademarks

Device, company and product names (for example Philips Respironics, DreamStation, BiPAP, REMstar, SleepRes and BreathePal) appear only as identifiers taken from FDA records. They belong to their owners. Forebear is not affiliated with, or endorsed by, FDA or any company it names.

## Research cited

The README cites FDA's 2023 draft guidance on predicate selection and Kadakia et al., *JAMA* 2023 (PubMed 36625810). Only their findings are summarized; no text is reproduced.

## Software shipped in the repository

| Component | Where | License |
| --- | --- | --- |
| Inter variable font (via `@fontsource-variable/inter` 5.3.0) | `web/dist/assets/inter-*.woff2` | SIL Open Font License 1.1, [full text](docs/licenses/Inter-OFL-1.1.txt) |
| Newsreader variable font (via `@fontsource-variable/newsreader` 5.3.0) | `web/dist/assets/newsreader-*.woff2` | SIL Open Font License 1.1, [full text](docs/licenses/Newsreader-OFL-1.1.txt) |
| React and React DOM 18.3.1 | bundled into `web/dist/assets/index-*.js`; their license headers are kept in the bundle | MIT |

## Software installed, not redistributed

Python dependencies are installed from PyPI by `pip install -r requirements.txt` (or in the Docker build) and are not committed. They include `relate-db` 1.0.2 (Apache-2.0), FastAPI, Starlette, Uvicorn, Pydantic, httpx, pypdf, truststore, python-dotenv and the `openai` client, each under its own license. The optional OCR packages are listed in `requirements-ocr.txt`. The Relate CLI is not bundled: the README explains how to download it and check it against [`docs/relate-v1.0.2-SHA256SUMS.txt`](docs/relate-v1.0.2-SHA256SUMS.txt).
2 changes: 1 addition & 1 deletion data/PROVENANCE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Data provenance

All data is US federal government work, which is public domain in the US. It was fetched on 2026-11-16 with no API key.
All data was fetched from FDA on 2026-11-16 with no API key. openFDA records are dedicated to the public domain under [CC0 1.0](https://open.fda.gov/license/), and FDA-authored pages are in the public domain. The 510(k) summary text in `data/raw/summaries/` and `data/raw/ocr/` is different: summaries are written by the submitting companies, so Forebear makes no public-domain claim for that text. See [third-party notices](../THIRD_PARTY_NOTICES.md).

| Source | Endpoint / URL pattern | What we keep | Where |
|---|---|---|---|
Expand Down
43 changes: 43 additions & 0 deletions docs/SUBMISSION_CHECKLIST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Devpost submission checklist

For the maintainer, before the entry goes in. Check each item against the hackathon's own rules page: its deadline (with time zone), eligibility, video length, required technologies and judging criteria take precedence over this list.

## Repository

- [ ] **Judges can open the repo.** It is currently private (CodeQL and dependency review are skipped for that reason). Make it public, or grant access the way the rules require.
- [ ] **If it goes public**, re-run the Security workflow and check that CodeQL and dependency review pass. The README must not call a skipped run a pass.
- [ ] **`main` is green.** Backend, Frontend, Security and Hygiene badges at the top of the README.
- [ ] **Fresh-clone run.** Follow the [README walkthrough](../README.md#judge-walkthrough) on a clean machine or folder, by Docker and natively. <http://127.0.0.1:8765/api/health> returns `"ok": true` and [`#/check/K251770`](http://127.0.0.1:8765/#/check/K251770) shows depth 1 and depth 2 side by side.
- [ ] **No secrets.** `.env` is gitignored and gitleaks runs in CI. Keep `.env`, API keys and terminal history out of the video and screenshots.
- [ ] **Tag the submitted commit** so judges see exactly what was entered.

## Devpost fields

- [ ] **Story.** Lead with K251770: provisional "no design-recall signal" at one generation, **Review lineage** at two, because FDA lists the grand-predicates (not the DreamStation 2) on Class I recall Z-1974-2021. Then BreathePal (K252078) as the one-hop case.
- [ ] **Claims match the README.** Use the "Why Relate" wording. Do not say the recall can *only* be found with a graph: a person can find it by reading two PDFs and searching FDA's recall database. Relate makes it one parameterized query, with the evidence on every edge, run for every device.
- [ ] **Numbers come from the README's "Results, honestly" table**, including the no-go result for the investigation agent and "no human review yet".
- [ ] **Built with:** Relate (`relate-db` 1.0.2), Python 3.12, FastAPI, React, Vite, openFDA, plus the optional NVIDIA-hosted models (named in the README) and Claude Code.
- [ ] **Links:** repository, video, and the FDA PDF and recall links from the README tables.
- [ ] **Images.** Devpost galleries take raster images, so export `docs/assets/forebear-hero.svg` or use app screenshots.

## Video

- [ ] Opens on K251770 depth 1 vs depth 2 and the decision it changes; shows a quote opening the FDA PDF at its cited page.
- [ ] Shows or says the disclaimer: documented lineage and recall history, not regulatory advice or a safety finding.
- [ ] Within the rules' length limit; music and footage are yours or licensed for this use.

## Disclosures

- [ ] **AI assistance:** copy the README's [AI assistance](../README.md#ai-assistance-disclosure) section into the Devpost description, or link it, if the rules ask for disclosure.
- [ ] **Data and licensing:** link [third-party notices](../THIRD_PARTY_NOTICES.md). openFDA data is CC0; 510(k) summary text is written by manufacturers and is not claimed as public domain; FDA has not endorsed the project.
- [ ] **Pre-existing work:** if the rules restrict code written before the hackathon window, check the commit history against the window and say what came before.

## Facts and the tests that guard them

| Claim | Test |
| --- | --- |
| K251770 depth 1 and depth 2 verdicts, hops, quotes, Z-1974-2021 holders and the README query results | [`tests/test_two_hop_story.py`](../tests/test_two_hop_story.py) |
| K252078 → K113053 → Z-1957-2021 / Z-1958-2021 and the BreathePal evidence table | [`tests/test_story_facts.py`](../tests/test_story_facts.py), [`tests/test_shipped_evidence.py`](../tests/test_shipped_evidence.py) |
| Offline rebuild matches the shipped store | [`tests/test_reproducibility.py`](../tests/test_reproducibility.py) |

Run `.venv\Scripts\python.exe -m pytest` after any change to `data/` or the README's evidence tables.
93 changes: 93 additions & 0 deletions docs/licenses/Inter-OFL-1.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter) Inter-Italic[opsz,wght].ttf: Copyright 2016 The Inter Project Authors (https://github.com/rsms/inter)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
93 changes: 93 additions & 0 deletions docs/licenses/Newsreader-OFL-1.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright 2020 The Newsreader Project Authors (http://github.com/productiontype/Newsreader) Newsreader-Italic[opsz,wght].ttf: Copyright 2020 The Newsreader Project Authors (http://github.com/productiontype/Newsreader)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Loading