From 6ac69ac07c4c97f039cf8940e11997077d11010b Mon Sep 17 00:00:00 2001 From: Snider Date: Wed, 25 Mar 2026 19:56:04 +0000 Subject: [PATCH] =?UTF-8?q?fix(rfc):=20final=20check=20=E2=80=94=20go-proc?= =?UTF-8?q?ess=20v0.8.0,=20readStatus=20dogfood,=20grep=20paths?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Depends on: go-process v0.7.0 → v0.8.0 - Section 6: readStatus uses JSONUnmarshalString + Fs.Read (dogfood) - Section 22: quality gate grep uses generic paths not pkg/** - Fixed double blank line in Section 19 Co-Authored-By: Virgil --- docs/RFC.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/RFC.md b/docs/RFC.md index fcd32f1..c8f9858 100644 --- a/docs/RFC.md +++ b/docs/RFC.md @@ -5,7 +5,7 @@ **Status:** v0.8.0 **Module:** `dappco.re/go/core/agent` -**Depends on:** core/go v0.8.0, go-process v0.7.0 +**Depends on:** core/go v0.8.0, go-process v0.8.0 --- @@ -149,7 +149,8 @@ s.Core().Fs().WriteAtomic(statusPath, core.JSONMarshalString(status)) // Read-modify-write with lock s.withLock(wsDir, func() { - st := readStatus(wsDir) + var st WorkspaceStatus + core.JSONUnmarshalString(s.Core().Fs().Read(statusPath).Value.(string), &st) st.Status = "completed" s.Core().Fs().WriteAtomic(statusPath, core.JSONMarshalString(st)) }) @@ -377,7 +378,6 @@ c.Drive().Get("charon") ## 19. String Operations - No `fmt`, no `strings`, no `+` concat. Core provides everything: ```go @@ -428,15 +428,15 @@ func ExamplePrepSubsystem_handleDispatch() { ```bash # No disallowed imports (all 10) -grep -rn '"os"\|"os/exec"\|"io"\|"fmt"\|"errors"\|"log"\|"encoding/json"\|"path/filepath"\|"unsafe"\|"strings"' pkg/**/*.go \ +grep -rn '"os"\|"os/exec"\|"io"\|"fmt"\|"errors"\|"log"\|"encoding/json"\|"path/filepath"\|"unsafe"\|"strings"' *.go **/*.go \ | grep -v _test.go # Test naming -grep "^func Test" pkg/**/*_test.go \ +grep -rn "^func Test" *_test.go **/*_test.go \ | grep -v "Test[A-Z][a-z]*_.*_\(Good\|Bad\|Ugly\)" # String concat -grep -n '" + \| + "' pkg/**/*.go | grep -v _test.go | grep -v "//" +grep -rn '" + \| + "' *.go **/*.go | grep -v _test.go | grep -v "//" ``` ---