Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why this is needed
PR #708 consolidates submission into one raw-ZIP API request. Its remote MCP adapter still accepts a Base64 ZIP, which makes the MCP request carry the archive and requires MCP to buffer it. An external agent owns the local file and must not receive MCP's ordinary Workstream API credential.
This PR specifies the agreed replacement: the agent calls MCP with small submission/file metadata, receives a temporary single-use credential, and streams its local ZIP directly to the existing submission endpoint.
What this PR changes
Design and documentation only. It adds the implementation contract in docs/spec_mcp_submission_upload.md, reconciles the MCP/submission documentation and capability ledger, and records the completed design in WS-MCP-002-14. It enables no API, token, tool, migration or deployment.
The contract specifies:
workstream_submission_upload_authorizeandPOST /api/v1/tasks/{task_id}/submission-upload-authorizations, replacing the affected Base64 submission tool when implemented.SubmissionUploadcredential with a ten-minute admission deadline, hash-only storage, exact actor/task/assignment/key/count/SHA-256 binding, unused-token rotation and permanent consumption at T1.Dependency and scope
Stacked on
codex/submission-intake-contracts/ #708 at4b763013920e79b6d70c99639f2d84e72341952a(main5c47b924208e4245bb5575e90df310b1b524aae0). This PR does not modify #708's branch or add a delivery prerequisite to its existing scope. It preserves the canonical PRE → T4 → T5 → POST lifecycle and both review-policy branches.Eight documentation/design files changed; no backend/MCP runtime code changed.
Validation
Final clean candidate:
893639e77e013a9ecedd46bd456ee45a424b6914.All seven local checks passed:
git diff --check.GitHub Agent Gates passed on this candidate. The Backend workflow was still pending at the final verification snapshot; it is not represented as passed.
Focused design review
Security, architecture/reuse, and documentation reviews covered the design and its consistency with current owners. Architecture and reuse were assessed in one combined reviewer session, not two independent reviews. Final clean-target replay confirms the fixes:
ARCH-REUSE-001: close cross-mode actor/key reservation races and symmetric SQL enforcement while preserving existing admitted-operation replay.SEC-001: specify bounded issuance, retained-history limits, refusal effects and the final lost-response limit.SEC-002: require independent PostgreSQL sessions and both revocation orderings at T1, PRE and T4.DOC-MCP-UPLOAD-001: make expiry an admission deadline, including lock waits.DOC-MCP-UPLOAD-002: qualify all reauthorization guidance by remaining issuance budget.DOC-MCP-UPLOAD-003: record completed check evidence rather than a pending rerun instruction.These are advisory plan reviews, not runtime attestation. U01–U27 specify future implementation proof; none is claimed as executed by this design PR.
This PR remains draft. No merge or deployment was performed.