@aithr-ai/mcp-server 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/skills/orchestra/SKILL.md +174 -1
package/package.json
CHANGED
|
@@ -2753,10 +2753,183 @@ aether_push_local({
|
|
|
2753
2753
|
|
|
2754
2754
|
---
|
|
2755
2755
|
|
|
2756
|
+
## Reliability Features (Orchestra v8)
|
|
2757
|
+
|
|
2758
|
+
Orchestra v8 introduces comprehensive reliability improvements to ensure sessions complete successfully.
|
|
2759
|
+
|
|
2760
|
+
### Automatic Artifact Validation
|
|
2761
|
+
|
|
2762
|
+
Every artifact is validated before a task is marked complete:
|
|
2763
|
+
|
|
2764
|
+
```
|
|
2765
|
+
Agent produces artifact
|
|
2766
|
+
↓
|
|
2767
|
+
┌───────────────────────────┐
|
|
2768
|
+
│ JSON Structure Check │ Is it valid JSON?
|
|
2769
|
+
└───────────────────────────┘
|
|
2770
|
+
↓
|
|
2771
|
+
┌────┴────┐
|
|
2772
|
+
VALID INVALID
|
|
2773
|
+
│ │
|
|
2774
|
+
│ ▼
|
|
2775
|
+
│ ┌───────────────────────────┐
|
|
2776
|
+
│ │ Auto-Repair Attempt │ Try to fix malformed JSON
|
|
2777
|
+
│ └───────────────────────────┘
|
|
2778
|
+
│ │
|
|
2779
|
+
│ ┌────┴────┐
|
|
2780
|
+
│ REPAIRED UNREPAIRABLE
|
|
2781
|
+
│ │ │
|
|
2782
|
+
│ │ ▼
|
|
2783
|
+
│ │ ┌───────────────────────────┐
|
|
2784
|
+
│ │ │ REJECT completion │ Return error, ask for retry
|
|
2785
|
+
│ │ │ Task stays pending │
|
|
2786
|
+
│ │ └───────────────────────────┘
|
|
2787
|
+
▼ ▼
|
|
2788
|
+
┌───────────────────────────┐
|
|
2789
|
+
│ Mark task complete │ Artifact stored
|
|
2790
|
+
└───────────────────────────┘
|
|
2791
|
+
```
|
|
2792
|
+
|
|
2793
|
+
**What gets validated:**
|
|
2794
|
+
- JSON structure (must be valid JSON, not markdown code blocks)
|
|
2795
|
+
- Code artifacts: Must follow `{ "type": "structured_output", "files": [...] }` format
|
|
2796
|
+
- File paths in artifacts must be valid
|
|
2797
|
+
|
|
2798
|
+
**Auto-repair capabilities:**
|
|
2799
|
+
- Strips markdown code fence wrappers (`\`\`\`json ... \`\`\``)
|
|
2800
|
+
- Fixes trailing commas
|
|
2801
|
+
- Repairs unescaped characters
|
|
2802
|
+
- Handles truncated JSON (detects and warns)
|
|
2803
|
+
|
|
2804
|
+
### Auto-Retry Failed Tasks
|
|
2805
|
+
|
|
2806
|
+
Tasks that fail due to validation errors automatically retry (up to 3 times):
|
|
2807
|
+
|
|
2808
|
+
```
|
|
2809
|
+
Task fails validation
|
|
2810
|
+
↓
|
|
2811
|
+
┌───────────────────────────┐
|
|
2812
|
+
│ Check retry count │ [retry N/3] in error message
|
|
2813
|
+
└───────────────────────────┘
|
|
2814
|
+
│
|
|
2815
|
+
┌────┴────┐
|
|
2816
|
+
<3 retries ≥3 retries
|
|
2817
|
+
│ │
|
|
2818
|
+
▼ ▼
|
|
2819
|
+
┌─────────────┐ ┌─────────────────────────┐
|
|
2820
|
+
│ Reset task │ │ Leave as failed │
|
|
2821
|
+
│ to pending │ │ (requires manual help) │
|
|
2822
|
+
└─────────────┘ └─────────────────────────┘
|
|
2823
|
+
```
|
|
2824
|
+
|
|
2825
|
+
### Stalled Task Detection
|
|
2826
|
+
|
|
2827
|
+
Tasks that get stuck are automatically detected and reset:
|
|
2828
|
+
|
|
2829
|
+
| Condition | Threshold | Action |
|
|
2830
|
+
|-----------|-----------|--------|
|
|
2831
|
+
| `in_progress` with no completion | 10 minutes | Reset to `pending` |
|
|
2832
|
+
| `awaiting_report` without artifact | 5 minutes | Reset to `pending` |
|
|
2833
|
+
| `awaiting_report` with artifact | Immediate | Mark as `completed` |
|
|
2834
|
+
|
|
2835
|
+
This prevents sessions from getting permanently stuck on unresponsive tasks.
|
|
2836
|
+
|
|
2837
|
+
### TypeScript Validation Between Phases
|
|
2838
|
+
|
|
2839
|
+
When a phase completes, all code artifacts are validated:
|
|
2840
|
+
|
|
2841
|
+
```
|
|
2842
|
+
All phase tasks complete
|
|
2843
|
+
↓
|
|
2844
|
+
┌───────────────────────────┐
|
|
2845
|
+
│ Extract .ts/.tsx files │ From all phase artifacts
|
|
2846
|
+
└───────────────────────────┘
|
|
2847
|
+
↓
|
|
2848
|
+
┌───────────────────────────┐
|
|
2849
|
+
│ In-memory TypeScript │ Validates types, imports, syntax
|
|
2850
|
+
│ validation │
|
|
2851
|
+
└───────────────────────────┘
|
|
2852
|
+
│
|
|
2853
|
+
┌────┴────┐
|
|
2854
|
+
PASS FAIL
|
|
2855
|
+
│ │
|
|
2856
|
+
▼ ▼
|
|
2857
|
+
┌───────────┐ ┌───────────────────────────┐
|
|
2858
|
+
│ Advance │ │ Create fix tasks │
|
|
2859
|
+
│ to next │ │ Don't advance phase │
|
|
2860
|
+
│ phase │ │ Return with errors │
|
|
2861
|
+
└───────────┘ └───────────────────────────┘
|
|
2862
|
+
```
|
|
2863
|
+
|
|
2864
|
+
**Validation includes:**
|
|
2865
|
+
- TypeScript type checking
|
|
2866
|
+
- Import resolution verification
|
|
2867
|
+
- Syntax error detection
|
|
2868
|
+
- Up to 20 errors reported per phase
|
|
2869
|
+
|
|
2870
|
+
### Timeout Enforcement
|
|
2871
|
+
|
|
2872
|
+
Sessions now actually stop when limits are exceeded:
|
|
2873
|
+
|
|
2874
|
+
| Limit | Default | Enforcement |
|
|
2875
|
+
|-------|---------|-------------|
|
|
2876
|
+
| `timeoutMinutes` | 480 (8h) | Session auto-stops, status set to `completed` |
|
|
2877
|
+
| `maxIterations` | 100 | Session auto-stops, status set to `completed` |
|
|
2878
|
+
|
|
2879
|
+
Previously, limits were checked but sessions could continue. Now they definitively stop.
|
|
2880
|
+
|
|
2881
|
+
### Enhanced Upstream Artifact Context
|
|
2882
|
+
|
|
2883
|
+
When tasks receive context from upstream artifacts, they now get:
|
|
2884
|
+
|
|
2885
|
+
1. **File list summary**: Which files were created by upstream tasks
|
|
2886
|
+
2. **Type file warnings**: Explicit warnings about files that must be imported (not redefined)
|
|
2887
|
+
3. **Structured formatting**: Clear separation between artifacts
|
|
2888
|
+
|
|
2889
|
+
Example context injection:
|
|
2890
|
+
|
|
2891
|
+
```markdown
|
|
2892
|
+
## Artifacts from Upstream Tasks
|
|
2893
|
+
|
|
2894
|
+
**IMPORTANT:** These artifacts were produced by tasks that completed before you. Use this information to:
|
|
2895
|
+
- Maintain consistency with established patterns and decisions
|
|
2896
|
+
- Reference types, interfaces, and schemas already defined
|
|
2897
|
+
- Build upon completed work rather than duplicating it
|
|
2898
|
+
- Follow naming conventions and architecture established in earlier phases
|
|
2899
|
+
|
|
2900
|
+
**Available upstream artifacts (2):**
|
|
2901
|
+
- Phase 1.2: Database Schema (code)
|
|
2902
|
+
- Phase 1.3: Type Definitions (code)
|
|
2903
|
+
|
|
2904
|
+
---
|
|
2905
|
+
|
|
2906
|
+
### From Phase 1, Task 2: Database Schema
|
|
2907
|
+
**Artifact:** Database Schema (code)
|
|
2908
|
+
**Files created:** src/lib/db/schema.ts, src/lib/db/index.ts
|
|
2909
|
+
**⚠️ IMPORT from these type files, don't redefine:** src/lib/db/schema.ts
|
|
2910
|
+
|
|
2911
|
+
\`\`\`
|
|
2912
|
+
{ "type": "structured_output", "files": [...] }
|
|
2913
|
+
\`\`\`
|
|
2914
|
+
|
|
2915
|
+
**Note:** If upstream artifacts define types, schemas, or patterns - IMPORT them, don't redefine them. Type redefinition creates compilation failures in the automated pipeline.
|
|
2916
|
+
```
|
|
2917
|
+
|
|
2918
|
+
### Best Practices for Reliability
|
|
2919
|
+
|
|
2920
|
+
1. **Always use JSON output** - Ensure agents produce valid JSON, not markdown
|
|
2921
|
+
2. **Explicit file declarations** - Set `targetFiles` on tasks for better collision prevention
|
|
2922
|
+
3. **Monitor session status** - Check `safeguards` in `aether_orchestra_status`
|
|
2923
|
+
4. **Use checkpoints** - Run `aether_orchestra_checkpoint` between phases
|
|
2924
|
+
5. **Handle validation errors** - When validation fails, fix the issues don't just retry
|
|
2925
|
+
|
|
2926
|
+
---
|
|
2927
|
+
|
|
2756
2928
|
## Version History
|
|
2757
2929
|
|
|
2758
2930
|
| Version | Date | Changes |
|
|
2759
2931
|
|---------|------|---------|
|
|
2932
|
+
| v8.0 | 2026-01 | Reliability improvements: artifact validation, auto-retry, stalled detection, TypeScript validation |
|
|
2760
2933
|
| v7.0 | 2025-01 | Workflow enforcement: validate, checkpoint, guide tools |
|
|
2761
2934
|
| v6.0 | 2025-01 | File collision prevention, file lock manager |
|
|
2762
2935
|
| v5.0 | 2025-01 | Contract-first development, validation protocol |
|
|
@@ -2826,4 +2999,4 @@ aether_edit_orchestra({ sessionId, action: "add_task", ... })
|
|
|
2826
2999
|
|
|
2827
3000
|
---
|
|
2828
3001
|
|
|
2829
|
-
*Orchestra
|
|
3002
|
+
*Orchestra v8 - Autonomous AI Development Orchestration with Reliability Improvements, Workflow Enforcement, Contract-First Development, Dynamic Agent Switching, and File Collision Prevention. The trust of millions of codebases depends on this system working reliably.*
|