Make all agent instructions self-contained — no reliance on hope
Every agent now has explicit instructions in its own definition file, not just in HEARTBEAT.md. An agent following only its own step-by-step instructions will do the right thing on any new case. All 6 non-CEO agents: explicit wakeup CEO block in completion step (curl API + psql fallback, with agent name customized) legal-ceo.md: issue template for analyst with 5 mandatory items (document mapping table, no-extract list, split large docs, wakeup CEO, blocked if failed) legal-writer.md: explicit Read of decision-methodology.md as step 1 (before case_get, not just "read before starting") legal-qa.md: methodology_compliance severity → critical (was warning — decisions without syllogisms/steel-man now blocked) legal-proofreader.md: added case_update tool + status='proofread' (was missing entirely — CEO couldn't know proofreading was done) legal-researcher.md: added case_update + mail notification (was missing — CEO couldn't know research was done) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -75,7 +75,17 @@ tools:
|
||||
2. בנה ציר זמן כרונולוגי של ההליך
|
||||
|
||||
### שלב 5: דיווח — חובה!
|
||||
פרסם comment ב-Paperclip עם:
|
||||
|
||||
1. **עדכן סטטוס**: `case_update(case_number, status='research_complete')`
|
||||
|
||||
2. **שלח מייל**:
|
||||
```bash
|
||||
python3 /home/chaim/legal-ai/scripts/notify.py \
|
||||
"מחקר תקדימים הושלם — ערר {case_number}" \
|
||||
"סיכום: X פסקי דין נותחו, Y תכניות מופו. נדרשת ביקורתך לפני המשך."
|
||||
```
|
||||
|
||||
3. פרסם comment ב-Paperclip עם:
|
||||
- סיכום כל פסק דין (2-3 שורות לכל אחד)
|
||||
- מיפוי הוראות תכנית רלוונטיות
|
||||
- ציר זמן ההליך
|
||||
@@ -84,6 +94,26 @@ tools:
|
||||
- **תקדים**: אילו פסקי דין הכי חזקים (עם ציון היררכיה ומעמד — הלכה/אגב)
|
||||
- **מדיניות**: אילו שיקולים תכנוניים עולים מהחומר
|
||||
|
||||
### העֵר את העוזר המשפטי (CEO) — חובה!
|
||||
```bash
|
||||
curl -s -X POST -H "Authorization: Bearer $PAPERCLIP_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
"$PAPERCLIP_API_URL/api/agents/752cebdd-6748-4a04-aacd-c7ab0294ef33/wake" \
|
||||
-d '{"reason": "חוקר תקדימים סיים משימה [issue-id] בסטטוס [done/blocked]"}'
|
||||
```
|
||||
אם ה-API לא עובד:
|
||||
```bash
|
||||
PGPASSWORD="paperclip" psql -h 127.0.0.1 -p 54329 -U paperclip -d paperclip -c "
|
||||
INSERT INTO agent_wakeup_requests (company_id, agent_id, source, reason, status, requested_by_actor_type)
|
||||
VALUES (
|
||||
(SELECT company_id FROM agents WHERE id = '\$PAPERCLIP_AGENT_ID'),
|
||||
'752cebdd-6748-4a04-aacd-c7ab0294ef33',
|
||||
'agent_completion',
|
||||
'חוקר תקדימים סיים משימה — נדרשת בדיקה',
|
||||
'pending', 'agent'
|
||||
);"
|
||||
```
|
||||
|
||||
## כללים
|
||||
- **דיוק** — ציין מספרי סעיפים, תאריכים, שמות שופטים
|
||||
- **רלוונטיות** — התמקד במה שרלוונטי לתיק הנוכחי, לא בסיכום כללי
|
||||
|
||||
Reference in New Issue
Block a user