tickwork 0.3.0__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.
- tickwork/__init__.py +11 -0
- tickwork/__main__.py +8 -0
- tickwork/cli.py +288 -0
- tickwork/effect_log.py +319 -0
- tickwork/pool.py +214 -0
- tickwork/providers/__init__.py +10 -0
- tickwork/providers/openai_compat.py +82 -0
- tickwork/replay.py +134 -0
- tickwork/workflow_states.py +226 -0
- tickwork-0.3.0.data/data/share/tickwork/examples/items.jsonl +3 -0
- tickwork-0.3.0.data/data/share/tickwork/examples/logins.yaml +7 -0
- tickwork-0.3.0.data/data/share/tickwork/examples/pr-loop.states.yaml +81 -0
- tickwork-0.3.0.dist-info/METADATA +9 -0
- tickwork-0.3.0.dist-info/RECORD +18 -0
- tickwork-0.3.0.dist-info/WHEEL +5 -0
- tickwork-0.3.0.dist-info/entry_points.txt +2 -0
- tickwork-0.3.0.dist-info/licenses/LICENSE +21 -0
- tickwork-0.3.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# The PR loop's states as data: the exactly-one-owner state machine the
|
|
2
|
+
# tickwork workflow engine drives, one entry per state.
|
|
3
|
+
# Load via tickwork.workflow_states.load(); nothing in the loop evaluates
|
|
4
|
+
# these predicates yet (the engine ships them before the loop consumes them).
|
|
5
|
+
#
|
|
6
|
+
# Each state: a predicate over artifacts → (owner, board bucket).
|
|
7
|
+
# `override: true` states are cross-cutting (closed / held by the human /
|
|
8
|
+
# unassigned intake / blocked) and win in listed order. All other predicates
|
|
9
|
+
# must stay disjoint:
|
|
10
|
+
# an item matching zero or 2+ of them is an anomaly, reported by
|
|
11
|
+
# tickwork.workflow_states.check(): nothing in the loop evaluates these
|
|
12
|
+
# predicates yet (the engine ships them before the loop consumes them).
|
|
13
|
+
#
|
|
14
|
+
# Roles are role names (dev, reviewer, planner, verifier) and `human`;
|
|
15
|
+
# the caller maps roles to logins. Never a persona login here.
|
|
16
|
+
|
|
17
|
+
workflow: pr-loop
|
|
18
|
+
version: 1
|
|
19
|
+
states:
|
|
20
|
+
done:
|
|
21
|
+
override: true
|
|
22
|
+
when: { issue.state: closed }
|
|
23
|
+
board: done
|
|
24
|
+
terminal: true
|
|
25
|
+
|
|
26
|
+
waiting_on_human:
|
|
27
|
+
override: true
|
|
28
|
+
# a merged PR leaves this state even while still assigned to the human,
|
|
29
|
+
# so a human merge hands off to `verifying` like an automated one
|
|
30
|
+
when: { any: [ { issue.assignee: human }, { pr.assignee: human, pr.state: open } ] }
|
|
31
|
+
board: waiting_on_human
|
|
32
|
+
owner: human
|
|
33
|
+
|
|
34
|
+
intake:
|
|
35
|
+
# the board buckets unassigned open issues here even when they have open
|
|
36
|
+
# dependencies, so this must win over `blocked`
|
|
37
|
+
override: true
|
|
38
|
+
when: { issue.state: open, issue.assignee: none, pr: none }
|
|
39
|
+
board: intake
|
|
40
|
+
owner: human # visibility only; a human or the planner picks it up
|
|
41
|
+
|
|
42
|
+
blocked:
|
|
43
|
+
override: true
|
|
44
|
+
when: { issue.dependencies: open, not: { issue.assignee: human } }
|
|
45
|
+
board: blocked
|
|
46
|
+
owner: human # unblocking is a manual step; entry assigns the human
|
|
47
|
+
|
|
48
|
+
triage:
|
|
49
|
+
when: { issue.assignee: planner, pr: none }
|
|
50
|
+
board: queued
|
|
51
|
+
owner: planner
|
|
52
|
+
|
|
53
|
+
ready_for_dev:
|
|
54
|
+
when: { issue.assignee: dev, pr: none }
|
|
55
|
+
board: queued
|
|
56
|
+
owner: dev
|
|
57
|
+
|
|
58
|
+
in_review:
|
|
59
|
+
when: { pr.state: open, pr.requested_reviewers: reviewer, pr.reviewed_on_head: false }
|
|
60
|
+
board: in_progress
|
|
61
|
+
owner: reviewer
|
|
62
|
+
|
|
63
|
+
revising:
|
|
64
|
+
when: { pr.state: open, pr.assignee: dev }
|
|
65
|
+
board: in_progress
|
|
66
|
+
owner: dev
|
|
67
|
+
|
|
68
|
+
merging:
|
|
69
|
+
when: { pr.state: open, pr.requested_reviewers: reviewer, pr.approved_on_head: true }
|
|
70
|
+
board: in_progress
|
|
71
|
+
owner: reviewer
|
|
72
|
+
|
|
73
|
+
decomposing:
|
|
74
|
+
when: { pr.state: open, pr.assignee: planner }
|
|
75
|
+
board: in_progress
|
|
76
|
+
owner: planner
|
|
77
|
+
|
|
78
|
+
verifying:
|
|
79
|
+
when: { issue.state: open, pr.state: merged } # whoever merged
|
|
80
|
+
board: in_progress
|
|
81
|
+
owner: verifier
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tickwork
|
|
3
|
+
Version: 0.3.0
|
|
4
|
+
Summary: A generic, instance-neutral workflow engine: states, transitions, sweeps and call replay over a queue of work items
|
|
5
|
+
License: MIT
|
|
6
|
+
Requires-Python: >=3.11
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Dist: PyYAML>=6.0
|
|
9
|
+
Dynamic: license-file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
tickwork/__init__.py,sha256=jInwTDObOX31-qnQStUZD6m2pAbrYgIc3jBjU488E6Y,466
|
|
2
|
+
tickwork/__main__.py,sha256=edtzJrMhp4TDfL2jhuIpgp-HGAWKPAMZtsOmctkSKns,163
|
|
3
|
+
tickwork/cli.py,sha256=Agjpbn7atXX---PWsavHU5At5TbfpVeU_xA4QrjhHzk,11701
|
|
4
|
+
tickwork/effect_log.py,sha256=MdoPWcqaWdHXkx-fxtHdTPlFHZ2NeO8b5o5feztmfSo,13250
|
|
5
|
+
tickwork/pool.py,sha256=j-ZrJ7tts2tp_vm5XvnbLyyXut9zRz8ADMdJR4hryXA,8576
|
|
6
|
+
tickwork/replay.py,sha256=paQrFR4jRaNqE3rwsxGOhWXwno8satTlPy70RZFzhys,5169
|
|
7
|
+
tickwork/workflow_states.py,sha256=VuI1Kt1dkJnef1U8ZCDOqRBrDIlsuRzjgzphcEhu1UE,8847
|
|
8
|
+
tickwork/providers/__init__.py,sha256=cZ2YRqiZuOnUJxjxYNinWRgn1vVAwaWq4tu_-gurQ_o,351
|
|
9
|
+
tickwork/providers/openai_compat.py,sha256=IFAlDYWegrR2LuZyuCRoqmUI0oc24F0UOYITgu0DTIw,3801
|
|
10
|
+
tickwork-0.3.0.data/data/share/tickwork/examples/items.jsonl,sha256=NRgpQy9W6uD7RYHMjCIpENtuZasAgOtfWZmBZw0r4B8,643
|
|
11
|
+
tickwork-0.3.0.data/data/share/tickwork/examples/logins.yaml,sha256=2Rfqjqbt1TPx-9LcmZhtIQRHGZYrZ_SNC7BmYGbswmU,220
|
|
12
|
+
tickwork-0.3.0.data/data/share/tickwork/examples/pr-loop.states.yaml,sha256=FDLylJikvp1X3NKJGvsbiSLJ_p4PkJL2F3br37BSB7U,2672
|
|
13
|
+
tickwork-0.3.0.dist-info/licenses/LICENSE,sha256=wF_BQ0ncgP_JcCqkcYi980ABBUFtojT-ZsuzIiiI31Y,1072
|
|
14
|
+
tickwork-0.3.0.dist-info/METADATA,sha256=O4j8DtPG2hjyxpvhSuIgCAUxS1FXBoXg5xpoK-wjT8s,285
|
|
15
|
+
tickwork-0.3.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
16
|
+
tickwork-0.3.0.dist-info/entry_points.txt,sha256=EENEN49XqVPzj5mkG69iZMpfCWNXvx-uoavcIQ8TYzY,47
|
|
17
|
+
tickwork-0.3.0.dist-info/top_level.txt,sha256=F5ebSpYiCnrm5zmBBi0tKf4qfpmzEnaB9zeRwgriCxI,9
|
|
18
|
+
tickwork-0.3.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) The tickwork Authors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tickwork
|