feat(miner-hands): add driver attempt log persistence and JSONL export (#4294) - #4576
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4576 +/- ##
=======================================
Coverage 94.10% 94.10%
=======================================
Files 427 427
Lines 38022 38022
Branches 13877 13877
=======================================
Hits 35779 35779
Misses 1586 1586
Partials 657 657
🚀 New features to boost your workflow:
|
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-07-10 05:21:44 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 5 non-blocking
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Closes #4294
Summary
packages/gittensory-engine/src/miner/attempt-log.tswithattempt_tool_editinATTEMPT_LOG_EVENT_TYPESand document miner-side persistence.packages/gittensory-miner/lib/attempt-log.js: append-only SQLite store keyed byattempt_id, importingnormalizeAttemptLogEventandformatAttemptLogJsonlfrom@jsonbored/gittensory-engine.event-ledger.jsremains the general miner-loop audit trail (discovered_issue,plan_built, …) scoped by repo.readAttemptLogEvents({ attemptId })andexportAttemptLogJsonl(attemptId)for portable per-attempt traces.Scope
normalizeAttemptLogEventin engine (incl.attempt_tool_edit)seq+UNIQUE(seq)+BEGIN IMMEDIATEappend path (mirrorsevent-ledger.js)Test plan
packages/gittensory-engine/test/attempt-log.test.ts— vocabulary includesattempt_tool_edittest/unit/coding-agent-miner.test.ts— normalization vocabulary updatedtest/unit/miner-attempt-log.test.ts— path resolution, monotonic seq, attempt filter, JSONL export, payload rejection, append-only invariantnpm run build:enginenpm run build:minernpm run test:cigreennpm audit --audit-level=moderatecleanValidation
Changed files
packages/gittensory-engine/src/miner/attempt-log.tsattempt_tool_edit; document miner persistencepackages/gittensory-engine/test/attempt-log.test.tspackages/gittensory-miner/lib/attempt-log.jspackages/gittensory-miner/package.jsonpackages/gittensory-miner/docs/coding-agent-driver.mdtest/unit/coding-agent-miner.test.tstest/unit/miner-attempt-log.test.tsAPI sketch