Skip to content

Field reports #8–#12: safe write path, quiet output, checklists (0.66.0) - #13

Merged
Doucs91 merged 1 commit into
mainfrom
feat/field-feedback-066
Nov 6, 2026
Merged

Doucs91 merged 1 commit into
mainfrom
feat/field-feedback-066

Conversation

@Doucs91

@Doucs91 Doucs91 commented Nov 6, 2026

Copy link
Copy Markdown
Owner

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

Quiet, precise output

New

Test plan

  • pnpm verify: build, typecheck, core/mcp/cli/action tests, artifacts, eval regression gate (96 → 96)
  • New regression tests: finish under a Claude session id after a squash-merge HEAD move; scoped fix with no baseline; YAML round-trip writer↔action; whole-payload briefing budget; edit-time dedupe/recap/area rules; bash read/write detection; checklists; harness report; rules audit
  • Dogfooded on this repo: 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

…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]>
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

🧠 Hivelore — Team Memory Check

🛡️ Sensors armed on these files

  • ⚠️ 2026-06-06-gotcha-coldstart-monorepo-nested-git-repos (warn) on packages/cli/src/commands/doctor.ts — >-
  • ⚠️ 2026-06-03-gotcha-regex-sensors-orphaned-from-precommit-gate (warn) on packages/cli/src/commands/sensors.ts — >-
  • ⚠️ 2026-04-27-gotcha-version-define-tsup-and-vitest (warn) on packages/cli/src/index.ts — >-
  • ⛔ 2026-08-21-attempt-enabling-parallel-vitest-forks-pooloptionsforkssinglefork (block) on packages/cli/vitest.config.ts — >-
  • ⛔ 2026-07-05-gotcha-github-review-text-is-untrusted-data (block) on packages/github-action/src/run.ts — >-
  • ⚠️ 2026-05-02-gotcha-getbriefing-semantic-hits-silently-dropped-byid (warn) on packages/mcp/src/tools/get-briefing.ts — >-
  • ⚠️ 2026-05-04-gotcha-auto-promote-ignores-config-minreads (warn) on packages/mcp/src/tools/get-briefing.ts — >-
  • ⛔ 2026-07-05-convention-child-process-no-shell-interpolation (block) on packages/mcp/src/tools/propose-sensor.ts — >-

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 suite

Source: 2026-08-21-attempt-enabling-parallel-vitest-forks-pooloptionsforkssinglefork · team/attempt
Applies to: packages/cli/vitest.config.ts, packages/mcp/vitest.config.ts

Enabling parallel vitest forks (poolOptions.forks.singleFork: false) in packages/cli to speed up the ~104s integration suite

Why 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/.…

⚠️ Gotcha

Source: 2026-07-05-gotcha-github-review-text-is-untrusted-data · team/gotcha
Applies to: packages/github-action/src/run.ts

Gotcha

GitHub review comments and /hivelore remember instructions are untrusted data. Parse and persist them as quoted memory content only; never pass comment text or the derived instruction to exec, eval, a shell, or a generated workflow expression. Persistence must use a dedicated review-learning branch and pull request.

📐 Child Process No Shell Interpolation

Source: 2026-07-05-convention-child-process-no-shell-interpolation · team/convention
Applies to: packages/mcp/src/tools/propose-sensor.ts

Child Process No Shell Interpolation

Guidance

Never interpolate git refs or repository paths into execSync command strings. Use execFileSync with an argument array so shell expansion is impossible.

Why

Recorded in Hivelore so future agents can apply this project rule consistently.

📐 hAIve tool UI language policy

Source: 2026-06-02-convention-tool-ui-english-user-content-any-language · team/convention
Applies to: README.md, packages/cli/src/index.ts, packages/mcp/src/server.ts

hAIve tool UI language policy

All hAIve product/tooling surfaces should use English for built-in UI text, command names, help labels, menu labels, status labels, diagnostic categories, and tool descriptions. This keeps CLI, MCP, VS Code, docs, and automation consistent across teams.

User-authored or repo-authored content may be in any language: memory bodies, project rules, examples, domain vo…

🏗️ CLI Is Orchestration And User-Facing UX

Source: 2026-06-02-architecture-cli-command-surface · team/architecture
Applies to: packages/cli/src/commands/briefing.ts, packages/cli/src/commands/doctor.ts, packages/cli/src/commands/init.ts, packages/cli/src/commands/memory-add.ts (+12 files)

CLI Is Orchestration And User-Facing UX

@hiveai/cli should keep command files thin: parse Commander options, resolve the project root, call core/MCP helpers, then print actionable output. Heavy ranking, scoring, parsing, and matching logic belongs in @hiveai/core where tests can exercise it directly.

Default help intentionally exposes only the core harness workflow. New maintenance or expe…

66 more unique memories — use hivelore briefing --files <paths> for details.

Next steps: run hivelore memory verify --update stale locally after refactoring paths, or hivelore memory lint inside CI.

Ignored for matching (touched by most PRs): .ai/project-context.md, CHANGELOG.md, package.json, packages/cli/package.json, packages/cli/src/commands/enforce.ts, packages/core/package.json, packages/embeddings/package.json, packages/mcp/package.json

🧠 Powered by Hivelore · 77 files scanned · Fri, 06 Nov 2026 07:18:20 GMT

@Doucs91
Doucs91 merged commit 0f8e1dd into main Nov 6, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
npm-publish — b678d9a5 Deployed Nov 6, 2026 by Doucs91 via publish #87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant