takumai 0.0.1__tar.gz
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.
- takumai-0.0.1/.github/workflows/ci.yml +55 -0
- takumai-0.0.1/.github/workflows/release.yml +68 -0
- takumai-0.0.1/.gitignore +9 -0
- takumai-0.0.1/AGENTS.md +25 -0
- takumai-0.0.1/LICENSE +21 -0
- takumai-0.0.1/PKG-INFO +142 -0
- takumai-0.0.1/README.md +120 -0
- takumai-0.0.1/examples/devops/pack.toml +78 -0
- takumai-0.0.1/examples/fde/pack.toml +93 -0
- takumai-0.0.1/pyproject.toml +44 -0
- takumai-0.0.1/src/takumai/__init__.py +5 -0
- takumai-0.0.1/src/takumai/cli.py +71 -0
- takumai-0.0.1/src/takumai/manifest.py +472 -0
- takumai-0.0.1/src/takumai/py.typed +0 -0
- takumai-0.0.1/tests/test_cli.py +58 -0
- takumai-0.0.1/tests/test_manifest.py +218 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
push:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
test:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
strategy:
|
|
20
|
+
fail-fast: false
|
|
21
|
+
matrix:
|
|
22
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v6
|
|
25
|
+
- uses: actions/setup-python@v6
|
|
26
|
+
with:
|
|
27
|
+
python-version: ${{ matrix.python-version }}
|
|
28
|
+
- name: Upgrade pip
|
|
29
|
+
run: python -m pip install --upgrade pip
|
|
30
|
+
- name: Install package with dev extras
|
|
31
|
+
run: pip install -e ".[dev]"
|
|
32
|
+
- name: Lint
|
|
33
|
+
run: ruff check .
|
|
34
|
+
- name: Format check
|
|
35
|
+
run: ruff format --check .
|
|
36
|
+
- name: Test
|
|
37
|
+
run: pytest -q
|
|
38
|
+
- name: Build
|
|
39
|
+
run: python -m build
|
|
40
|
+
- name: Check distributions
|
|
41
|
+
run: twine check dist/*
|
|
42
|
+
- name: Validate example packs
|
|
43
|
+
run: |
|
|
44
|
+
takumai validate examples/devops
|
|
45
|
+
takumai validate examples/fde
|
|
46
|
+
|
|
47
|
+
no_comments:
|
|
48
|
+
runs-on: ubuntu-latest
|
|
49
|
+
steps:
|
|
50
|
+
- uses: actions/checkout@v6
|
|
51
|
+
- name: Reject comments in source and config files
|
|
52
|
+
run: |
|
|
53
|
+
if git grep -nE '(^|[[:space:]])#' -- '*.py' '*.toml' '*.yml' '.gitignore'; then
|
|
54
|
+
exit 1
|
|
55
|
+
fi
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v6
|
|
17
|
+
- uses: actions/setup-python@v6
|
|
18
|
+
with:
|
|
19
|
+
python-version: "3.13"
|
|
20
|
+
- name: Upgrade pip and install build tools
|
|
21
|
+
run: python -m pip install --upgrade pip build twine
|
|
22
|
+
- name: Build
|
|
23
|
+
run: python -m build
|
|
24
|
+
- name: Check distributions
|
|
25
|
+
run: twine check dist/*
|
|
26
|
+
- name: Verify tag matches package version
|
|
27
|
+
if: github.ref_type == 'tag'
|
|
28
|
+
run: |
|
|
29
|
+
python -m pip install dist/*.whl
|
|
30
|
+
version="$(python -c "import takumai; print(takumai.__version__)")"
|
|
31
|
+
if [ "${version}" != "${GITHUB_REF_NAME#v}" ]; then
|
|
32
|
+
echo "Tag ${GITHUB_REF_NAME} does not match package version ${version}"
|
|
33
|
+
exit 1
|
|
34
|
+
fi
|
|
35
|
+
- uses: actions/upload-artifact@v7
|
|
36
|
+
with:
|
|
37
|
+
name: dist
|
|
38
|
+
path: dist/
|
|
39
|
+
|
|
40
|
+
publish_testpypi:
|
|
41
|
+
needs: build
|
|
42
|
+
if: github.event_name == 'workflow_dispatch'
|
|
43
|
+
runs-on: ubuntu-latest
|
|
44
|
+
environment: testpypi
|
|
45
|
+
permissions:
|
|
46
|
+
id-token: write
|
|
47
|
+
steps:
|
|
48
|
+
- uses: actions/download-artifact@v8
|
|
49
|
+
with:
|
|
50
|
+
name: dist
|
|
51
|
+
path: dist/
|
|
52
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
53
|
+
with:
|
|
54
|
+
repository-url: https://test.pypi.org/legacy/
|
|
55
|
+
|
|
56
|
+
publish_pypi:
|
|
57
|
+
needs: build
|
|
58
|
+
if: github.event_name == 'push' && github.ref_type == 'tag'
|
|
59
|
+
runs-on: ubuntu-latest
|
|
60
|
+
environment: pypi
|
|
61
|
+
permissions:
|
|
62
|
+
id-token: write
|
|
63
|
+
steps:
|
|
64
|
+
- uses: actions/download-artifact@v8
|
|
65
|
+
with:
|
|
66
|
+
name: dist
|
|
67
|
+
path: dist/
|
|
68
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
takumai-0.0.1/.gitignore
ADDED
takumai-0.0.1/AGENTS.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# AGENTS.md
|
|
2
|
+
|
|
3
|
+
This is the single agent instruction file for this repository. Do not add AGENTS.md files to subdirectories.
|
|
4
|
+
|
|
5
|
+
## Where things are
|
|
6
|
+
|
|
7
|
+
- `README.md`: usage, manifest format, development commands.
|
|
8
|
+
- `src/takumai/manifest.py`: validation rules.
|
|
9
|
+
- `src/takumai/cli.py`: the `takumai` command.
|
|
10
|
+
- `tests/`: tests.
|
|
11
|
+
- `examples/`: sample packs.
|
|
12
|
+
- `.github/workflows/`: CI and release.
|
|
13
|
+
|
|
14
|
+
## Rules
|
|
15
|
+
|
|
16
|
+
- No comments in any file type. Docstrings may describe how something works, never why.
|
|
17
|
+
- Standard library only at runtime.
|
|
18
|
+
- Do not leave ticket ids or design notes in code.
|
|
19
|
+
- Before opening a PR, run `ruff check .`, `ruff format --check .`, and `pytest`.
|
|
20
|
+
|
|
21
|
+
## Releasing
|
|
22
|
+
|
|
23
|
+
- Bump `__version__` in `src/takumai/__init__.py`, merge, then tag `vX.Y.Z`.
|
|
24
|
+
- The release workflow publishes to PyPI via trusted publishing.
|
|
25
|
+
- A manual dispatch of the release workflow publishes to TestPyPI.
|
takumai-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 sandsong-labs
|
|
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.
|
takumai-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: takumai
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Validate pack manifests for specialist agent harnesses
|
|
5
|
+
Author: sandsong-labs
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Keywords: agents,harness,manifest,validation
|
|
9
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Typing :: Typed
|
|
15
|
+
Requires-Python: >=3.11
|
|
16
|
+
Provides-Extra: dev
|
|
17
|
+
Requires-Dist: build; extra == 'dev'
|
|
18
|
+
Requires-Dist: pytest; extra == 'dev'
|
|
19
|
+
Requires-Dist: ruff; extra == 'dev'
|
|
20
|
+
Requires-Dist: twine; extra == 'dev'
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
|
|
23
|
+
# takumai
|
|
24
|
+
|
|
25
|
+
takumai is a harness for packs: bundles of specialist agents, blueprints, policy, and verification. This release provides a validator for `pack.toml` manifests.
|
|
26
|
+
|
|
27
|
+
## Status
|
|
28
|
+
|
|
29
|
+
Pre-alpha (0.0.1). The manifest format may change.
|
|
30
|
+
|
|
31
|
+
## Install
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
pip install takumai
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Requires Python 3.11 or newer.
|
|
38
|
+
|
|
39
|
+
## Usage
|
|
40
|
+
|
|
41
|
+
Validate a pack directory or manifest file:
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
takumai validate examples/devops
|
|
45
|
+
takumai validate examples/devops/pack.toml --strict --format json
|
|
46
|
+
takumai --version
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Exit codes: `0` valid, `1` issues found, `2` manifest could not be loaded. `--strict` also checks that referenced files exist.
|
|
50
|
+
|
|
51
|
+
```python
|
|
52
|
+
from takumai import load, validate
|
|
53
|
+
|
|
54
|
+
for issue in validate(load("examples/devops/pack.toml")):
|
|
55
|
+
print(f"{issue.path}: {issue.message}")
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Manifest
|
|
59
|
+
|
|
60
|
+
```toml
|
|
61
|
+
[pack]
|
|
62
|
+
name = "devops"
|
|
63
|
+
version = "0.1.0"
|
|
64
|
+
description = "Infrastructure changes"
|
|
65
|
+
|
|
66
|
+
[[specialists]]
|
|
67
|
+
name = "scoper"
|
|
68
|
+
role = "reader"
|
|
69
|
+
description = "Turns a ticket into a change plan"
|
|
70
|
+
skills = ["skills/scoping"]
|
|
71
|
+
tools = ["read_file", "search_code"]
|
|
72
|
+
input = "contracts/ticket.json"
|
|
73
|
+
output = "contracts/change_plan.json"
|
|
74
|
+
|
|
75
|
+
[[specialists]]
|
|
76
|
+
name = "iac_author"
|
|
77
|
+
role = "builder"
|
|
78
|
+
description = "Writes infrastructure-as-code changes"
|
|
79
|
+
skills = ["skills/terraform"]
|
|
80
|
+
tools = ["read_file", "write_file", "terraform_plan"]
|
|
81
|
+
input = "contracts/change_plan.json"
|
|
82
|
+
output = "contracts/change_set.json"
|
|
83
|
+
|
|
84
|
+
[[specialists]]
|
|
85
|
+
name = "verifier"
|
|
86
|
+
role = "verifier"
|
|
87
|
+
description = "Checks that a change holds"
|
|
88
|
+
skills = ["skills/verification"]
|
|
89
|
+
tools = ["read_file", "run_check"]
|
|
90
|
+
input = "contracts/change_set.json"
|
|
91
|
+
output = "contracts/verdict.json"
|
|
92
|
+
|
|
93
|
+
[[blueprints]]
|
|
94
|
+
name = "infra_change"
|
|
95
|
+
|
|
96
|
+
[[blueprints.nodes]]
|
|
97
|
+
id = "scope"
|
|
98
|
+
kind = "agentic"
|
|
99
|
+
specialist = "scoper"
|
|
100
|
+
next = ["implement"]
|
|
101
|
+
|
|
102
|
+
[[blueprints.nodes]]
|
|
103
|
+
id = "implement"
|
|
104
|
+
kind = "agentic"
|
|
105
|
+
specialist = "iac_author"
|
|
106
|
+
next = ["checks"]
|
|
107
|
+
|
|
108
|
+
[[blueprints.nodes]]
|
|
109
|
+
id = "checks"
|
|
110
|
+
kind = "deterministic"
|
|
111
|
+
run = "checks/static.sh"
|
|
112
|
+
next = ["verify"]
|
|
113
|
+
|
|
114
|
+
[[blueprints.nodes]]
|
|
115
|
+
id = "verify"
|
|
116
|
+
kind = "agentic"
|
|
117
|
+
specialist = "verifier"
|
|
118
|
+
|
|
119
|
+
[policy]
|
|
120
|
+
risk_tiers = ["low", "medium", "high"]
|
|
121
|
+
human_gate_at = "high"
|
|
122
|
+
write_allowlist = ["infra/**"]
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
Rules enforced:
|
|
126
|
+
|
|
127
|
+
- Names are unique; each specialist has 1 to 3 skills and a non-empty tool allowlist.
|
|
128
|
+
- Every blueprint node is reachable and a terminal node exists.
|
|
129
|
+
- A blueprint with a builder also has a deterministic node or a verifier.
|
|
130
|
+
- Scenarios are visible only to verifier specialists.
|
|
131
|
+
- `human_gate_at` is a declared risk tier.
|
|
132
|
+
|
|
133
|
+
## Development
|
|
134
|
+
|
|
135
|
+
```sh
|
|
136
|
+
pip install -e ".[dev]"
|
|
137
|
+
ruff check . && ruff format --check . && pytest
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## License
|
|
141
|
+
|
|
142
|
+
MIT. See `LICENSE`.
|
takumai-0.0.1/README.md
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# takumai
|
|
2
|
+
|
|
3
|
+
takumai is a harness for packs: bundles of specialist agents, blueprints, policy, and verification. This release provides a validator for `pack.toml` manifests.
|
|
4
|
+
|
|
5
|
+
## Status
|
|
6
|
+
|
|
7
|
+
Pre-alpha (0.0.1). The manifest format may change.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
pip install takumai
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Requires Python 3.11 or newer.
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
Validate a pack directory or manifest file:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
takumai validate examples/devops
|
|
23
|
+
takumai validate examples/devops/pack.toml --strict --format json
|
|
24
|
+
takumai --version
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Exit codes: `0` valid, `1` issues found, `2` manifest could not be loaded. `--strict` also checks that referenced files exist.
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
from takumai import load, validate
|
|
31
|
+
|
|
32
|
+
for issue in validate(load("examples/devops/pack.toml")):
|
|
33
|
+
print(f"{issue.path}: {issue.message}")
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Manifest
|
|
37
|
+
|
|
38
|
+
```toml
|
|
39
|
+
[pack]
|
|
40
|
+
name = "devops"
|
|
41
|
+
version = "0.1.0"
|
|
42
|
+
description = "Infrastructure changes"
|
|
43
|
+
|
|
44
|
+
[[specialists]]
|
|
45
|
+
name = "scoper"
|
|
46
|
+
role = "reader"
|
|
47
|
+
description = "Turns a ticket into a change plan"
|
|
48
|
+
skills = ["skills/scoping"]
|
|
49
|
+
tools = ["read_file", "search_code"]
|
|
50
|
+
input = "contracts/ticket.json"
|
|
51
|
+
output = "contracts/change_plan.json"
|
|
52
|
+
|
|
53
|
+
[[specialists]]
|
|
54
|
+
name = "iac_author"
|
|
55
|
+
role = "builder"
|
|
56
|
+
description = "Writes infrastructure-as-code changes"
|
|
57
|
+
skills = ["skills/terraform"]
|
|
58
|
+
tools = ["read_file", "write_file", "terraform_plan"]
|
|
59
|
+
input = "contracts/change_plan.json"
|
|
60
|
+
output = "contracts/change_set.json"
|
|
61
|
+
|
|
62
|
+
[[specialists]]
|
|
63
|
+
name = "verifier"
|
|
64
|
+
role = "verifier"
|
|
65
|
+
description = "Checks that a change holds"
|
|
66
|
+
skills = ["skills/verification"]
|
|
67
|
+
tools = ["read_file", "run_check"]
|
|
68
|
+
input = "contracts/change_set.json"
|
|
69
|
+
output = "contracts/verdict.json"
|
|
70
|
+
|
|
71
|
+
[[blueprints]]
|
|
72
|
+
name = "infra_change"
|
|
73
|
+
|
|
74
|
+
[[blueprints.nodes]]
|
|
75
|
+
id = "scope"
|
|
76
|
+
kind = "agentic"
|
|
77
|
+
specialist = "scoper"
|
|
78
|
+
next = ["implement"]
|
|
79
|
+
|
|
80
|
+
[[blueprints.nodes]]
|
|
81
|
+
id = "implement"
|
|
82
|
+
kind = "agentic"
|
|
83
|
+
specialist = "iac_author"
|
|
84
|
+
next = ["checks"]
|
|
85
|
+
|
|
86
|
+
[[blueprints.nodes]]
|
|
87
|
+
id = "checks"
|
|
88
|
+
kind = "deterministic"
|
|
89
|
+
run = "checks/static.sh"
|
|
90
|
+
next = ["verify"]
|
|
91
|
+
|
|
92
|
+
[[blueprints.nodes]]
|
|
93
|
+
id = "verify"
|
|
94
|
+
kind = "agentic"
|
|
95
|
+
specialist = "verifier"
|
|
96
|
+
|
|
97
|
+
[policy]
|
|
98
|
+
risk_tiers = ["low", "medium", "high"]
|
|
99
|
+
human_gate_at = "high"
|
|
100
|
+
write_allowlist = ["infra/**"]
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Rules enforced:
|
|
104
|
+
|
|
105
|
+
- Names are unique; each specialist has 1 to 3 skills and a non-empty tool allowlist.
|
|
106
|
+
- Every blueprint node is reachable and a terminal node exists.
|
|
107
|
+
- A blueprint with a builder also has a deterministic node or a verifier.
|
|
108
|
+
- Scenarios are visible only to verifier specialists.
|
|
109
|
+
- `human_gate_at` is a declared risk tier.
|
|
110
|
+
|
|
111
|
+
## Development
|
|
112
|
+
|
|
113
|
+
```sh
|
|
114
|
+
pip install -e ".[dev]"
|
|
115
|
+
ruff check . && ruff format --check . && pytest
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## License
|
|
119
|
+
|
|
120
|
+
MIT. See `LICENSE`.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
[pack]
|
|
2
|
+
name = "devops"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Infrastructure changes and incident response"
|
|
5
|
+
|
|
6
|
+
[[specialists]]
|
|
7
|
+
name = "scoper"
|
|
8
|
+
role = "reader"
|
|
9
|
+
description = "Turns a ticket into a change plan with a risk tier and write allowlist"
|
|
10
|
+
skills = ["skills/scoping"]
|
|
11
|
+
tools = ["read_file", "search_code"]
|
|
12
|
+
input = "contracts/ticket.json"
|
|
13
|
+
output = "contracts/change_plan.json"
|
|
14
|
+
|
|
15
|
+
[[specialists]]
|
|
16
|
+
name = "iac_author"
|
|
17
|
+
role = "builder"
|
|
18
|
+
description = "Writes infrastructure-as-code changes that satisfy a change plan"
|
|
19
|
+
skills = ["skills/terraform"]
|
|
20
|
+
tools = ["read_file", "write_file", "terraform_validate", "terraform_plan"]
|
|
21
|
+
input = "contracts/change_plan.json"
|
|
22
|
+
output = "contracts/change_set.json"
|
|
23
|
+
|
|
24
|
+
[[specialists]]
|
|
25
|
+
name = "verifier"
|
|
26
|
+
role = "verifier"
|
|
27
|
+
description = "Checks that a change holds after restart and under load"
|
|
28
|
+
skills = ["skills/verification"]
|
|
29
|
+
tools = ["read_file", "run_check"]
|
|
30
|
+
input = "contracts/change_set.json"
|
|
31
|
+
output = "contracts/verdict.json"
|
|
32
|
+
|
|
33
|
+
[[blueprints]]
|
|
34
|
+
name = "infra_change"
|
|
35
|
+
|
|
36
|
+
[[blueprints.nodes]]
|
|
37
|
+
id = "scope"
|
|
38
|
+
kind = "agentic"
|
|
39
|
+
specialist = "scoper"
|
|
40
|
+
next = ["approve"]
|
|
41
|
+
|
|
42
|
+
[[blueprints.nodes]]
|
|
43
|
+
id = "approve"
|
|
44
|
+
kind = "gate"
|
|
45
|
+
tier = "high"
|
|
46
|
+
next = ["implement"]
|
|
47
|
+
|
|
48
|
+
[[blueprints.nodes]]
|
|
49
|
+
id = "implement"
|
|
50
|
+
kind = "agentic"
|
|
51
|
+
specialist = "iac_author"
|
|
52
|
+
next = ["static_checks"]
|
|
53
|
+
|
|
54
|
+
[[blueprints.nodes]]
|
|
55
|
+
id = "static_checks"
|
|
56
|
+
kind = "deterministic"
|
|
57
|
+
run = "checks/static.sh"
|
|
58
|
+
next = ["verify"]
|
|
59
|
+
|
|
60
|
+
[[blueprints.nodes]]
|
|
61
|
+
id = "verify"
|
|
62
|
+
kind = "agentic"
|
|
63
|
+
specialist = "verifier"
|
|
64
|
+
|
|
65
|
+
[policy]
|
|
66
|
+
risk_tiers = ["low", "medium", "high"]
|
|
67
|
+
human_gate_at = "high"
|
|
68
|
+
write_allowlist = ["infra/**"]
|
|
69
|
+
|
|
70
|
+
[scenarios]
|
|
71
|
+
path = "scenarios"
|
|
72
|
+
visible_to = ["verifier"]
|
|
73
|
+
|
|
74
|
+
[verifier]
|
|
75
|
+
checks = ["checks/restart.sh", "checks/soak.sh"]
|
|
76
|
+
|
|
77
|
+
[twin]
|
|
78
|
+
kind = "ephemeral_stack"
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
[pack]
|
|
2
|
+
name = "fde"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Customer integrations after discovery"
|
|
5
|
+
|
|
6
|
+
[[specialists]]
|
|
7
|
+
name = "integration_mapper"
|
|
8
|
+
role = "reader"
|
|
9
|
+
description = "Maps a customer API and schema to a mapping spec"
|
|
10
|
+
skills = ["skills/integration_mapping"]
|
|
11
|
+
tools = ["read_file", "search_code", "fetch_schema"]
|
|
12
|
+
input = "contracts/discovery.json"
|
|
13
|
+
output = "contracts/mapping_spec.json"
|
|
14
|
+
|
|
15
|
+
[[specialists]]
|
|
16
|
+
name = "connector_builder"
|
|
17
|
+
role = "builder"
|
|
18
|
+
description = "Builds customer connectors that satisfy the mapping spec"
|
|
19
|
+
skills = ["skills/connectors"]
|
|
20
|
+
tools = ["read_file", "write_file", "run_tests"]
|
|
21
|
+
input = "contracts/mapping_spec.json"
|
|
22
|
+
output = "contracts/connector_set.json"
|
|
23
|
+
|
|
24
|
+
[[specialists]]
|
|
25
|
+
name = "eval_builder"
|
|
26
|
+
role = "verifier"
|
|
27
|
+
description = "Builds and runs customer acceptance scenarios"
|
|
28
|
+
skills = ["skills/acceptance"]
|
|
29
|
+
tools = ["read_file", "run_check"]
|
|
30
|
+
input = "contracts/connector_set.json"
|
|
31
|
+
output = "contracts/eval_report.json"
|
|
32
|
+
|
|
33
|
+
[[specialists]]
|
|
34
|
+
name = "handoff_writer"
|
|
35
|
+
role = "builder"
|
|
36
|
+
description = "Writes runbook and configuration docs"
|
|
37
|
+
skills = ["skills/docs"]
|
|
38
|
+
tools = ["read_file", "write_file"]
|
|
39
|
+
input = "contracts/eval_report.json"
|
|
40
|
+
output = "contracts/handoff.json"
|
|
41
|
+
|
|
42
|
+
[[blueprints]]
|
|
43
|
+
name = "integration"
|
|
44
|
+
|
|
45
|
+
[[blueprints.nodes]]
|
|
46
|
+
id = "map"
|
|
47
|
+
kind = "agentic"
|
|
48
|
+
specialist = "integration_mapper"
|
|
49
|
+
next = ["approve"]
|
|
50
|
+
|
|
51
|
+
[[blueprints.nodes]]
|
|
52
|
+
id = "approve"
|
|
53
|
+
kind = "gate"
|
|
54
|
+
tier = "high"
|
|
55
|
+
next = ["build"]
|
|
56
|
+
|
|
57
|
+
[[blueprints.nodes]]
|
|
58
|
+
id = "build"
|
|
59
|
+
kind = "agentic"
|
|
60
|
+
specialist = "connector_builder"
|
|
61
|
+
next = ["run_scenarios"]
|
|
62
|
+
|
|
63
|
+
[[blueprints.nodes]]
|
|
64
|
+
id = "run_scenarios"
|
|
65
|
+
kind = "deterministic"
|
|
66
|
+
run = "checks/run_scenarios.sh"
|
|
67
|
+
next = ["evaluate"]
|
|
68
|
+
|
|
69
|
+
[[blueprints.nodes]]
|
|
70
|
+
id = "evaluate"
|
|
71
|
+
kind = "agentic"
|
|
72
|
+
specialist = "eval_builder"
|
|
73
|
+
next = ["handoff"]
|
|
74
|
+
|
|
75
|
+
[[blueprints.nodes]]
|
|
76
|
+
id = "handoff"
|
|
77
|
+
kind = "agentic"
|
|
78
|
+
specialist = "handoff_writer"
|
|
79
|
+
|
|
80
|
+
[policy]
|
|
81
|
+
risk_tiers = ["low", "medium", "high"]
|
|
82
|
+
human_gate_at = "high"
|
|
83
|
+
write_allowlist = ["connectors/**", "docs/**"]
|
|
84
|
+
|
|
85
|
+
[scenarios]
|
|
86
|
+
path = "scenarios"
|
|
87
|
+
visible_to = ["eval_builder"]
|
|
88
|
+
|
|
89
|
+
[verifier]
|
|
90
|
+
checks = ["checks/contract.sh"]
|
|
91
|
+
|
|
92
|
+
[twin]
|
|
93
|
+
kind = "mock_customer_api"
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "takumai"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Validate pack manifests for specialist agent harnesses"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
authors = [{ name = "sandsong-labs" }]
|
|
13
|
+
dependencies = []
|
|
14
|
+
keywords = ["agents", "harness", "manifest", "validation"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 2 - Pre-Alpha",
|
|
17
|
+
"Programming Language :: Python :: 3",
|
|
18
|
+
"Programming Language :: Python :: 3.11",
|
|
19
|
+
"Programming Language :: Python :: 3.12",
|
|
20
|
+
"Programming Language :: Python :: 3.13",
|
|
21
|
+
"Typing :: Typed",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[project.scripts]
|
|
25
|
+
takumai = "takumai.cli:main"
|
|
26
|
+
|
|
27
|
+
[project.optional-dependencies]
|
|
28
|
+
dev = ["pytest", "ruff", "build", "twine"]
|
|
29
|
+
|
|
30
|
+
[tool.hatch.version]
|
|
31
|
+
path = "src/takumai/__init__.py"
|
|
32
|
+
|
|
33
|
+
[tool.hatch.build.targets.wheel]
|
|
34
|
+
packages = ["src/takumai"]
|
|
35
|
+
|
|
36
|
+
[tool.ruff]
|
|
37
|
+
line-length = 100
|
|
38
|
+
target-version = "py311"
|
|
39
|
+
|
|
40
|
+
[tool.ruff.lint]
|
|
41
|
+
select = ["E", "F", "I", "B", "UP"]
|
|
42
|
+
|
|
43
|
+
[tool.pytest.ini_options]
|
|
44
|
+
testpaths = ["tests"]
|