Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-03-04 16:41:54 -05:00
parent 8ee8e5e956
commit e8f8574053
34 changed files with 7164 additions and 49 deletions
+7 -9
View File
@@ -1,12 +1,12 @@
<!--
Sync Impact Report
Version change: 1.0.0 → 1.1.0
Version change: 1.1.0 → 1.1.1
Modified principles: None
Added sections:
- Principle VI: Test-Driven Development (new core principle)
Added sections: N/A
Modified sections:
- Development Standards — Testing bullet upgraded from SHOULD to MUST;
added TDD-specific guidance (test file conventions, coverage expectations)
- Dependency Governance — Removed `github.com/miekg/dns` from
Currently Approved External Dependencies (replaced by
`golang.org/x/net/dns/dnsmessage` in feature 001)
Removed sections: N/A
Templates requiring updates:
- .specify/templates/plan-template.md — ⚠ pending (Constitution Check
@@ -165,9 +165,7 @@ into an auditable process.
### Currently Approved External Dependencies
| Module | Justification |
|--------|---------------|
| `github.com/miekg/dns` | The Go standard library `net` package does not support querying a specific DNS server by address. This tool's core purpose requires directing queries to a user-specified resolver, which `net.Resolver` cannot do without low-level `Dialer` workarounds that replicate what `miekg/dns` provides. This is a legacy dependency approved under a grandfather clause — if a `golang.org/x` or stdlib alternative becomes viable under Go 1.20, migration is preferred. |
None. All external functionality is provided by `golang.org/x/net/dns/dnsmessage` (covered by the `golang.org/x/*` blanket approval above).
## Development Standards
@@ -207,4 +205,4 @@ prior practices that conflict with its contents.
reviewer MUST verify compliance with Principle II and the Dependency
Governance table above.
**Version**: 1.1.0 | **Ratified**: 2026-03-03 | **Last Amended**: 2026-03-03
**Version**: 1.1.1 | **Ratified**: 2026-03-03 | **Last Amended**: 2026-03-04