-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathregistry.yaml
More file actions
125 lines (118 loc) · 4.21 KB
/
Copy pathregistry.yaml
File metadata and controls
125 lines (118 loc) · 4.21 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
# Machine-readable pattern registry for Loop Engineering.
#
# Single source of truth for pattern metadata, consumed by:
# - loop_engine.cli.main.calculate_cost() (per-pattern token bases)
# - loop_engine.cli.main.perform_audit() (registry-aware budget suggestions)
# - docs/patterns/*.md (should stay consistent with this file)
#
# Cost methodology (kept consistent so numbers are derivable, not arbitrary):
# tokens_per_iteration = input + output tokens the pattern historically used
# per loop iteration (moved here from the old
# hardcoded pattern_costs dict in calculate_cost()).
# tokens_noop = tokens_per_iteration * 1 (single discovery pass, nothing found)
# tokens_report = tokens_per_iteration * 5 (report-only run, no actions taken)
# tokens_action = tokens_per_iteration * 10 (default --iterations, action taken)
# suggested_daily_cap = tokens_action * expected runs/day at the pattern's cadence
#
# readiness_level mirrors docs/LOOP_READINESS_LEVELS.md: patterns that only
# read/report are safe to run unattended sooner (L1) than patterns that take
# write actions and need a maker/checker split first (L2).
patterns:
- id: daily-triage
name: Daily Triage
file: daily-triage.md
goal: Prioritized morning scan of issues, PRs, and blockers
cadence: daily
risk: low
phases: [report, act-small-wins, escalate]
human_gates: [close-issues, merge-prs, design-decisions]
starter: starters/daily-triage
readiness_level: L1
early_exit_required: false
tokens_per_iteration:
input: 2000
output: 1500
- id: pr-babysitter
name: PR Babysitter
file: pr-babysitter.md
goal: Shepherd PRs through review, CI, rebase, and merge
cadence: hourly
risk: medium
phases: [discover, triage, fix, verify, notify]
human_gates: [security, payments, auth, max-fix-attempts]
starter: starters/pr-babysitter
readiness_level: L2
early_exit_required: true
tokens_per_iteration:
input: 3000
output: 2000
- id: ci-sweeper
name: CI Sweeper
file: ci-sweeper.md
goal: React to failing CI with minimal fixes and escalation
cadence: hourly
risk: medium
phases: [detect, classify, fix, verify, escalate]
human_gates: [infra-failures, max-attempts, security-tests]
starter: null
readiness_level: L2
early_exit_required: true
tokens_per_iteration:
input: 2500
output: 1500
- id: dependency-sweeper
name: Dependency Sweeper
file: dependency-sweeper.md
goal: Discover, safely apply, and verify dependency + vulnerability updates
cadence: weekly
risk: medium
phases: [scan, triage-risk, patch-safe, verify, escalate-risky]
human_gates: [major-bumps, high-sev-cve, denylisted-packages, max-attempts]
starter: null
readiness_level: L2
early_exit_required: true
tokens_per_iteration:
input: 4000
output: 2500
- id: changelog-drafter
name: Changelog Drafter
file: changelog-drafter.md
goal: Scan merged PRs/commits and draft categorized release notes for review
cadence: weekly
risk: low
phases: [scan-merges, categorize, draft, review]
human_gates: [breaking-changes, security, marketing-sensitive]
starter: null
readiness_level: L1
early_exit_required: false
tokens_per_iteration:
input: 3500
output: 2000
- id: post-merge-cleanup
name: Post-Merge Cleanup
file: post-merge-cleanup.md
goal: Follow-up tech debt and cleanup after merges to main
cadence: daily
risk: low
phases: [scan-merges, prioritize, fix-small, ticket-large]
human_gates: [architectural-debt, feature-flags, large-diffs]
starter: null
readiness_level: L1
early_exit_required: false
tokens_per_iteration:
input: 2000
output: 1000
- id: issue-triage
name: Issue Triage
file: issue-triage.md
goal: Discover, dedupe, prioritize, and label incoming issues
cadence: daily
risk: low
phases: [discover, dedupe, score, propose-labels]
human_gates: [security, p0-p1, ambiguous-duplicates]
starter: null
readiness_level: L1
early_exit_required: false
tokens_per_iteration:
input: 3000
output: 2000