From 7e5fc0f93f312b4018ee53993901c89f80e7e200 Mon Sep 17 00:00:00 2001 From: "user.email" Date: Wed, 25 Mar 2026 19:31:18 +0000 Subject: [PATCH] fix(rfc-025): add io to Principle 9 quality gate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit io bypasses stream primitives. Core provides: - core.ReadAll(reader) — read all + close - core.WriteAll(writer, content) — write + close - core.CloseStream(v) — close any Closer 9 disallowed imports in the quality gate. Zero violations in core/go. Co-Authored-By: Virgil --- docs/specs/RFC-025-AGENT-EXPERIENCE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/specs/RFC-025-AGENT-EXPERIENCE.md b/docs/specs/RFC-025-AGENT-EXPERIENCE.md index 38bd027..c79d1e9 100644 --- a/docs/specs/RFC-025-AGENT-EXPERIENCE.md +++ b/docs/specs/RFC-025-AGENT-EXPERIENCE.md @@ -403,6 +403,7 @@ Core primitives become mechanical code review rules. An agent reviewing a diff c | `unsafe` | Bypasses Fs sandbox | `Fs.NewUnrestricted()` | | `encoding/json` | Bypasses Core serialisation | `core.JSONMarshal()` / `core.JSONUnmarshal()` | | `os` | Bypasses Fs/Env primitives | `c.Fs()`, `core.Env()`, `core.DirFS()` | +| `io` | Bypasses stream primitives | `core.ReadAll()`, `core.WriteAll()`, `core.CloseStream()` | | `path/filepath` | Bypasses path security boundary | `core.Path()` / `core.JoinPath()` | | `fmt.Errorf` | Bypasses error primitive | `core.E()` | | `errors` | Bypasses error primitive | `core.NewError()` / `core.Is()` / `core.As()` |