Skip to content

GET /v1/media/policy publishes two caps without saying which one the write door enforces #696

Description

@emooreatx

src/media_gate.rs:323-324 publishes inline_max_bytes: 1 MiB and whole_read_max_bytes: WHOLE_READ_CAP. The write door (src/drive.rs:~728, write_file) refuses only over WHOLE_READ_CAP; inline_max_bytes is a storage fact (inline vs blob), not a refusal threshold. A client reading the policy can't tell which number gates an upload, and gating on the smaller one would refuse files the node would take.

Ask: name the write gate explicitly in the policy (e.g. upload_max_bytes, or a gates: {write: "whole_read_max_bytes"} map), and document inline_max_bytes as storage placement. CIRISClient (CSD-007) gates on whole_read_max_bytes today and says so.

Found by CIRISClient's Files 0.5.217 pass, read against origin/main.

🤖 Generated with Claude Code

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions