Skip to content

refactor: group internal packages by domain - #95

Merged
Grivn merged 3 commits into
masterfrom
refactor/h0-package-layout
Aug 11, 2026
Merged

refactor: group internal packages by domain#95
Grivn merged 3 commits into
masterfrom
refactor/h0-package-layout

Conversation

@Grivn

@Grivn Grivn commented Aug 11, 2026

Copy link
Copy Markdown
Member

What

  • Move Memory storage, graph, search, embedding, import, and host setup packages under internal/memory.
  • Move Agency authority, artifact, client, peer transport, and Pi attachment packages under internal/agency.
  • Keep the Agency protocol root and internal/daemon composition boundary stable.
  • Strengthen architecture guards to enforce exact nested package dependencies, and update path-sensitive tests and ownership docs.

Why

Prepare explicit Memory and Agency implementation boundaries before introducing the H0 View infra. This PR is structural only: the CLI surface, wire protocol, database schema, runtime state paths, and host projection paths remain unchanged.

Validation

  • go build -o mnemon .
  • umask 022; make test
  • CLI E2E: 147/147 assertions
  • Full serial Go package and process suites
  • Race suites; the Daemon suite passed on retry after one intermittent five-second fault-injection timing miss
  • Three containerized mnemond scenarios: blackboard, contract-net, and review
  • Pi Runtime oracle
  • Domain-ops world

Checklist

  • Deterministic tests pass (make test)
  • Relevant E2E/process/Docker boundaries pass
  • Structural behavior is covered by exact package-graph tests
  • Package ownership documentation is updated
  • No user-facing release-note impact

Grivn added 3 commits August 11, 2026 20:03
Inspect each package directory independently and compare full internal import paths so nested Memory and Agency packages cannot collapse into one component.

Validated with umask 022; make test.
Move Memory storage, search, graph, embedding, import, and Host setup packages under internal/memory while preserving their package APIs and runtime paths. Update deterministic package lists, architecture guards, and path-sensitive tests without changing Memory behavior.

Validated with go build -o mnemon . and umask 022; make test.
Move Agency authority, artifact, peer transport, client, and Pi attachment packages under internal/agency while keeping the protocol root and daemon composition boundary stable. Update imports, package guards, ownership docs, and path-sensitive runtime tests without changing wire, persistence, or workspace paths.

Validated with go build -o mnemon ., focused Agency and architecture tests, and umask 022; make test.
@Grivn
Grivn merged commit d6ee781 into master Aug 11, 2026
1 check passed
@Grivn
Grivn deleted the refactor/h0-package-layout branch August 11, 2026 18:11
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