-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnutshell.json
More file actions
154 lines (141 loc) · 4.43 KB
/
nutshell.json
File metadata and controls
154 lines (141 loc) · 4.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
"nutshell_version": "0.2.0",
"bundle_type": "request",
"id": "nut-7f3a1b2c-d4e5-6789-abcd-ef0123456789",
"created_at": "2026-03-14T10:00:00Z",
"expires_at": "2026-03-21T10:00:00Z",
"task": {
"title": "Build REST API for User Management",
"summary": "Create CRUD endpoints for users with JWT authentication, PostgreSQL storage, input validation, and rate limiting. The API should follow RESTful conventions and include comprehensive error handling.",
"priority": "high",
"estimated_effort": "8h"
},
"tags": {
"skills_required": ["golang", "postgresql", "jwt", "rest-api"],
"domains": ["backend", "authentication", "database"],
"data_sources": ["postgresql://staging-db.internal:5432/userservice"],
"custom": {
"framework": "gin",
"go_version": "1.22+",
"complexity": "medium"
}
},
"publisher": {
"name": "Project Manager Alpha",
"contact": "pm@example.com",
"tool": "claude-code"
},
"context": {
"requirements": "context/requirements.md",
"architecture": "context/architecture.md",
"references": "context/references.md",
"additional": []
},
"files": {
"total_count": 5,
"total_size_bytes": 8200,
"tree": [
{"path": "files/src/main.go", "size": 1200, "role": "scaffold"},
{"path": "files/src/models/user.go", "size": 800, "role": "specification"},
{"path": "files/data/schema.sql", "size": 600, "role": "specification"},
{"path": "files/data/seed.sql", "size": 400, "role": "reference"},
{"path": "files/assets/api-design.png", "size": 5200, "role": "reference"}
]
},
"apis": {
"endpoints_spec": "apis/endpoints.json",
"base_urls": {
"staging": "https://api-staging.example.com",
"docs": "https://docs.example.com/api"
},
"auth_method": "bearer_token",
"credential_ref": "credentials/vault.enc.json"
},
"credentials": {
"vault": "credentials/vault.enc.json",
"encryption": "age",
"scopes": [
{
"name": "staging-db",
"type": "postgresql",
"access_level": "read-write",
"expires_at": "2026-03-21T10:00:00Z"
},
{
"name": "api-token",
"type": "bearer_token",
"access_level": "invoke",
"rate_limit": "100/min",
"expires_at": "2026-03-21T10:00:00Z"
}
]
},
"acceptance": {
"criteria_file": "tests/criteria.json",
"test_scripts": ["tests/scripts/test_api.sh"],
"auto_verifiable": true,
"human_review_required": false,
"checklist": [
"All CRUD endpoints respond with correct status codes",
"JWT authentication works for protected routes",
"Unauthorized requests return 401",
"Rate limiting returns 429 after threshold",
"Database migrations run cleanly",
"Input validation rejects malformed requests"
]
},
"harness": {
"agent_type_hint": "execution",
"context_budget_hint": 0.35,
"execution_strategy": "incremental",
"checkpoints": true,
"constraints": [
"Do not modify files outside files/src/",
"All new code must have corresponding test files",
"Follow existing code patterns in reference files",
"Use parameterized queries for all database operations",
"Do not hardcode credentials — use environment variables"
]
},
"resources": {
"repos": [
{
"url": "https://github.com/example/user-service",
"branch": "develop",
"relevance": "primary"
},
{
"url": "https://github.com/example/shared-libs",
"branch": "main",
"relevance": "reference"
}
],
"docs": [
{"url": "https://docs.example.com/api-guide", "title": "API Design Guide"},
{"url": "https://gin-gonic.com/docs/", "title": "Gin Framework Documentation"}
],
"images": [
{"path": "files/assets/api-design.png", "description": "API endpoint structure diagram"}
],
"links": [
{"url": "https://jira.example.com/PROJ-123", "title": "Original Jira ticket"}
]
},
"compression": {
"algorithm": "nutcracker",
"original_size_bytes": 28000,
"compressed_size_bytes": 8200,
"context_tokens_estimate": 3500
},
"completeness": {
"status": "ready"
},
"extensions": {
"clawnet": {
"peer_id": "12D3KooWRkGLz1YFyfQqLJHMpKrUYhVy4hocPBSMab2GHcBi7whm",
"reward": {"amount": 50.0, "currency": "energy"},
"gossip_topic": "/clawnet/tasks/1.0.0",
"reputation": 85.0
}
}
}