oacp-cli 0.1.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.
Files changed (85) hide show
  1. oacp_cli-0.1.0/.github/workflows/ci.yml +39 -0
  2. oacp_cli-0.1.0/.github/workflows/release.yml +136 -0
  3. oacp_cli-0.1.0/.gitignore +11 -0
  4. oacp_cli-0.1.0/CONTRIBUTING.md +85 -0
  5. oacp_cli-0.1.0/LICENSE +191 -0
  6. oacp_cli-0.1.0/Makefile +65 -0
  7. oacp_cli-0.1.0/PKG-INFO +220 -0
  8. oacp_cli-0.1.0/QUICKSTART.md +169 -0
  9. oacp_cli-0.1.0/README.md +194 -0
  10. oacp_cli-0.1.0/SECURITY.md +34 -0
  11. oacp_cli-0.1.0/SPEC.md +539 -0
  12. oacp_cli-0.1.0/docs/guides/adoption.md +27 -0
  13. oacp_cli-0.1.0/docs/guides/prompt_caching.md +148 -0
  14. oacp_cli-0.1.0/docs/guides/runtime_capability_matrix.md +128 -0
  15. oacp_cli-0.1.0/docs/guides/setup.md +87 -0
  16. oacp_cli-0.1.0/docs/guides/unified_skill_spec.md +200 -0
  17. oacp_cli-0.1.0/docs/guides/versioning.md +34 -0
  18. oacp_cli-0.1.0/docs/protocol/agent_safety_defaults.md +48 -0
  19. oacp_cli-0.1.0/docs/protocol/credential_scoping.md +141 -0
  20. oacp_cli-0.1.0/docs/protocol/cross_runtime_sync.md +110 -0
  21. oacp_cli-0.1.0/docs/protocol/dispatch_states.yaml +333 -0
  22. oacp_cli-0.1.0/docs/protocol/inbox_outbox.md +343 -0
  23. oacp_cli-0.1.0/docs/protocol/mcp_integration.md +167 -0
  24. oacp_cli-0.1.0/docs/protocol/multi_agent_shared_workspace.md +125 -0
  25. oacp_cli-0.1.0/docs/protocol/packet_states.yaml +133 -0
  26. oacp_cli-0.1.0/docs/protocol/review_loop.md +461 -0
  27. oacp_cli-0.1.0/docs/protocol/runtime_capabilities.md +277 -0
  28. oacp_cli-0.1.0/docs/protocol/session_init.md +202 -0
  29. oacp_cli-0.1.0/docs/protocol/skills_manifest.yaml +90 -0
  30. oacp_cli-0.1.0/docs/protocol/task_negotiation.md +243 -0
  31. oacp_cli-0.1.0/mcp_servers/oacp_coordinator.py +785 -0
  32. oacp_cli-0.1.0/oacp/__init__.py +18 -0
  33. oacp_cli-0.1.0/oacp/cli.py +106 -0
  34. oacp_cli-0.1.0/pyproject.toml +66 -0
  35. oacp_cli-0.1.0/scripts/_oacp_env.py +36 -0
  36. oacp_cli-0.1.0/scripts/check_quality_gate.py +222 -0
  37. oacp_cli-0.1.0/scripts/codex_session_init.py +399 -0
  38. oacp_cli-0.1.0/scripts/create_handoff_packet.py +182 -0
  39. oacp_cli-0.1.0/scripts/handoff_schema.py +165 -0
  40. oacp_cli-0.1.0/scripts/init_packet.sh +82 -0
  41. oacp_cli-0.1.0/scripts/init_project_workspace.py +236 -0
  42. oacp_cli-0.1.0/scripts/init_project_workspace.sh +7 -0
  43. oacp_cli-0.1.0/scripts/normalize_findings.py +635 -0
  44. oacp_cli-0.1.0/scripts/oacp_doctor.py +724 -0
  45. oacp_cli-0.1.0/scripts/preflight.py +455 -0
  46. oacp_cli-0.1.0/scripts/send_inbox_message.py +685 -0
  47. oacp_cli-0.1.0/scripts/session_lifecycle_hooks.py +632 -0
  48. oacp_cli-0.1.0/scripts/update_workspace.sh +328 -0
  49. oacp_cli-0.1.0/scripts/validate_agent_card.py +466 -0
  50. oacp_cli-0.1.0/scripts/validate_message.py +363 -0
  51. oacp_cli-0.1.0/templates/agent_card.template.yaml +67 -0
  52. oacp_cli-0.1.0/templates/agent_status.template.yaml +21 -0
  53. oacp_cli-0.1.0/templates/checkpoint.template.md +24 -0
  54. oacp_cli-0.1.0/templates/claude/agents/role_agent.template.md +39 -0
  55. oacp_cli-0.1.0/templates/claude/rules/guardrail.template.md +26 -0
  56. oacp_cli-0.1.0/templates/findings_packet.template.yaml +41 -0
  57. oacp_cli-0.1.0/templates/github_actions_quality_gate.yaml +219 -0
  58. oacp_cli-0.1.0/templates/guardrails/coding_standards.template.md +91 -0
  59. oacp_cli-0.1.0/templates/guardrails/safe_commands.template.md +51 -0
  60. oacp_cli-0.1.0/templates/guardrails/secrets_rules.template.md +71 -0
  61. oacp_cli-0.1.0/templates/handoff_packet.template.yaml +27 -0
  62. oacp_cli-0.1.0/templates/inbox_message.template.yaml +16 -0
  63. oacp_cli-0.1.0/templates/manual_validation.template.md +38 -0
  64. oacp_cli-0.1.0/templates/merge_decision.template.md +32 -0
  65. oacp_cli-0.1.0/templates/review_packet.template.md +44 -0
  66. oacp_cli-0.1.0/templates/roles/role_baseline.template.md +38 -0
  67. oacp_cli-0.1.0/templates/roles/role_definition.template.yaml +39 -0
  68. oacp_cli-0.1.0/templates/skills_manifest.template.yaml +35 -0
  69. oacp_cli-0.1.0/templates/test_packet.template.md +41 -0
  70. oacp_cli-0.1.0/tests/test_codex_session_init.py +301 -0
  71. oacp_cli-0.1.0/tests/test_create_handoff_packet.py +155 -0
  72. oacp_cli-0.1.0/tests/test_github_workflows.py +78 -0
  73. oacp_cli-0.1.0/tests/test_handoff_schema.py +98 -0
  74. oacp_cli-0.1.0/tests/test_init_project_workspace.py +64 -0
  75. oacp_cli-0.1.0/tests/test_oacp_cli.py +78 -0
  76. oacp_cli-0.1.0/tests/test_oacp_coordinator.py +243 -0
  77. oacp_cli-0.1.0/tests/test_oacp_doctor.py +423 -0
  78. oacp_cli-0.1.0/tests/test_preflight.py +214 -0
  79. oacp_cli-0.1.0/tests/test_review_loop.py +221 -0
  80. oacp_cli-0.1.0/tests/test_send_inbox_message.py +941 -0
  81. oacp_cli-0.1.0/tests/test_session_lifecycle_hooks.py +360 -0
  82. oacp_cli-0.1.0/tests/test_update_workspace.py +284 -0
  83. oacp_cli-0.1.0/tests/test_validate_agent_card.py +370 -0
  84. oacp_cli-0.1.0/tests/test_validate_message.py +125 -0
  85. oacp_cli-0.1.0/tests/test_workspace_discovery.py +286 -0
@@ -0,0 +1,39 @@
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ preflight:
13
+ runs-on: ubuntu-latest
14
+
15
+ steps:
16
+ - name: Check out repository
17
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
18
+
19
+ - name: Set up Python
20
+ uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
21
+ with:
22
+ python-version: "3.12"
23
+ cache: pip
24
+
25
+ - name: Install shellcheck
26
+ run: |
27
+ sudo apt-get update
28
+ sudo apt-get install --yes shellcheck
29
+
30
+ - name: Install Python dependencies
31
+ run: |
32
+ python -m pip install --upgrade pip
33
+ python -m pip install -e . build pytest ruff
34
+
35
+ - name: Run quality gate
36
+ run: make preflight ARGS="--full"
37
+
38
+ - name: Build wheel and sdist
39
+ run: python -m build
@@ -0,0 +1,136 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v[0-9]*"
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ contents: read
16
+
17
+ steps:
18
+ - name: Check out repository
19
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
20
+
21
+ - name: Set up Python
22
+ uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
23
+ with:
24
+ python-version: "3.12"
25
+ cache: pip
26
+
27
+ - name: Install shellcheck
28
+ run: |
29
+ sudo apt-get update
30
+ sudo apt-get install --yes shellcheck
31
+
32
+ - name: Install Python dependencies
33
+ run: |
34
+ python -m pip install --upgrade pip
35
+ python -m pip install -e . build pytest ruff
36
+
37
+ - name: Run quality gate
38
+ run: make preflight ARGS="--full"
39
+
40
+ - name: Build wheel and sdist
41
+ run: python -m build
42
+
43
+ # upload-artifact is still on v6; download-artifact moved to v7 for Node 24.
44
+ - name: Upload release artifacts
45
+ uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
46
+ with:
47
+ name: python-package-distributions
48
+ path: dist/
49
+ if-no-files-found: error
50
+
51
+ publish-pypi:
52
+ needs: build
53
+ runs-on: ubuntu-latest
54
+ environment:
55
+ name: pypi
56
+ url: https://pypi.org/p/oacp-cli
57
+ permissions:
58
+ id-token: write
59
+
60
+ steps:
61
+ - name: Download release artifacts
62
+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
63
+ with:
64
+ name: python-package-distributions
65
+ path: dist/
66
+
67
+ - name: Check whether version already exists on PyPI
68
+ id: check-pypi-version
69
+ env:
70
+ # Keep this in sync with [project.name] in pyproject.toml.
71
+ PACKAGE_NAME: oacp-cli
72
+ PACKAGE_VERSION: ${{ github.ref_name }}
73
+ run: |
74
+ python - <<'PY'
75
+ import json
76
+ import os
77
+ import urllib.error
78
+ import urllib.request
79
+
80
+ package = os.environ["PACKAGE_NAME"]
81
+ version = os.environ["PACKAGE_VERSION"].removeprefix("v")
82
+ url = f"https://pypi.org/pypi/{package}/json"
83
+
84
+ try:
85
+ with urllib.request.urlopen(url, timeout=30) as response:
86
+ releases = json.load(response).get("releases", {})
87
+ except urllib.error.HTTPError as exc:
88
+ if exc.code == 404:
89
+ releases = {}
90
+ else:
91
+ raise
92
+
93
+ version_exists = version in releases
94
+ with open(os.environ["GITHUB_OUTPUT"], "a", encoding="utf-8") as fh:
95
+ fh.write(f"version_exists={'true' if version_exists else 'false'}\n")
96
+
97
+ if version_exists:
98
+ print(f"PyPI already has {package} {version}; skipping publish.")
99
+ else:
100
+ print(f"PyPI does not have {package} {version}; proceeding with publish.")
101
+ PY
102
+
103
+ - name: Publish to PyPI
104
+ if: steps.check-pypi-version.outputs.version_exists != 'true'
105
+ uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
106
+
107
+ - name: Skip duplicate PyPI publish
108
+ if: steps.check-pypi-version.outputs.version_exists == 'true'
109
+ run: echo "PyPI already has ${GITHUB_REF_NAME#v}; skipping upload."
110
+
111
+ github-release:
112
+ needs: build
113
+ runs-on: ubuntu-latest
114
+ permissions:
115
+ contents: write
116
+
117
+ steps:
118
+ - name: Check out repository
119
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
120
+
121
+ # download-artifact v7 is the current Node 24-compatible major.
122
+ - name: Download release artifacts
123
+ uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
124
+ with:
125
+ name: python-package-distributions
126
+ path: dist/
127
+
128
+ - name: Create or update GitHub Release
129
+ env:
130
+ GH_TOKEN: ${{ github.token }}
131
+ run: |
132
+ if gh release view "${GITHUB_REF_NAME}" >/dev/null 2>&1; then
133
+ gh release upload "${GITHUB_REF_NAME}" dist/* --clobber
134
+ else
135
+ gh release create "${GITHUB_REF_NAME}" dist/* --generate-notes --verify-tag
136
+ fi
@@ -0,0 +1,11 @@
1
+ .oacp
2
+ .agent-hub
3
+ .agents/
4
+ AGENTS.md
5
+ CLAUDE.md
6
+ GEMINI.md
7
+ .worktrees/
8
+ __pycache__/
9
+ *.pyc
10
+ build/
11
+ dist/
@@ -0,0 +1,85 @@
1
+ # Contributing to OACP
2
+
3
+ Thank you for your interest in contributing to the Open Agent Coordination Protocol!
4
+
5
+ Please read and follow our [Code of Conduct](https://github.com/kiloloop/.github/blob/main/CODE_OF_CONDUCT.md).
6
+
7
+ ## How to Contribute
8
+
9
+ ### Reporting Issues
10
+
11
+ - Use [GitHub Issues](https://github.com/kiloloop/oacp/issues) to report bugs or request features.
12
+ - Search existing issues before creating a new one.
13
+ - Include steps to reproduce for bug reports.
14
+
15
+ ### Pull Requests
16
+
17
+ 1. Fork the repository and create a feature branch from `main`.
18
+ 2. Make your changes with clear, focused commits.
19
+ 3. Run quality checks before submitting:
20
+ ```bash
21
+ make preflight
22
+ make test
23
+ ```
24
+ 4. Open a PR against `main` with a clear description of what and why.
25
+ 5. PRs require one approval before merging.
26
+
27
+ ### What We're Looking For
28
+
29
+ - **Protocol improvements** — better message schemas, new state transitions, clearer specs
30
+ - **New templates** — packet or guardrail templates for common patterns
31
+ - **Script enhancements** — bug fixes, new validation rules, better error messages
32
+ - **Documentation** — typo fixes, clearer explanations, new guides
33
+ - **Test coverage** — additional tests for scripts and validators
34
+
35
+ ## Development Setup
36
+
37
+ ```bash
38
+ # Clone
39
+ git clone https://github.com/kiloloop/oacp.git
40
+ cd oacp
41
+
42
+ # Install dependencies
43
+ pip install pyyaml pytest
44
+
45
+ # Verify setup
46
+ make preflight
47
+ make test
48
+ ```
49
+
50
+ ### Running Tests
51
+
52
+ ```bash
53
+ # Full test suite
54
+ make test
55
+
56
+ # Quality checks (what CI runs)
57
+ make preflight
58
+
59
+ # Extended checks including tests
60
+ make preflight ARGS="--full"
61
+ ```
62
+
63
+ ## Code Style
64
+
65
+ - **Python**: Follow PEP 8. We use `ruff` for linting (run via `make preflight`).
66
+ - **Shell**: Bash 3.2 compatible (macOS default). No bash 4+ features (`mapfile`, associative arrays). We use `shellcheck` for linting.
67
+ - **YAML**: 2-space indentation. Follow existing message and template schemas.
68
+ - **Markdown**: ATX headings (`#`), one sentence per line in prose sections.
69
+
70
+ ## Conventions
71
+
72
+ - Templates use `# CUSTOMIZE:` markers for user-editable points.
73
+ - Packet naming follows `<YYYYMMDD>_<topic>_<owner>_r<round>`.
74
+ - Scripts use `python3` and avoid external dependencies beyond the standard library (exception: `pyyaml`).
75
+ - Shell scripts use POSIX-compatible constructs where possible; bash-specific features require bash 3.2+.
76
+
77
+ ## Commit Messages
78
+
79
+ - Use imperative mood: "Add feature" not "Added feature"
80
+ - Keep the first line under 72 characters
81
+ - Reference issue numbers where applicable: "Fix message validation (#42)"
82
+
83
+ ## License
84
+
85
+ By contributing, you agree that your contributions will be licensed under the [Apache 2.0 License](LICENSE).
oacp_cli-0.1.0/LICENSE ADDED
@@ -0,0 +1,191 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to the Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by the Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding any notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ Copyright 2026 Kiloloop
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
@@ -0,0 +1,65 @@
1
+ # OACP — task runner
2
+ # Usage: make <target> [PROJECT=<name>] [ARGS="--flag ..."]
3
+
4
+ SCRIPTS_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))scripts
5
+ PROJECT ?=
6
+ ARGS ?=
7
+
8
+ .DEFAULT_GOAL := help
9
+
10
+ # ── Internal helpers ─────────────────────────────────────────────────────
11
+
12
+ _require-project:
13
+ ifndef PROJECT
14
+ $(error PROJECT is required. Usage: make <target> PROJECT=<name>)
15
+ endif
16
+
17
+ # ── Targets ──────────────────────────────────────────────────────────────
18
+
19
+ .PHONY: help init update test validate validate-msg validate-card send quality packet handoff normalize preflight doctor
20
+
21
+ help: ## Show available targets (default)
22
+ @echo "OACP — task runner"
23
+ @echo ""
24
+ @echo "Usage: make <target> [PROJECT=<name>] [ARGS=\"...\"]"
25
+ @echo ""
26
+ @grep -E '^[a-z][-a-z]+:.*## ' $(MAKEFILE_LIST) | \
27
+ awk -F ':.*## ' '{ printf " %-14s %s\n", $$1, $$2 }'
28
+
29
+ init: _require-project ## Create a new project workspace
30
+ bash $(SCRIPTS_DIR)/init_project_workspace.sh $(PROJECT) $(ARGS)
31
+
32
+ update: _require-project ## Sync existing workspace with latest structure
33
+ bash $(SCRIPTS_DIR)/update_workspace.sh $(PROJECT) $(ARGS)
34
+
35
+ test: ## Run all tests
36
+ python3 -m pytest $(SCRIPTS_DIR)/../tests -v $(ARGS)
37
+
38
+ validate-msg: ## Validate inbox messages
39
+ python3 $(SCRIPTS_DIR)/validate_message.py $(ARGS)
40
+
41
+ validate-card: ## Validate agent card YAML files
42
+ python3 $(SCRIPTS_DIR)/validate_agent_card.py $(ARGS)
43
+
44
+ validate: validate-msg ## Alias for validate-msg (backward compat)
45
+
46
+ preflight: ## Run unified quality checks (use ARGS="--full" to include tests)
47
+ python3 $(SCRIPTS_DIR)/preflight.py $(ARGS)
48
+
49
+ doctor: ## Check environment and workspace health
50
+ python3 $(SCRIPTS_DIR)/oacp_doctor.py $(ARGS)
51
+
52
+ send: _require-project ## Send an inbox message
53
+ python3 $(SCRIPTS_DIR)/send_inbox_message.py $(PROJECT) $(ARGS)
54
+
55
+ quality: ## Run quality gate check
56
+ python3 $(SCRIPTS_DIR)/check_quality_gate.py $(ARGS)
57
+
58
+ packet: _require-project ## Create a review/findings/merge packet
59
+ bash $(SCRIPTS_DIR)/init_packet.sh $(PROJECT) $(ARGS)
60
+
61
+ handoff: _require-project ## Create a structured handoff packet
62
+ python3 $(SCRIPTS_DIR)/create_handoff_packet.py $(PROJECT) $(ARGS)
63
+
64
+ normalize: ## Normalize raw findings into canonical YAML
65
+ python3 $(SCRIPTS_DIR)/normalize_findings.py $(ARGS)