diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..69b6d3e --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +docs/assets/submission/proofrestore-demo-final.mp4 filter=lfs diff=lfs merge=lfs -text diff --git a/docs/DEVPOST_STORY_DRAFT.md b/docs/DEVPOST_STORY_DRAFT.md deleted file mode 100644 index b21d510..0000000 --- a/docs/DEVPOST_STORY_DRAFT.md +++ /dev/null @@ -1,99 +0,0 @@ -# Devpost project story — submission draft - -> Implementation claims below reflect the verified repository. Add public links, media, and any challenge-specific fields in Devpost before submission. - -## Ready-to-paste metadata - -- **Tagline:** Know your backup will restore before you need it. -- **Category:** Work and Productivity -- **Built with:** Codex, GPT-5.6 Sol, 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 - -A green “backup completed” badge creates confidence, but it does not answer the question that matters during an emergency: **can the files actually be restored?** - -ProofRestore starts from a simple reliability gap: backup software reports whether a job completed, while users need to know whether the referenced data can actually be recovered. Backups should not require faith. They should provide evidence. - -## What it does - -ProofRestore analyzes backup snapshots and verifies whether a selected file or folder can actually be recovered at a chosen point in time. - -A user can ask a question such as: - -> Can I recover my thesis from Tuesday evening? - -ProofRestore identifies the relevant path and recovery point, then a deterministic engine checks the referenced objects, hashes, sizes, snapshot state, destination conflicts, and retention risks. The user can run a safe restore simulation without modifying any real files and inspect the evidence behind every result. - -The application distinguishes between: - -- a backup job reporting success; -- the underlying data being verifiably recoverable. - -It can detect missing objects, silent corruption, incomplete folder recovery, overwrite conflicts, and healthy copies that may soon be removed by retention rules. It then produces a shareable **Proof of Recoverability** report. - -For hands-on testing, the browser-only Recovery Lab accepts selected files or a folder, creates a local baseline snapshot, lets anyone add history and inject controlled corruption, missing-object, or destination-conflict conditions, and shows each operation before running the same deterministic engine. It never changes or uploads the selected originals. - -## How we built it - -ProofRestore is designed around a strict trust boundary. - -The product UI sends natural-language recovery requests through one constrained interpretation endpoint. Model use is explicit opt-in: with a server-side key and `ENABLE_OPENAI_INTERPRETER=true`, the endpoint uses OpenAI Responses API structured output. The primary recording leaves model use disabled and exercises the deterministic fallback for reliability. Neither interpretation path is allowed to decide whether a file exists or is recoverable. - -A deterministic TypeScript recovery engine performs: - -- snapshot selection; -- path and version resolution; -- object availability checks; -- hash and size verification; -- recursive folder analysis; -- destination conflict detection; -- restore-plan generation; -- retention-risk analysis; -- final recoverability verdicts; -- evidence generation. - -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 running GPT-5.6 Sol was the primary development environment from start to finish. 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 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 - -- A complete recovery-verification flow that works without an API key or network access. -- Evidence-backed verdicts where every snapshot, path, integrity, destination, and retention claim comes from deterministic code. -- A safe restore simulation that never writes, overwrites, deletes, or executes real data. -- A realistic eight-snapshot demo where successful jobs hide corruption, a missing object, destination conflict, partial folder recovery, and expiry risk. -- A transparent Recovery Lab where users can test their own selected files, controlled snapshots, and injected failures without filesystem writes or server upload. -- An escaped Proof of Recoverability report with metrics, plan, warnings, methodology, and evidence appendix. -- A green final validation chain: formatting, lint, strict type checking, 66 unit/integration tests, a Next.js production build, and 8/8 Chromium E2E tests covering the demo, imports, fallback behavior, responsive layout, stale-result invalidation, partial recovery presentation, and the Recovery Lab. - -## What we learned - -The most useful AI boundary is not “AI versus no AI”; it is interpretation versus authority. Natural language improves access to the system, while deterministic verification preserves trust. Structured outputs and valid path candidates reduce ambiguity, but all model output still has to be treated as an input rather than a verdict. - -We also learned that evidence changes the UX. A status becomes much more credible when the user can open the exact object, hash, size, destination, and snapshot facts behind it. At the same time, evidence needs a hierarchy: the dashboard communicates risk, the plan communicates impact, and the appendix preserves technical traceability. - -Finally, backup completion is a statement about a job, not the future ability to recover. Verification must test the referenced data and the intended recovery point independently. - -## What's next for ProofRestore - -- 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; -- isolated test restores into disposable environments; -- signed recovery reports; -- team and compliance workflows; -- continuous recoverability monitoring. diff --git a/docs/assets/submission/proofrestore-demo-captions.srt b/docs/assets/submission/proofrestore-demo-captions.srt index 12ee9bc..dcd4e79 100644 --- a/docs/assets/submission/proofrestore-demo-captions.srt +++ b/docs/assets/submission/proofrestore-demo-captions.srt @@ -1,100 +1,99 @@ 1 -00:00:00,058 --> 00:00:03,453 +00:00:00,058 --> 00:00:03,019 [AI-generated narration] Backup success is not recovery success. 2 -00:00:03,453 --> 00:00:07,262 +00:00:03,019 --> 00:00:06,314 ProofRestore verifies recovery before an emergency. 3 -00:00:07,262 --> 00:00:08,949 +00:00:06,314 --> 00:00:07,758 I’ll open the demo vault. 4 -00:00:08,949 --> 00:00:18,149 +00:00:08,949 --> 00:00:16,785 The latest backup completed, but recoverability is at risk: eight snapshots hide two integrity issues and a retention risk. 5 -00:00:18,149 --> 00:00:19,349 +00:00:16,785 --> 00:00:17,762 I’ll check a file. 6 -00:00:19,349 --> 00:00:22,750 +00:00:19,349 --> 00:00:22,196 The request asks for my thesis from Tuesday evening. 7 -00:00:22,750 --> 00:00:28,154 +00:00:22,196 --> 00:00:26,628 Its history shows damaged recent versions and a verified Tuesday copy. 8 -00:00:28,154 --> 00:00:33,334 +00:00:26,628 --> 00:00:31,071 I’ll keep the interpreted time, choose the original location, and verify. 9 -00:00:33,334 --> 00:00:40,886 +00:00:33,334 --> 00:00:39,965 Deterministic code selects the eligible snapshot, finds the stored object, and proves its hash and size. 10 -00:00:40,886 --> 00:00:43,549 +00:00:39,965 --> 00:00:42,386 This version is fully recoverable. 11 -00:00:43,549 --> 00:00:46,356 +00:00:43,549 --> 00:00:45,953 The restore simulation changes nothing. 12 -00:00:46,356 --> 00:00:53,224 +00:00:45,953 --> 00:00:51,680 A newer destination file would conflict, so ProofRestore protects it instead of overwriting it. 13 -00:00:53,224 --> 00:01:01,344 +00:00:53,224 --> 00:00:59,969 These evidence entries trace the snapshot, path, object, matching hash and size, and conflict. 14 -00:01:01,344 --> 00:01:08,567 +00:00:59,969 --> 00:01:06,412 The downloaded proof report preserves the request, verdict, plan, methodology, and appendix. 15 -00:01:08,567 --> 00:01:11,414 +00:01:08,567 --> 00:01:10,835 Anyone can test the same engine directly. 16 -00:01:11,414 --> 00:01:19,625 +00:01:10,835 --> 00:01:17,903 The Recovery Lab reads selected files locally and changes only in-memory copies—nothing is uploaded or modified. 17 -00:01:19,625 --> 00:01:24,238 +00:01:17,903 --> 00:01:21,960 I’ll load the sample, corrupt one stored copy, and run the check. 18 -00:01:24,238 --> 00:01:28,404 +00:01:24,238 --> 00:01:27,801 The ordered log exposes every snapshot and byte change. 19 -00:01:28,404 --> 00:01:35,641 +00:01:27,801 --> 00:01:33,858 The fixed expected hash and changed observed hash produce hash mismatch and an unrecoverable result. 20 -00:01:35,641 --> 00:01:44,762 +00:01:35,641 --> 00:01:43,613 You can choose your own files or folder, remove an object, create a conflict, export the manifest, or continue through the full workflow. 21 -00:01:44,762 --> 00:01:50,285 +00:01:43,613 --> 00:01:48,886 Natural language interprets requests, but deterministic code decides recovery. 22 -00:01:50,285 --> 00:01:53,000 +00:01:48,886 --> 00:01:51,079 Backups should not require faith. 23 -00:01:56,850 --> 00:02:04,175 +00:01:56,850 --> 00:02:04,288 ProofRestore was developed during OpenAI Build Week with Codex running GPT-5.6 Sol from start to finish. 24 -00:02:04,175 --> 00:02:14,311 -Codex helped shape the architecture, implement the deterministic recovery engine and Recovery Lab, -build adversarial tests, refine accessibility, and run release validation. +00:02:04,288 --> 00:02:14,731 +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:14,311 --> 00:02:19,322 -AI interprets intent, but deterministic code alone decides recovery. +00:02:14,731 --> 00:02:20,470 +Every recoverability claim remains backed by executable tests and transparent evidence. diff --git a/docs/assets/submission/proofrestore-demo-final.mp4 b/docs/assets/submission/proofrestore-demo-final.mp4 index 5403b15..cad55f0 100644 Binary files a/docs/assets/submission/proofrestore-demo-final.mp4 and b/docs/assets/submission/proofrestore-demo-final.mp4 differ diff --git a/docs/demo-narration.txt b/docs/demo-narration.txt index e2a654e..e58a22b 100644 --- a/docs/demo-narration.txt +++ b/docs/demo-narration.txt @@ -16,4 +16,4 @@ The ordered log exposes every snapshot and byte change. The fixed expected hash 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 running GPT-5.6 Sol from start to finish. 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. +ProofRestore was developed during OpenAI Build Week with Codex running GPT-5.6 Sol from start to finish. Codex helped shape the architecture, implement the deterministic recovery engine and Recovery Lab, build adversarial tests, refine accessibility, and run release validation. Every recoverability claim remains backed by executable tests and transparent evidence. diff --git a/docs/demo-script.md b/docs/demo-script.md index cc53e73..892930d 100644 --- a/docs/demo-script.md +++ b/docs/demo-script.md @@ -107,9 +107,9 @@ End on the footer: **Backups should not require faith.** **Narration:** -> “ProofRestore was developed during OpenAI Build Week with Codex running GPT-5.6 Sol from start to finish. 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.” +> “ProofRestore was developed during OpenAI Build Week with Codex running GPT-5.6 Sol from start to finish. Codex helped shape the architecture, implement the deterministic recovery engine and Recovery Lab, build adversarial tests, refine accessibility, and run release validation. Every recoverability claim remains backed by executable tests and transparent evidence.” -End on **Developed with Codex + GPT-5.6 Sol** and the deterministic trust boundary. +End on **Developed with Codex + GPT-5.6 Sol**, executable tests, and transparent evidence. ## Extended hands-on test path diff --git a/docs/development-log.md b/docs/development-log.md index bbbe942..927f2b4 100644 --- a/docs/development-log.md +++ b/docs/development-log.md @@ -95,5 +95,6 @@ - Replaced audience-specific video language with generic user language and rebuilt the recorder with seeded Bézier pointer paths, off-center clicks, human dwell timing, and smooth recorder-only scrolling. - Reassembled and fully decoded a 2:21, 1600×900 H.264 final video with natural 48 kHz stereo narration and an optional embedded English caption track; added the rules-required disclosure that Codex ran GPT-5.6 Sol from start to finish, inspected representative frames, and verified the embedded captions match the SRT source. +- Audited the complete final cut after a perceived synchronization issue, rebuilt every narration segment against one explicit visual timeline instead of inheriting an older recording's audio, retimed the selectable captions from fresh speech boundaries, and removed the repeated trust-boundary ending. A timestamped speech-to-text pass confirmed every intended line appears once. - Added the MIT license, `SECURITY.md`, `CONTRIBUTING.md`, CODEOWNERS, pull-request guidance, Dependabot, CodeQL, SHA-pinned Actions, and strict browser security headers. - Pinned patched PostCSS 8.5.19 through the package override; `npm audit` now reports zero vulnerabilities. diff --git a/docs/media-production.md b/docs/media-production.md index 143fa94..314ef96 100644 --- a/docs/media-production.md +++ b/docs/media-production.md @@ -11,7 +11,7 @@ npm run record:demo The recorder starts the production application, captures the complete demo and Recovery Lab path at 1600×900, and writes a temporary `proofrestore-demo-silent.webm`. It renders its own high-contrast pointer and click pulse because headless recordings do not contain the operating-system cursor. The silent render and generated narration audio are production intermediates and are intentionally not retained in the public repository. -The checked-in narration source uses Microsoft Edge's `en-US-AndrewMultilingualNeural` voice in the final cut. The curated SRT remains alongside the publication MP4 so caption wording, timing, and the AI-narration disclosure can be reviewed and uploaded independently. +The checked-in narration source uses Microsoft Edge's `en-US-AndrewMultilingualNeural` voice in the final cut. Each narration section is aligned from zero against the corresponding visual chapter rather than reusing audio from another recording. The curated SRT is timed from the same fresh speech boundaries and remains alongside the publication MP4 so caption wording, timing, and the AI-narration disclosure can be reviewed and uploaded independently. ## Publishing check diff --git a/scripts/record-demo.mjs b/scripts/record-demo.mjs index d8bc8ca..e8fe409 100644 --- a/scripts/record-demo.mjs +++ b/scripts/record-demo.mjs @@ -160,10 +160,10 @@ async function showBuildDisclosure(page) {

Developed with Codex + GPT-5.6 Sol

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. - Deterministic code alone decides recovery. + Verified by tests. + Explained with transparent evidence.
-

Backups should not require faith.

+

Public source. Reproducible validation.

`; const style = document.createElement("style");