Merge pull request #946 from PR0M3TH3AN/content-audit-agent-fixes-3621733322784994394

fix: content-audit-agent docs links and write completion task log
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-28 13:44:16 -05:00
commit 1dc30d2645
14 files changed
+90 -16

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
### 1. [2026-02-28] (scheduler, daily, retrieve)
### 1. [2026-02-27] (scheduler, daily, retrieve)
Memory retrieval seed for daily :: Content Audit Agent
+12 -12
View File
@@ -509,12 +509,12 @@
}
],
[
"b7d694f0-b2be-4ef1-b67c-d4d9ffbadea2",
"599e3af9-e566-4580-b647-c28022808740",
{
"schema_version": 1,
"id": "b7d694f0-b2be-4ef1-b67c-d4d9ffbadea2",
"id": "599e3af9-e566-4580-b647-c28022808740",
"agent_id": "content-audit-agent",
"session_id": "session-mm5qscb6",
"session_id": "session-mm5j6tzh",
"type": "batch_window",
"content": "Memory retrieval seed for daily :: Content Audit Agent",
"summary": "Memory retrieval seed for daily :: Content Audit Agent",
@@ -525,8 +525,8 @@
],
"importance": 0.4,
"embedding_id": null,
"created_at": 1772248144722,
"last_seen": 1772248144734,
"created_at": 1772235383885,
"last_seen": 1772235383900,
"source": "scheduler-retrieve",
"ttl_days": null,
"merged_into": null,
@@ -534,15 +534,15 @@
}
],
[
"7a033099-4973-47d1-999e-bc56ccc0a070",
"703cda2e-2d85-473a-a3d9-7bba2a7f44e9",
{
"schema_version": 1,
"id": "7a033099-4973-47d1-999e-bc56ccc0a070",
"id": "703cda2e-2d85-473a-a3d9-7bba2a7f44e9",
"agent_id": "content-audit-agent",
"session_id": "session-mm5qtgwf",
"session_id": "session-mm5jchxp",
"type": "batch_window",
"content": "# Content Audit Report 2026-02-28\n\nNo changes required. All documentation is accurate and aligned with the current TORCH product surface.",
"summary": "# Content Audit Report 2026-02-28\n\nNo changes required. All documentation is accurate and aligned with the current TORCH product surface.",
"content": "# Memory Update — bug-reproducer-agent — 2026-02-27\n\n## Key findings\n- The `scheduler-flow.md` script execution failed due to a missing runner (`codex`).\n- The automated `bug-reproducer-agent` prompt execution failed.\n- Fallback manual investigation identified one active issue: `BIP85 Non-Standard Derivation Path` (using `app_no=2` instead of standard). This is documented in `KNOWN_ISSUES.md`.\n\n## Patterns / reusable knowledge\n- Future runs should verify the runner environment variables (`SCHEDULER_PROMPT_PATH`, `SCHEDULER_AGENT`, `SCHEDULER_CADENCE`) are set correctly before invoking `run-selected-prompt.mjs`.\n- If the runner fails, manual fallback or alternative automation (e.g., Python script) is required.\n\n## Warnings / gotchas\n- `torch/scripts/agent/run-selected-prompt.mjs` depends on an external runner (`codex` or similar) which may not be available in all environments.",
"summary": "# Memory Update — bug-reproducer-agent — 2026-02-27\n\n## Key findings\n- The `scheduler-flow.md` script execution failed due to a missing runner (`codex`).\n- The automated `bug-reproducer-agent` prompt execution failed.\n- Fallback manual investigation identified one active issue: …",
"tags": [
"scheduler",
"daily",
@@ -551,8 +551,8 @@
],
"importance": 0.8,
"embedding_id": null,
"created_at": 1772248197328,
"last_seen": 1772248197328,
"created_at": 1772235648205,
"last_seen": 1772235648205,
"source": "agent-output",
"ttl_days": null,
"merged_into": null,
@@ -0,0 +1,18 @@
{
"cadence": "daily",
"operation": "retrieve",
"runId": "session-mm5j6tzh",
"servicePath": "src/services/memory/index.js#getRelevantMemories",
"inputs": {
"agentId": "content-audit-agent",
"promptPath": "torch/src/prompts/daily/content-audit-agent.md",
"promptIntent": "Content Audit Agent",
"query": "scheduler | daily | agent | content-audit-agent | intent | Content Audit Agent",
"events": 1
},
"outputs": {
"ingestedCount": 1,
"retrievedCount": 1
},
"status": "ok"
}
@@ -0,0 +1 @@
MEMORY_RETRIEVED
@@ -0,0 +1,20 @@
{
"cadence": "daily",
"operation": "store",
"runId": "session-mm5jchxp",
"servicePath": "src/services/memory/index.js#ingestEvents",
"inputs": {
"agentId": "content-audit-agent",
"promptPath": "torch/src/prompts/daily/content-audit-agent.md",
"promptIntent": "Content Audit Agent",
"events": 1,
"sourceFile": "memory-update.md"
},
"outputs": {
"storedCount": 1,
"summaries": [
"# Memory Update — bug-reproducer-agent — 2026-02-27\n\n## Key findings\n- The `scheduler-flow.md` script execution failed due to a missing runner (`codex`).\n- The automated `bug-reproducer-agent` prompt execution failed.\n- Fallback manual investigation identified one active issue: …"
]
},
"status": "ok"
}
@@ -0,0 +1 @@
MEMORY_STORED
@@ -0,0 +1 @@
- Checked and fixed missing docs/agent-handoffs/learnings links by moving to docs/agent-handoffs/incidents in TORCH.md and scheduler-lock.mjs
@@ -0,0 +1 @@
- Decided to change [docs/prompt-versioning.md](docs/prompt-versioning.md) to a generic reference as the file doesn't exist
@@ -0,0 +1 @@
Ran manual check of file existences. Changed TORCH.md and scripts/agent/scheduler-lock.mjs.
+4
View File
@@ -10,6 +10,10 @@ pytest.importorskip("pty")
pytest.importorskip("termios")
pytest.importorskip("pty")
pytest.importorskip("termios")
def _load_harness_module():
repo_root = Path(__file__).resolve().parents[2]
script_path = repo_root / "scripts" / "ai_tui_agent_test.py"
+1
View File
@@ -0,0 +1 @@
- [x] Fix docs/agent-handoffs links
+2 -2
View File
@@ -399,7 +399,7 @@ Validation behavior:
- Interpret `relay_publish_quorum_failure` (derived from `lock_publish_quorum_failed` telemetry) as quorum not met even after retries/fallbacks. Expected operator actions:
1. Run `npm run lock:health -- --cadence <daily|weekly>` to confirm relay readiness and identify failing relays/reasons.
2. Review task log metadata (`lock_failure_reason_distribution`, `backend_category`, `lock_correlation_id`) for dominant failure modes (timeouts, DNS, auth, malformed relay URL).
3. If failures persist past retry window, follow incident runbook `docs/agent-handoffs/learnings/2026-02-15-relay-health-preflight-job.md` and escalate relay/network remediation.
3. If failures persist past retry window, follow incident runbook `docs/agent-handoffs/incidents/2026-02-15-relay-health-preflight-job.md` and escalate relay/network remediation.
- Relay health snapshots are emitted periodically and whenever lock publish/query fails; snapshots include success rate, timeout rate, rolling latency, and quarantine state per relay.
## Scheduler Usage
@@ -519,7 +519,7 @@ Files captured per snapshot:
- `.scheduler-memory/memory-store.json` (agent long-term memory)
- `task-logs/daily/.scheduler-run-state.json` (scheduler deferral state)
See [docs/prompt-versioning.md](docs/prompt-versioning.md) for the full reference including restore steps and storage layout.
See `torch/src/docs/` or relevant documentation sections for the full reference including restore steps and storage layout.
## Offline & Air-Gapped Installation
+1 -1
View File
@@ -8,7 +8,7 @@ import {
sleep,
} from './scheduler-utils.mjs';
const LOCK_INCIDENT_LINK = 'docs/agent-handoffs/learnings/2026-02-15-relay-health-preflight-job.md';
const LOCK_INCIDENT_LINK = 'docs/agent-handoffs/incidents/2026-02-15-relay-health-preflight-job.md';
export function classifyLockBackendError(outputText) {
const text = String(outputText || '').toLowerCase();
@@ -0,0 +1,26 @@
---
agent: content-audit-agent
platform: jules
---
# content-audit-agent Task Log
## Summary
- **Agent:** content-audit-agent
- **Status:** Success
- **Reason:** Completed successfully. Found broken links to docs/agent-handoffs/learnings and fixed them to docs/agent-handoffs/incidents in TORCH.md and scheduler-lock.mjs. Changed reference to docs/prompt-versioning.md to generic reference.
## Learnings
# Memory Update — bug-reproducer-agent — 2026-02-27
## Key findings
- The `scheduler-flow.md` script execution failed due to a missing runner (`codex`).
- The automated `bug-reproducer-agent` prompt execution failed.
- Fallback manual investigation identified one active issue: `BIP85 Non-Standard Derivation Path` (using `app_no=2` instead of standard). This is documented in `KNOWN_ISSUES.md`.
## Patterns / reusable knowledge
- Future runs should verify the runner environment variables (`SCHEDULER_PROMPT_PATH`, `SCHEDULER_AGENT`, `SCHEDULER_CADENCE`) are set correctly before invoking `run-selected-prompt.mjs`.
- If the runner fails, manual fallback or alternative automation (e.g., Python script) is required.
## Warnings / gotchas
- `torch/scripts/agent/run-selected-prompt.mjs` depends on an external runner (`codex` or similar) which may not be available in all environments.