Skip to content

refactor: give shared policy one owner - #101

Merged
dcolthorp merged 9 commits into
mainfrom
t3/untangle-codebase
Nov 6, 2026
Merged

dcolthorp merged 9 commits into
mainfrom
t3/untangle-codebase

Conversation

@dcolthorp

@dcolthorp dcolthorp commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Shared policy lived in separate CLI, runtime and browser implementations, so one change could require coordinated edits and silently drift. Two untangle passes give those rules common owners, remove unused paths, and preserve the existing subsystem boundaries.

pkg/
├── markdownsyntax/         shared lexical rules
├── app/graphpresentation/  shared graph and path projection
├── app/runtime/            shared vault event names
├── harness/                shared MCP environment decoding
└── app/cli/init/            one ownership plan for generated-file changes

The first pass covers 46 approved groups; the second covers 30 remaining groups plus defects found during verification. First-pass evidence and second-pass evidence record the decisions and retained differences.

Evidence

  • Before: init could delete an unrecorded or edited command by filename prefix. After: removals use recorded ownership, preview and ordinary decisions; both built and packaged CLIs preserve custom files across all five command/prompt directories.
  • Before: trailing JSON closers reached task execution, PHP note lookup could match Python anchors, and early subprocess rejection could crash with EPIPE. After: focused regressions pass through the real task, lookup and subprocess paths.
  • Before: Windows could report failed shutdown after the child was already reaped; two test fixtures assumed Unix path errors or precise automatic file timestamps. After: the Windows exception requires that exact child's confirmed exit; portable fixtures retain the original safety assertions.
  • make verify and final make check passed, including race/integration coverage, 1,968 web unit tests, ten supervisor tests and 121 browser tests. Late platform corrections also passed focused checks, Windows test cross-compilation and the Windows CI unit suite.
  • Before this merge, desktop check/build passed: 113 UI tests, 111 Rust tests and app lifecycle fixtures. Generated files converge; documentation and frozen-scope checks pass. Both storage-adapter contracts were exercised against disposable SQLite/DynamoDB during first-pass verification.

Merge Danger

Door: two-way. No schema or data migration.

Blast Radius: broad. Indexing, query/view reads, CLI/web contracts, lifecycle, tooling and the team service are affected. Intentional graph, preview, Markdown, scheduling and adapter differences remain. Removed unused Go exports may require migration in consumers outside this repository; those consumers were not inspected. No merge, deployment or production installation is included.

Latest main (60b4892e) is merged into this branch. Conflict resolutions retain the shared graph response owner with Explorer overflow fields, combine the ontology guidance, and keep main's valid-reply-after-EPIPE behavior with the existing CLI resolver. Managed files were regenerated through init and verified to converge.

make verify and make check passed after the merge, including 1,968 web tests and 121 browser tests. Documentation validation and frozen-scope checks passed. The independent merge integration review found no actionable issues.

Reviewed with sol-loop: 2 first-pass rounds with GPT-6.1 Sol (xhigh). Sol verdict: approved. Second-pass integration reviews also found no actionable issues.

Greptile CLI returned 5/5 with zero comments on 2c34dfc5e492502c798b6f3a68553e4486f6f7c4. All 22 CI checks passed on this head.

Created with GPT-6.1 Sol in Codex (T3 Code), including GPT-6.1 Sol implementation subagents.

Consolidate shared rules, retire unused paths, and preserve caller-specific behavior across indexing, queries, runtime, web, tooling, and the team service. Include regression fixes and the approved comment and test cleanup passes.
Preserve shared graph DTOs while carrying Explorer overflow metadata.
Keep the newer compounding reply handling and the existing rzm resolver.
Regenerate the managed client from its canonical template.

Validated with make verify, make check, init convergence, documentation
checks, and an independent integration review.
@dcolthorp
dcolthorp merged commit a738a26 into main Nov 6, 2026
22 checks passed
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