Skip to content

Commit 039c7d5

Browse files
mogulOpenCode Agent
andcommitted
fix(acq-kits): harden opendesign relay verification
Address relay route-selection and live verification feedback, and resolve the current main merge conflict. Co-authored-by: OpenCode Agent <[email protected]>
2 parents 84206ee + 665373d commit 039c7d5

49 files changed

Lines changed: 4353 additions & 484 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/linters/package-lock.json‎

Lines changed: 180 additions & 319 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/linters/package.json‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
"description": "Pinned linter dependencies for CI supply chain security",
55
"private": true,
66
"dependencies": {
7-
"markdownlint-cli2": "0.23.3"
7+
"markdownlint-cli": "0.49.1"
88
},
99
"overrides": {
1010
"js-yaml": "4.3.2",
11-
"markdown-it": "14.3.1",
12-
"linkify-it": "5.0.2",
13-
"smol-toml": "1.7.1"
11+
"katex": "0.18.2",
12+
"smol-toml": "1.9.0"
1413
}
15-
}
14+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/usr/bin/env node
2+
// Shared glob/ignore list for markdownlint, used by both CI and the
3+
// pre-commit hook so the two cannot diverge (same requirement the old
4+
// .markdownlint-cli2.yaml's globs: key enforced, now expressed here instead
5+
// since markdownlint-cli takes globs/ignores as CLI args, not config keys).
6+
//
7+
// Usage:
8+
// node run-markdownlint.mjs [--fix] [--count-only]
9+
//
10+
// --count-only prints the number of files the glob list matches (via the
11+
// same tinyglobby engine markdownlint-cli uses internally) and exits 0,
12+
// without running the linter. Used by CI to assert the glob list didn't
13+
// silently match zero files.
14+
import { spawnSync } from "node:child_process";
15+
import { fileURLToPath } from "node:url";
16+
import { dirname, join } from "node:path";
17+
18+
const here = dirname(fileURLToPath(import.meta.url));
19+
20+
const globs = ["**/*.md"];
21+
22+
const ignores = [
23+
"node_modules",
24+
".github/linters/node_modules",
25+
"deleteme",
26+
"templates",
27+
"CHANGELOG.md",
28+
"**/fixtures/**",
29+
];
30+
31+
const args = process.argv.slice(2);
32+
const countOnly = args.includes("--count-only");
33+
const passthroughArgs = args.filter((a) => a !== "--count-only");
34+
35+
if (countOnly) {
36+
const { globSync } = await import(
37+
join(here, "node_modules", "tinyglobby", "dist", "index.mjs")
38+
);
39+
const files = globSync(globs, { ignore: ignores, dot: true });
40+
console.log(files.length);
41+
process.exit(0);
42+
}
43+
44+
const ignoreArgs = ignores.flatMap((i) => ["-i", i]);
45+
const result = spawnSync(
46+
join(here, "node_modules", ".bin", "markdownlint"),
47+
["--dot", ...globs, ...ignoreArgs, ...passthroughArgs],
48+
{ stdio: "inherit" }
49+
);
50+
process.exit(result.status ?? 1);

‎.github/workflows/ci.yml‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -112,22 +112,23 @@ jobs:
112112
npm ci
113113
npm audit --audit-level=moderate
114114
115-
# No glob arguments: file selection comes from .markdownlint-cli2.yaml, the
116-
# same source the pre-commit hook reads, so CI and local cannot diverge.
115+
# Glob/ignore list lives once, in .github/linters/run-markdownlint.mjs,
116+
# shared by CI and the pre-commit hook below so the two cannot diverge
117+
# (same guarantee the old .markdownlint-cli2.yaml globs: key gave us).
117118
# The version comes from .github/linters/package-lock.json (installed
118-
# above), so there is no second version pin to drift.
119+
# above), so there is no second version pin to drift either.
119120
- name: Run markdownlint
120-
run: npx --prefix .github/linters markdownlint-cli2
121+
run: node .github/linters/run-markdownlint.mjs
121122

122-
# A markdownlint-cli2 run that matched no files still exits 0, so assert
123-
# the file count is non-zero rather than trusting the exit status alone.
123+
# run-markdownlint.mjs --count-only exits 0 and prints the matched file
124+
# count without linting -- assert it is non-zero so a typo'd glob fails
125+
# loudly instead of the real lint step passing with nothing matched.
124126
- name: Assert markdownlint actually linted files
125127
run: |
126-
count=$(npx --prefix .github/linters markdownlint-cli2 2>&1 \
127-
| sed -n 's/^Linting: \([0-9]\{1,\}\) file.*/\1/p')
128+
count=$(node .github/linters/run-markdownlint.mjs --count-only)
128129
echo "markdownlint linted ${count:-0} file(s)"
129130
if [ "${count:-0}" -lt 1 ]; then
130-
echo "::error::markdownlint matched no files - check globs in .markdownlint-cli2.yaml" >&2
131+
echo "::error::markdownlint matched no files - check the glob list in .github/linters/run-markdownlint.mjs" >&2
131132
exit 1
132133
fi
133134

‎.markdownlint-cli2.yaml‎

Lines changed: 0 additions & 61 deletions
This file was deleted.

‎.markdownlint.yaml‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# markdownlint configuration (plain markdownlint-cli, not markdownlint-cli2)
2+
# Aligned with playbook standards for cross-repo consistency
3+
# See: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
4+
#
5+
# Auto-discovered by `markdownlint-cli` (no --config flag needed) because its
6+
# name matches one of the config filenames markdownlint-cli looks for.
7+
#
8+
# File selection (globs/ignores) is NOT configured here: markdownlint-cli
9+
# takes globs and -i/--ignore flags directly as CLI arguments, resolved by
10+
# its own glob engine (tinyglobby) rather than a hand-rolled walker. See
11+
# .github/workflows/ci.yml and .pre-commit-config.yaml for the actual
12+
# glob/ignore list — both must stay in sync, same requirement as before.
13+
14+
# MD003 - Heading style (disabled — mixed styles OK)
15+
MD003: false
16+
# MD007 - Unordered list indent (allow 2-space, frontmatter false positives)
17+
MD007: false
18+
# MD004 - Unordered list style (disabled — mixed markers OK)
19+
MD004: false
20+
# MD013 - Line length (disabled — long lines OK in docs)
21+
MD013: false
22+
# MD022 - Headings should be surrounded by blank lines
23+
MD022: false
24+
# MD024 - No duplicate heading names (disabled — repeated names OK)
25+
MD024: false
26+
# MD025 - Single top-level heading (disabled — multiple H1 OK for SKILL.md)
27+
MD025: false
28+
# MD026 - No trailing punctuation in headings
29+
MD026: false
30+
# MD031 - Fenced code blocks surrounded by blank lines
31+
MD031: false
32+
# MD032 - Lists surrounded by blank lines
33+
MD032: false
34+
# MD033 - No inline HTML (disabled — HTML allowed)
35+
MD033: false
36+
# MD034 - No bare URLs
37+
MD034: false
38+
# MD036 - No emphasis used instead of heading (disabled — used intentionally for OWASP categories)
39+
MD036: false
40+
# MD040 - Fenced code blocks should have language
41+
MD040: false
42+
# MD041 - First line in file should be H1 (disabled — files have frontmatter)
43+
MD041: false
44+
# MD051 - Link fragments should be valid
45+
MD051: false
46+
# MD056 - Table column count
47+
MD056: false
48+
# MD058 - Tables should be surrounded by blank lines
49+
MD058: false
50+
# MD060 - Table column style spacing (disabled — manual formatting OK)
51+
MD060: false
52+
53+
# Support YAML frontmatter (markdownlint already skips common frontmatter by
54+
# default for most rules; this explicit regex is kept for parity with the
55+
# prior .markdownlint-cli2.yaml config so behavior does not shift silently).
56+
frontMatter: "/^---\\s*$[\\s\\S]*?^---\\s*$/m"

‎.pre-commit-config.yaml‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
- id: gitleaks
2222

2323
- repo: https://github.com/astral-sh/ruff-pre-commit
24-
rev: 2eeb5678de71a00c0902cbda7105d328432f72cb # v0.16.8
24+
rev: a56c0b927e6465d37cae3e97d35d4d18ab2b96cd # v0.16.9
2525
hooks:
2626
- id: ruff
2727
args: ["--fix"]
@@ -31,22 +31,24 @@ repos:
3131
# .github/linters/package.json (+ package-lock.json, which also carries the
3232
# transitive CVE overrides and is what `npm audit` gates in CI). This hook
3333
# delegates to that install instead of pinning a second time via a remote
34-
# rev, so the two can never drift.
34+
# rev, so the two can never drift. Glob/ignore selection lives once in
35+
# .github/linters/run-markdownlint.mjs, shared with CI, so file selection
36+
# cannot drift between local and CI either.
3537
- repo: local
3638
hooks:
3739
# Local commits: auto-fix what is fixable.
38-
- id: markdownlint-cli2
39-
name: markdownlint-cli2 (npm-pinned, --fix)
40-
entry: npx --prefix .github/linters markdownlint-cli2 --fix
40+
- id: markdownlint
41+
name: markdownlint (npm-pinned, --fix)
42+
entry: node .github/linters/run-markdownlint.mjs --fix
4143
language: system
4244
types: [markdown]
4345
pass_filenames: false
4446
# CI: check only, never --fix. With --fix the hook rewrites the file and
4547
# exits 0, so a real violation passes silently -- CI must use this id.
4648
# `stages: [manual]` keeps it out of the default commit-time run.
47-
- id: markdownlint-cli2-check
48-
name: markdownlint-cli2 (npm-pinned, check only)
49-
entry: npx --prefix .github/linters markdownlint-cli2
49+
- id: markdownlint-check
50+
name: markdownlint (npm-pinned, check only)
51+
entry: node .github/linters/run-markdownlint.mjs
5052
language: system
5153
types: [markdown]
5254
pass_filenames: false

‎CHANGELOG.md‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,58 @@
11
# Changelog
22

3+
## [1.12.1](https://github.com/GSA-TTS/agentic-coding-patterns/compare/v1.12.0...v1.12.1) (2026-10-06)
4+
5+
6+
### Bug Fixes
7+
8+
* **ci:** clear two new markdownlint-cli transitive CVEs (katex, smol-toml) ([#478](https://github.com/GSA-TTS/agentic-coding-patterns/issues/478)) ([f1913ba](https://github.com/GSA-TTS/agentic-coding-patterns/commit/f1913bae5754f2401a165ed5bc961a0a61f697f7))
9+
10+
## [1.12.0](https://github.com/GSA-TTS/agentic-coding-patterns/compare/v1.11.0...v1.12.0) (2026-10-05)
11+
12+
13+
### Features
14+
15+
* **acq-kits:** install OpenCode v2 via opencode kit ([#466](https://github.com/GSA-TTS/agentic-coding-patterns/issues/466)) ([dc84c6c](https://github.com/GSA-TTS/agentic-coding-patterns/commit/dc84c6c2d0756447f88931a04c15e5fe438062a6))
16+
17+
18+
### Bug Fixes
19+
20+
* **ci:** replace markdownlint-cli2 with markdownlint-cli, drop the shim ([#471](https://github.com/GSA-TTS/agentic-coding-patterns/issues/471)) ([dd22daf](https://github.com/GSA-TTS/agentic-coding-patterns/commit/dd22daffcafe7aa54f9c6074bb95cca51b71c8c1))
21+
22+
## [1.11.0](https://github.com/GSA-TTS/agentic-coding-patterns/compare/v1.10.0...v1.11.0) (2026-10-02)
23+
24+
25+
### Features
26+
27+
* **acq-kits:** add opencode agent-harness kit (SHA-pinned release binary) ([#455](https://github.com/GSA-TTS/agentic-coding-patterns/issues/455)) ([36038a6](https://github.com/GSA-TTS/agentic-coding-patterns/commit/36038a6d1a7055ae90c775be94bd4d4f3d08805a))
28+
29+
30+
### Bug Fixes
31+
32+
* **usai-provider:** drop embedding models from the chat-model catalog ([#462](https://github.com/GSA-TTS/agentic-coding-patterns/issues/462)) ([56500ba](https://github.com/GSA-TTS/agentic-coding-patterns/commit/56500baec328ba26041878d03bab35e2a997e401))
33+
* **usai-provider:** make the catalog drift check report real drift ([#459](https://github.com/GSA-TTS/agentic-coding-patterns/issues/459)) ([73606d7](https://github.com/GSA-TTS/agentic-coding-patterns/commit/73606d73be670754c33002765de1a2d6ad996c45))
34+
35+
## [1.10.0](https://github.com/GSA-TTS/agentic-coding-patterns/compare/v1.9.0...v1.10.0) (2026-10-02)
36+
37+
38+
### Features
39+
40+
* **isolation:** add generic devenv sandbox image built and published to GHCR ([#395](https://github.com/GSA-TTS/agentic-coding-patterns/issues/395)) ([8c7e9ca](https://github.com/GSA-TTS/agentic-coding-patterns/commit/8c7e9ca50cda3409234b8f38e6a5e89f20a87598))
41+
* **oci-engine:** add rootless podman OCI-engine capability kit ([#437](https://github.com/GSA-TTS/agentic-coding-patterns/issues/437)) ([b980c93](https://github.com/GSA-TTS/agentic-coding-patterns/commit/b980c936ef9fda66c3a6324005f39f8ea5ed8a40))
42+
* **paseo:** bump pinned Paseo CLI to 0.10.2 ([#439](https://github.com/GSA-TTS/agentic-coding-patterns/issues/439)) ([ef3aa29](https://github.com/GSA-TTS/agentic-coding-patterns/commit/ef3aa290dcf0842cd90843dd97ada546ca6b47ac))
43+
* **paseo:** register child repos in parent mounts ([#391](https://github.com/GSA-TTS/agentic-coding-patterns/issues/391)) ([eded00c](https://github.com/GSA-TTS/agentic-coding-patterns/commit/eded00cecaea06e34a732eb28468efa0808f4b28))
44+
* **patterns:** add pi-coding-agent acq-kit (earendil-works/pi, npm install, unprivileged startup-only) ([#399](https://github.com/GSA-TTS/agentic-coding-patterns/issues/399)) ([5d1a877](https://github.com/GSA-TTS/agentic-coding-patterns/commit/5d1a87714b6e500c4c910ab1b0dcf11baba09d13))
45+
* **schema:** add optional agent block to hybrid/v1 kit schema ([#454](https://github.com/GSA-TTS/agentic-coding-patterns/issues/454)) ([856c975](https://github.com/GSA-TTS/agentic-coding-patterns/commit/856c9759ba2aa54f35c87a0c0b8d1fa97e3a806d))
46+
47+
48+
### Bug Fixes
49+
50+
* **ci:** bump js-yaml to 4.3.2 to clear a high-severity CPU-DoS advisory ([#409](https://github.com/GSA-TTS/agentic-coding-patterns/issues/409)) ([086f9f6](https://github.com/GSA-TTS/agentic-coding-patterns/commit/086f9f6c99908b76d7b66b9b4877debe33aa8cf9))
51+
* **ci:** bump smol-toml to 1.7.1 to clear an infinite-loop DoS advisory ([#411](https://github.com/GSA-TTS/agentic-coding-patterns/issues/411)) ([acc0346](https://github.com/GSA-TTS/agentic-coding-patterns/commit/acc03460565b842876eba63ac43c955140f0b792))
52+
* **ci:** pin markdownlint-cli2 once and stop the pre-commit/CI drift ([#451](https://github.com/GSA-TTS/agentic-coding-patterns/issues/451)) ([543e08f](https://github.com/GSA-TTS/agentic-coding-patterns/commit/543e08f089f1f8992504a041f4662991948516ba))
53+
* **paseo:** keep npm cache agent-owned ([#402](https://github.com/GSA-TTS/agentic-coding-patterns/issues/402)) ([c0ad118](https://github.com/GSA-TTS/agentic-coding-patterns/commit/c0ad1186fad7ce54eaed9102010e74526bb3d445))
54+
* **usai-provider:** USAi model catalog refresh + NIST-grounded permission hardening ([#417](https://github.com/GSA-TTS/agentic-coding-patterns/issues/417)) ([b3afd89](https://github.com/GSA-TTS/agentic-coding-patterns/commit/b3afd899ea0652a9f4f8bdbdccb79e0f0f72f4db))
55+
356
## [1.9.0](https://github.com/GSA-TTS/agentic-coding-patterns/compare/v1.8.0...v1.9.0) (2026-08-25)
457

558

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ pre-commit run --all-files
295295

296296
- **gitleaks** — Secret detection (critical for example code)
297297
- **ruff** — Python linting and formatting with security rules
298-
- **markdownlint-cli2** — Markdown formatting
298+
- **markdownlint** — Markdown formatting
299299
- **Pattern validation** — Frontmatter schema validation
300300
- **Basic hygiene** — YAML/JSON/TOML validation, trailing whitespace, etc.
301301

‎integrations/isolation/acq-kits/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ not agent behavior. (Behavioral patterns live in `skills/`, `prompts/`, etc.)
2323
| [`zscaler-ca-certificate/`](zscaler-ca-certificate/) | Trust the public Zscaler Root CA in the sandbox (msb: native `--trust-host-cas`; sbx: file-drop + `update-ca-certificates`). |
2424
| [`git-ssh-sign/`](git-ssh-sign/) | Sign git commits and tags with the SSH key forwarded from the host agent (vendored from sbx-kits-contrib). |
2525
| [`openchamber/`](openchamber/) | Run OpenChamber, a browser UI for OpenCode, inside the sandbox alongside the terminal TUI. Opt-in (see its parity note). |
26+
| [`opencode/`](opencode/) | Install the OpenCode v2 terminal AI coding agent from pinned, SHA-256-verified npm platform tarballs. Agent-harness kit; no ports. |
2627
| [`paseo/`](paseo/) | Self-host the [Paseo](https://github.com/getpaseo/paseo) daemon + browser web UI (for coding agents) inside the sandbox on one port. Opt-in; agent-generic wrapper, no shared TUI session. |
2728
| [`opendesign/`](opendesign/) | Run [OpenDesign](https://github.com/nexu-io/open-design) headlessly inside the sandbox as a browser design workspace, reusing the existing OpenCode CLI and ACQ-injected USAi credentials. Opt-in. |
2829
| [`prime-agent/`](prime-agent/) | Install [PrimeIntellect-ai/prime-agent](https://github.com/PrimeIntellect-ai/prime-agent), a terminal AI coding assistant with an embedded IPython tool. Opt-in; TUI, no ports. |

0 commit comments

Comments
 (0)