autobot-flow 0.3.0__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.
- autobot_flow-0.3.0/.claude/agents/drift-checker.md +18 -0
- autobot_flow-0.3.0/.claude/agents/goldfish-reviewer.md +18 -0
- autobot_flow-0.3.0/.claude/agents/orchestrator.md +18 -0
- autobot_flow-0.3.0/.claude/agents/safety-reviewer.md +20 -0
- autobot_flow-0.3.0/.claude/skills/egm-cycle/SKILL.md +23 -0
- autobot_flow-0.3.0/.claude/skills/simulate-workflow/SKILL.md +18 -0
- autobot_flow-0.3.0/.gitattributes +21 -0
- autobot_flow-0.3.0/.github/dependabot.yml +10 -0
- autobot_flow-0.3.0/.github/workflows/audit.yml +30 -0
- autobot_flow-0.3.0/.github/workflows/ci.yml +71 -0
- autobot_flow-0.3.0/.github/workflows/private-terms.yml +34 -0
- autobot_flow-0.3.0/.github/workflows/release.yml +63 -0
- autobot_flow-0.3.0/.gitignore +22 -0
- autobot_flow-0.3.0/.gitleaks-reviewed.toml +55 -0
- autobot_flow-0.3.0/.gitleaks.toml +6 -0
- autobot_flow-0.3.0/AGENTS.md +76 -0
- autobot_flow-0.3.0/CHANGELOG.md +49 -0
- autobot_flow-0.3.0/CLAUDE.md +1 -0
- autobot_flow-0.3.0/CODE_OF_CONDUCT.md +14 -0
- autobot_flow-0.3.0/CONTRIBUTING.md +145 -0
- autobot_flow-0.3.0/LICENSE +21 -0
- autobot_flow-0.3.0/MEMORY.md +15 -0
- autobot_flow-0.3.0/Makefile +18 -0
- autobot_flow-0.3.0/PKG-INFO +212 -0
- autobot_flow-0.3.0/README.md +189 -0
- autobot_flow-0.3.0/SECURITY.md +19 -0
- autobot_flow-0.3.0/docs/models.md +175 -0
- autobot_flow-0.3.0/docs/mvp/v0.1.0.md +45 -0
- autobot_flow-0.3.0/docs/superpowers/plans/2026-11-30-m1-safe-core.md +956 -0
- autobot_flow-0.3.0/docs/superpowers/specs/2026-11-30-autobot-flow-design.md +839 -0
- autobot_flow-0.3.0/docs/wiki/Algorithms.md +90 -0
- autobot_flow-0.3.0/docs/wiki/Architecture.md +56 -0
- autobot_flow-0.3.0/docs/wiki/Autonomy-and-Rules.md +52 -0
- autobot_flow-0.3.0/docs/wiki/Command-Line.md +37 -0
- autobot_flow-0.3.0/docs/wiki/Comparison.md +135 -0
- autobot_flow-0.3.0/docs/wiki/Configuration.md +71 -0
- autobot_flow-0.3.0/docs/wiki/Extending.md +53 -0
- autobot_flow-0.3.0/docs/wiki/Getting-Started.md +40 -0
- autobot_flow-0.3.0/docs/wiki/Home.md +37 -0
- autobot_flow-0.3.0/docs/wiki/MCP.md +93 -0
- autobot_flow-0.3.0/docs/wiki/Models.md +28 -0
- autobot_flow-0.3.0/docs/wiki/Python-API.md +61 -0
- autobot_flow-0.3.0/docs/wiki/Roadmap.md +22 -0
- autobot_flow-0.3.0/docs/wiki/Runs-and-Recovery.md +55 -0
- autobot_flow-0.3.0/docs/wiki/Security-and-Limits.md +42 -0
- autobot_flow-0.3.0/docs/wiki/Simulation.md +38 -0
- autobot_flow-0.3.0/docs/wiki/Tools.md +52 -0
- autobot_flow-0.3.0/docs/wiki/Troubleshooting.md +25 -0
- autobot_flow-0.3.0/docs/wiki/_Footer.md +1 -0
- autobot_flow-0.3.0/docs/wiki/_Sidebar.md +26 -0
- autobot_flow-0.3.0/pyproject.toml +135 -0
- autobot_flow-0.3.0/scripts/check_private_terms.py +520 -0
- autobot_flow-0.3.0/scripts/fetch_gitleaks.py +322 -0
- autobot_flow-0.3.0/scripts/git_safe.py +203 -0
- autobot_flow-0.3.0/scripts/make_comparison.js +37 -0
- autobot_flow-0.3.0/scripts/prepush.py +432 -0
- autobot_flow-0.3.0/scripts/smoke_wheel.sh +17 -0
- autobot_flow-0.3.0/site/.nojekyll +0 -0
- autobot_flow-0.3.0/site/cases.json +44 -0
- autobot_flow-0.3.0/site/comparison.js +100 -0
- autobot_flow-0.3.0/site/docs.html +234 -0
- autobot_flow-0.3.0/site/engine.js +111 -0
- autobot_flow-0.3.0/site/exhibits.js +253 -0
- autobot_flow-0.3.0/site/icon.svg +1 -0
- autobot_flow-0.3.0/site/index.html +258 -0
- autobot_flow-0.3.0/site/panel.js +321 -0
- autobot_flow-0.3.0/site/style.css +226 -0
- autobot_flow-0.3.0/src/autobot_flow/__init__.py +27 -0
- autobot_flow-0.3.0/src/autobot_flow/__main__.py +7 -0
- autobot_flow-0.3.0/src/autobot_flow/actions/__init__.py +0 -0
- autobot_flow-0.3.0/src/autobot_flow/actions/mcp.py +612 -0
- autobot_flow-0.3.0/src/autobot_flow/actions/tools.py +171 -0
- autobot_flow-0.3.0/src/autobot_flow/adapters/__init__.py +1 -0
- autobot_flow-0.3.0/src/autobot_flow/adapters/base.py +52 -0
- autobot_flow-0.3.0/src/autobot_flow/adapters/commands.py +406 -0
- autobot_flow-0.3.0/src/autobot_flow/adapters/http.py +361 -0
- autobot_flow-0.3.0/src/autobot_flow/adapters/mcp_base.py +94 -0
- autobot_flow-0.3.0/src/autobot_flow/adapters/mcp_sdk.py +212 -0
- autobot_flow-0.3.0/src/autobot_flow/adapters/registry.py +119 -0
- autobot_flow-0.3.0/src/autobot_flow/app/__init__.py +0 -0
- autobot_flow-0.3.0/src/autobot_flow/app/cli.py +421 -0
- autobot_flow-0.3.0/src/autobot_flow/app/runner.py +353 -0
- autobot_flow-0.3.0/src/autobot_flow/app/simulate.py +172 -0
- autobot_flow-0.3.0/src/autobot_flow/app/starter.py +132 -0
- autobot_flow-0.3.0/src/autobot_flow/app/workflow.py +278 -0
- autobot_flow-0.3.0/src/autobot_flow/authority/__init__.py +0 -0
- autobot_flow-0.3.0/src/autobot_flow/authority/policy.py +99 -0
- autobot_flow-0.3.0/src/autobot_flow/compiler/__init__.py +1 -0
- autobot_flow-0.3.0/src/autobot_flow/compiler/planner.py +110 -0
- autobot_flow-0.3.0/src/autobot_flow/effects/__init__.py +0 -0
- autobot_flow-0.3.0/src/autobot_flow/harness/__init__.py +1 -0
- autobot_flow-0.3.0/src/autobot_flow/harness/agent.py +106 -0
- autobot_flow-0.3.0/src/autobot_flow/harness/replies.py +29 -0
- autobot_flow-0.3.0/src/autobot_flow/kernel/__init__.py +0 -0
- autobot_flow-0.3.0/src/autobot_flow/py.typed +0 -0
- autobot_flow-0.3.0/src/autobot_flow/spec/__init__.py +6 -0
- autobot_flow-0.3.0/src/autobot_flow/spec/config.py +426 -0
- autobot_flow-0.3.0/src/autobot_flow/spec/flow.py +105 -0
- autobot_flow-0.3.0/src/autobot_flow/spec/mcp.py +161 -0
- autobot_flow-0.3.0/src/autobot_flow/spec/schemas.py +383 -0
- autobot_flow-0.3.0/src/autobot_flow/spec/values.py +505 -0
- autobot_flow-0.3.0/src/autobot_flow/store/__init__.py +0 -0
- autobot_flow-0.3.0/src/autobot_flow/store/runs.py +300 -0
- autobot_flow-0.3.0/src/autobot_flow/testing/__init__.py +0 -0
- autobot_flow-0.3.0/tests/conftest.py +10 -0
- autobot_flow-0.3.0/tests/isolation.py +48 -0
- autobot_flow-0.3.0/tests/unit/adapters/conftest.py +93 -0
- autobot_flow-0.3.0/tests/unit/adapters/test_commands.py +387 -0
- autobot_flow-0.3.0/tests/unit/adapters/test_http.py +389 -0
- autobot_flow-0.3.0/tests/unit/adapters/test_registry.py +144 -0
- autobot_flow-0.3.0/tests/unit/conftest.py +144 -0
- autobot_flow-0.3.0/tests/unit/flow_helpers.py +51 -0
- autobot_flow-0.3.0/tests/unit/helpers.py +119 -0
- autobot_flow-0.3.0/tests/unit/mcp/conftest.py +188 -0
- autobot_flow-0.3.0/tests/unit/mcp/fake_server.py +69 -0
- autobot_flow-0.3.0/tests/unit/mcp/test_build_tools.py +147 -0
- autobot_flow-0.3.0/tests/unit/mcp/test_catalog.py +139 -0
- autobot_flow-0.3.0/tests/unit/mcp/test_cli.py +198 -0
- autobot_flow-0.3.0/tests/unit/mcp/test_config.py +115 -0
- autobot_flow-0.3.0/tests/unit/mcp/test_docs_claims.py +22 -0
- autobot_flow-0.3.0/tests/unit/mcp/test_hub.py +474 -0
- autobot_flow-0.3.0/tests/unit/mcp/test_json_schema_tool.py +87 -0
- autobot_flow-0.3.0/tests/unit/mcp/test_lazy_import.py +16 -0
- autobot_flow-0.3.0/tests/unit/mcp/test_pin.py +114 -0
- autobot_flow-0.3.0/tests/unit/mcp/test_real_sdk.py +176 -0
- autobot_flow-0.3.0/tests/unit/mcp/test_sdk_adapter.py +332 -0
- autobot_flow-0.3.0/tests/unit/mcp/test_simulation.py +219 -0
- autobot_flow-0.3.0/tests/unit/mcp/test_workflow_mcp.py +428 -0
- autobot_flow-0.3.0/tests/unit/mvp/test_cli.py +191 -0
- autobot_flow-0.3.0/tests/unit/mvp/test_workflow.py +447 -0
- autobot_flow-0.3.0/tests/unit/site/test_site.py +160 -0
- autobot_flow-0.3.0/tests/unit/spec/conftest.py +27 -0
- autobot_flow-0.3.0/tests/unit/spec/test_config.py +973 -0
- autobot_flow-0.3.0/tests/unit/spec/test_schemas.py +1196 -0
- autobot_flow-0.3.0/tests/unit/spec/test_values.py +606 -0
- autobot_flow-0.3.0/tests/unit/support.py +26 -0
- autobot_flow-0.3.0/tests/unit/test_fetch_gitleaks.py +191 -0
- autobot_flow-0.3.0/tests/unit/test_fetch_retries.py +588 -0
- autobot_flow-0.3.0/tests/unit/test_isolation.py +99 -0
- autobot_flow-0.3.0/tests/unit/test_package.py +78 -0
- autobot_flow-0.3.0/tests/unit/test_prepush.py +1619 -0
- autobot_flow-0.3.0/tests/unit/test_private_terms.py +518 -0
- autobot_flow-0.3.0/tests/unit/test_private_terms_hardening.py +333 -0
- autobot_flow-0.3.0/tests/unit/test_private_terms_repo.py +336 -0
- autobot_flow-0.3.0/tests/unit/test_project_files.py +215 -0
- autobot_flow-0.3.0/tests/unit/test_script_edges.py +169 -0
- autobot_flow-0.3.0/uv.lock +2077 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: drift-checker
|
|
3
|
+
description: Compares the code with the design and plan, reports differences, and changes nothing.
|
|
4
|
+
tools: Read, Grep, Glob, Bash
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Compare the current code, tests and docs with `docs/superpowers/specs/` and the plan in
|
|
8
|
+
`docs/superpowers/plans/`. Use Bash only for read-only commands such as `git log`, `git diff`
|
|
9
|
+
and running the test suite.
|
|
10
|
+
|
|
11
|
+
Report:
|
|
12
|
+
|
|
13
|
+
- behavior the design requires that the code lacks, or code the design does not cover;
|
|
14
|
+
- public claims (README, docs) that are not true of the code today;
|
|
15
|
+
- import-boundary or dependency rules that are not enforced.
|
|
16
|
+
|
|
17
|
+
For each, give file and line, what the design says, and what the code does. Do not edit files,
|
|
18
|
+
commit or push.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: goldfish-reviewer
|
|
3
|
+
description: Reviews one document with no background knowledge and ranks its gaps.
|
|
4
|
+
tools: Read, Grep, Glob
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You are a fresh reviewer. You know nothing about this project except the one document you are
|
|
8
|
+
given. Do not read other files to fill gaps; a gap you cannot close from the document is a
|
|
9
|
+
finding.
|
|
10
|
+
|
|
11
|
+
Report, ranked blocker, major, minor:
|
|
12
|
+
|
|
13
|
+
- anything ambiguous, contradictory or missing that a builder would have to guess;
|
|
14
|
+
- requirements without a way to check them, and failure cases that are not covered;
|
|
15
|
+
- claims that cannot be true yet.
|
|
16
|
+
|
|
17
|
+
Give each finding a location in the document and one sentence on what would resolve it. Do not
|
|
18
|
+
rewrite the document and do not change any file.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: orchestrator
|
|
3
|
+
description: Splits a milestone into independent tasks, checks usage limits first, and runs at most two development agents at once.
|
|
4
|
+
tools: Read, Grep, Glob, Bash, Agent
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
You coordinate work on autobot-flow. Follow `AGENTS.md`.
|
|
8
|
+
|
|
9
|
+
1. Check account usage before starting. If it is at or above 75% of the 5-hour window or 60% of
|
|
10
|
+
the week, or you cannot read it, start no agents and say so.
|
|
11
|
+
2. Read the plan and pick tasks that are independent: fixed interfaces, no shared files, separate
|
|
12
|
+
worktrees.
|
|
13
|
+
3. Run at most two development agents at once. Check memory and CPU first. Give each a narrow
|
|
14
|
+
task, the files to read and a short summary format.
|
|
15
|
+
4. Never let an agent push, tag, release or change repository settings or secrets.
|
|
16
|
+
5. Collect the summaries, check each against the plan, and report what is done, what is blocked
|
|
17
|
+
and what is next. Do not mark anything complete that needs an independent review that has not
|
|
18
|
+
happened.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: safety-reviewer
|
|
3
|
+
description: Looks for gate bypasses, duplicate effects and leaks, and changes nothing.
|
|
4
|
+
tools: Read, Grep, Glob, Bash
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
Review the given change for safety problems. Use Bash only for read-only commands and for running
|
|
8
|
+
tests.
|
|
9
|
+
|
|
10
|
+
Look for:
|
|
11
|
+
|
|
12
|
+
- paths that reach a real effect without passing the authority gate, or that skip a halt;
|
|
13
|
+
- ways an effect could run twice, or run again after a retry or restart without being checked;
|
|
14
|
+
- leaks of secrets, private terms, personal data or local paths into code, logs, errors, fixtures,
|
|
15
|
+
docs, archives or git history;
|
|
16
|
+
- unchecked downloads, unpinned actions or tools, and over-broad permissions.
|
|
17
|
+
|
|
18
|
+
Rank findings by severity, give file and line, and describe a concrete way each could happen. Do
|
|
19
|
+
not print any secret or private term you find: give only its location. Do not edit files, commit
|
|
20
|
+
or push.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: egm-cycle
|
|
3
|
+
description: Use when planning or finishing a milestone, to run the Elephant-Goldfish review cycle on a plan and then on the built code.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Elephant-Goldfish cycle
|
|
7
|
+
|
|
8
|
+
The "elephant" remembers the whole project; the "goldfish" reads one document fresh.
|
|
9
|
+
|
|
10
|
+
1. **Plan without product code.** Write the milestone plan, acceptance checks and failure cases.
|
|
11
|
+
2. **Goldfish review.** Spawn the `goldfish-reviewer` agent with only the plan file path. Give it no
|
|
12
|
+
other context. Fix every blocker and major gap, then use a new reviewer. Stop when no blockers
|
|
13
|
+
remain. After three rounds, bring the remaining blockers to the owner.
|
|
14
|
+
3. **Build with tests first.** Fan out only independent tasks with fixed interfaces, in separate
|
|
15
|
+
worktrees, and at most two agents at once.
|
|
16
|
+
4. **Drift check.** Run `drift-checker`. Record any approved change to the design.
|
|
17
|
+
5. **Safety and diff review.** Run `safety-reviewer` and an independent review of the diff. Fix
|
|
18
|
+
findings, then run `make check` again.
|
|
19
|
+
6. **Ship small.** Commit, run `make prepush`, push, watch CI to the end, fix failures, and update
|
|
20
|
+
the progress notes. Ask the owner before the first public push or any release.
|
|
21
|
+
|
|
22
|
+
Check usage before each agent batch. Start no new work at 75% of the 5-hour window or 60% of the
|
|
23
|
+
week.
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: simulate-workflow
|
|
3
|
+
description: Use when you need to check a workflow plan by simulation before any real effect. Pre-release stub.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Simulate a workflow
|
|
7
|
+
|
|
8
|
+
Status: the simulation tooling (`autobot_flow.testing`) does not exist yet, so this skill cannot
|
|
9
|
+
run a simulation today. When it is added, update this file with the exact commands.
|
|
10
|
+
|
|
11
|
+
Principles that already apply:
|
|
12
|
+
|
|
13
|
+
- Simulate before any real effect. Use fakes for every external system; never call a live service
|
|
14
|
+
or spend money in a simulation.
|
|
15
|
+
- Include failure cases, not only the happy path: refused approvals, timeouts, duplicate requests
|
|
16
|
+
and partial failures.
|
|
17
|
+
- Simulation finds problems; it does not prove a workflow is safe. Say so in any report.
|
|
18
|
+
- Record the plan hash, the inputs and the outcome, so a run can be reproduced.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# One line ending everywhere, so file digests match on every system.
|
|
2
|
+
* text=auto eol=lf
|
|
3
|
+
|
|
4
|
+
*.png binary
|
|
5
|
+
*.jpg binary
|
|
6
|
+
*.jpeg binary
|
|
7
|
+
*.gif binary
|
|
8
|
+
*.ico binary
|
|
9
|
+
*.pdf binary
|
|
10
|
+
*.woff binary
|
|
11
|
+
*.woff2 binary
|
|
12
|
+
*.zip binary
|
|
13
|
+
*.whl binary
|
|
14
|
+
*.gz binary
|
|
15
|
+
*.tgz binary
|
|
16
|
+
*.bz2 binary
|
|
17
|
+
*.xz binary
|
|
18
|
+
*.tar binary
|
|
19
|
+
*.sqlite binary
|
|
20
|
+
*.db binary
|
|
21
|
+
*.bin binary
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: dependency-audit
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: "17 6 * * 1"
|
|
6
|
+
push:
|
|
7
|
+
branches: [main]
|
|
8
|
+
paths: [pyproject.toml, uv.lock, .github/workflows/audit.yml]
|
|
9
|
+
pull_request:
|
|
10
|
+
paths: [pyproject.toml, uv.lock, .github/workflows/audit.yml]
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
audit:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
timeout-minutes: 15
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
21
|
+
with:
|
|
22
|
+
persist-credentials: false
|
|
23
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
24
|
+
with:
|
|
25
|
+
python-version: "3.12"
|
|
26
|
+
- run: uv sync --locked
|
|
27
|
+
- name: Audit the locked runtime dependencies
|
|
28
|
+
run: |
|
|
29
|
+
uv export --locked --no-dev --no-emit-project --format requirements-txt -o "$RUNNER_TEMP/requirements.txt"
|
|
30
|
+
uv run pip-audit --requirement "$RUNNER_TEMP/requirements.txt" --no-deps --disable-pip
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: ci-${{ github.workflow }}-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
check:
|
|
17
|
+
name: check (${{ matrix.os }}, py${{ matrix.python }})
|
|
18
|
+
runs-on: ${{ matrix.os }}
|
|
19
|
+
timeout-minutes: 20
|
|
20
|
+
strategy:
|
|
21
|
+
fail-fast: false
|
|
22
|
+
matrix:
|
|
23
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
24
|
+
python: ["3.11", "3.12", "3.13", "3.14"]
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
27
|
+
with:
|
|
28
|
+
persist-credentials: false
|
|
29
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
30
|
+
with:
|
|
31
|
+
python-version: ${{ matrix.python }}
|
|
32
|
+
- run: uv sync --locked
|
|
33
|
+
- run: uv run ruff format --check .
|
|
34
|
+
- run: uv run ruff check .
|
|
35
|
+
- run: uv run mypy --strict src
|
|
36
|
+
- run: uv run lint-imports
|
|
37
|
+
- run: uv run pytest --cov
|
|
38
|
+
# No term list here: this reports not_run. The private-terms job does the real check.
|
|
39
|
+
- run: uv run python scripts/check_private_terms.py
|
|
40
|
+
|
|
41
|
+
# Pull requests never receive the term list, so the real scan cannot run here. It runs only on
|
|
42
|
+
# pushes to main (private-terms.yml). This job exists to say so out loud. It is NOT a pass and
|
|
43
|
+
# must never be made a required check; the real check must not be required on PRs either.
|
|
44
|
+
private-terms-not-run:
|
|
45
|
+
name: private terms - not_run on pull requests
|
|
46
|
+
if: github.event_name == 'pull_request'
|
|
47
|
+
runs-on: ubuntu-latest
|
|
48
|
+
timeout-minutes: 5
|
|
49
|
+
steps:
|
|
50
|
+
- run: |
|
|
51
|
+
echo "private-terms: not_run (pull requests cannot read the term list; this is NOT a pass)"
|
|
52
|
+
echo "### private terms: not_run" >> "$GITHUB_STEP_SUMMARY"
|
|
53
|
+
echo "The scan for private terms did not run here. It runs on pushes to main; a maintainer runs make prepush before pushing." >> "$GITHUB_STEP_SUMMARY"
|
|
54
|
+
|
|
55
|
+
gitleaks:
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
timeout-minutes: 15
|
|
58
|
+
steps:
|
|
59
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
60
|
+
with:
|
|
61
|
+
fetch-depth: 0
|
|
62
|
+
persist-credentials: false
|
|
63
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
64
|
+
with:
|
|
65
|
+
python-version: "3.12"
|
|
66
|
+
- name: Name the checked-out commit as a branch (the scan accepts only branches and tags)
|
|
67
|
+
run: git branch ci-scan HEAD
|
|
68
|
+
- name: Scan every file version, commit and tag reachable from it (gitleaks, pinned)
|
|
69
|
+
env:
|
|
70
|
+
REFS: refs/heads/ci-scan
|
|
71
|
+
run: uv run --no-project python scripts/prepush.py --gitleaks-only
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: private-terms
|
|
2
|
+
|
|
3
|
+
# Runs only on pushes to main, where the secret is available. Pull requests never get the secret
|
|
4
|
+
# (see ci.yml, job private-terms-not-run). Do not make this a required check on pull requests.
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
private-terms-main:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
timeout-minutes: 15
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
persist-credentials: false
|
|
21
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
22
|
+
with:
|
|
23
|
+
python-version: "3.12"
|
|
24
|
+
- name: Name the checked-out commit as a branch (the scan accepts only branches and tags)
|
|
25
|
+
run: git branch ci-scan HEAD
|
|
26
|
+
- name: Scan the working tree, full history and commit metadata
|
|
27
|
+
env:
|
|
28
|
+
AUTOBOT_FLOW_PRIVATE_TERMS: ${{ secrets.AUTOBOT_FLOW_PRIVATE_TERMS }}
|
|
29
|
+
run: |
|
|
30
|
+
if [ -z "$AUTOBOT_FLOW_PRIVATE_TERMS" ]; then
|
|
31
|
+
echo "::error::AUTOBOT_FLOW_PRIVATE_TERMS is not set; the private-term check cannot run"
|
|
32
|
+
exit 1
|
|
33
|
+
fi
|
|
34
|
+
uv run --no-project python scripts/check_private_terms.py --require-terms --history --commit-messages --ref refs/heads/ci-scan
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
# Pushing a version tag, such as v0.1.0, tests and builds the package, publishes a GitHub
|
|
4
|
+
# release, then uploads to PyPI with trusted publishing (the `pypi` environment).
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
tags: ["v*"]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
release:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
timeout-minutes: 20
|
|
16
|
+
permissions:
|
|
17
|
+
contents: write
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
20
|
+
with:
|
|
21
|
+
persist-credentials: false
|
|
22
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
23
|
+
with:
|
|
24
|
+
python-version: "3.12"
|
|
25
|
+
- name: Check that the tag matches the package version
|
|
26
|
+
run: test "$GITHUB_REF_NAME" = "v$(uv run python -c 'import autobot_flow; print(autobot_flow.__version__)')"
|
|
27
|
+
- name: Test
|
|
28
|
+
run: uv run pytest tests/unit/mvp tests/unit/adapters tests/unit/spec -q
|
|
29
|
+
- name: Build
|
|
30
|
+
run: uv build
|
|
31
|
+
- name: Install the wheel in a clean environment and simulate the example
|
|
32
|
+
run: bash scripts/smoke_wheel.sh dist
|
|
33
|
+
- name: Publish the release
|
|
34
|
+
env:
|
|
35
|
+
GH_TOKEN: ${{ github.token }}
|
|
36
|
+
run: |
|
|
37
|
+
(cd dist && sha256sum autobot_flow-* > SHA256SUMS)
|
|
38
|
+
notes="$(sed -n "/^## ${GITHUB_REF_NAME#v} /,/^## /p" CHANGELOG.md | sed '1d;/^## /d')"
|
|
39
|
+
gh release create "$GITHUB_REF_NAME" dist/autobot_flow-* dist/SHA256SUMS \
|
|
40
|
+
--verify-tag --title "autobot-flow $GITHUB_REF_NAME" --notes "$notes"
|
|
41
|
+
|
|
42
|
+
pypi:
|
|
43
|
+
needs: release
|
|
44
|
+
runs-on: ubuntu-latest
|
|
45
|
+
timeout-minutes: 15
|
|
46
|
+
environment:
|
|
47
|
+
name: pypi
|
|
48
|
+
url: https://pypi.org/p/autobot-flow
|
|
49
|
+
permissions:
|
|
50
|
+
id-token: write
|
|
51
|
+
steps:
|
|
52
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
53
|
+
with:
|
|
54
|
+
persist-credentials: false
|
|
55
|
+
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
|
|
56
|
+
with:
|
|
57
|
+
python-version: "3.12"
|
|
58
|
+
- name: Check that the tag matches the package version
|
|
59
|
+
run: test "$GITHUB_REF_NAME" = "v$(uv run python -c 'import autobot_flow; print(autobot_flow.__version__)')"
|
|
60
|
+
- name: Build
|
|
61
|
+
run: uv build
|
|
62
|
+
- name: Publish to PyPI with trusted publishing
|
|
63
|
+
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.superpowers/
|
|
2
|
+
|
|
3
|
+
# Python and tooling
|
|
4
|
+
__pycache__/
|
|
5
|
+
*.py[cod]
|
|
6
|
+
.venv*/
|
|
7
|
+
.tools/
|
|
8
|
+
dist/
|
|
9
|
+
build/
|
|
10
|
+
*.egg-info/
|
|
11
|
+
.coverage
|
|
12
|
+
.coverage.*
|
|
13
|
+
coverage.xml
|
|
14
|
+
htmlcov/
|
|
15
|
+
.pytest_cache/
|
|
16
|
+
.mypy_cache/
|
|
17
|
+
.ruff_cache/
|
|
18
|
+
|
|
19
|
+
# Local-only
|
|
20
|
+
.env
|
|
21
|
+
.env.*
|
|
22
|
+
.DS_Store
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Reviewed false positives of the pre-push secret scan (scripts/prepush.py).
|
|
2
|
+
# An entry excuses findings only when the full blob ID, the exact rule ID and the exact number of
|
|
3
|
+
# distinct findings in that blob all match; otherwise every finding of that blob and rule blocks.
|
|
4
|
+
# It never applies to commit or tag objects, file or ref names, and never skips scanning a blob.
|
|
5
|
+
# Findings in decoded text (base64, hex and so on) can never be excused. This file is read from the
|
|
6
|
+
# commits being pushed. One finding can hold several secrets: inspect the whole match.
|
|
7
|
+
# No secret values, paths, patterns or wildcards. The owner or controller must review every entry.
|
|
8
|
+
|
|
9
|
+
[[finding]]
|
|
10
|
+
blob = "23ba424edfc693d96a4118d1806306392780dc1e"
|
|
11
|
+
rule = "nuget-config-password"
|
|
12
|
+
count = 1
|
|
13
|
+
reason = "Test code builds a random fake value when it runs; there is no stored secret."
|
|
14
|
+
|
|
15
|
+
[[finding]]
|
|
16
|
+
blob = "2c2ae8041edb8dfc8cce35ec26a05d6ddb08811f"
|
|
17
|
+
rule = "generic-api-key"
|
|
18
|
+
count = 2
|
|
19
|
+
reason = "A made-up test value that checks errors do not reveal input; it is not a real key."
|
|
20
|
+
|
|
21
|
+
[[finding]]
|
|
22
|
+
blob = "467ee3a65ca21b2a18cc3ca178d9abd9cdc1ba45"
|
|
23
|
+
rule = "generic-api-key"
|
|
24
|
+
count = 1
|
|
25
|
+
reason = "A made-up test value that checks errors do not reveal input; it is not a real key."
|
|
26
|
+
|
|
27
|
+
[[finding]]
|
|
28
|
+
blob = "88667176e730d158f8a4c104b6bc83e8ab9dc77c"
|
|
29
|
+
rule = "generic-api-key"
|
|
30
|
+
count = 1
|
|
31
|
+
reason = "A made-up test value that checks errors do not reveal input; it is not a real key."
|
|
32
|
+
|
|
33
|
+
[[finding]]
|
|
34
|
+
blob = "8dc1a5908ca57193b81e4355d1e6d7bbadc65ecb"
|
|
35
|
+
rule = "generic-api-key"
|
|
36
|
+
count = 1
|
|
37
|
+
reason = "A made-up test value that checks errors do not reveal input; it is not a real key."
|
|
38
|
+
|
|
39
|
+
[[finding]]
|
|
40
|
+
blob = "b6fdd71d863282ced9b21009598d04e4afb1b955"
|
|
41
|
+
rule = "generic-api-key"
|
|
42
|
+
count = 1
|
|
43
|
+
reason = "A made-up test value that checks errors do not reveal input; it is not a real key."
|
|
44
|
+
|
|
45
|
+
[[finding]]
|
|
46
|
+
blob = "e181373f2fb73d9c3ee01533645cfaf312b28574"
|
|
47
|
+
rule = "generic-api-key"
|
|
48
|
+
count = 2
|
|
49
|
+
reason = "A made-up test value that checks errors do not reveal input; it is not a real key."
|
|
50
|
+
|
|
51
|
+
[[finding]]
|
|
52
|
+
blob = "ffcfcc1dba11249c5b2dc67ed4f3fda8d3d1d7b1"
|
|
53
|
+
rule = "generic-api-key"
|
|
54
|
+
count = 1
|
|
55
|
+
reason = "A made-up test value that checks errors do not reveal input; it is not a real key."
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# AGENTS.md: shared rules for people and coding agents
|
|
2
|
+
|
|
3
|
+
`CLAUDE.md` imports this file. Keep the rules here, not there.
|
|
4
|
+
|
|
5
|
+
## Project
|
|
6
|
+
|
|
7
|
+
`autobot-flow` (import `autobot_flow`, CLI `autobot-flow`, added later) turns plain-text workflow
|
|
8
|
+
descriptions into safe, tested agent workflows. Core principle: models propose; deterministic code
|
|
9
|
+
validates, authorizes, records and decides. The design is in `docs/superpowers/specs/`; the plan
|
|
10
|
+
is in `docs/superpowers/plans/`. The project is pre-release.
|
|
11
|
+
|
|
12
|
+
## Hard constraints
|
|
13
|
+
|
|
14
|
+
- Python 3.11+, fully typed. `mypy --strict` and `ruff` must pass.
|
|
15
|
+
- Base dependencies are only `pydantic>=2.7,<3`, `PyYAML>=6,<7` and `jsonschema>=4.21,<5`. No
|
|
16
|
+
provider, framework or cloud SDK in the base install, and no telemetry. Test tools go in the
|
|
17
|
+
`dev` dependency group.
|
|
18
|
+
- MIT license, owner Rupak Chakraborty. The repository is public or will be: nothing
|
|
19
|
+
organization-specific may appear in code, docs, fixtures, filenames, commit messages or history.
|
|
20
|
+
The private term list lives outside the repo (`~/.autobot-flow-private/terms.txt` or the
|
|
21
|
+
`AUTOBOT_FLOW_PRIVATE_TERMS_FILE` / `AUTOBOT_FLOW_PRIVATE_TERMS` variables). Never open, print,
|
|
22
|
+
copy or commit it. Tests use made-up terms such as `acme-internal` and never the real list.
|
|
23
|
+
- Write everything from scratch. Do not copy code, prompts, schemas, fixtures or names from other
|
|
24
|
+
systems.
|
|
25
|
+
- Keep the repo-local git identity (a GitHub noreply address). Never add a personal email to a
|
|
26
|
+
file. Contact instructions point to GitHub.
|
|
27
|
+
- No local paths under a user's home folder in public files, except generic `~` paths.
|
|
28
|
+
- Public claims must be true today. Do not describe features that do not exist.
|
|
29
|
+
- Import boundaries (checked by `lint-imports`, including indirect imports): `spec` imports nothing
|
|
30
|
+
else from the project; `kernel` and `authority` import only `spec`; `testing` never imports
|
|
31
|
+
`actions`.
|
|
32
|
+
|
|
33
|
+
## Commands
|
|
34
|
+
|
|
35
|
+
- `make check`: format check, lint, strict types, import rules, tests with at least 95% branch
|
|
36
|
+
coverage, private-term scan.
|
|
37
|
+
- `make prepush [REFS="main refs/tags/v0.1.0"]` (runs `scripts/prepush.py`): runs the real
|
|
38
|
+
gitleaks tests first; needs a clean tree and complete local history; scans the resolved IDs of
|
|
39
|
+
the listed branches/tags for private terms and for secrets under five file names (see CONTRIBUTING.md;
|
|
40
|
+
reviewed false positives live in `.gitleaks-reviewed.toml`, every entry needs owner review).
|
|
41
|
+
Every file must be UTF-8 text. Never put a ref into a shell command line. Push exactly the
|
|
42
|
+
printed IDs: `git push origin <object-id>:<full-destination-ref>`.
|
|
43
|
+
|
|
44
|
+
## Workflow: Elephant-Goldfish cycle
|
|
45
|
+
|
|
46
|
+
1. Write the milestone plan, acceptance checks and failure cases without product code.
|
|
47
|
+
2. A fresh reviewer with no context reads only the document. Fix blockers and major gaps, then use
|
|
48
|
+
a new reviewer until none remain. After three rounds, remaining blockers go to the owner.
|
|
49
|
+
3. Build with tests first. Fan out only independent work with fixed interfaces and separate
|
|
50
|
+
worktrees.
|
|
51
|
+
4. Compare the code with the design and record any approved change.
|
|
52
|
+
5. Run full checks, review the diff independently, fix findings and check again.
|
|
53
|
+
6. Commit small, working changes to `main`, scan, push, and update the progress notes.
|
|
54
|
+
|
|
55
|
+
Commits use Conventional Commits.
|
|
56
|
+
|
|
57
|
+
## Usage limits and agents
|
|
58
|
+
|
|
59
|
+
- Check account usage before each agent batch, during long batches and at milestones.
|
|
60
|
+
- Stop starting new work at 75% of the 5-hour window or 60% of the week. Other work in the main
|
|
61
|
+
session may continue; independent reviews wait, and nothing needing one is marked complete.
|
|
62
|
+
- run at most two development agents at once, with narrow tasks and short summaries. Check memory
|
|
63
|
+
and CPU first.
|
|
64
|
+
- Never use paid extra usage to get past a limit.
|
|
65
|
+
|
|
66
|
+
## Pushing and releasing
|
|
67
|
+
|
|
68
|
+
- Scan before every push: run `make prepush` on a clean tree.
|
|
69
|
+
- Watch CI after every push to the end, and fix failures before starting the next task.
|
|
70
|
+
- Ask the owner before the first public push and before any release (GitHub release or PyPI).
|
|
71
|
+
- Never change repository settings, secrets or tags without the owner's approval.
|
|
72
|
+
|
|
73
|
+
## When unsure
|
|
74
|
+
|
|
75
|
+
Check primary docs or run a small test. If the answer could change user-visible behavior,
|
|
76
|
+
security, cost or public claims and is still unclear, ask the owner. Never invent it.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes are recorded here. The project follows semantic versioning; APIs may change
|
|
4
|
+
before 1.0.
|
|
5
|
+
|
|
6
|
+
## Unreleased
|
|
7
|
+
|
|
8
|
+
## 0.3.0 - 2026-12-01
|
|
9
|
+
|
|
10
|
+
- **Added:** MCP tools (optional extra `autobot-flow[mcp]`). List MCP servers in the config, pin
|
|
11
|
+
their tools with `autobot-flow mcp pin`, and agents use them as `mcp.<server>.<tool>` under the
|
|
12
|
+
same rules, approvals, records and simulation. Tested with a fake connection and a local stdio
|
|
13
|
+
test server built with the official SDK, not with any third-party server.
|
|
14
|
+
- **Note:** the `mcp` extra needs `pydantic>=2.12`, so installing it can raise your pydantic version.
|
|
15
|
+
The base install is unchanged.
|
|
16
|
+
|
|
17
|
+
## 0.2.1 - 2026-12-01
|
|
18
|
+
|
|
19
|
+
- **Fixed:** a `reviewer` model passed only from Python is now used for the AI review. Before, the
|
|
20
|
+
`default` model was used instead.
|
|
21
|
+
- **Docs:** added an interactive website, developer docs, a wiki and a comparison with links to its
|
|
22
|
+
sources.
|
|
23
|
+
|
|
24
|
+
## 0.2.0 - 2026-12-01
|
|
25
|
+
|
|
26
|
+
Two more ways to connect a model.
|
|
27
|
+
|
|
28
|
+
- **Models:** added `perplexity` (the Agent API, `PERPLEXITY_API_KEY`) and `opencode` (the `opencode`
|
|
29
|
+
command, with every tool denied). Both are tested with a fake server or fake command only.
|
|
30
|
+
|
|
31
|
+
## 0.1.0 - 2026-12-01
|
|
32
|
+
|
|
33
|
+
The first working release. Describe a workflow in plain text, then plan, simulate and run it with a
|
|
34
|
+
team of AI agents.
|
|
35
|
+
|
|
36
|
+
- **Planning:** a model turns your goal into agents and steps. It can ask you questions first. The
|
|
37
|
+
plan is checked, and the model gets up to three tries to fix any problems. You can review and edit
|
|
38
|
+
the saved plan.
|
|
39
|
+
- **Simulation:** try a plan without calling models or tool functions. See the order of the steps,
|
|
40
|
+
which tools would be used, and what would need your approval or be blocked.
|
|
41
|
+
- **Runs:** independent steps run in parallel. Progress is saved, so you can resume after a pause or
|
|
42
|
+
failure. Interrupted changes are never repeated automatically.
|
|
43
|
+
- **Your choice of autonomy:** `supervised`, `semi-autonomous`, `fully-autonomous` or your own label,
|
|
44
|
+
with rules for each tool. If no rule matches, you are asked.
|
|
45
|
+
- **Tools:** use Python functions with the `@tool` decorator. They work the same way with every model.
|
|
46
|
+
- **Models:** connect to AI providers, local OpenAI-compatible servers and coding agents. See
|
|
47
|
+
`docs/models.md` for the list and how each one was tested.
|
|
48
|
+
- **AI review** against your own criteria, and limits on time, model calls, tool calls, tokens and cost.
|
|
49
|
+
- A command-line tool, a Python API, and a working example from `autobot-flow init`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@AGENTS.md
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Code of conduct
|
|
2
|
+
|
|
3
|
+
Be respectful and constructive. This applies to issues, pull requests, reviews and any other
|
|
4
|
+
project space.
|
|
5
|
+
|
|
6
|
+
Expected: courteous disagreement, focus on the work, and credit for others' contributions.
|
|
7
|
+
|
|
8
|
+
Not acceptable: harassment, personal attacks, discrimination, publishing others' private
|
|
9
|
+
information, and repeated disruption after a request to stop.
|
|
10
|
+
|
|
11
|
+
Maintainers may edit or remove contributions and may limit participation when these rules are
|
|
12
|
+
broken. To report a problem, contact the maintainer, Rupak Chakraborty, through GitHub. For a
|
|
13
|
+
sensitive report, use a private channel such as a private security advisory, and say it is a
|
|
14
|
+
conduct report rather than a security one.
|