AGENTS.md@infrastructure/publishing/osf · git:20260628.5b6cfa0 · 2026-06-28 · sha256 3d29848f350a99a9
AGENTS.md@infrastructure/publishing/osf git:20260628.5b6cfa0A
Immutable. This exact content is served forever at /api/v1/blob/3d29848f350a99a9.
# OSF Publishing Adapter ## Purpose Publishes manuscript and reproducibility bundles to Open Science Framework nodes for open-science sharing alongside DOI and repository publication channels. ## Contracts - Keep `dry_run=True` as the safe default. - Resolve tokens from explicit config first, then `OSF_TOKEN`; never log token values. - Keep metadata calls and Waterbutler file uploads separately configurable so tests can use local HTTP servers. - Return structured `OSFResult` values instead of raising on HTTP, credential, or partial-upload failures. - Do not add DOI-registration behavior here; this adapter creates or updates editable OSF nodes. ## Verification ```bash uv run pytest tests/infra_tests/publishing/test_osf_adapter.py ``` ## Parent Docs - Publishing module: [`../AGENTS.md`](../AGENTS.md) - Adapter README: [`README.md`](README.md)