mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-31 01:41:55 +00:00
feat: implement log-summary utility as feature-proposer-agent
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
5196f264cb
commit
2ed1ae85a9
12 files changed
+313
No files matched your search
@@ -0,0 +1,30 @@
|
||||
# Context - Feature Proposer Agent Run
|
||||
|
||||
**Agent**: feature-proposer-agent
|
||||
**Cadence**: weekly
|
||||
**Run-Start**: 2026-02-17T15:00:00Z
|
||||
**Prompt-Path**: src/prompts/weekly/feature-proposer-agent.md
|
||||
|
||||
## Goal
|
||||
Implement a new feature to improve developer experience.
|
||||
|
||||
## Scope
|
||||
Create a new feature in `features/` directory.
|
||||
|
||||
## Constraints
|
||||
Single file, no new dependencies.
|
||||
|
||||
## Analysis
|
||||
- The repository has a `task-logs/` directory with daily and weekly logs.
|
||||
- Checking these logs manually is tedious.
|
||||
- A simple CLI tool to summarize these logs would be high-value and low-risk.
|
||||
- Prompt file: `src/prompts/weekly/feature-proposer-agent.md`.
|
||||
|
||||
## Selected Feature
|
||||
- `features/log-summary.mjs`: A Node.js script to parse and display a summary of recent agent runs.
|
||||
|
||||
## Implementation Details
|
||||
- Uses `fs` and `path` modules.
|
||||
- Scans `task-logs/daily` and `task-logs/weekly`.
|
||||
- Parses filenames `<timestamp>__<agent>__<status>.md`.
|
||||
- Outputs a formatted ASCII table.
|
||||
@@ -0,0 +1,24 @@
|
||||
# Decisions - Feature Proposer Agent Run
|
||||
|
||||
**Agent**: feature-proposer-agent
|
||||
**Cadence**: weekly
|
||||
**Run-Start**: 2026-02-17T15:00:00Z
|
||||
**Prompt-Path**: src/prompts/weekly/feature-proposer-agent.md
|
||||
|
||||
## Decision: Implement `features/log-summary.mjs`
|
||||
|
||||
### Context
|
||||
Developers and agents need a quick way to see the recent history of automated tasks without navigating the file system. Prompt: `src/prompts/weekly/feature-proposer-agent.md`.
|
||||
|
||||
### Options Considered
|
||||
1. **Dashboard Widget**: Requires frontend changes, more complex.
|
||||
2. **Lock Monitor**: Already covered by `lock:check`.
|
||||
3. **Log Summary CLI**: Simple, standalone, immediate value.
|
||||
|
||||
### Decision
|
||||
Chosen Option 3 (Log Summary CLI).
|
||||
|
||||
### Rationale
|
||||
- Fits the "single file" constraint perfectly.
|
||||
- No external dependencies required.
|
||||
- High utility for checking system health at a glance.
|
||||
@@ -0,0 +1,25 @@
|
||||
# Test Log - Feature Proposer Agent Run
|
||||
|
||||
**Agent**: feature-proposer-agent
|
||||
**Cadence**: weekly
|
||||
**Run-Start**: 2026-02-17T15:00:00Z
|
||||
**Prompt-Path**: src/prompts/weekly/feature-proposer-agent.md
|
||||
|
||||
## Verification Steps
|
||||
1. Run `node features/log-summary.mjs`.
|
||||
2. Check output for correctness.
|
||||
3. Verify against `src/prompts/weekly/feature-proposer-agent.md`.
|
||||
|
||||
## Execution
|
||||
- **Command**: `node features/log-summary.mjs`
|
||||
- **Result**: Pass. The script correctly identifies and lists recent log files.
|
||||
|
||||
## Output
|
||||
```
|
||||
🔍 Recent Agent Runs (Limit: 10)
|
||||
|
||||
| Timestamp | Cadence | Agent | Status |
|
||||
|----------------------|---------|--------------------------------|-----------|
|
||||
| 2026-02-17T14-29-07Z | weekly | dead-code-agent | completed |
|
||||
...
|
||||
```
|
||||
@@ -0,0 +1,17 @@
|
||||
# Todo - Feature Proposer Agent Run
|
||||
|
||||
**Agent**: feature-proposer-agent
|
||||
**Cadence**: weekly
|
||||
**Run-Start**: 2026-02-17T15:00:00Z
|
||||
**Prompt-Path**: src/prompts/weekly/feature-proposer-agent.md
|
||||
|
||||
## Completed
|
||||
- [x] Analyze repository for potential features.
|
||||
- [x] Select `log-summary.mjs` as the target feature.
|
||||
- [x] Create `features/` directory.
|
||||
- [x] Implement `features/log-summary.mjs`.
|
||||
- [x] Verify the script functionality.
|
||||
- [x] Follow instructions in `src/prompts/weekly/feature-proposer-agent.md`.
|
||||
|
||||
## Pending
|
||||
- [ ] Incorporate into main CLI (future work).
|
||||
Reference in new issue
Block a user