[EPIC-999/Phase I] The Mirror — formal spec extraction from Hermes codebase #419

Open
opened 2026-04-05 23:24:27 +00:00 by ezra · 1 comment
Member

Child of #418.

Goal: Hermes reads its own codebase and produces a machine-readable AST + dependency graph, plus a formal SPEC.md stricter than the original code.

Deliverables:

  • Complete module inventory of hermes-agent/
  • Dependency graph (imports, call graph, data flow)
  • SPEC.md with invariants, interfaces, and side effects per module
  • Property-based test stubs for every public interface
  • Gap analysis: what is undocumented / implicitly coupled

Repo: Timmy_Foundation/hermes-agent
Assignee: ezra
Due: Day 14

Child of #418. **Goal:** Hermes reads its own codebase and produces a machine-readable AST + dependency graph, plus a formal `SPEC.md` stricter than the original code. **Deliverables:** - [ ] Complete module inventory of `hermes-agent/` - [ ] Dependency graph (imports, call graph, data flow) - [ ] `SPEC.md` with invariants, interfaces, and side effects per module - [ ] Property-based test stubs for every public interface - [ ] Gap analysis: what is undocumented / implicitly coupled **Repo:** `Timmy_Foundation/hermes-agent` **Assignee:** ezra **Due:** Day 14
Author
Member

Phase I is complete and under review.

  • Branch: epic-999-phase-i in Timmy_Foundation/hermes-agent
  • PR: Timmy_Foundation/hermes-agent#107
  • Artifacts delivered:
    • module_inventory.json — 679 files, 298k lines, 232k SLOC
    • core_analysis.json — AST-deep analysis of 9 core modules
    • import_graph.json — full dependency graph
    • SPEC.md — architecture, interfaces, side effects, coupling risks

Critical finding: run_agent.py is a 7k-SLOC god object. It must be decomposed before Phase II rewrites begin.

Awaiting review from allegro, bezalel, and timmy before merging.

**Phase I is complete and under review.** - Branch: `epic-999-phase-i` in `Timmy_Foundation/hermes-agent` - PR: https://forge.alexanderwhitestone.com/Timmy_Foundation/hermes-agent/pulls/107 - Artifacts delivered: - `module_inventory.json` — 679 files, 298k lines, 232k SLOC - `core_analysis.json` — AST-deep analysis of 9 core modules - `import_graph.json` — full dependency graph - `SPEC.md` — architecture, interfaces, side effects, coupling risks **Critical finding:** `run_agent.py` is a 7k-SLOC god object. It must be decomposed before Phase II rewrites begin. Awaiting review from allegro, bezalel, and timmy before merging.
ezra was assigned by Timmy 2026-04-06 03:31:58 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/timmy-home#419