diff --git a/.agents/README.md b/.agents/README.md index 07375f2c..cb798608 100644 --- a/.agents/README.md +++ b/.agents/README.md @@ -5,10 +5,10 @@ This directory is this repository's contract with the [Shaka](https://github.com | Path | What it is | | --- | --- | -| `agent-workflow.yml` | The typed contract for Shaka-specific workflow policy. Shaka reads it from the trusted default branch, so a pull request cannot grant itself authority by editing its own copy. Live GitHub settings remain authoritative. | -| `bin/` | Standard wrappers for this repository's setup, validation, and tests. Their fixed names form the portable command interface; they run from the checkout under review, so a pull request that edits one changes what validation executes. | +| `shaka/config.yml` | The typed contract for Shaka-specific workflow policy. Shaka reads it from the trusted default branch, so a pull request cannot grant itself authority by editing its own copy. Live GitHub settings remain authoritative. | +| `shaka/bin/` | Standard wrappers for this repository's setup, validation, and tests. Their fixed names form the portable command interface; they run from the checkout under review, so a pull request that edits one changes what validation executes. | -Edit `agent-workflow.yml` by hand, then validate it with `shaka seam check --root . --local`. +Edit `shaka/config.yml` by hand, then validate it with `shaka seam check --root . --local`. Validation is strict: unknown keys, unsafe paths, and missing or non-executable scripts fail rather than being ignored. Keep human-only constraints in `AGENTS.md`; this directory holds only typed policy. diff --git a/.agents/bin/README.md b/.agents/bin/README.md index 13350319..6b75e32a 100644 --- a/.agents/bin/README.md +++ b/.agents/bin/README.md @@ -9,11 +9,11 @@ is absent means that capability is n/a in this repository. | --- | --- | --- | | `setup` | Install dependencies | `bin/conductor-exec bin/setup --skip-server` | | `validate` | Full CI-equivalent validation | `bin/conductor-exec bin/ci` | -| `test` | Full-suite compatibility entry point during seam adoption | delegates to `.agents/bin/validate` | +| `test` | Full-suite compatibility entry point during seam adoption | delegates to `validate` | | `validate-local` | Fast pre-review validation | `bin/conductor-exec bin/rubocop` | | `lint` | Lint / format | `bin/conductor-exec yarn lint:eslint` | | `build` | Build / type-check | generate React on Rails packs, build ReScript, then `bin/conductor-exec yarn build:test` | | `docs` | Docs checks | n/a | | `ci-detect` | CI change detector | n/a | -Non-command policy lives in [`../agent-workflow.yml`](../agent-workflow.yml). +Non-command policy lives in [`../shaka/config.yml`](../shaka/config.yml). diff --git a/.agents/bin/setup b/.agents/bin/setup deleted file mode 100755 index b6b5ffa2..00000000 --- a/.agents/bin/setup +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash -# Generated by shakacode/agent-workflows agent-workflow-seam-doctor --init. -set -euo pipefail -cd "$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)" -exec bin/conductor-exec bin/setup --skip-server "$@" diff --git a/.agents/bin/test b/.agents/bin/test deleted file mode 100755 index a963f30c..00000000 --- a/.agents/bin/test +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash -# Generated by shakacode/agent-workflows agent-workflow-seam-doctor --init. -set -euo pipefail -cd "$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)" -exec .agents/bin/validate "$@" diff --git a/.agents/bin/validate-local b/.agents/bin/validate-local deleted file mode 100755 index 86da4e09..00000000 --- a/.agents/bin/validate-local +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash -# Generated by shakacode/agent-workflows agent-workflow-seam-doctor --init. -set -euo pipefail -cd "$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)" -exec bin/conductor-exec bin/rubocop "$@" diff --git a/.agents/shaka/bin/setup b/.agents/shaka/bin/setup new file mode 100755 index 00000000..0c2e4424 --- /dev/null +++ b/.agents/shaka/bin/setup @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +# Generated by shakacode/agent-workflows agent-workflow-seam-doctor --init. +set -euo pipefail +root=$(env -u GIT_DIR -u GIT_WORK_TREE -u GIT_COMMON_DIR -u GIT_PREFIX -u GIT_CEILING_DIRECTORIES git -C "$(dirname -- "$0")" rev-parse --show-toplevel) || exit $? +cd "$root" +exec bin/conductor-exec bin/setup --skip-server "$@" diff --git a/.agents/shaka/bin/test b/.agents/shaka/bin/test new file mode 100755 index 00000000..e68a9af4 --- /dev/null +++ b/.agents/shaka/bin/test @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +# Generated by shakacode/agent-workflows agent-workflow-seam-doctor --init. +set -euo pipefail +root=$(env -u GIT_DIR -u GIT_WORK_TREE -u GIT_COMMON_DIR -u GIT_PREFIX -u GIT_CEILING_DIRECTORIES git -C "$(dirname -- "$0")" rev-parse --show-toplevel) || exit $? +cd "$root" +exec .agents/shaka/bin/validate "$@" diff --git a/.agents/bin/validate b/.agents/shaka/bin/validate similarity index 90% rename from .agents/bin/validate rename to .agents/shaka/bin/validate index 01400c46..422a7c1c 100755 --- a/.agents/bin/validate +++ b/.agents/shaka/bin/validate @@ -1,7 +1,8 @@ #!/usr/bin/env bash # Generated by shakacode/agent-workflows agent-workflow-seam-doctor --init. set -euo pipefail -cd "$(CDPATH= cd -- "$(dirname -- "$0")/../.." && pwd)" +root=$(env -u GIT_DIR -u GIT_WORK_TREE -u GIT_COMMON_DIR -u GIT_PREFIX -u GIT_CEILING_DIRECTORIES git -C "$(dirname -- "$0")" rev-parse --show-toplevel) || exit $? +cd "$root" renderer_port="${RENDERER_PORT:-3800}" renderer_host="${RENDERER_HOST:-localhost}" diff --git a/.agents/shaka/bin/validate-local b/.agents/shaka/bin/validate-local new file mode 100755 index 00000000..982d4117 --- /dev/null +++ b/.agents/shaka/bin/validate-local @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +# Generated by shakacode/agent-workflows agent-workflow-seam-doctor --init. +set -euo pipefail +root=$(env -u GIT_DIR -u GIT_WORK_TREE -u GIT_COMMON_DIR -u GIT_PREFIX -u GIT_CEILING_DIRECTORIES git -C "$(dirname -- "$0")" rev-parse --show-toplevel) || exit $? +cd "$root" +exec bin/conductor-exec bin/rubocop "$@" diff --git a/.agents/agent-workflow.yml b/.agents/shaka/config.yml similarity index 100% rename from .agents/agent-workflow.yml rename to .agents/shaka/config.yml diff --git a/.agents/trusted-github-actors.yml b/.agents/shaka/trusted-github-actors.yml similarity index 100% rename from .agents/trusted-github-actors.yml rename to .agents/shaka/trusted-github-actors.yml diff --git a/AGENTS.md b/AGENTS.md index 2ca5601a..f8dfbc22 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -62,5 +62,5 @@ for non-mise users. ## Agent Workflow Configuration Portable shared skills resolve this repo's commands and policy through: -- **Commands** — run `.agents/bin/` (`setup`, `validate`, `test`, ...); see `.agents/bin/README.md`. A missing script means that capability is n/a here. -- **Policy / config** — `.agents/agent-workflow.yml`. +- **Commands** — run `.agents/shaka/bin/` (`setup`, `validate`, `test`, ...); see `.agents/bin/README.md`. A missing script means that capability is n/a here. +- **Policy / config** — `.agents/shaka/config.yml`.