docs: actualizar README de issues — marcar 0029, 0033, 0035 como completados

Tambien resuelve conflicto de test helper newTestAgent entre
runtime_test.go (issue 0029) y commands_metrics_test.go (issue 0035)
renombrando el segundo a newMetricsTestAgent.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-09 20:22:23 +00:00
parent 056dd3c73a
commit be00c0da6e
2 changed files with 9 additions and 9 deletions
+6 -6
View File
@@ -15,9 +15,9 @@ import (
"log/slog"
)
// newTestAgent creates a minimal Agent for testing commands.
// newMetricsTestAgent creates a minimal Agent for testing the !metrics command.
// Does NOT connect to Matrix or LLM.
func newTestAgent(logDir string) *Agent {
func newMetricsTestAgent(logDir string) *Agent {
cfg := &config.AgentConfig{
Agent: config.AgentMeta{
ID: "test-bot",
@@ -36,7 +36,7 @@ func newTestAgent(logDir string) *Agent {
}
func TestCmdMetrics_NoLogDir(t *testing.T) {
a := newTestAgent("")
a := newMetricsTestAgent("")
result := a.cmdMetrics(context.Background(), decision.MessageContext{})
if !strings.Contains(result, "no configurado") {
t.Errorf("expected 'no configurado' message, got: %s", result)
@@ -49,7 +49,7 @@ func TestCmdMetrics_NoLogsToday(t *testing.T) {
agentDir := filepath.Join(dir, "test-bot")
os.MkdirAll(agentDir, 0o755)
a := newTestAgent(dir)
a := newMetricsTestAgent(dir)
result := a.cmdMetrics(context.Background(), decision.MessageContext{})
if !strings.Contains(result, "No hay logs") {
t.Errorf("expected 'No hay logs' message, got: %s", result)
@@ -81,7 +81,7 @@ func TestCmdMetrics_AggregatesCorrectly(t *testing.T) {
t.Fatalf("WriteFile: %v", err)
}
a := newTestAgent(dir)
a := newMetricsTestAgent(dir)
result := a.cmdMetrics(context.Background(), decision.MessageContext{})
// Verify the output contains expected metrics
@@ -119,7 +119,7 @@ func TestCmdMetrics_LLMLatencyAverage(t *testing.T) {
content := strings.Join(lines, "\n") + "\n"
os.WriteFile(logFile, []byte(content), 0o644)
a := newTestAgent(dir)
a := newMetricsTestAgent(dir)
result := a.cmdMetrics(context.Background(), decision.MessageContext{})
// Average of 400 and 600 = 500
+3 -3
View File
@@ -39,10 +39,10 @@ afectados y notas de implementacion.
| 26 | Refactorizar runtime.go | [0026-split-runtime.md](completed/0026-split-runtime.md) | completado |
| 27 | Limpiar config schema | [0027-prune-config-schema.md](completed/0027-prune-config-schema.md) | completado |
| 28 | Desacoplar launcher del registro | [0028-decouple-launcher.md](completed/0028-decouple-launcher.md) | completado |
| 29 | Tests para runtime y config | [0029-core-tests.md](0029-core-tests.md) | pendiente |
| 29 | Tests para runtime y config | [0029-core-tests.md](completed/0029-core-tests.md) | completado |
| 30 | Separacion Robot vs Agente | [0030-robot-vs-agent.md](completed/0030-robot-vs-agent.md) | completado |
| 31 | Expandir file tools (write, list, append, delete) | [0031-expand-file-tools.md](completed/0031-expand-file-tools.md) | completado |
| 32 | E2E: verificar skill /create-agent | [0032-e2e-create-agent-skill.md](0032-e2e-create-agent-skill.md) | pendiente |
| 33 | Comandos de robots sin prefijo ! | [0033-bot-commands-no-prefix.md](0033-bot-commands-no-prefix.md) | pendiente |
| 33 | Comandos de robots sin prefijo ! | [0033-bot-commands-no-prefix.md](completed/0033-bot-commands-no-prefix.md) | completado |
| 34 | E2E: verificar skill /create-bot | [0034-e2e-create-bot-skill.md](0034-e2e-create-bot-skill.md) | pendiente |
| 35 | Audit trail + comando !metrics | [0035-audit-trail-metrics.md](0035-audit-trail-metrics.md) | pendiente |
| 35 | Audit trail + comando !metrics | [0035-audit-trail-metrics.md](completed/0035-audit-trail-metrics.md) | completado |