Skip to content

Commit b9a01d3

Browse files
authored
fix: audit consumer projects from cwd (anomalyco#1014)
* fix: audit consumer projects from cwd * fix: unblock unicode safety CI lint * fix: unblock shared CI regressions * test: isolate package-manager dependent hooks and formatter tests
1 parent fab80c9 commit b9a01d3

4 files changed

Lines changed: 323 additions & 53 deletions

File tree

‎.opencode/commands/harness-audit.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,23 @@ Run a deterministic repository harness audit and return a prioritized scorecard.
44

55
## Usage
66

7-
`/harness-audit [scope] [--format text|json]`
7+
`/harness-audit [scope] [--format text|json] [--root path]`
88

99
- `scope` (optional): `repo` (default), `hooks`, `skills`, `commands`, `agents`
1010
- `--format`: output style (`text` default, `json` for automation)
11+
- `--root`: audit a specific path instead of the current working directory
1112

1213
## Deterministic Engine
1314

1415
Always run:
1516

1617
```bash
17-
node scripts/harness-audit.js <scope> --format <text|json>
18+
node scripts/harness-audit.js <scope> --format <text|json> [--root <path>]
1819
```
1920

2021
This script is the source of truth for scoring and checks. Do not invent additional dimensions or ad-hoc points.
2122

22-
Rubric version: `2026-03-16`.
23+
Rubric version: `2026-03-30`.
2324

2425
The script computes 7 fixed categories (`0-10` normalized each):
2526

@@ -32,6 +33,7 @@ The script computes 7 fixed categories (`0-10` normalized each):
3233
7. Cost Efficiency
3334

3435
Scores are derived from explicit file/rule checks and are reproducible for the same commit.
36+
The script audits the current working directory by default and auto-detects whether the target is the ECC repo itself or a consumer project using ECC.
3537

3638
## Output Contract
3739

‎commands/harness-audit.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,23 @@ Run a deterministic repository harness audit and return a prioritized scorecard.
44

55
## Usage
66

7-
`/harness-audit [scope] [--format text|json]`
7+
`/harness-audit [scope] [--format text|json] [--root path]`
88

99
- `scope` (optional): `repo` (default), `hooks`, `skills`, `commands`, `agents`
1010
- `--format`: output style (`text` default, `json` for automation)
11+
- `--root`: audit a specific path instead of the current working directory
1112

1213
## Deterministic Engine
1314

1415
Always run:
1516

1617
```bash
17-
node scripts/harness-audit.js <scope> --format <text|json>
18+
node scripts/harness-audit.js <scope> --format <text|json> [--root <path>]
1819
```
1920

2021
This script is the source of truth for scoring and checks. Do not invent additional dimensions or ad-hoc points.
2122

22-
Rubric version: `2026-03-16`.
23+
Rubric version: `2026-03-30`.
2324

2425
The script computes 7 fixed categories (`0-10` normalized each):
2526

@@ -32,6 +33,7 @@ The script computes 7 fixed categories (`0-10` normalized each):
3233
7. Cost Efficiency
3334

3435
Scores are derived from explicit file/rule checks and are reproducible for the same commit.
36+
The script audits the current working directory by default and auto-detects whether the target is the ECC repo itself or a consumer project using ECC.
3537

3638
## Output Contract
3739

0 commit comments

Comments
 (0)