kestrel-feature-workflows 0.1.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.
- kestrel_feature_workflows/__init__.py +78 -0
- kestrel_feature_workflows/feature.py +848 -0
- kestrel_feature_workflows/metrics.py +143 -0
- kestrel_feature_workflows/models.py +1550 -0
- kestrel_feature_workflows/reflection_cycle.py +227 -0
- kestrel_feature_workflows/runner.py +4142 -0
- kestrel_feature_workflows/schema.py +794 -0
- kestrel_feature_workflows/signing.py +561 -0
- kestrel_feature_workflows/store.py +932 -0
- kestrel_feature_workflows-0.1.0.dist-info/METADATA +55 -0
- kestrel_feature_workflows-0.1.0.dist-info/RECORD +14 -0
- kestrel_feature_workflows-0.1.0.dist-info/WHEEL +4 -0
- kestrel_feature_workflows-0.1.0.dist-info/entry_points.txt +2 -0
- kestrel_feature_workflows-0.1.0.dist-info/licenses/LICENSE +190 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"""kestrel-feature-workflows — first-class agent workflow primitive.
|
|
2
|
+
|
|
3
|
+
Phase 0 (this commit): dataclasses, JSON schemas, storage migrations, DID
|
|
4
|
+
signing helpers, stage-to-signal mapping spec. No tools, no runner yet —
|
|
5
|
+
those come in Phase 1.
|
|
6
|
+
|
|
7
|
+
See ``docs/architecture/WORKFLOWS_FEATURE_DESIGN.md`` (v4.1) for the full
|
|
8
|
+
design and ``docs/architecture/WORKFLOWS_STAGE_TO_SIGNAL_MAPPING.md`` for
|
|
9
|
+
how stages reduce onto SignalDispatcher source registrations.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from kestrel_feature_workflows.models import (
|
|
13
|
+
BUILT_IN_GATE_TYPES,
|
|
14
|
+
BUILT_IN_GATE_TYPES_NEEDING_REGISTRATION,
|
|
15
|
+
Edge,
|
|
16
|
+
EdgeKind,
|
|
17
|
+
Gate,
|
|
18
|
+
GateOutcome,
|
|
19
|
+
RevocationReason,
|
|
20
|
+
RunStatus,
|
|
21
|
+
Stage,
|
|
22
|
+
StageLink,
|
|
23
|
+
Trigger,
|
|
24
|
+
TriggerKind,
|
|
25
|
+
WorkflowDefinitionError,
|
|
26
|
+
WorkflowRun,
|
|
27
|
+
WorkflowSpec,
|
|
28
|
+
)
|
|
29
|
+
from kestrel_feature_workflows.reflection_cycle import (
|
|
30
|
+
REFLECTION_CYCLE_COMPENSATION_SOURCES,
|
|
31
|
+
REFLECTION_CYCLE_CRON,
|
|
32
|
+
REFLECTION_CYCLE_STAGE_SOURCES,
|
|
33
|
+
REFLECTION_CYCLE_WORKFLOW_NAME,
|
|
34
|
+
normalize_reflection_output,
|
|
35
|
+
reflection_cycle_spec_payload,
|
|
36
|
+
reflection_outputs_match,
|
|
37
|
+
reflection_shadow_report,
|
|
38
|
+
)
|
|
39
|
+
from kestrel_feature_workflows.runner import (
|
|
40
|
+
WorkflowRevocationResult,
|
|
41
|
+
WorkflowRunResult,
|
|
42
|
+
WorkflowRunner,
|
|
43
|
+
WorkflowRunnerError,
|
|
44
|
+
derive_stage_idempotency_key,
|
|
45
|
+
)
|
|
46
|
+
from kestrel_feature_workflows.feature import WorkflowsFeature
|
|
47
|
+
|
|
48
|
+
__all__ = [
|
|
49
|
+
"BUILT_IN_GATE_TYPES",
|
|
50
|
+
"BUILT_IN_GATE_TYPES_NEEDING_REGISTRATION",
|
|
51
|
+
"Edge",
|
|
52
|
+
"EdgeKind",
|
|
53
|
+
"Gate",
|
|
54
|
+
"GateOutcome",
|
|
55
|
+
"REFLECTION_CYCLE_COMPENSATION_SOURCES",
|
|
56
|
+
"REFLECTION_CYCLE_CRON",
|
|
57
|
+
"REFLECTION_CYCLE_STAGE_SOURCES",
|
|
58
|
+
"REFLECTION_CYCLE_WORKFLOW_NAME",
|
|
59
|
+
"RevocationReason",
|
|
60
|
+
"RunStatus",
|
|
61
|
+
"Stage",
|
|
62
|
+
"StageLink",
|
|
63
|
+
"Trigger",
|
|
64
|
+
"TriggerKind",
|
|
65
|
+
"WorkflowDefinitionError",
|
|
66
|
+
"WorkflowRevocationResult",
|
|
67
|
+
"WorkflowRun",
|
|
68
|
+
"WorkflowRunResult",
|
|
69
|
+
"WorkflowRunner",
|
|
70
|
+
"WorkflowRunnerError",
|
|
71
|
+
"WorkflowSpec",
|
|
72
|
+
"WorkflowsFeature",
|
|
73
|
+
"derive_stage_idempotency_key",
|
|
74
|
+
"normalize_reflection_output",
|
|
75
|
+
"reflection_cycle_spec_payload",
|
|
76
|
+
"reflection_outputs_match",
|
|
77
|
+
"reflection_shadow_report",
|
|
78
|
+
]
|