[P2-07] Collapse duplicate/legacy modules and hardcoded environment paths #41

Closed
opened 2026-08-28 20:54:49 +01:00 by conductor · 2 comments
Owner

Plain summary

Duplicate and legacy modules are collapsed: compare src/rune vs shared, pick the authoritative version, archive or delete dead copies after dependency checks, and centralize environment/path resolution.

Example

After cleanup there is exactly ONE live implementation per responsibility, and no ambiguity over which copy is real.

Technical details

Parent epic: #16

Manifest ID: P2-07

Priority: P2
Action:

  • compare src/rune and shared duplicates;
  • select authoritative versions;
  • archive/delete dead copies after dependency checks;
  • centralize environment/path resolution.

Acceptance criteria:

  • one implementation per responsibility;
  • no ambiguity over which copy is live.

Dependencies: P0-01.


Resolved dependency references

  • Depends on: #17 (P0-01)
  • Blocks: None.

Relevant source files

Not specified in the handoff. P0-01 must identify authoritative paths before implementation; do not guess by adding another path.

Do not do

  • Do not begin this issue before its dependencies are complete.
  • Do not create a parallel authority path; replace, extend, or remain dormant.
  • Do not add unrelated cognitive subsystems or additive feature growth.
  • Do not treat module/schema existence, background activity, or model self-report as acceptance evidence.

Source directive

Preserved from /home/nick/Desktop/rune_v1_course_correction_handoff.md, Section 14. The handoff is authoritative if this issue summary is ambiguous.

Pipeline requirements

  • TDD: frozen/regression tests written first, red → green
  • ruff check and ruff format --check clean
  • Spec-compliance review gate: PASS
  • Code-quality review gate: Approved
  • Full orchestration suite regression green
  • Canary passes (where applicable)
  • Closed with a properly formatted closing comment + commit/PR references
## Plain summary Duplicate and legacy modules are collapsed: compare src/rune vs shared, pick the authoritative version, archive or delete dead copies after dependency checks, and centralize environment/path resolution. ## Example After cleanup there is exactly ONE live implementation per responsibility, and no ambiguity over which copy is real. ## Technical details Parent epic: #16 Manifest ID: **P2-07** **Priority:** P2 **Action:** - compare `src/rune` and `shared` duplicates; - select authoritative versions; - archive/delete dead copies after dependency checks; - centralize environment/path resolution. **Acceptance criteria:** - one implementation per responsibility; - no ambiguity over which copy is live. **Dependencies:** P0-01. --- ## Resolved dependency references - Depends on: #17 (P0-01) - Blocks: None. ## Relevant source files Not specified in the handoff. P0-01 must identify authoritative paths before implementation; do not guess by adding another path. ## Do not do - Do not begin this issue before its dependencies are complete. - Do not create a parallel authority path; replace, extend, or remain dormant. - Do not add unrelated cognitive subsystems or additive feature growth. - Do not treat module/schema existence, background activity, or model self-report as acceptance evidence. ## Source directive Preserved from `/home/nick/Desktop/rune_v1_course_correction_handoff.md`, Section 14. The handoff is authoritative if this issue summary is ambiguous. ## Pipeline requirements - [ ] TDD: frozen/regression tests written first, red → green - [ ] `ruff check` and `ruff format --check` clean - [ ] Spec-compliance review gate: PASS - [ ] Code-quality review gate: Approved - [ ] Full orchestration suite regression green - [ ] Canary passes (where applicable) - [ ] Closed with a properly formatted closing comment + commit/PR references
conductor added the P2 — mediumv1-course-correction labels 2026-08-28 20:54:49 +01:00
gitea-actions Bot added the featuregrowth labels 2026-08-28 20:55:52 +01:00
gitea-actions Bot added the custodian label 2026-09-03 22:54:32 +01:00
gitea-actions Bot added the ready label 2026-09-05 19:28:38 +01:00

🎓 NEXT: #41 — [P2-07] Collapse duplicate/legacy modules and hardcoded environment paths — dependencies satisfied (scheduled sweep); Rune may start.

🎓 **NEXT: #41 — [P2-07] Collapse duplicate/legacy modules and hardcoded environment paths** — dependencies satisfied (scheduled sweep); Rune may start.
Author
Owner

CLOSED PROGRAMMATICALLY — commit 299ae4e (contract BUILDER-2026-10-08T11:04:31Z-55ae38). paths.py centralizes all environment paths (repo_root/crate_dir/deploy_root/rune_home/harness_scripts/wait_resume_dir, all with env overrides); 13 hardcoded literals collapsed; the behavior/behaviour_ledger twins are DISTINCT modules (pinned by test, not collapsed). The no-hardcoded-literals gate fails the build on any new literal. 3/3 green.

CLOSED PROGRAMMATICALLY — commit 299ae4e (contract BUILDER-2026-10-08T11:04:31Z-55ae38). paths.py centralizes all environment paths (repo_root/crate_dir/deploy_root/rune_home/harness_scripts/wait_resume_dir, all with env overrides); 13 hardcoded literals collapsed; the behavior/behaviour_ledger twins are DISTINCT modules (pinned by test, not collapsed). The no-hardcoded-literals gate fails the build on any new literal. 3/3 green.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: conductor/rune#41