mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
docs(scheduler): run onboarding-audit-agent task
- Run onboarding-audit-agent: - Simulate clean checkout. - Run npm ci (passed). - Run npm test (failed due to prompt contract violations). - Run npm run lint (passed). - Generate required run artifacts: - src/context/CONTEXT_*.md - src/todo/TODO_*.md - src/decisions/DECISIONS_*.md - src/test_logs/TEST_LOG_*.md - docs/agent-handoffs/incidents/INCIDENT_PROMPT-CONTRACT-FAILURES_*.md - Publish task completion event. - Generate task log: task-logs/daily/*__onboarding-audit-agent__completed.md. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
710f6e9ec5
commit
e267c5bcf0
10 files changed
+185
No files matched your search
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"cadence": "daily",
|
||||
"operation": "retrieve",
|
||||
"runId": "session-20260215T010331Z",
|
||||
"servicePath": "src/services/memory/index.js#getRelevantMemories",
|
||||
"inputs": {
|
||||
"agentId": "onboarding-audit-agent",
|
||||
"promptPath": "src/prompts/daily/onboarding-audit-agent.md",
|
||||
"promptIntent": "## Required startup + artifacts + memory + issue capture",
|
||||
"query": "scheduler | daily | agent | onboarding-audit-agent | intent | Required startup + artifacts + memory + issue capture",
|
||||
"events": 1
|
||||
},
|
||||
"outputs": {
|
||||
"ingestedCount": 1,
|
||||
"retrievedCount": 1
|
||||
},
|
||||
"status": "ok"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
MEMORY_RETRIEVED
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"cadence": "daily",
|
||||
"operation": "store",
|
||||
"runId": "session-20260215T010331Z",
|
||||
"servicePath": "src/services/memory/index.js#ingestEvents",
|
||||
"inputs": {
|
||||
"agentId": "onboarding-audit-agent",
|
||||
"promptPath": "src/prompts/daily/onboarding-audit-agent.md",
|
||||
"promptIntent": "## Required startup + artifacts + memory + issue capture",
|
||||
"events": 2
|
||||
},
|
||||
"outputs": {
|
||||
"storedCount": 1,
|
||||
"summaries": [
|
||||
"Store memory event A for daily :: ## Required startup + artifacts + memory + issue capture Store memory event B for daily :: ## Required startup + artifacts + memory + issue capture"
|
||||
]
|
||||
},
|
||||
"status": "ok"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
MEMORY_STORED
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
---
|
||||
agent: onboarding-audit-agent
|
||||
cadence: daily
|
||||
run-start: 2026-02-15T01:03:31Z
|
||||
prompt: src/prompts/daily/onboarding-audit-agent.md
|
||||
---
|
||||
|
||||
# Incident: PROMPT-CONTRACT-FAILURES
|
||||
|
||||
**Date:** 2026-02-15T01:03:31Z
|
||||
**Agent:** onboarding-audit-agent
|
||||
**Incident ID:** PROMPT-CONTRACT-FAILURES
|
||||
|
||||
## Description
|
||||
The `npm test` command fails during onboarding validation due to multiple prompt files violating the strict prompt contract enforced by `scripts/validate-prompt-contract.mjs`.
|
||||
|
||||
## Impact
|
||||
New developers cannot run `npm test` cleanly after checking out the repository.
|
||||
|
||||
## Remediation
|
||||
Update all agent prompts in `src/prompts/` to strictly follow the `Scheduler Flow` contract regarding completion commands and log file naming.
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
agent: onboarding-audit-agent
|
||||
cadence: daily
|
||||
run-start: 2026-02-15T01:03:31Z
|
||||
prompt: src/prompts/daily/onboarding-audit-agent.md
|
||||
---
|
||||
|
||||
# Context Update - 2026-02-15T01:03:31Z
|
||||
|
||||
Agent: onboarding-audit-agent
|
||||
Prompt: src/prompts/daily/onboarding-audit-agent.md
|
||||
|
||||
Onboarding audit run. Found failures in `npm test` related to prompt contract validation.
|
||||
Goal: Validate onboarding steps.
|
||||
Scope: Checkouts, npm scripts.
|
||||
Constraints: Sandbox environment.
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
agent: onboarding-audit-agent
|
||||
cadence: daily
|
||||
run-start: 2026-02-15T01:03:31Z
|
||||
prompt: src/prompts/daily/onboarding-audit-agent.md
|
||||
---
|
||||
|
||||
# Decisions Update - 2026-02-15T01:03:31Z
|
||||
|
||||
Agent: onboarding-audit-agent
|
||||
Prompt: src/prompts/daily/onboarding-audit-agent.md
|
||||
|
||||
## Decision
|
||||
Flag prompt contract violations as a blocking issue for `npm test`.
|
||||
|
||||
## Rationale
|
||||
The onboarding process must pass `npm test` cleanly. Currently, strict prompt validation causes it to fail, preventing a clean onboarding experience.
|
||||
@@ -0,0 +1,23 @@
|
||||
---
|
||||
agent: onboarding-audit-agent
|
||||
cadence: daily
|
||||
run-start: 2026-02-15T01:03:31Z
|
||||
prompt: src/prompts/daily/onboarding-audit-agent.md
|
||||
---
|
||||
|
||||
# Test Log - 2026-02-15T01:03:31Z
|
||||
|
||||
Agent: onboarding-audit-agent
|
||||
Prompt: src/prompts/daily/onboarding-audit-agent.md
|
||||
|
||||
See artifacts/onboarding-audit.log for full details.
|
||||
|
||||
Command: npm ci
|
||||
Result: Success
|
||||
|
||||
Command: npm test
|
||||
Result: Failure
|
||||
Failure ID: PROMPT-CONTRACT-FAILURES
|
||||
|
||||
Command: npm run lint
|
||||
Result: Success
|
||||
@@ -0,0 +1,14 @@
|
||||
---
|
||||
agent: onboarding-audit-agent
|
||||
cadence: daily
|
||||
run-start: 2026-02-15T01:03:31Z
|
||||
prompt: src/prompts/daily/onboarding-audit-agent.md
|
||||
---
|
||||
|
||||
# TODO Update - 2026-02-15T01:03:31Z
|
||||
|
||||
Agent: onboarding-audit-agent
|
||||
Prompt: src/prompts/daily/onboarding-audit-agent.md
|
||||
|
||||
## Pending Tasks
|
||||
- [ ] Fix prompt contract violations in `src/prompts/` files.
|
||||
@@ -0,0 +1,55 @@
|
||||
|
||||
# Onboarding Audit Report
|
||||
|
||||
**Date:** 2026-02-15T01:03:31Z
|
||||
**Agent:** onboarding-audit-agent
|
||||
|
||||
## Summary
|
||||
⚠️ Onboarding failures found.
|
||||
|
||||
## Environment
|
||||
- OS: Linux (Sandbox)
|
||||
- Node: v22.22.0
|
||||
|
||||
## Steps Executed
|
||||
1. `npm ci` - Passed
|
||||
2. `npm test` - Failed
|
||||
3. `npm run lint` - Passed (with warnings)
|
||||
|
||||
## Failures
|
||||
### npm test
|
||||
The test suite failed due to `validate-prompt-contract.mjs` errors. Many prompt files are missing required contract tokens (e.g., `lock:complete`, `_completed.md`).
|
||||
|
||||
**Log Excerpt:**
|
||||
```
|
||||
- [prompt-contract] src/prompts/weekly/refactor-agent.md: missing contract token in required section: `*_failed.md`
|
||||
- [prompt-contract] src/prompts/weekly/repo-fit-agent.md: missing contract token in required section: `npm run lock:complete -- --agent <agent-name> --cadence <cadence>`
|
||||
- [prompt-contract] src/prompts/weekly/repo-fit-agent.md: missing contract token in required section: `*_completed.md`
|
||||
- [prompt-contract] src/prompts/weekly/repo-fit-agent.md: missing contract token in required section: `*_failed.md`
|
||||
- [prompt-contract] src/prompts/weekly/smoke-agent.md: missing contract token in required section: `npm run lock:complete -- --agent <agent-name> --cadence <cadence>`
|
||||
- [prompt-contract] src/prompts/weekly/smoke-agent.md: missing contract token in required section: `*_completed.md`
|
||||
- [prompt-contract] src/prompts/weekly/smoke-agent.md: missing contract token in required section: `*_failed.md`
|
||||
- [prompt-contract] src/prompts/weekly/telemetry-agent.md: missing contract token in required section: `npm run lock:complete -- --agent <agent-name> --cadence <cadence>`
|
||||
- [prompt-contract] src/prompts/weekly/telemetry-agent.md: missing contract token in required section: `*_completed.md`
|
||||
- [prompt-contract] src/prompts/weekly/telemetry-agent.md: missing contract token in required section: `*_failed.md`
|
||||
- [prompt-contract] src/prompts/weekly/test-coverage-agent.md: missing contract token in required section: `npm run lock:complete -- --agent <agent-name> --cadence <cadence>`
|
||||
- [prompt-contract] src/prompts/weekly/test-coverage-agent.md: missing contract token in required section: `*_completed.md`
|
||||
- [prompt-contract] src/prompts/weekly/test-coverage-agent.md: missing contract token in required section: `*_failed.md`
|
||||
- [prompt-contract] src/prompts/weekly/ui-ux-agent.md: missing contract token in required section: `npm run lock:complete -- --agent <agent-name> --cadence <cadence>`
|
||||
- [prompt-contract] src/prompts/weekly/ui-ux-agent.md: missing contract token in required section: `*_completed.md`
|
||||
- [prompt-contract] src/prompts/weekly/ui-ux-agent.md: missing contract token in required section: `*_failed.md`
|
||||
- [prompt-contract] src/prompts/weekly/weekly-synthesis-agent.md: missing contract token in required section: `npm run lock:complete -- --agent <agent-name> --cadence <cadence>`
|
||||
- [prompt-contract] src/prompts/weekly/weekly-synthesis-agent.md: missing contract token in required section: `*_completed.md`
|
||||
- [prompt-contract] src/prompts/weekly/weekly-synthesis-agent.md: missing contract token in required section: `*_failed.md`
|
||||
|
||||
```
|
||||
|
||||
**Root Cause:**
|
||||
Many agent prompts in `src/prompts/` do not strictly follow the `Scheduler Flow` contract requirements regarding completion command and log file naming.
|
||||
|
||||
## Recommendations
|
||||
- Fix the prompt files to include the required contract tokens.
|
||||
- This seems to be a widespread issue across many agents.
|
||||
|
||||
## Docs Changes
|
||||
None made in this run as the failure is in the codebase/prompts, not the documentation instructions themselves.
|
||||
Reference in new issue
Block a user