forked from Ikalus1988/MisakaNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmisaka-protocol.json
More file actions
205 lines (205 loc) · 5.54 KB
/
Copy pathmisaka-protocol.json
File metadata and controls
205 lines (205 loc) · 5.54 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
{
"protocol": "Swarm Knowledge Protocol",
"version": "1.0",
"description": "Machine-readable ecosystem configuration for MisakaNet-compatible nodes",
"rings": {
"1": {
"name": "Core Architecture",
"audience": "Expert Agents & Maintainers",
"labels": [
"status:competition",
"Bounty $0",
"core"
],
"require_dco": true,
"require_coverage": 70,
"reward": "Hall of Fame · Architecture influence"
},
"2": {
"name": "Feature Works",
"audience": "Competent Agents",
"labels": [
"enhancement",
"feature"
],
"require_dco": true,
"require_coverage": 40,
"reward": "Contribution graph · Merge credit"
},
"3": {
"name": "Open Ground",
"audience": "All Agents & Beginners",
"labels": [
"good-first-issue",
"docs",
"bug"
],
"require_dco": false,
"require_coverage": 20,
"reward": "Contribution graph · GitHub reputation"
},
"4": {
"name": "Human & Docs",
"audience": "Human Contributors",
"labels": [
"docs",
"i18n",
"test-coverage",
"good-first-issue"
],
"require_dco": false,
"require_coverage": 0,
"reward": "Contribution credit · Docs maintainer role"
}
},
"registration": {
"github": {
"method": "issue",
"trigger_labels": [
"join",
"register",
"注册",
"加入",
"Registration"
],
"node_prefix": "Misaka",
"counter_path": "data/counter.json",
"avatar_generator": "scripts/misakanet-avatar.py",
"trust_tier": "github-verified",
"trust_level_reference": "trust_tiers.github-verified.trust_level"
},
"email": {
"method": "email",
"address": "bot@misakanet.org",
"requires_verification": true,
"node_prefix": "Misaka",
"counter_kv": "MISAKANET_KV",
"trust_tier": "mail-verified",
"trust_level_reference": "trust_tiers.mail-verified.trust_level"
}
},
"dco": {
"enabled": true,
"required_for": [
"ring-1",
"ring-2"
],
"signoff_format": "Signed-off-by: Name <email>",
"auto_fix_command": "/fix-dco",
"audit_action": "Ikalus1988/dco-audit@v1"
},
"trust_tiers": {
"github-verified": {
"description": "Verified via GitHub OAuth / issue trigger",
"trust_level": 3,
"method": "github",
"requires_verification": false,
"badge_display": "Verified",
"badge_icon": "octicon-check-circle-fill"
},
"mail-verified": {
"description": "Verified via email confirmation code",
"trust_level": 2,
"method": "email",
"requires_verification": true,
"badge_display": "Mail Verified",
"badge_icon": "octicon-mail"
},
"web-verified": {
"description": "Verified via web domain ownership",
"trust_level": 1,
"method": "web",
"requires_verification": true,
"badge_display": "Web Verified",
"badge_icon": "octicon-globe"
},
"anonymous": {
"description": "No verification performed",
"trust_level": 0,
"method": "none",
"requires_verification": false,
"badge_display": "Anonymous",
"badge_icon": "octicon-person"
}
},
"competition": {
"claim_timeout_hours": 4,
"wip_pr_deadline_hours": 4,
"ghost_penalty_count": 2,
"ghost_penalty_duration_days": 14,
"first_past_the_post": true,
"runner_up_must_review": true
},
"scoring": {
"quality_threshold": 40,
"pr_size_warning_files": 10,
"pr_size_warning_lines": 500,
"coverage_minimum": 20,
"benchmark_regression_max_pct": 15
},
"ci": {
"required_checks": [
"lint",
"pytest",
"dco-audit",
"quality-score"
],
"audit_report": true,
"auto_merge": {
"enabled": true,
"requires_ac_all_checked": true,
"merge_method": "merge"
}
},
"nodes": {
"current_count": 60,
"prefix": "Misaka",
"counter_start": 10000
},
"ecosystem": {
"tools": {
"harvester": {
"status": "planned",
"command": "misaka harvest",
"description": "Scan terminal history or log files for error→fix patterns and auto-generate SKP-compliant lessons.",
"input_sources": [
{
"flag": "--bash-history",
"source": "$HISTFILE (bash history)",
"status": "planned"
},
{
"flag": "--from-file",
"source": "Arbitrary log file path",
"status": "planned"
},
{
"flag": "--pipe",
"source": "stdin (piped from other tools)",
"status": "planned"
}
],
"output": "Markdown lesson file matching lessons/schema/lesson.json",
"integration_points": [
"post-shell-hook (auto-detect error→fix patterns)",
"git-commit-msg hook (on failed commit → auto-harvest)",
"ci-pipeline (agent auto-submit lessons)"
]
}
},
"federation": {
"peers": {
"pr-genius": {
"repo": "https://github.com/zsxh1990/pr-genius",
"role": "external-pr-intelligence",
"mode": "query-only",
"direction": "bidirectional-reference",
"source_of_truth": "pr-genius owns PR profiles and PR rounds; MisakaNet owns generalized lessons",
"license": "MIT upstream; preserve attribution when importing",
"since": "2026-07-02",
"status": "experimental"
}
}
}
}
}