mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-06 12:51:54 +00:00
Merge branch 'main' into agents/daily/decompose-agent-refactor-14956609596778737678
This commit is contained in:
7 files changed
+118
No files matched your search
@@ -0,0 +1,20 @@
|
||||
Run Start: 2026-02-19T10-00-00Z
|
||||
Cadence: daily
|
||||
Agent: decompose-agent
|
||||
Prompt: src/prompts/daily/decompose-agent.md
|
||||
|
||||
# Decisions: Decompose src/lock-ops.mjs
|
||||
|
||||
## Decision 1: Extract `RelayHealthManager`
|
||||
- **Rationale:** The `RelayHealthManager` class manages complex state and logic for relay health metrics, scoring, and prioritization. It is a distinct cohesive block that can be reused and tested independently.
|
||||
- **Target File:** `src/relay-health-manager.mjs`.
|
||||
|
||||
## Decision 2: Extract `LockPublisher`
|
||||
- **Rationale:** The `LockPublisher` class encapsulates the retry logic, backoff strategy, and publishing workflow. Separating it clarifies the distinction between "publishing a lock" and "managing locks generally".
|
||||
- **Target File:** `src/lock-publisher.mjs`.
|
||||
|
||||
## Decision 3: Move utilities
|
||||
- **Rationale:** Utilities like `withTimeout` and `mergeRelayList` are used by both the extraction targets and the original file. Moving them to `src/lock-utils.mjs` (or similar) avoids circular dependencies.
|
||||
|
||||
## Decision 4: Skip baseline update in script
|
||||
- **Rationale:** The `scripts/check-file-size.mjs` script does not support `--update` or maintain a `BASELINE` constant as described in the prompt. I manually verified that `src/lock-ops.mjs` is now under the limit (152 lines).
|
||||
Reference in new issue
Block a user