--- id: RT-TOOL-5 family: RT-TOOL level: optional profiles: [runtime] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/rt-tool/rt-tool-5 specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # RT-TOOL-5 — Artifact collection is opened and released per run *RT-TOOL (Part II) · level: optional · profiles: runtime · added in 1.0* Collecting artifacts means holding payloads in memory, so the run that opens collection is the run that ends it, on every way out. ## The rule > **Normative.** This is the rule. > > 1. An implementation MAY omit collecting tool artifacts altogether. > > 2. Where it collects them, it MUST NOT retain an artifact unless collection is open for the run the artifact belongs to. > > 3. An artifact arriving for a run whose collection was never opened MUST be dropped. > > 4. Draining what has been collected MUST NOT end collection, and a later tool call in the same run MUST still collect. > > 5. Only releasing collection ends it, and an artifact arriving after release MUST be dropped. > > 6. Collection is opened and released on the same path. > > 7. A run that returns, pauses or fails MUST release collection, so it cannot retain artifacts beyond its own life. > > 8. Whether artifacts are collected MUST NOT depend on which entry point launched the run. ## What it means Collection is opt-in per run, not automatic: a tool call that produces an artifact while nobody has opened collection for its run does not queue up waiting for someone to ask — it is simply not kept. Nothing later can recover it, and opening collection afterwards does not reach back for it. Draining what has been collected so far is not the same as ending collection: a run can drain, then have a later tool call in the same run still add to what it collects. Only release ends collection outright. ## Example A tool call produces an artifact for a run that never opened collection: ```json title="What the tool call produced" verdict="produced" { "type": "citation", "payload": { "ref": "a" }, "tool_call_id": "call_1" } ``` ```json title="What the run's collection holds" verdict="dropped" [] ``` ## Why Recorded under [OPEN-25](https://flowdrop.io/spec/rulings/open-25). --- Rule identifiers are permanent and are never renumbered. This specification carries no implementation status: each implementation publishes its own standing against these rules. Licensed CC BY 4.0.