codersforge 0.0.1__py3-none-any.whl
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.
- codersforge/__init__.py +4 -0
- codersforge/__main__.py +8 -0
- codersforge/_core/CORE_VERSION +33 -0
- codersforge/_core/__init__.py +8 -0
- codersforge/_core/archive.py +319 -0
- codersforge/_core/backup.py +417 -0
- codersforge/_core/config.py +206 -0
- codersforge/_core/domain.py +382 -0
- codersforge/_core/errors.py +36 -0
- codersforge/_core/events.py +381 -0
- codersforge/_core/findings.py +265 -0
- codersforge/_core/gates.py +395 -0
- codersforge/_core/identity.py +259 -0
- codersforge/_core/index.py +262 -0
- codersforge/_core/items.py +513 -0
- codersforge/_core/ledger.py +194 -0
- codersforge/_core/lessons.py +142 -0
- codersforge/_core/messages.py +293 -0
- codersforge/_core/migrate.py +221 -0
- codersforge/_core/output.py +41 -0
- codersforge/_core/paths.py +62 -0
- codersforge/_core/py.typed +0 -0
- codersforge/_core/schema.py +113 -0
- codersforge/_core/ulid.py +36 -0
- codersforge/_core/upgrade.py +57 -0
- codersforge/_core/versions.py +20 -0
- codersforge/_core/views.py +67 -0
- codersforge/_core/walls.py +231 -0
- codersforge/_core/workflow.py +745 -0
- codersforge/_docs.py +33 -0
- codersforge/checks.py +94 -0
- codersforge/cli.py +865 -0
- codersforge/domain.py +270 -0
- codersforge/py.typed +0 -0
- codersforge/workflows.yaml +129 -0
- codersforge-0.0.1.dist-info/METADATA +81 -0
- codersforge-0.0.1.dist-info/RECORD +41 -0
- codersforge-0.0.1.dist-info/WHEEL +4 -0
- codersforge-0.0.1.dist-info/entry_points.txt +2 -0
- codersforge-0.0.1.dist-info/licenses/LICENSE +202 -0
- codersforge-0.0.1.dist-info/licenses/NOTICE +7 -0
codersforge/domain.py
ADDED
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
"""Codersforge as a Pluginforge domain: its name, state folder and config keys."""
|
|
3
|
+
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
|
|
6
|
+
from importlib.resources import files
|
|
7
|
+
from types import MappingProxyType
|
|
8
|
+
|
|
9
|
+
from codersforge._core.domain import Domain, GateKind, ItemType, MessageRule, Wall
|
|
10
|
+
from codersforge._core.schema import Field
|
|
11
|
+
from codersforge._core.workflow import BUILTIN_CHECKS, load_workflows
|
|
12
|
+
from codersforge.checks import CHECKS
|
|
13
|
+
|
|
14
|
+
#: Team roles (CONTRACT §9). The core adds ``orchestrator`` and ``operator``.
|
|
15
|
+
ROLES = (
|
|
16
|
+
"product-analyst",
|
|
17
|
+
"architect",
|
|
18
|
+
"test-engineer",
|
|
19
|
+
"developer",
|
|
20
|
+
"verifier",
|
|
21
|
+
"data-analyst",
|
|
22
|
+
"tech-writer",
|
|
23
|
+
"presenter",
|
|
24
|
+
"security-auditor",
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
PRIORITIES = ("urgent", "high", "normal", "low")
|
|
28
|
+
SEVERITIES = ("critical", "high", "medium", "low")
|
|
29
|
+
TRUST = ("operator", "trusted", "external")
|
|
30
|
+
|
|
31
|
+
#: Item types (CONTRACT §3.1, §4). Bugs and security findings carry a severity.
|
|
32
|
+
ITEM_TYPES = (
|
|
33
|
+
ItemType("epic", "EPIC", path="epics/{id}/epic.md"),
|
|
34
|
+
ItemType("feature", "FEAT"),
|
|
35
|
+
ItemType("bug", "BUG"),
|
|
36
|
+
ItemType("chore", "CHORE"),
|
|
37
|
+
ItemType("refactor", "REFAC"),
|
|
38
|
+
ItemType("spike", "SPIKE"),
|
|
39
|
+
ItemType("sec", "SEC", path="active/{id}/finding.md", initial_state="OPEN"),
|
|
40
|
+
)
|
|
41
|
+
NEEDS_SEVERITY = frozenset({"bug", "sec"})
|
|
42
|
+
|
|
43
|
+
#: Front-matter fields after the core's (CONTRACT §4), in file order.
|
|
44
|
+
ITEM_SCHEMA = MappingProxyType(
|
|
45
|
+
{
|
|
46
|
+
"epic": Field("str", nullable=True),
|
|
47
|
+
"priority": Field("enum", default="normal", choices=PRIORITIES),
|
|
48
|
+
"severity": Field("enum", nullable=True, choices=SEVERITIES),
|
|
49
|
+
"release": Field("str", nullable=True),
|
|
50
|
+
"depends_on": Field("list", default=[], item=Field("str")),
|
|
51
|
+
"rules": Field("list", default=[], item=Field("str")),
|
|
52
|
+
"tags": Field("list", default=[], item=Field("str")),
|
|
53
|
+
"trust": Field("enum", default="operator", choices=TRUST),
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
REVISE_TARGETS = ("requirements", "implementation")
|
|
58
|
+
#: NIST SP 800-39 risk responses.
|
|
59
|
+
RISK_RESPONSES = ("accept", "avoid", "mitigate", "share", "transfer")
|
|
60
|
+
#: Assessment outcomes that close a finding without a response.
|
|
61
|
+
NOT_A_RISK = ("false_positive", "duplicate", "not_applicable")
|
|
62
|
+
_DECIDE = ("accept", "revise", "reject")
|
|
63
|
+
_YES_NO = ("accept", "reject")
|
|
64
|
+
|
|
65
|
+
#: Gate kinds (CONTRACT §7.1).
|
|
66
|
+
GATE_KINDS = (
|
|
67
|
+
GateKind("CHARTER", _DECIDE, project=True),
|
|
68
|
+
GateKind("ONBOARD", ("accept", "revise"), project=True),
|
|
69
|
+
GateKind("G0", _DECIDE, item_types=("epic",)),
|
|
70
|
+
GateKind("G1", _DECIDE, item_types=("feature", "bug")),
|
|
71
|
+
GateKind("DEP", _YES_NO),
|
|
72
|
+
GateKind("PACK", _YES_NO, project=True),
|
|
73
|
+
GateKind("MCP", _YES_NO, project=True),
|
|
74
|
+
GateKind("WORKFLOW", _YES_NO, project=True),
|
|
75
|
+
GateKind("CONTAINER", _YES_NO),
|
|
76
|
+
# Security findings follow NIST SP 800-39 risk responses (CONTRACT §7.4).
|
|
77
|
+
GateKind(
|
|
78
|
+
"RESPONSE",
|
|
79
|
+
RISK_RESPONSES,
|
|
80
|
+
item_types=("sec",),
|
|
81
|
+
note_required=RISK_RESPONSES,
|
|
82
|
+
review_required=("accept", "share", "transfer"),
|
|
83
|
+
party_required=("share", "transfer"),
|
|
84
|
+
),
|
|
85
|
+
GateKind("RESIDUAL", _YES_NO, item_types=("sec",), note_required=("accept",)),
|
|
86
|
+
GateKind(
|
|
87
|
+
"NOT_A_RISK",
|
|
88
|
+
(*NOT_A_RISK, "reject"),
|
|
89
|
+
item_types=("sec",),
|
|
90
|
+
passing=NOT_A_RISK,
|
|
91
|
+
note_required=NOT_A_RISK,
|
|
92
|
+
),
|
|
93
|
+
GateKind("ESC", _YES_NO, note_required=_YES_NO),
|
|
94
|
+
GateKind("RUN", _YES_NO),
|
|
95
|
+
GateKind(
|
|
96
|
+
"G2",
|
|
97
|
+
_DECIDE,
|
|
98
|
+
item_types=("feature", "bug", "chore", "refactor", "spike"),
|
|
99
|
+
revise_targets=REVISE_TARGETS,
|
|
100
|
+
),
|
|
101
|
+
GateKind("EPIC_REVIEW", ("accept", "revise"), item_types=("epic",)),
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
#: Gates that are always ruled at the desk. config.yaml notify.desk_only can add more.
|
|
105
|
+
DESK_ONLY = ("CHARTER", "WORKFLOW", "MCP", "PACK")
|
|
106
|
+
#: Every gate on these items is ruled at the desk, whatever its kind.
|
|
107
|
+
DESK_ONLY_ITEM_TYPES = ("sec",)
|
|
108
|
+
|
|
109
|
+
#: Who may message whom (CONTRACT §8.3); every other pair is denied. In
|
|
110
|
+
#: particular nobody messages the Security Auditor or the operator, and the
|
|
111
|
+
#: Developer cannot message the Verifier.
|
|
112
|
+
MESSAGE_RULES = (
|
|
113
|
+
MessageRule(("product-analyst",), ("architect",)),
|
|
114
|
+
MessageRule(("architect",), ("product-analyst", "developer")),
|
|
115
|
+
MessageRule(("developer",), ("architect",)),
|
|
116
|
+
MessageRule(("developer",), ("test-engineer",), ("question",)),
|
|
117
|
+
MessageRule(("test-engineer",), ("developer",), ("answer",)),
|
|
118
|
+
MessageRule(("data-analyst",), ("architect", "developer")),
|
|
119
|
+
MessageRule(("architect", "developer"), ("data-analyst",)),
|
|
120
|
+
MessageRule(("verifier",), ("developer",), ("finding",)),
|
|
121
|
+
MessageRule(("security-auditor",), ("*",), ("finding",)),
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
#: Walls (CONTRACT §9.1). The test-first wall waits for item branches (EPIC-0003).
|
|
125
|
+
WALLS = (
|
|
126
|
+
Wall(
|
|
127
|
+
"verifier",
|
|
128
|
+
("verifier",),
|
|
129
|
+
read=("{state}/active/{item}/notes/**",),
|
|
130
|
+
write=("{state}/active/{item}/notes/**",),
|
|
131
|
+
while_states=("VERIFY",),
|
|
132
|
+
reason="the Verifier judges the result against the spec, not the Developer's notes",
|
|
133
|
+
),
|
|
134
|
+
Wall(
|
|
135
|
+
"auditor",
|
|
136
|
+
("*",),
|
|
137
|
+
exempt=("security-auditor",),
|
|
138
|
+
write=("{state}/security/**", "{state}/active/SEC-*/**"),
|
|
139
|
+
item_types=("sec",),
|
|
140
|
+
reason="only the Security Auditor records security findings",
|
|
141
|
+
),
|
|
142
|
+
Wall(
|
|
143
|
+
"state",
|
|
144
|
+
("*",),
|
|
145
|
+
read=("{state}/events.jsonl", "{state}/migrations/**", "{state}/.git/**"),
|
|
146
|
+
write=(
|
|
147
|
+
"{state}/events.jsonl",
|
|
148
|
+
"{state}/.lock",
|
|
149
|
+
"{state}/.index.sqlite",
|
|
150
|
+
"{state}/LEDGER.md",
|
|
151
|
+
"{state}/lessons/LESSONS.md",
|
|
152
|
+
"{state}/archive/**",
|
|
153
|
+
"{state}/migrations/**",
|
|
154
|
+
"{state}/.git/**",
|
|
155
|
+
"{state}/.gitignore",
|
|
156
|
+
"{state}/config.yaml",
|
|
157
|
+
".claude/**",
|
|
158
|
+
".mcp.json",
|
|
159
|
+
"~/.claude/**",
|
|
160
|
+
),
|
|
161
|
+
reason="change these through codersforge or an operator decision",
|
|
162
|
+
),
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
#: Section titles for the generated CONTRACT §6.
|
|
166
|
+
WORKFLOW_TITLES = {
|
|
167
|
+
"epic": "Epic",
|
|
168
|
+
"feature": "Feature",
|
|
169
|
+
"bug": "Bug",
|
|
170
|
+
"chore": "Chore",
|
|
171
|
+
"refactor": "Refactor",
|
|
172
|
+
"spike": "Spike",
|
|
173
|
+
"sec": "Security finding",
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
WORKFLOWS_FILE = "workflows.yaml"
|
|
177
|
+
WORKFLOWS = load_workflows(
|
|
178
|
+
files("codersforge").joinpath(WORKFLOWS_FILE).read_text(encoding="utf-8"),
|
|
179
|
+
WORKFLOWS_FILE,
|
|
180
|
+
{**BUILTIN_CHECKS, **CHECKS},
|
|
181
|
+
)
|
|
182
|
+
|
|
183
|
+
_MCP_SERVER = Field(
|
|
184
|
+
"section",
|
|
185
|
+
children={
|
|
186
|
+
"source": Field("str", required=True),
|
|
187
|
+
"transport": Field("enum", default="stdio", choices=("stdio", "http")),
|
|
188
|
+
"args": Field("list", default=[], item=Field("str")),
|
|
189
|
+
"roles": Field("list", default=[], item=Field("str")),
|
|
190
|
+
"env": Field("list", default=[], item=Field("str")),
|
|
191
|
+
"access": Field("enum", default="read-only", choices=("read-only", "read-write")),
|
|
192
|
+
"target": Field("enum", default="dev", choices=("local", "dev")),
|
|
193
|
+
},
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
CONFIG_SCHEMA = MappingProxyType(
|
|
197
|
+
{
|
|
198
|
+
"packs": Field("map", default={}, item=Field("str")),
|
|
199
|
+
"checks": Field("map", default={}, item=Field("str")),
|
|
200
|
+
"coverage_min_changed_lines": Field("int", default=80, minimum=0),
|
|
201
|
+
"mcp": Field("map", default={}, item=_MCP_SERVER),
|
|
202
|
+
"security": Field(
|
|
203
|
+
"section",
|
|
204
|
+
children={
|
|
205
|
+
"schedule": Field("str", default="weekly"),
|
|
206
|
+
"severity_scale": Field("enum", default="cvss-4.0", choices=("cvss-4.0",)),
|
|
207
|
+
"kev_is_critical": Field("bool", default=True),
|
|
208
|
+
"deadlines": Field(
|
|
209
|
+
"section",
|
|
210
|
+
children={
|
|
211
|
+
"critical": Field("duration", default="immediate"),
|
|
212
|
+
"high": Field("duration", default="immediate"),
|
|
213
|
+
"medium": Field("duration", default="15d"),
|
|
214
|
+
"low": Field("duration", default="30d"),
|
|
215
|
+
},
|
|
216
|
+
),
|
|
217
|
+
"cooldown_days": Field("int", default=7, minimum=0),
|
|
218
|
+
"licenses_allowed": Field(
|
|
219
|
+
"list",
|
|
220
|
+
default=["MIT", "Apache-2.0", "BSD-2-Clause", "BSD-3-Clause", "ISC"],
|
|
221
|
+
item=Field("str"),
|
|
222
|
+
),
|
|
223
|
+
"framework": Field("str", default="nist-ssdf-1.1"),
|
|
224
|
+
},
|
|
225
|
+
),
|
|
226
|
+
"quality": Field(
|
|
227
|
+
"section",
|
|
228
|
+
children={
|
|
229
|
+
"schedule": Field("str", default="monthly"),
|
|
230
|
+
"max_cyclomatic_complexity": Field("int", default=10, minimum=1),
|
|
231
|
+
"max_duplication_pct": Field("int", default=3, minimum=0),
|
|
232
|
+
},
|
|
233
|
+
),
|
|
234
|
+
}
|
|
235
|
+
)
|
|
236
|
+
|
|
237
|
+
DEFAULT_CONFIG = """\
|
|
238
|
+
packs: {} # approved at the PACK gate, name: version
|
|
239
|
+
checks: {} # name: command; must match CI exactly
|
|
240
|
+
coverage_min_changed_lines: 80
|
|
241
|
+
security:
|
|
242
|
+
deadlines: {critical: immediate, high: immediate, medium: 15d, low: 30d}
|
|
243
|
+
cooldown_days: 7
|
|
244
|
+
"""
|
|
245
|
+
|
|
246
|
+
DOMAIN = Domain(
|
|
247
|
+
name="codersforge",
|
|
248
|
+
title="Codersforge",
|
|
249
|
+
state_dir=".codersforge",
|
|
250
|
+
env_prefix="CODERSFORGE",
|
|
251
|
+
event_types=("commit", "pr"),
|
|
252
|
+
roles=ROLES,
|
|
253
|
+
item_types=ITEM_TYPES,
|
|
254
|
+
item_schema=ITEM_SCHEMA,
|
|
255
|
+
workflows=WORKFLOWS,
|
|
256
|
+
checks=CHECKS,
|
|
257
|
+
gate_kinds=GATE_KINDS,
|
|
258
|
+
desk_only=DESK_ONLY,
|
|
259
|
+
desk_only_item_types=DESK_ONLY_ITEM_TYPES,
|
|
260
|
+
severities=SEVERITIES,
|
|
261
|
+
# Security Auditor findings are never accepted as a finding: they become SEC
|
|
262
|
+
# items with a risk response (CONTRACT §7.4).
|
|
263
|
+
finding_sources=("verifier", "security-auditor"),
|
|
264
|
+
no_accept_sources=("security-auditor",),
|
|
265
|
+
message_rules=MESSAGE_RULES,
|
|
266
|
+
walls=WALLS,
|
|
267
|
+
archivers=("presenter",),
|
|
268
|
+
config_schema=CONFIG_SCHEMA,
|
|
269
|
+
default_config=DEFAULT_CONFIG,
|
|
270
|
+
)
|
codersforge/py.typed
ADDED
|
File without changes
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
# Codersforge workflows (CONTRACT §6). CONTRACT.md §6 is generated from this
|
|
3
|
+
# file: run `python scripts/gen_docs.py` after changing it.
|
|
4
|
+
#
|
|
5
|
+
# Two transitions with the same from and to are alternatives. Every workflow
|
|
6
|
+
# also has PARKED and ABANDONED unless it says `park: false` / `abandon: false`.
|
|
7
|
+
schema: 1
|
|
8
|
+
workflows:
|
|
9
|
+
epic:
|
|
10
|
+
initial: INTAKE
|
|
11
|
+
terminal: [DONE, ARCHIVED]
|
|
12
|
+
transitions:
|
|
13
|
+
- {from: INTAKE, to: BRIEF}
|
|
14
|
+
- {from: BRIEF, to: BREAKDOWN}
|
|
15
|
+
- {from: BREAKDOWN, to: ACTIVE, requires: ["gate:G0"]}
|
|
16
|
+
- {from: ACTIVE, to: INTEGRATION}
|
|
17
|
+
- {from: INTEGRATION, to: ACTIVE, requires: [integration_failed]}
|
|
18
|
+
- {from: INTEGRATION, to: REVIEW}
|
|
19
|
+
- {from: REVIEW, to: DONE, requires: ["gate:EPIC_REVIEW"]}
|
|
20
|
+
- {from: REVIEW, to: BREAKDOWN, requires: ["gate_revise:EPIC_REVIEW"]}
|
|
21
|
+
- {from: DONE, to: ARCHIVED, via: archive}
|
|
22
|
+
- {from: ABANDONED, to: ARCHIVED, via: archive}
|
|
23
|
+
|
|
24
|
+
feature:
|
|
25
|
+
initial: INTAKE
|
|
26
|
+
terminal: [DONE, ARCHIVED]
|
|
27
|
+
transitions:
|
|
28
|
+
- {from: INTAKE, to: SPEC}
|
|
29
|
+
- {from: SPEC, to: PLAN, requires: ["gate:G1"]}
|
|
30
|
+
- {from: PLAN, to: TESTS}
|
|
31
|
+
- {from: TESTS, to: BUILD}
|
|
32
|
+
- {from: BUILD, to: VERIFY}
|
|
33
|
+
- {from: VERIFY, to: BUILD, requires: [findings_open]}
|
|
34
|
+
- {from: VERIFY, to: DOCS, requires: [findings_closed, criteria_pass, checks_pass]}
|
|
35
|
+
- {from: DOCS, to: PRESENT}
|
|
36
|
+
- {from: PRESENT, to: MERGE, requires: ["gate:G2", "gate_if_opened:CONTAINER"]}
|
|
37
|
+
- {from: PRESENT, to: SPEC, requires: ["gate_revise:G2/requirements"]}
|
|
38
|
+
- {from: PRESENT, to: BUILD, requires: ["gate_revise:G2/implementation"]}
|
|
39
|
+
- {from: MERGE, to: DONE, requires: [pr_merged]}
|
|
40
|
+
- {from: DONE, to: ARCHIVED, via: archive}
|
|
41
|
+
- {from: ABANDONED, to: ARCHIVED, via: archive}
|
|
42
|
+
|
|
43
|
+
bug:
|
|
44
|
+
initial: INTAKE
|
|
45
|
+
terminal: [DONE, ARCHIVED]
|
|
46
|
+
transitions:
|
|
47
|
+
- {from: INTAKE, to: REPRO}
|
|
48
|
+
- {from: REPRO, to: BUILD, requires: ["field_in:severity=critical,high"]}
|
|
49
|
+
- {from: REPRO, to: BUILD, requires: ["gate:G1"]}
|
|
50
|
+
- {from: BUILD, to: VERIFY}
|
|
51
|
+
- {from: VERIFY, to: BUILD, requires: [findings_open]}
|
|
52
|
+
- {from: VERIFY, to: PRESENT, requires: [findings_closed, criteria_pass, checks_pass]}
|
|
53
|
+
- {from: PRESENT, to: MERGE, requires: ["gate:G2", "gate_if_opened:CONTAINER"]}
|
|
54
|
+
- {from: PRESENT, to: BUILD, requires: ["gate_revise:G2"]}
|
|
55
|
+
- {from: MERGE, to: DONE, requires: [pr_merged]}
|
|
56
|
+
- {from: DONE, to: ARCHIVED, via: archive}
|
|
57
|
+
- {from: ABANDONED, to: ARCHIVED, via: archive}
|
|
58
|
+
|
|
59
|
+
chore:
|
|
60
|
+
initial: INTAKE
|
|
61
|
+
terminal: [DONE, ARCHIVED]
|
|
62
|
+
transitions:
|
|
63
|
+
- {from: INTAKE, to: BUILD}
|
|
64
|
+
- {from: BUILD, to: VERIFY}
|
|
65
|
+
- {from: VERIFY, to: BUILD, requires: [findings_open]}
|
|
66
|
+
- {from: VERIFY, to: PRESENT, requires: [findings_closed, checks_pass]}
|
|
67
|
+
- {from: PRESENT, to: MERGE, requires: ["gate:G2", "gate_if_opened:CONTAINER"]}
|
|
68
|
+
- {from: PRESENT, to: BUILD, requires: ["gate_revise:G2"]}
|
|
69
|
+
- {from: MERGE, to: DONE, requires: [pr_merged]}
|
|
70
|
+
- {from: DONE, to: ARCHIVED, via: archive}
|
|
71
|
+
- {from: ABANDONED, to: ARCHIVED, via: archive}
|
|
72
|
+
|
|
73
|
+
refactor:
|
|
74
|
+
initial: INTAKE
|
|
75
|
+
terminal: [DONE, ARCHIVED]
|
|
76
|
+
transitions:
|
|
77
|
+
- {from: INTAKE, to: PLAN}
|
|
78
|
+
- {from: PLAN, to: BUILD}
|
|
79
|
+
- {from: BUILD, to: VERIFY}
|
|
80
|
+
- {from: VERIFY, to: BUILD, requires: [findings_open]}
|
|
81
|
+
- {from: VERIFY, to: PRESENT, requires: [findings_closed, checks_pass]}
|
|
82
|
+
- {from: PRESENT, to: MERGE, requires: ["gate:G2", "gate_if_opened:CONTAINER"]}
|
|
83
|
+
- {from: PRESENT, to: BUILD, requires: ["gate_revise:G2"]}
|
|
84
|
+
- {from: MERGE, to: DONE, requires: [pr_merged]}
|
|
85
|
+
- {from: DONE, to: ARCHIVED, via: archive}
|
|
86
|
+
- {from: ABANDONED, to: ARCHIVED, via: archive}
|
|
87
|
+
|
|
88
|
+
spike:
|
|
89
|
+
initial: INTAKE
|
|
90
|
+
terminal: [DONE, ARCHIVED]
|
|
91
|
+
transitions:
|
|
92
|
+
- {from: INTAKE, to: RESEARCH}
|
|
93
|
+
- {from: RESEARCH, to: PRESENT}
|
|
94
|
+
- {from: PRESENT, to: DONE, requires: ["gate:G2"]}
|
|
95
|
+
- {from: PRESENT, to: RESEARCH, requires: ["gate_revise:G2"]}
|
|
96
|
+
- {from: DONE, to: ARCHIVED, via: archive}
|
|
97
|
+
- {from: ABANDONED, to: ARCHIVED, via: archive}
|
|
98
|
+
|
|
99
|
+
# Security findings follow NIST SP 800-39: a finding leaves OPEN only through
|
|
100
|
+
# a risk response (accept, avoid, mitigate, share, transfer) or an assessment
|
|
101
|
+
# that it is not a risk. It is never parked or abandoned, and every gate on it
|
|
102
|
+
# is ruled at the desk. Accepted, shared and transferred risks return to OPEN
|
|
103
|
+
# when their review date passes; any response can be reconsidered by opening
|
|
104
|
+
# a new RESPONSE gate.
|
|
105
|
+
sec:
|
|
106
|
+
initial: OPEN
|
|
107
|
+
terminal: [CLOSED, ARCHIVED]
|
|
108
|
+
park: false
|
|
109
|
+
abandon: false
|
|
110
|
+
transitions:
|
|
111
|
+
- {from: OPEN, to: MITIGATING, requires: ["gate_ruled:RESPONSE=mitigate"]}
|
|
112
|
+
- {from: OPEN, to: AVOIDING, requires: ["gate_ruled:RESPONSE=avoid"]}
|
|
113
|
+
- {from: OPEN, to: ACCEPTED, requires: ["gate_ruled:RESPONSE=accept"]}
|
|
114
|
+
- {from: OPEN, to: SHARED, requires: ["gate_ruled:RESPONSE=share"]}
|
|
115
|
+
- {from: OPEN, to: TRANSFERRED, requires: ["gate_ruled:RESPONSE=transfer"]}
|
|
116
|
+
- {from: OPEN, to: CLOSED, requires: ["gate:NOT_A_RISK"]}
|
|
117
|
+
- {from: MITIGATING, to: VERIFYING, requires: [fix_merged]}
|
|
118
|
+
- {from: AVOIDING, to: VERIFYING, requires: [fix_merged]}
|
|
119
|
+
- {from: VERIFYING, to: OPEN, requires: [recheck_failed]}
|
|
120
|
+
- {from: VERIFYING, to: CLOSED, requires: [recheck_passed, "gate:RESIDUAL"]}
|
|
121
|
+
- {from: ACCEPTED, to: OPEN, requires: [review_due]}
|
|
122
|
+
- {from: SHARED, to: OPEN, requires: [review_due]}
|
|
123
|
+
- {from: TRANSFERRED, to: OPEN, requires: [review_due]}
|
|
124
|
+
- {from: MITIGATING, to: OPEN, requires: ["gate_pending:RESPONSE"]}
|
|
125
|
+
- {from: AVOIDING, to: OPEN, requires: ["gate_pending:RESPONSE"]}
|
|
126
|
+
- {from: ACCEPTED, to: OPEN, requires: ["gate_pending:RESPONSE"]}
|
|
127
|
+
- {from: SHARED, to: OPEN, requires: ["gate_pending:RESPONSE"]}
|
|
128
|
+
- {from: TRANSFERRED, to: OPEN, requires: ["gate_pending:RESPONSE"]}
|
|
129
|
+
- {from: CLOSED, to: ARCHIVED, via: archive}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: codersforge
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A gated, multi-agent product team for Claude Code
|
|
5
|
+
Project-URL: Repository, https://github.com/jknyght9/codersforge
|
|
6
|
+
Project-URL: Issues, https://github.com/jknyght9/codersforge/issues
|
|
7
|
+
Project-URL: Changelog, https://github.com/jknyght9/codersforge/blob/main/CHANGELOG.md
|
|
8
|
+
Author: Jacob Stauffer
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
License-File: NOTICE
|
|
12
|
+
Keywords: agents,claude-code,plugin,software-development
|
|
13
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Operating System :: MacOS
|
|
17
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
24
|
+
Classifier: Topic :: Software Development
|
|
25
|
+
Classifier: Typing :: Typed
|
|
26
|
+
Requires-Python: >=3.11
|
|
27
|
+
Requires-Dist: pyyaml>=6.0
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: bandit>=1.7; extra == 'dev'
|
|
30
|
+
Requires-Dist: mypy>=1.11; extra == 'dev'
|
|
31
|
+
Requires-Dist: pip-audit>=2.7; extra == 'dev'
|
|
32
|
+
Requires-Dist: pytest-cov>=5; extra == 'dev'
|
|
33
|
+
Requires-Dist: pytest>=8; extra == 'dev'
|
|
34
|
+
Requires-Dist: ruff>=0.6; extra == 'dev'
|
|
35
|
+
Requires-Dist: types-pyyaml; extra == 'dev'
|
|
36
|
+
Description-Content-Type: text/markdown
|
|
37
|
+
|
|
38
|
+
# codersforge
|
|
39
|
+
|
|
40
|
+
A Claude Code plugin that runs a gated, multi-agent product team — Product
|
|
41
|
+
Analyst, Architect, Test Engineer, Developer, Verifier, Data Analyst, Tech
|
|
42
|
+
Writer, Presenter and Security Auditor — plus a TUI that shows the work and the agents live.
|
|
43
|
+
|
|
44
|
+
Status: pre-alpha. This release is the core state layer: the `codersforge`
|
|
45
|
+
command line that the agents and hooks use to record work. The agents, packs
|
|
46
|
+
and TUI come in later releases.
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
pipx install codersforge
|
|
50
|
+
codersforge init # creates the private .codersforge/ folder
|
|
51
|
+
export CODERSFORGE_ROLE=operator # you; agents get their role from hooks
|
|
52
|
+
codersforge new feature "Sign-in form"
|
|
53
|
+
codersforge list
|
|
54
|
+
codersforge verify # checks the event log's hash chain
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Everything lives in `.codersforge/`, which is never committed to your
|
|
58
|
+
repository:
|
|
59
|
+
|
|
60
|
+
- an append-only, hash-chained event log of every change, decision and message;
|
|
61
|
+
- items (epics, features, bugs, chores, refactors, spikes, security findings),
|
|
62
|
+
each moving through a workflow whose transitions can require a gate;
|
|
63
|
+
- gates you rule on, findings, lessons, and messages between roles;
|
|
64
|
+
- walls that limit what each role may read and write, enforced by a Claude Code hook;
|
|
65
|
+
- a generated `LEDGER.md`, archives of closed items, schema migrations, and
|
|
66
|
+
age-encrypted backups with verified restores.
|
|
67
|
+
|
|
68
|
+
Security findings follow NIST SP 800-39 risk responses: they are never parked or
|
|
69
|
+
abandoned, and every gate on them is decided at your desk.
|
|
70
|
+
|
|
71
|
+
- [Design](https://github.com/jknyght9/codersforge/blob/main/docs/DESIGN.md)
|
|
72
|
+
- [Public contract](https://github.com/jknyght9/codersforge/blob/main/docs/CONTRACT.md)
|
|
73
|
+
- [EPIC-0001 — Core state](https://github.com/jknyght9/codersforge/blob/main/docs/specs/EPIC-0001-core-state.md)
|
|
74
|
+
- [Changelog](https://github.com/jknyght9/codersforge/blob/main/CHANGELOG.md)
|
|
75
|
+
- [Contributing](https://github.com/jknyght9/codersforge/blob/main/CONTRIBUTING.md) ·
|
|
76
|
+
[Security](https://github.com/jknyght9/codersforge/blob/main/SECURITY.md) ·
|
|
77
|
+
[Code of Conduct](https://github.com/jknyght9/codersforge/blob/main/CODE_OF_CONDUCT.md)
|
|
78
|
+
|
|
79
|
+
Licensed under the Apache License, Version 2.0. See
|
|
80
|
+
[LICENSE](https://github.com/jknyght9/codersforge/blob/main/LICENSE) and
|
|
81
|
+
[NOTICE](https://github.com/jknyght9/codersforge/blob/main/NOTICE).
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
codersforge/__init__.py,sha256=BU9FzuU3SHKw6r9H9D17MF7BzSTXPYMN7IEljiONwAw,131
|
|
2
|
+
codersforge/__main__.py,sha256=5cri1acEvFkEfWxR8YFvb1ejottedQKTmuNWlJlu32g,141
|
|
3
|
+
codersforge/_docs.py,sha256=ruUNtoZvvVjB8ZlcwJlifey1dxcpe8gqF_JIUZgPm0c,1159
|
|
4
|
+
codersforge/checks.py,sha256=6GTRm2ukhIUSl0KLYMqSkX-YSQfzHRFVAqXIAHtz1uA,3626
|
|
5
|
+
codersforge/cli.py,sha256=9_PMkVEl77gtVe2MhIQ2e7c3OrGmYrv2tp-gT-J90zI,32783
|
|
6
|
+
codersforge/domain.py,sha256=KFC-ifWmi1fCIbxGgsSaOpAtx_eZB1prizykLw3pPQU,9744
|
|
7
|
+
codersforge/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
+
codersforge/workflows.yaml,sha256=eDXX2b0LKtFHCCweBJBYNJ1fZHy1EMo3OoT2aZU3wVo,6020
|
|
9
|
+
codersforge/_core/CORE_VERSION,sha256=4ZMQcSxC0v9UTahl3F1IdUQX6Qm5hip09r9hhdOyGdY,2348
|
|
10
|
+
codersforge/_core/__init__.py,sha256=QvOx20Jh4PhsEONzLwPD5Rfr8ak5wXuK8EekJKiQ49Y,267
|
|
11
|
+
codersforge/_core/archive.py,sha256=OFWImgo2JpT1p7MR5JtjeO7iRNN9v0hVI9-574F8Gwk,12049
|
|
12
|
+
codersforge/_core/backup.py,sha256=dbGl6cE1Fv5_LCRCcXhetNJ1gtXzF0Oe9ClK3h_L5PA,15662
|
|
13
|
+
codersforge/_core/config.py,sha256=5DPRHD_ELldRAw74fL1ym1NptUewLV26fhyPvM7DjWs,7700
|
|
14
|
+
codersforge/_core/domain.py,sha256=DyuNEVUz9mxiU3FSprSlJJjdWxkYCh4WwdloptMmOn0,16673
|
|
15
|
+
codersforge/_core/errors.py,sha256=dW73aPu7wWCRXny1aYnXgBbCQNDUlebCnsYhJqhbG24,1017
|
|
16
|
+
codersforge/_core/events.py,sha256=aJsZVsSSgqitXiTlfrOejzNaXI2iEaJLb3ac4DaptR0,14076
|
|
17
|
+
codersforge/_core/findings.py,sha256=Kr8gMK40wOC3gTppP4irdQAmI9NYayZCaS7b0V6R3Mw,9586
|
|
18
|
+
codersforge/_core/gates.py,sha256=3Say8qRT0POAlAcBL8-kNcnKziibI_0r5UVAj4_OF6E,14574
|
|
19
|
+
codersforge/_core/identity.py,sha256=z2ON_VQUMj_ZH9Ylc3jw3cRhagHhu16aRkuRBqALcIU,10134
|
|
20
|
+
codersforge/_core/index.py,sha256=Ot3tzTduJa9fK6rZFlNd8XMY39ni-dbNM0EWgLlgBfI,9352
|
|
21
|
+
codersforge/_core/items.py,sha256=UAcTTKjFTCRzMDfBm1xHZTdJaq6v8whbsUsGRPRHB7c,19590
|
|
22
|
+
codersforge/_core/ledger.py,sha256=0U6On_OLzQDOKjUtykkqmRHgPS7TD2NOROSpHosaa8o,6975
|
|
23
|
+
codersforge/_core/lessons.py,sha256=QFB7aABGXfHjBc4kwzT6RmnhkOhTabLX6VSimT9fgNI,4711
|
|
24
|
+
codersforge/_core/messages.py,sha256=x5-8-n0CM9Js96SaEqPsTjnMTLtHurEzccCA_nH6xRE,11298
|
|
25
|
+
codersforge/_core/migrate.py,sha256=OEEsX_Z-XLCDr64RDZse4Hkwh2L21NQi807_VG5JL-I,8666
|
|
26
|
+
codersforge/_core/output.py,sha256=WTIrC6asagAzs7O0vOdrBw5M2-KnLjhAjjvwvoZEgtk,1373
|
|
27
|
+
codersforge/_core/paths.py,sha256=a-PTiFDKFZSDrUb8aFmmQHCo4tC_rawRw0qGGThH1tw,1861
|
|
28
|
+
codersforge/_core/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
|
+
codersforge/_core/schema.py,sha256=Oe29FT8mV8Whn3B-jcmcjhPpyxrP4VTUzAuZ6sdHOT4,4118
|
|
30
|
+
codersforge/_core/ulid.py,sha256=RR-EiHZX6AVpf_PIyARv36fc9TZ_YARo9xCcHOHfqPY,1120
|
|
31
|
+
codersforge/_core/upgrade.py,sha256=_ftKERhyt1XvnU8-rmjGoWQpboBkCPHSGDw7PRJiNgw,2009
|
|
32
|
+
codersforge/_core/versions.py,sha256=noG4P7C55U_OukYXafOW9ia2v7hpujsYIHoMKfFv-vw,682
|
|
33
|
+
codersforge/_core/views.py,sha256=dsbFZLLbZu_HYCOb9LgYBhnSA7lO6dMG5KWz9H7EGSg,2326
|
|
34
|
+
codersforge/_core/walls.py,sha256=79I97OXX-vehDbsewPsVqxTkcgLeOnoRdfwJYLeHnPo,8239
|
|
35
|
+
codersforge/_core/workflow.py,sha256=xHR7_fLDa8F5asvAZ48njuHbbG2zEyEx4ARI_r86dqg,28517
|
|
36
|
+
codersforge-0.0.1.dist-info/METADATA,sha256=Tclj77sQhfLj_5htOWtG_WH0izOuQvHysHuywpiV7b0,3800
|
|
37
|
+
codersforge-0.0.1.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
38
|
+
codersforge-0.0.1.dist-info/entry_points.txt,sha256=tY0pqGwt-EcvXQprsrwGSM_e5FhHku-BGAA5pNixSWw,53
|
|
39
|
+
codersforge-0.0.1.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
40
|
+
codersforge-0.0.1.dist-info/licenses/NOTICE,sha256=5-NQOkTQ6_RHLDsH9r7B4VHMqe5IAm_CpR45iosk-6s,276
|
|
41
|
+
codersforge-0.0.1.dist-info/RECORD,,
|