Repository navigation
Field reports #8–#12: safe write path, quiet output, checklists (0.66.0) - #13
Conversation
…s (v0.66.0) Never do harm: - resolve the agent session from CLAUDE_CODE_SESSION_ID; finish judges file contents against the task baseline (HEAD moves no longer matter), borrows the latest baseline when its own is missing, and never prescribes committing files it cannot attribute to the task - one YAML writer/reader: no folded scalars; the GitHub Action parses with the bundled gray-matter; round-trip test - canonical body written at save time; automatic sync no longer rewrites committed memories; default-valued frontmatter fields are omitted - personal memories carry their own .gitignore; pinned CLI in generated workflows; the PR action installs nothing Quiet, precise output: - edit-time reminders once per memory per session, rule line instead of a pointer, no recaps, decisions only on their exact file, none after reads - lean versioned agent briefing payload with a whole-response token budget, one-line rule per memory, compact JSON, requested symbols only - must_read reserved for exact passed-file anchors; auto-validated memories without reproduced/tested evidence labelled low (ranking unchanged) - no false bootstrap/recap/"incomplete" notices, no unverifiable prevention count, opt-in failure nag; default MCP surface reduced to 8 tools New: checklist sensors (Hivelore-Checked trailer), `hivelore rules audit`, `hivelore report harness`, memory `rule`/`source` fields, doctor write-path hazard checks, `enforce check --staged`. Addresses #8, #9, #10, #11, #12. Co-Authored-By: Claude Opus 5.5 <[email protected]>
🧠 Hivelore — Team Memory Check🛡️ Sensors armed on these files
71 memories relevant to this PR (across 49 files): 🔁 Enabling parallel vitest forks (poolOptions.forks.singleFork: false) in packages/cli to speed up the ~104s integration suiteSource: Enabling parallel vitest forks (poolOptions.forks.singleFork: false) in packages/cli to speed up the ~104s integration suiteWhy it failed / do NOT use: vitest 2.1.9 resolves worker entry paths through a URL, and mis-handles a SPACE in the project path. This repo lives at ".../New idea", so with singleFork:false every run dies at startup with `executeTests ../../../New%20idea/node_modules/.…
|
Summary
Works through the five field reports from agents using Hivelore daily on a production repo (#8, #9, #10, #11, #12). They agreed: the gate is the product, and the write path and agent-facing output had become the cost. This PR fixes every correctness issue they found, makes output small and honest, and adds three primitives on the same deterministic doctrine. The harness-engineering literature points the same way: enforce with scripts not prose, fewer tools, measure outcomes.
Never do harm
finishno longer tells an agent to commit the developer's WIP (Field feedback #3 (agent): the write path is the problem now — self-mutating files, YAML its own Action can't parse, a finish gate that blocks on the user's files #10 §3, Field feedback #3 (agent):finishtold me to commit the developer's WIP; the briefing budget doesn't count three quarters of the briefing #11 §1). Root cause: Claude Code exportsCLAUDE_CODE_SESSION_ID, but Hivelore readCLAUDE_SESSION_ID. Every CLI call missed the hook's baseline and claimed every dirty file. Ownership now compares file contents only, so HEAD moves no longer matter. A missing baseline borrows the latest one, and with no baseline at all the fix text is scoped to the task's own files.syncno longer rewrites committed memories. Default-valued frontmatter fields are no longer written (Field feedback #3 (agent): the write path is the problem now — self-mutating files, YAML its own Action can't parse, a finish gate that blocks on the user's files #10 §2, Field feedback #4 (agent, 14 sessions measured): edit-time reminders are 82% decisions and recaps, validation is 89% automatic, metadata outweighs knowledge 2:1 #12 §3.3)..gitignore(Field feedback from a coding agent: sensors are the value; [skip ci] sync can silently block a release #8 §2).finishtold me to commit the developer's WIP; the briefing budget doesn't count three quarters of the briefing #11 §7).Quiet, precise output
ls/cat/git status(Field feedback #2 (agent): a known caveat went unseen and shipped to production; hook noise erodes trust #9 §3, Field feedback #4 (agent, 14 sessions measured): edit-time reminders are 82% decisions and recaps, validation is 89% automatic, metadata outweighs knowledge 2:1 #12 §4.2).ruleper memory and compact JSON. The budget is enforced on the whole response. Symbol lookups only for requested symbols (Field feedback #2 (agent): a known caveat went unseen and shipped to production; hook noise erodes trust #9 §5, Field feedback #3 (agent):finishtold me to commit the developer's WIP; the briefing budget doesn't count three quarters of the briefing #11 §2).must_readmeans an exact passed-file anchor. Auto-validated memories without reproduced/tested evidence are labelledlow(Field feedback #3 (agent):finishtold me to commit the developer's WIP; the briefing budget doesn't count three quarters of the briefing #11 §4, Field feedback #4 (agent, 14 sessions measured): edit-time reminders are 82% decisions and recaps, validation is 89% automatic, metadata outweighs knowledge 2:1 #12 §1.2).maintenance(Field feedback #3 (agent):finishtold me to commit the developer's WIP; the briefing budget doesn't count three quarters of the briefing #11 §8).New
Hivelore-Checked: <id>commit trailer (Field feedback #2 (agent): a known caveat went unseen and shipped to production; hook noise erodes trust #9 §9.1).hivelore rules audit: enforced / checkable-but-unenforced / judgment for every rule in CLAUDE.md, AGENTS.md and.cursor/rules. Works withoutinit.hivelore report harness: per-sensor catches and waivers, surfaced vs applied, archive candidates, dangling anchors, expired decisions (Field feedback #4 (agent, 14 sessions measured): edit-time reminders are 82% decisions and recaps, validation is 89% automatic, metadata outweighs knowledge 2:1 #12 §4.3).rule/sourcememory fields anddoctorwrite-path hazard checks (Field feedback #3 (agent):finishtold me to commit the developer's WIP; the briefing budget doesn't count three quarters of the briefing #11 §5, §9, Field feedback #3 (agent): the write path is the problem now — self-mutating files, YAML its own Action can't parse, a finish gate that blocks on the user's files #10 §9.6).Test plan
pnpm verify: build, typecheck, core/mcp/cli/action tests, artifacts, eval regression gate (96 → 96)rules audit,report harness,doctor(finds 24 folded memory files here)Addresses #8, #9, #10, #11, #12 (left open for the reporter to confirm).
🤖 Generated with Claude Code