Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

8 changes: 6 additions & 2 deletions .github/workflows/agent-law-provisioner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout hub
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Run public-defaults tests
shell: bash
run: python3 -m unittest discover -s tests -p "test_*.py"

- name: Provision Agent Law
env:
Expand Down Expand Up @@ -73,7 +77,7 @@ jobs:

- name: Upload provisioner report
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: agent-law-provisioner-results
path: agent-law-provisioner-results.json
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/agent-law.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Run public-defaults tests
shell: bash
run: python3 -m unittest discover -s tests -p "test_*.py"

- name: Verify Empower Orchestrator law
shell: bash
Expand Down
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Local environment and secret material
.env
.env.*
*.pem
*.key

# OS noise
.DS_Store
Thumbs.db

# Python local cache
__pycache__/
*.py[cod]
39 changes: 39 additions & 0 deletions tests/test_public_defaults.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
from __future__ import annotations

import py_compile
import unittest
from pathlib import Path


ROOT = Path(__file__).resolve().parents[1]


class PublicDefaultsTests(unittest.TestCase):
def test_required_public_docs_exist(self) -> None:
required = [
"README.md",
"CONTRIBUTING.md",
"LICENSE",
"AGENTS.md",
"CLAUDE.md",
"docs/agent-law/empower-orchestrator.md",
"profile/README.md",
]
for path in required:
with self.subTest(path=path):
self.assertTrue((ROOT / path).is_file(), path)

def test_agent_law_markers_are_present(self) -> None:
for path in ["AGENTS.md", "CLAUDE.md", ".github/pull_request_template.md"]:
with self.subTest(path=path):
text = (ROOT / path).read_text(encoding="utf-8")
self.assertIn("EMPOWER_ORCHESTRATOR:START", text)
self.assertIn("EMPOWER_ORCHESTRATOR:END", text)

def test_provisioner_script_compiles(self) -> None:
py_compile.compile(str(ROOT / "scripts/provision-agent-law.py"), doraise=True)


if __name__ == "__main__":
unittest.main()

Loading