Sync
Maintain file-based continuity for research and paper projects across Codex
devices. Do not assume chat history is shared.
Sources Of Truth
Use the smallest set that matches the project:
- Git records what changed.
- The active configuration records which settings were used.
- The active results directory records outputs and validation.
- Project governance documents record methods, results, assessment, story, and
writing boundaries.
Project Profiles
Read references/research-project-tree.md
before creating directories.
minimal-paper: one active analysis flow using analysis/, results/, and
three governance files under paper/. Read
references/minimal-paper-project.md.
expanded-research: multiple analysis branches, archived runs, manuscript
versions, supplements, or reviewer packages. Retain the expanded tree only
when the project already needs it or the user explicitly requests it.
legacy: read existing TODO.md, HANDOFF.md, logs, and sync/ state for
compatibility, but do not extend them as the new default.
Do not recreate deleted configs/, output/, notes/, or nested manuscript
directories merely because an older template used them.
Workflow
Initialize
- Detect the project profile and existing conventions.
- Create only the directories and governance files required by that profile.
- Protect raw data and existing user files.
- Add
.codex/project.yaml only when non-standard paths cannot be inferred.
- Apply references/naming-and-archiving.md
only when naming outputs or creating an archive.
Resume
Inspect state in this order:
- Git status and recent commits.
README.md for the active question and reproduction order.
- Active configuration and numerically ordered analysis scripts.
- Project governance documents in their declared order.
- Current results, validation verdicts, and run registries.
.codex/project.yaml only when present.
Recover the current advantage state and claim/evidence dependencies from existing
project records; reconcile stale configuration/results before reusing a story.
Reconstruct the current task, last validated result, writing boundaries, next
step, and blockers. Identify every file used as a source of truth.
End A Work Block
- Keep active artifacts in the profile's current results directory.
- Run the project validation command when available and record its verdict.
- Update only the governance documents affected by material changes.
- Keep
README.md as the short entry point with the active flow and commands.
- Preserve the project's documentation language and terminology policy.
- Archive only when requested or when a reproducible submission checkpoint
needs preservation.
- Change
.codex/project.yaml only when path structure changes.
Optional Path Map
.codex/project.yaml is a small path index, not a workflow log. Use
references/project-yaml-template.yaml
only when manuscript, configuration, export, data, or results paths are
non-standard.
Machine Split
- Prefer the coding machine for code, models, figures, batch exports,
environments, and validation.
- Prefer the writing machine for prose, outlines, synthesis, reviewer responses,
and reading validated results.
- For mixed work, let the coding machine produce traceable artifacts before the
writing machine converts them into manuscript text.
Safety
- Treat raw source data as immutable.
- Do not introduce a second active analysis route without updating the project
entry point and governance documents.
- Do not rewrite generated registries or private state schemas by hand.
- Preserve
.checkpoints/, figure-workflow folders, and skill-owned archives.
- Do not claim conversation continuity when only files were synchronized.
Reference Router
| Reference |
Use |
| references/research-project-tree.md |
Minimal and expanded directory profiles |
| references/minimal-paper-project.md |
Three-document governance, language, and resume protocol |
| references/naming-and-archiving.md |
Output names and archive batches |
| references/analysis-log-template.md |
Legacy expanded-profile analysis log |
| references/manuscript-log-template.md |
Legacy expanded-profile writing log |
| references/archived-run-readme-template.md |
Archive provenance note |
| references/project-yaml-template.yaml |
Optional non-standard path map |
Output
Produce the smallest useful result: an initialized structure, reconstructed
state summary, validation status, machine recommendation, or cross-device
handoff. Always identify the source-of-truth files.
1---2name: sync3description: Use when the user wants to resume a research or paper project across devices, initialize a clean research-project workspace, reconstruct recent analysis or writing state from project files, or leave a concise cross-device handoff without relying on chat history.4---56# Sync78Maintain file-based continuity for research and paper projects across Codex9devices. Do not assume chat history is shared.1011## Sources Of Truth1213Use the smallest set that matches the project:1415- Git records what changed.16- The active configuration records which settings were used.17- The active results directory records outputs and validation.18- Project governance documents record methods, results, assessment, story, and19 writing boundaries.2021## Project Profiles2223Read [references/research-project-tree.md](references/research-project-tree.md)24before creating directories.2526- `minimal-paper`: one active analysis flow using `analysis/`, `results/`, and27 three governance files under `paper/`. Read28 [references/minimal-paper-project.md](references/minimal-paper-project.md).29- `expanded-research`: multiple analysis branches, archived runs, manuscript30 versions, supplements, or reviewer packages. Retain the expanded tree only31 when the project already needs it or the user explicitly requests it.32- `legacy`: read existing `TODO.md`, `HANDOFF.md`, logs, and `sync/` state for33 compatibility, but do not extend them as the new default.3435Do not recreate deleted `configs/`, `output/`, `notes/`, or nested manuscript36directories merely because an older template used them.3738## Workflow3940### Initialize41421. Detect the project profile and existing conventions.432. Create only the directories and governance files required by that profile.443. Protect raw data and existing user files.454. Add `.codex/project.yaml` only when non-standard paths cannot be inferred.465. Apply [references/naming-and-archiving.md](references/naming-and-archiving.md)47 only when naming outputs or creating an archive.4849### Resume5051Inspect state in this order:52531. Git status and recent commits.542. `README.md` for the active question and reproduction order.553. Active configuration and numerically ordered analysis scripts.564. Project governance documents in their declared order.575. Current results, validation verdicts, and run registries.586. `.codex/project.yaml` only when present.5960Recover the current advantage state and claim/evidence dependencies from existing61project records; reconcile stale configuration/results before reusing a story.62Reconstruct the current task, last validated result, writing boundaries, next63step, and blockers. Identify every file used as a source of truth.6465### End A Work Block66671. Keep active artifacts in the profile's current results directory.682. Run the project validation command when available and record its verdict.693. Update only the governance documents affected by material changes.704. Keep `README.md` as the short entry point with the active flow and commands.715. Preserve the project's documentation language and terminology policy.726. Archive only when requested or when a reproducible submission checkpoint73 needs preservation.747. Change `.codex/project.yaml` only when path structure changes.7576## Optional Path Map7778`.codex/project.yaml` is a small path index, not a workflow log. Use79[references/project-yaml-template.yaml](references/project-yaml-template.yaml)80only when manuscript, configuration, export, data, or results paths are81non-standard.8283## Machine Split8485- Prefer the coding machine for code, models, figures, batch exports,86 environments, and validation.87- Prefer the writing machine for prose, outlines, synthesis, reviewer responses,88 and reading validated results.89- For mixed work, let the coding machine produce traceable artifacts before the90 writing machine converts them into manuscript text.9192## Safety9394- Treat raw source data as immutable.95- Do not introduce a second active analysis route without updating the project96 entry point and governance documents.97- Do not rewrite generated registries or private state schemas by hand.98- Preserve `.checkpoints/`, figure-workflow folders, and skill-owned archives.99- Do not claim conversation continuity when only files were synchronized.100101## Reference Router102103| Reference | Use |104|---|---|105| [references/research-project-tree.md](references/research-project-tree.md) | Minimal and expanded directory profiles |106| [references/minimal-paper-project.md](references/minimal-paper-project.md) | Three-document governance, language, and resume protocol |107| [references/naming-and-archiving.md](references/naming-and-archiving.md) | Output names and archive batches |108| [references/analysis-log-template.md](references/analysis-log-template.md) | Legacy expanded-profile analysis log |109| [references/manuscript-log-template.md](references/manuscript-log-template.md) | Legacy expanded-profile writing log |110| [references/archived-run-readme-template.md](references/archived-run-readme-template.md) | Archive provenance note |111| [references/project-yaml-template.yaml](references/project-yaml-template.yaml) | Optional non-standard path map |112113## Output114115Produce the smallest useful result: an initialized structure, reconstructed116state summary, validation status, machine recommendation, or cross-device117handoff. Always identify the source-of-truth files.