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
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ OPENAI_API_KEY=
ENABLE_OPENAI_INTERPRETER=false

# Optional model override for the natural-language interpreter.
OPENAI_MODEL=gpt-5-mini
OPENAI_MODEL=gpt-5.6-terra

# Optional canonical deployment URL used for social metadata.
NEXT_PUBLIC_SITE_URL=
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .nvmrc
cache: npm
Expand All @@ -30,8 +30,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .nvmrc
cache: npm
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- uses: github/codeql-action/init@b7351df727350dca84cb9d725d57dcf5bc82ba26 # v3
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- uses: github/codeql-action/init@7188fc363630916deb702c7fdcf4e481b751f97a # v4.37.1
with:
languages: javascript-typescript
- uses: github/codeql-action/analyze@b7351df727350dca84cb9d725d57dcf5bc82ba26 # v3
- uses: github/codeql-action/analyze@7188fc363630916deb702c7fdcf4e481b751f97a # v4.37.1
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ OPENAI_API_KEY=
# Explicit opt-in. Leave false for public no-key demos.
ENABLE_OPENAI_INTERPRETER=false

# Optional override; defaults to gpt-5-mini.
OPENAI_MODEL=gpt-5-mini
# Optional override; defaults to GPT-5.6 Terra.
OPENAI_MODEL=gpt-5.6-terra

# Optional canonical deployment URL for social metadata.
NEXT_PUBLIC_SITE_URL=
Expand Down Expand Up @@ -164,7 +164,7 @@ npm run record:demo
- [Recovery Lab with injected corruption and evidence](docs/assets/submission/07-recovery-lab-result-1600x900.png)
- [Final narrated demo with selectable captions and visible pointer](docs/assets/submission/proofrestore-demo-final.mp4)

The repository retains only the publication MP4, [SRT captions](docs/assets/submission/proofrestore-demo-captions.srt), and [narration source](docs/demo-narration.txt)—not large intermediate audio or silent-video renders. The final 1:55 cut is 1600×900 H.264 with normalized 48 kHz stereo AAC audio, smooth recorder-controlled scrolling, human-like pointer movement and click pulses, and a default English caption track that viewers can enable or disable. It covers both the mandatory thesis recovery and the hands-on Recovery Lab. The narration uses Microsoft Edge's `en-US-AndrewMultilingualNeural` voice and is disclosed in the first caption. Upload the SRT separately because video hosts may discard embedded subtitles during transcoding. Publishing checks are in [docs/media-production.md](docs/media-production.md).
The repository retains only the publication MP4, [SRT captions](docs/assets/submission/proofrestore-demo-captions.srt), and [narration source](docs/demo-narration.txt)—not large intermediate audio or silent-video renders. The final 2:20 cut is 1600×900 H.264 with normalized 48 kHz stereo AAC audio, smooth recorder-controlled scrolling, human-like pointer movement and click pulses, and a default English caption track that viewers can enable or disable. It covers the mandatory thesis recovery, hands-on Recovery Lab, and how Codex with GPT-5.6 supported development. The narration uses Microsoft Edge's `en-US-AndrewMultilingualNeural` voice and is disclosed in the first caption. Upload the SRT separately because video hosts may discard embedded subtitles during transcoding. Publishing checks are in [docs/media-production.md](docs/media-production.md).

## Manifest import

Expand Down Expand Up @@ -197,7 +197,7 @@ For another Node host, run `npm install`, `npm run build`, and `npm run start`.

## Hackathon development note

ProofRestore was built as a focused OpenAI hackathon sprint in Codex. The lead agent established the architecture, integrated the product, and ran final validation. Independent subagents worked with non-overlapping ownership on the manifest schema and architecture, recovery engine and adversarial tests, deterministic demo dataset, UI and interpreter integration, and submission documentation. All recoverability claims remain backed by executable deterministic logic and tests rather than agent or model judgment.
ProofRestore was created during OpenAI Build Week with Codex running GPT-5.6. Codex helped establish the architecture, implement and integrate the deterministic recovery engine and Recovery Lab, generate adversarial tests, refine accessibility and interface behavior, and run release validation. Independent subagents worked with non-overlapping ownership on the manifest schema, recovery engine, demo fixture, testing, UX, and submission readiness. All recoverability claims remain backed by executable deterministic logic and tests rather than agent or model judgment.

## License and security

Expand Down
2 changes: 1 addition & 1 deletion app/components/ProofRestoreApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ export function ProofRestoreApp() {

<section className="how-it-works" aria-labelledby="how-title">
<div>
<span className="eyebrow">A two-minute answer</span>
<span className="eyebrow">A clear recovery answer</span>
<h2 id="how-title">From backup status to recovery proof.</h2>
</div>
<ol>
Expand Down
2 changes: 1 addition & 1 deletion app/interpret/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function interpretWithModel(
const client = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
const response = await client.responses.create(
{
model: process.env.OPENAI_MODEL ?? "gpt-5-mini",
model: process.env.OPENAI_MODEL ?? "gpt-5.6-terra",
instructions:
"Interpret recovery intent only. Never decide existence, integrity, safety, or recoverability. resolvedPath must be one exact supplied candidate or an empty string. Preserve ambiguity and use UTC ISO 8601 timestamps.",
input: JSON.stringify({
Expand Down
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const metadata: Metadata = {
},
description:
"Verify backup integrity, simulate recovery, and generate evidence-backed proof before disaster strikes.",
alternates: { canonical: "/" },
applicationName: "ProofRestore",
keywords: [
"backup verification",
Expand All @@ -22,6 +23,7 @@ export const metadata: Metadata = {
"restore simulation",
],
openGraph: {
url: "/",
title: "ProofRestore — Know your backup will restore",
description:
"Evidence-backed backup verification and safe restore simulation.",
Expand Down
10 changes: 6 additions & 4 deletions docs/DEVPOST_STORY_DRAFT.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
## Ready-to-paste metadata

- **Tagline:** Know your backup will restore before you need it.
- **Built with:** Next.js, React, TypeScript, Tailwind CSS, Zod, OpenAI Responses API, Vitest, Playwright, Codex
- **Category:** Work and Productivity
- **Built with:** Codex, GPT-5.6, OpenAI Responses API, Next.js, React, TypeScript, Tailwind CSS, Zod, Vitest, Playwright
- **Repository:** https://github.com/ATAC-Helicopter/ProofRestore
- **Live demo:** https://proofrestore.vercel.app
- **Video:** `[add public video URL]`
- **Main Codex session ID:** `019f725f-5164-7321-a0a9-a67dab130787`
- **Project timing:** New project created during the July 13–21, 2026 submission period; the commit history and Codex session provide dated evidence.
- **Demo limitation:** Restore operations are simulations; the built-in vault is synthetic and the primary recording uses the deterministic no-key interpreter.

## Inspiration
Expand Down Expand Up @@ -57,15 +60,15 @@ A deterministic TypeScript recovery engine performs:

The application is built with Next.js, strict TypeScript, Tailwind CSS, Zod, the OpenAI Responses API, Vitest, and Playwright. It is stateless, requires no database, and is ready for a conventional Vercel deployment.

Codex was the primary development environment. A lead agent coordinated architecture, integration, validation, and scope while independent subagents owned the manifest schema, deterministic engine and tests, demo fixture, and documentation through non-overlapping files.
Codex running GPT-5.6 was the primary development environment. A lead agent coordinated architecture, integration, validation, and scope while independent subagents owned the manifest schema, deterministic engine and tests, demo fixture, and documentation through non-overlapping files. Codex also drove adversarial testing, accessibility refinement, browser-flow verification, deployment checks, and submission-media QA.

## Challenges we faced

The hardest challenge was preserving a real trust boundary while still making natural-language recovery useful. A model can interpret “my thesis from Tuesday evening,” but letting it infer whether an object exists or a hash matches would undermine the product. We designed a narrow structured handoff: interpretation proposes a candidate path and time, then pure TypeScript recomputes every consequential decision.

Recovery is also more nuanced than a single green or red badge. We had to distinguish object integrity from restore safety. A version can be fully recoverable while still conflicting with a newer destination file. A folder can be partially recoverable because one child is healthy and another references a missing object. Retention risk requires asking whether a different healthy copy survives an expiry, not merely whether a snapshot has an expiry date.

The final challenge was making these technical distinctions legible within a two-minute demo. Stable evidence codes, compact status hierarchy, a fixed adversarial fixture, and a deterministic downloadable report let the UI stay concise without asking the audience to trust an unexplained verdict.
The final challenge was making these technical distinctions legible within a concise demo. Stable evidence codes, compact status hierarchy, a fixed adversarial fixture, and a deterministic downloadable report let the UI stay concise without asking the audience to trust an unexplained verdict.

## Accomplishments that we're proud of

Expand All @@ -90,7 +93,6 @@ Finally, backup completion is a statement about a job, not the future ability to
- a versioned evidence contract so backup tools can export recoverability evidence without sharing internal storage;
- adapters for other backup formats and providers;
- scheduled restore simulations;
- adapters for backup tools and formats;
- isolated test restores into disposable environments;
- signed recovery reports;
- team and compliance workflows;
Expand Down
13 changes: 7 additions & 6 deletions docs/SUBMISSION_CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
- [x] Live deployment link added: https://proofrestore.vercel.app
- [ ] Public video link added
- [ ] Image gallery uploaded
- [ ] Correct category selected
- [x] Correct category chosen: Work and Productivity
- [ ] All required OpenAI/Codex fields completed
- [ ] Main Codex session ID saved
- [ ] Submission entered before the safety deadline
- [x] Main Codex session ID saved: `019f725f-5164-7321-a0a9-a67dab130787`
- [ ] Submission entered before the safety deadline: Tuesday, July 21 at 23:00 CEST (official close: July 22 at 02:00 CEST / July 21 at 17:00 PDT)

## Product

Expand All @@ -24,7 +24,7 @@
- [x] Markdown report exports
- [x] No-key fallback works and is unit tested
- [x] API-key route, structured schema, timeout, and fallback are implemented
- [ ] Credentialed API-key smoke test completed
- [x] Credentialed interpreter remains intentionally disabled on the public deployment; mocked boundary tests cover the structured Responses API handoff
- [x] Malformed imports fail safely in validation tests
- [x] Recovery Lab accepts user-selected files/folders or safe sample data
- [x] Recovery Lab exposes snapshots, virtual modification/deletion, corruption, missing objects, conflicts, and an ordered activity log
Expand Down Expand Up @@ -55,12 +55,13 @@
- [x] Welcome and recovery-request screenshots captured
- [x] Recovery Lab setup/safety screenshot captured
- [x] Recovery Lab corruption/evidence screenshot captured
- [x] Video under required duration: 1:55
- [x] Video under required duration: 2:20 (official maximum: 3:00)
- [x] Final video demonstrates the mandatory thesis flow and hands-on Recovery Lab
- [x] Final video explicitly explains how Codex and GPT-5.6 supported development
- [x] Natural neural narration generated, normalized, and muxed as 48 kHz stereo AAC
- [x] Selectable English captions embedded in the final MP4 and retained as an SRT sidecar
- [x] High-contrast pointer and click pulses recorded for every interaction
- [ ] Public host accepts the SRT and exposes toggleable English CC after transcoding
- [ ] YouTube upload is public and exposes toggleable English CC after the SRT is attached

## Final release checks

Expand Down
13 changes: 13 additions & 0 deletions docs/assets/submission/proofrestore-demo-captions.srt
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,16 @@ Natural language interprets requests, but deterministic code decides recovery.
22
00:01:50,285 --> 00:01:53,000
Backups should not require faith.

23
00:01:56,850 --> 00:02:03,118
ProofRestore was developed during OpenAI Build Week with Codex and GPT-5.6.

24
00:02:03,118 --> 00:02:13,356
Codex helped shape the architecture, implement the deterministic recovery engine and Recovery Lab,
build adversarial tests, refine accessibility, and run release validation.

25
00:02:13,356 --> 00:02:18,288
AI interprets intent, but deterministic code alone decides recovery.
Binary file modified docs/assets/submission/proofrestore-demo-final.mp4
Binary file not shown.
2 changes: 2 additions & 0 deletions docs/demo-narration.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ Anyone can test the same engine directly. The Recovery Lab reads selected files
The ordered log exposes every snapshot and byte change. The fixed expected hash and changed observed hash produce hash mismatch and an unrecoverable result.

You can choose your own files or folder, remove an object, create a conflict, export the manifest, or continue through the full workflow. Natural language interprets requests, but deterministic code decides recovery. Backups should not require faith.

ProofRestore was developed during OpenAI Build Week with Codex and GPT-5.6. Codex helped shape the architecture, implement the deterministic recovery engine and Recovery Lab, build adversarial tests, refine accessibility, and run release validation. AI interprets intent, but deterministic code alone decides recovery.
15 changes: 13 additions & 2 deletions docs/demo-script.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ProofRestore demo script

Target runtime: **under two minutes**. The checked-in narrated cut is **1:55** and includes both the mandatory recovery proof and the hands-on Recovery Lab. Use the built-in vault and no API key for the most reliable recording.
Target runtime: **under three minutes**. The checked-in narrated cut is **2:20** and includes the mandatory recovery proof, hands-on Recovery Lab, and explicit Codex/GPT-5.6 development disclosure required for OpenAI Build Week. Use the built-in vault and no API key for the most reliable recording.

## 0:00–0:08 — Set up the problem

Expand Down Expand Up @@ -93,14 +93,24 @@ Point to `snapshot_selected`, `path_found`, `object_found`, `hash_match`, `size_

**Expected result:** The ordered log records file hashing, snapshot creation, byte corruption, and deterministic verification. The result is **Unrecoverable** with `hash_mismatch` evidence.

## 1:22–1:55 — Close on the trust boundary
## 1:22–1:56 — Close on the trust boundary

**Narration:**

> “You can choose your own files or folder, remove an object, create a conflict, export the manifest, or continue through the full workflow. Natural language interprets requests, but deterministic code decides recovery. Backups should not require faith.”

End on the footer: **Backups should not require faith.**

## 1:56–2:20 — Explain how it was built

**On screen:** A concise OpenAI Build Week disclosure card.

**Narration:**

> “ProofRestore was developed during OpenAI Build Week with Codex and GPT-5.6. Codex helped shape the architecture, implement the deterministic recovery engine and Recovery Lab, build adversarial tests, refine accessibility, and run release validation. AI interprets intent, but deterministic code alone decides recovery.”

End on **Developed with Codex + GPT-5.6** and the deterministic trust boundary.

## Extended hands-on test path

The timed video demonstrates sample loading and corruption. For deeper testing, return to **Open recovery lab**, choose files or a folder, and review the local-only safety statement. Add snapshots or simulate a modification/deletion, choose a target, then inject corruption, a missing object, or a destination conflict. Click **Run recovery check** and inspect the deterministic verdict beside the ordered activity/evidence log. **Export manifest** downloads the generated test vault; **Open in full workflow** continues through the standard investigation, simulation, evidence, and report screens.
Expand All @@ -127,6 +137,7 @@ Explore demo vault
→ Apply to virtual vault
→ Run recovery check
→ Unrecoverable with hash_mismatch and ordered evidence
→ Developed with Codex + GPT-5.6 disclosure
```

## Recording preparation
Expand Down
Loading