From 5981dd70920ec81ba28ba346725ccd7f902f564b Mon Sep 17 00:00:00 2001 From: haelyra <49814733+haelyra@users.noreply.github.com> Date: Fri, 9 Oct 2026 18:54:39 -0400 Subject: [PATCH] fix: complete reviewed integration workflows and safety checks --- .../docs-governance/scripts/audit-docs.py | 2 +- .../docs-governance/scripts/markdown_links.py | 17 +++- .github/workflows/ci.yml | 2 +- README.md | 2 +- docs/bn/README.md | 2 +- .../ja-JP/skills/tinystruct-patterns/SKILL.md | 1 - .../references/database.md | 2 +- ecc2/src/session/manager.rs | 10 +- ecc2/src/worktree/mod.rs | 13 ++- manifests/context-packs/skill-triggers@1.json | 2 +- manifests/install-modules.json | 4 + package.json | 4 +- .../docs-governance/scripts/audit-docs.py | 2 +- .../docs-governance/scripts/markdown_links.py | 17 +++- scripts/ci/catalog.js | 12 +-- scripts/dashboard-web.js | 6 +- scripts/lib/harness-audit-consumer.js | 1 + .../lib/install-targets/copilot-project.js | 41 +++++--- scripts/lib/install/content-transform.js | 13 ++- scripts/lib/install/plan.js | 6 +- skills/docs-governance/scripts/audit-docs.py | 2 +- .../docs-governance/scripts/markdown_links.py | 17 +++- skills/prompt-caching-strategy/SKILL.md | 2 +- skills/token-card/SKILL.md | 2 +- .../ci/agent-security-hardening-skill.test.js | 6 +- tests/ci/catalog.test.js | 2 + tests/ci/run-all.test.js | 31 ++++++ tests/lib/copilot-install-target.test.js | 93 +++++++++++++++++- tests/run-all.js | 28 ++++-- tests/scripts/dashboard-web.test.js | 32 +++++++ .../harness-audit-consumer-boundary.test.js | 59 ++++++++++++ tests/skills/prompt-caching-strategy.test.js | 16 +++- tests/test_docs_governance_audit.py | 96 +++++++++++++++++++ 33 files changed, 481 insertions(+), 64 deletions(-) create mode 100644 tests/scripts/harness-audit-consumer-boundary.test.js diff --git a/.agents/skills/docs-governance/scripts/audit-docs.py b/.agents/skills/docs-governance/scripts/audit-docs.py index ea3a791b4..7d58e52c3 100644 --- a/.agents/skills/docs-governance/scripts/audit-docs.py +++ b/.agents/skills/docs-governance/scripts/audit-docs.py @@ -101,7 +101,7 @@ def load_custom_roles(root: Path, report: Report) -> tuple[dict[object, object], return {}, False try: loaded = json.loads(mapping_source.read_text(encoding="utf-8")) - except (OSError, json.JSONDecodeError) as exc: + except (OSError, UnicodeError, json.JSONDecodeError) as exc: report.fail(f"Cannot read .governance/docs-map.json: {diagnostic(exc)}") return {}, False if not isinstance(loaded, dict): diff --git a/.agents/skills/docs-governance/scripts/markdown_links.py b/.agents/skills/docs-governance/scripts/markdown_links.py index 239679740..435a21f69 100644 --- a/.agents/skills/docs-governance/scripts/markdown_links.py +++ b/.agents/skills/docs-governance/scripts/markdown_links.py @@ -16,7 +16,7 @@ REFERENCE_DEFINITION_RE = re.compile( """ ) REFERENCE_USAGE_RE = re.compile( - r"(?[^\]\n]+)\](?:\[(?P