Skip to content

Commit 118347b

Browse files
committed
Merge PR #7 and adapt Windows support to current orchestration
Integrate av-frox's Windows/MSYS fixes for LF config output, UTF-8, steer imports, PID probes, and process launch and cancellation. Preserve nonblocking group observation and extend portable locking to Codex session leases without following lock-file reparse points. Resolve supported launcher interpreters explicitly, reject unsafe batch arguments, and surface process-tree cleanup failures. Detach the supervisor itself on Windows as well as its backend. Add Linux/macOS/Windows CI and offline platform regressions, including cross-process contention and native Codex continuation. Document Windows as experimental and bump the plugin to 9.12.4. Validation: macOS full offline suite 860 passed, 0 failed; orchestration 45/45; platform suite 17 tests, 4 Windows-only skips; actionlint, Python 3.11 syntax, shell syntax, and version metadata checks passed. Native Windows and Linux verification will run in the new GitHub Actions workflow. Fixes #5. Agent: Codex
2 parents 76e9586 + 6b38614 commit 118347b

22 files changed

Lines changed: 805 additions & 69 deletions

‎.claude-plugin/marketplace.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
},
88
"metadata": {
99
"description": "Practices, protocols, and skills for AI-driven software development — for any agent that supports the Agent Skills standard (Claude Code, Codex CLI, OpenCode, Cursor, Gemini CLI, Antigravity, and more).",
10-
"version": "9.12.3"
10+
"version": "9.12.4"
1111
},
1212
"plugins": [
1313
{
1414
"name": "ai-driven-development",
1515
"description": "An umbrella collection of 24 skills + 1 hook for AI-driven development: agent self-configuration (MCP / hooks / settings / skills / plugins / cross-agent repository readiness / safe CLI installation), engineering practices (maintainable complexity, prompt engineering, FPF problem solving, bug-fix protocol, planning gate, repository-history investigation, repository activity summary, C# refactoring), AI infrastructure (OpenRouter endpoint ranking and routing), research & docs (Semantic Scholar deep research, URL-to-Markdown, ubiquitous-language thesaurus), multi-agent orchestration (consilium: review and stateful delegation), macOS & Windows health & cleanup, and niche utilities (clipboard, Windows QA). Plus a Claude Code Bash safety hook.",
16-
"version": "9.12.3",
16+
"version": "9.12.4",
1717
"author": {
1818
"name": "CodeAlive-AI",
1919
"email": "contact@codealive.ai"

‎.claude-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ai-driven-development",
33
"description": "An umbrella collection of 24 skills + 1 hook for AI-driven development: agent self-configuration (MCP / hooks / settings / skills / plugins / cross-agent repository readiness / safe CLI installation), engineering practices (maintainable complexity, prompt engineering, FPF problem solving, bug-fix protocol, planning gate, repository-history investigation, repository activity summary, C# refactoring), AI infrastructure (OpenRouter endpoint ranking and routing), research & docs (Semantic Scholar deep research, URL-to-Markdown, ubiquitous-language thesaurus), multi-agent orchestration (consilium: review and stateful delegation), macOS & Windows health & cleanup, and niche utilities (clipboard, Windows QA). Plus a Claude Code Bash safety hook.",
4-
"version": "9.12.3",
4+
"version": "9.12.4",
55
"author": {
66
"name": "CodeAlive-AI",
77
"email": "contact@codealive.ai"
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: agents-consilium
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'skills/agents-consilium/**'
7+
- '.github/workflows/consilium-smoke.yml'
8+
push:
9+
branches: [main]
10+
paths:
11+
- 'skills/agents-consilium/**'
12+
- '.github/workflows/consilium-smoke.yml'
13+
workflow_dispatch:
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
test:
20+
name: test (${{ matrix.os }})
21+
runs-on: ${{ matrix.os }}
22+
timeout-minutes: 15
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
os: [ubuntu-latest, macos-latest, windows-latest]
27+
defaults:
28+
run:
29+
shell: bash
30+
working-directory: skills/agents-consilium
31+
env:
32+
PYTHONDONTWRITEBYTECODE: '1'
33+
PYTHONIOENCODING: utf-8
34+
steps:
35+
- uses: actions/checkout@v4
36+
- uses: actions/setup-python@v5
37+
with:
38+
python-version: '3.11'
39+
40+
- name: Platform regressions with native Python
41+
run: python scripts/tests/platform_test.py -v
42+
43+
- name: Config helpers emit LF-only agent ids
44+
run: |
45+
export CONSILIUM_CONFIG="$PWD/scripts/tests/fixtures/test-config.json"
46+
source scripts/lib/common.sh
47+
source scripts/lib/config.sh
48+
config_validate
49+
ids="$(mktemp)"
50+
trap 'rm -f "$ids"' EXIT
51+
config_enabled_agents > "$ids"
52+
test -s "$ids"
53+
if grep -q $'\r' "$ids"; then
54+
echo 'CR found in config_enabled_agents output'
55+
exit 1
56+
fi
57+
while IFS= read -r agent; do
58+
backend="$(config_get_field "$agent" backend)"
59+
test -n "$backend"
60+
echo "$agent -> $backend"
61+
done < "$ids"
62+
63+
- name: consilium --help
64+
run: bash scripts/consilium --help
65+
66+
# The existing shell harness uses POSIX executable and /tmp semantics.
67+
# Windows is gated by native-Python integration tests above.
68+
- name: Full offline regression suite
69+
if: runner.os != 'Windows'
70+
run: bash scripts/tests/run.sh

‎skills/agents-consilium/README.md‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,28 @@ Each worker runs through its real coding-agent harness, with access to the tools
1717

1818
**Steering support:** long-running delegated agents are not fire-and-forget. You can send new guidance while they work, redirect the next turn, inspect status, watch progress, cancel a run, or detach and collect the result later.
1919

20+
## Platform support
21+
22+
Linux and macOS are covered by the full offline regression suite. Windows 11
23+
with Git Bash/MSYS2 and native Python 3.11+ has experimental, community-supported
24+
compatibility. Run shell commands from Git Bash; native PowerShell/cmd invocation
25+
is not the shell interface.
26+
27+
CI checks Windows imports, LF config output, cross-process locking, bounded
28+
observation, process-tree cancellation, CLI launchers, and a fake Codex durable
29+
session/follow-up through the native supervisor. The full POSIX shell harness
30+
and every real provider CLI are not yet Windows-certified.
31+
32+
Native executables and sh/bash, Python, and Node shebang launchers are supported.
33+
For npm installs, the sibling shell launcher is preferred over a batch shim.
34+
Batch-only launchers reject shell metacharacters in arguments; use an executable
35+
or supported shebang launcher when those arguments are needed. Keep the Windows
36+
registry in the default per-user LocalAppData directory (or an equally private
37+
location): POSIX uid/mode checks do not implement Windows ACL isolation.
38+
39+
Installed plugin updates replace vendored files. Submit fixes upstream; local
40+
edits inside an installation are not a persistent customization mechanism.
41+
2042
## Two ways to use it
2143

2244
| Mode | What it does | Repository access |

‎skills/agents-consilium/SKILL.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ description: "Run external coding agents (Codex, Claude Code, OpenCode, native G
77

88
Resolve the entrypoint below, then use only `"$CONSILIUM"`. Select the mode from the user's intent and load only the linked reference needed for that mode.
99

10+
## Platforms
11+
12+
Linux/macOS use the full offline suite. Windows 11 + Git Bash/MSYS2 + native
13+
Python 3.11+ is experimental and community-supported; native supervisor and
14+
platform regressions run in CI. Use Git Bash for the shell entrypoint and a
15+
private per-user registry. See [README.md](README.md#platform-support) for the
16+
verified scope and launcher limitations.
17+
1018
## Entrypoint resolution
1119

1220
Set `CONSILIUM` to the `consilium` executable in the `scripts` subdirectory of the exact

‎skills/agents-consilium/references/testing.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,17 @@ Opt-in real smoke tests spend tokens:
4040
```bash
4141
CONSILIUM_STEER_SMOKE=1 bash scripts/tests/steer/smoke_real.sh -a grok
4242
```
43+
44+
## Cross-platform checks
45+
46+
Run `python scripts/tests/platform_test.py -v` from the skill directory with
47+
native Python (3.11+). These tests spend no model tokens and cover all steer
48+
imports, non-destructive PID probes, locks shared by two processes, nonblocking
49+
wait deadlines, exclusive session claims/no replay, process-tree cleanup,
50+
terminal-guard shutdown, and native supervisor Codex continuation. Windows also
51+
checks Python/shell/batch launcher argument handling. Symlink rejection is
52+
checked where the OS permits creating symlinks.
53+
54+
GitHub Actions runs these checks on Windows, Linux, and macOS, plus LF-only
55+
config output and CLI help. The full existing shell suite runs on Linux/macOS;
56+
its POSIX path and executable assumptions are not a Windows gate yet.

‎skills/agents-consilium/scripts/lib/common.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# Shared utilities for consilium multi-agent scripts
44
#
55

6+
export PYTHONIOENCODING="${PYTHONIOENCODING:-utf-8}"
7+
68
# Colors for output
79
RED='\033[0;31m'
810
GREEN='\033[0;32m'

‎skills/agents-consilium/scripts/lib/config.sh‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ CONSILIUM_CONFIG="${CONSILIUM_CONFIG:-$SKILL_ROOT/config.json}"
2020
# Internal: read JSON via python3.
2121
# Usage: _cfg_python "script body that reads CONSILIUM_CONFIG"
2222
_cfg_python() {
23-
CONSILIUM_CONFIG_PATH="$CONSILIUM_CONFIG" python3 -c "$1"
23+
CONSILIUM_CONFIG_PATH="$CONSILIUM_CONFIG" python3 -c "
24+
import sys
25+
sys.stdout.reconfigure(newline='\n')
26+
$1"
2427
}
2528

2629
# Validate config file exists and parses as JSON.

‎skills/agents-consilium/scripts/lib/dedup-findings.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ def main() -> int:
101101
sys.stderr.write(f"[dedup] skip empty/missing {p}\n")
102102
continue
103103
agent, role = parse_filename(p)
104-
text = p.read_text(errors="replace")
104+
text = p.read_text(encoding="utf-8", errors="replace")
105105
for f in extract_findings(text):
106106
all_findings.append(attach_source_attrs(f, agent, role))
107107

108108
all_findings.sort(key=sort_key)
109109

110110
out_path.parent.mkdir(parents=True, exist_ok=True)
111-
with out_path.open("w") as fh:
111+
with out_path.open("w", encoding="utf-8", newline="\n") as fh:
112112
fh.write(f'<code-review-report total="{len(all_findings)}">\n')
113113
for i, f in enumerate(all_findings, start=1):
114114
fh.write(reindex(f, i))

‎skills/agents-consilium/scripts/lib/discovery-pass.sh‎

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,16 @@ fi
8383
CONSILIUM_CONFIG="${CONSILIUM_CONFIG:-$SKILL_DIR/config.json}"
8484
[[ -f "$CONSILIUM_CONFIG" ]] || { echo -e "${RED}Error: config not found: $CONSILIUM_CONFIG${NC}" >&2; exit 4; }
8585

86-
BACKEND="$(python3 -c "
87-
import json, sys
88-
d = json.load(open('$CONSILIUM_CONFIG'))['agents']
89-
if '$AGENT' not in d:
90-
sys.stderr.write('agent not in config: $AGENT\n'); sys.exit(1)
91-
print(d['$AGENT']['backend'])
92-
")" || exit 4
86+
BACKEND="$(CONSILIUM_CONFIG_PATH="$CONSILIUM_CONFIG" AGENT_ID="$AGENT" python3 -c '
87+
import json, os, sys
88+
sys.stdout.reconfigure(newline="\n")
89+
path = os.environ["CONSILIUM_CONFIG_PATH"]
90+
agent = os.environ["AGENT_ID"]
91+
d = json.load(open(path, encoding="utf-8"))["agents"]
92+
if agent not in d:
93+
sys.stderr.write(f"agent not in config: {agent}\n"); sys.exit(1)
94+
print(d[agent]["backend"])
95+
')" || exit 4
9396

9497
BACKEND_SCRIPT="$LIB_DIR/backend_run.sh"
9598
[[ -x "$BACKEND_SCRIPT" || -f "$BACKEND_SCRIPT" ]] || {

0 commit comments

Comments
 (0)