agentic-scorecard 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/AGENT_PROMPT.md +11 -11
  2. package/README.md +35 -29
  3. package/benchmark/v0.4/adapter-contract.md +129 -0
  4. package/benchmark/v0.4/adapters/known-agent-harnesses.yaml +266 -0
  5. package/benchmark/v0.4/adapters/known-ci-providers.yaml +57 -0
  6. package/benchmark/v0.4/adapters/known-command-wrappers.yaml +37 -0
  7. package/benchmark/v0.4/adapters/known-environment-tooling.yaml +17 -0
  8. package/benchmark/v0.4/adapters/known-github-conventions.yaml +27 -0
  9. package/benchmark/v0.4/adapters/known-python-tooling.yaml +15 -0
  10. package/benchmark/v0.4/adapters/known-security-tools.yaml +45 -0
  11. package/benchmark/v0.4/adapters/known-verification-tools.yaml +65 -0
  12. package/benchmark/v0.4/agent-evidence-schema.json +74 -0
  13. package/benchmark/v0.4/attestation-schema.json +35 -0
  14. package/benchmark/v0.4/benchmark.yaml +127 -0
  15. package/benchmark/v0.4/calibration-matrix.md +60 -0
  16. package/benchmark/v0.4/controls/context.yaml +75 -0
  17. package/benchmark/v0.4/controls/environment.yaml +93 -0
  18. package/benchmark/v0.4/controls/governance.yaml +132 -0
  19. package/benchmark/v0.4/controls/learning.yaml +78 -0
  20. package/benchmark/v0.4/controls/observability.yaml +91 -0
  21. package/benchmark/v0.4/controls/resilience.yaml +170 -0
  22. package/benchmark/v0.4/controls/security.yaml +143 -0
  23. package/benchmark/v0.4/controls/specification.yaml +65 -0
  24. package/benchmark/v0.4/controls/testing.yaml +82 -0
  25. package/benchmark/v0.4/controls/tooling.yaml +69 -0
  26. package/benchmark/v0.4/report-schema.json +89 -0
  27. package/benchmark/v0.4/scoring-policy.md +175 -0
  28. package/dist/cli.js +2287 -162
  29. package/package.json +3 -2
  30. package/templates/agent-evidence.yaml +2 -2
  31. package/templates/attestations.yaml +3 -1
@@ -0,0 +1,93 @@
1
+ dimension: environment
2
+ controls:
3
+ - id: ADRB-ENV-001
4
+ level: 1
5
+ title: Development setup is documented
6
+ outcome: Contributors can identify supported runtime prerequisites and the canonical setup path.
7
+ risk: Agents improvise dependencies or run commands in an incompatible environment.
8
+ allow_agent_evidence: true
9
+ agent_evidence_scopes: [repository]
10
+ evidence:
11
+ - type: content_terms
12
+ scope: repository
13
+ files:
14
+ [
15
+ README.md,
16
+ CONTRIBUTING.md,
17
+ AGENTS.md,
18
+ Agents.md,
19
+ agents.md,
20
+ .ai/AGENTS.md,
21
+ .ai/Agents.md,
22
+ .ai/constitution.md,
23
+ .ai/instructions/**/*.md,
24
+ .ai/rules/**/*.md,
25
+ .ai/skills/**/*.md,
26
+ .agents/**/*.md,
27
+ docs/setup/**,
28
+ docs/development/**,
29
+ ]
30
+ terms: [install, setup, runtime, prerequisites, dependencies, development]
31
+ min_terms: 2
32
+ max_span_lines: 120
33
+ max_files_per_pattern: 50
34
+ remediation: Document supported runtimes, prerequisites, installation, and the first verification command.
35
+ - id: ADRB-ENV-002
36
+ level: 2
37
+ title: Dependencies and toolchain are reproducibly pinned
38
+ outcome: The repository records deterministic dependency resolution and a supported runtime or container definition.
39
+ risk: Local and CI behavior diverge as dependency or runtime versions float.
40
+ evidence:
41
+ - type: path_any
42
+ scope: repository
43
+ patterns:
44
+ [
45
+ package-lock.json,
46
+ pnpm-lock.yaml,
47
+ yarn.lock,
48
+ uv.lock,
49
+ poetry.lock,
50
+ Pipfile.lock,
51
+ Cargo.lock,
52
+ go.sum,
53
+ ]
54
+ - type: path_any
55
+ scope: repository
56
+ patterns:
57
+ [
58
+ .node-version,
59
+ .nvmrc,
60
+ .python-version,
61
+ mise.toml,
62
+ .tool-versions,
63
+ Dockerfile,
64
+ .devcontainer/**,
65
+ ]
66
+ remediation: Commit a lockfile and a supported runtime, toolchain, or development-container declaration.
67
+ - id: ADRB-ENV-003
68
+ level: 3
69
+ title: CI recreates the canonical environment
70
+ outcome: Continuous integration installs from locked inputs and runs canonical verification in a clean environment.
71
+ risk: A local-only setup passes while clean automation fails or uses materially different dependencies.
72
+ allow_agent_evidence: true
73
+ agent_evidence_scopes: [repository]
74
+ evidence:
75
+ - type: ci_command
76
+ scope: repository
77
+ providers: []
78
+ tools: []
79
+ min_tools: 3
80
+ tool_match_mode: same-execution
81
+ remediation: Make CI install locked dependencies from a clean checkout and run the documented verification path.
82
+ - id: ADRB-ENV-004
83
+ level: 4
84
+ title: Environment reliability drives improvement
85
+ outcome: Setup failures, cache misses, drift, and reproducibility incidents are trended and reduced.
86
+ risk: Environment friction and nondeterminism remain anecdotal and repeatedly consume agent time.
87
+ allow_attestation: true
88
+ allow_agent_evidence: true
89
+ evidence:
90
+ - type: manual
91
+ scope: outcome
92
+ prompt: Provide environment reliability trends and a recent setup or CI improvement driven by them.
93
+ remediation: Track clean-setup and CI-environment outcomes, then prioritize the largest sources of drift.
@@ -0,0 +1,132 @@
1
+ dimension: governance
2
+ controls:
3
+ - id: ADRB-GOV-001
4
+ level: 1
5
+ title: Contribution and review expectations are documented
6
+ outcome: Contributors can find non-empty guidance describing how changes are proposed and reviewed.
7
+ risk: Agents submit changes without a shared review or accountability process.
8
+ allow_agent_evidence: true
9
+ agent_evidence_scopes: [repository]
10
+ evidence:
11
+ - type: content_terms
12
+ scope: repository
13
+ files:
14
+ [
15
+ CONTRIBUTING.md,
16
+ AGENTS.md,
17
+ Agents.md,
18
+ agents.md,
19
+ .ai/AGENTS.md,
20
+ .ai/Agents.md,
21
+ .ai/constitution.md,
22
+ .ai/instructions/**/*.md,
23
+ .ai/rules/**/*.md,
24
+ .ai/skills/**/*.md,
25
+ .agents/**/*.md,
26
+ docs/contributing/**,
27
+ docs/agentic/**,
28
+ ]
29
+ terms: [pull request, review, approval, testing, contribution, before merge]
30
+ min_terms: 2
31
+ required_any_terms: [pull request, review, approval, before merge]
32
+ max_span_lines: 100
33
+ max_files_per_pattern: 50
34
+ remediation: Publish contribution guidance covering change proposals, verification, reviewers, and approvals.
35
+ - id: ADRB-GOV-002
36
+ level: 2
37
+ title: Ownership, approval, and merge authority are declared
38
+ outcome: The tracked repository assigns review ownership and states which accountable human roles may approve and merge changes.
39
+ risk: Sensitive or cross-cutting changes reach reviewers without accountable ownership.
40
+ allow_agent_evidence: true
41
+ agent_evidence_scopes: [repository]
42
+ evidence:
43
+ - type: ownership_map
44
+ scope: repository
45
+ patterns:
46
+ [
47
+ CODEOWNERS,
48
+ OWNERS,
49
+ OWNERS.md,
50
+ MAINTAINERS,
51
+ MAINTAINERS.md,
52
+ GOVERNANCE.md,
53
+ docs/governance/**,
54
+ docs/ownership/**,
55
+ .ai/ownership/**,
56
+ ]
57
+ - type: content_groups
58
+ scope: repository
59
+ files:
60
+ [
61
+ CONTRIBUTING.md,
62
+ GOVERNANCE.md,
63
+ AGENTS.md,
64
+ Agents.md,
65
+ agents.md,
66
+ .ai/AGENTS.md,
67
+ .ai/Agents.md,
68
+ .ai/constitution.md,
69
+ .ai/instructions/**/*.md,
70
+ .ai/rules/**/*.md,
71
+ .ai/skills/**/*.md,
72
+ .agents/**/*.md,
73
+ docs/governance/**,
74
+ docs/agentic/**,
75
+ ]
76
+ groups:
77
+ - id: approval-authority
78
+ terms:
79
+ [
80
+ owner may approve,
81
+ owners may approve,
82
+ reviewer may approve,
83
+ reviewers may approve,
84
+ maintainer may approve,
85
+ maintainers may approve,
86
+ reviewer provides approval,
87
+ reviewer provides human approval,
88
+ reviewer approval,
89
+ maintainer approval is required,
90
+ maintainer approval required,
91
+ ]
92
+ - id: merge-authority
93
+ terms:
94
+ [
95
+ owner may merge,
96
+ owners may merge,
97
+ reviewer may merge,
98
+ reviewers may merge,
99
+ maintainer may merge,
100
+ maintainers may merge,
101
+ maintainer has merge authority,
102
+ maintainers have merge authority,
103
+ maintainers retain merge authority,
104
+ ]
105
+ min_groups: 2
106
+ max_span_lines: 100
107
+ max_files_per_pattern: 50
108
+ remediation: Commit ownership rules and document who reviews, who approves, who merges, and who controls exceptions.
109
+ - id: ADRB-GOV-003
110
+ level: 3
111
+ title: Protected merge governance is enforced
112
+ outcome: Platform rules enforce reviews, required checks, protected branches, and controlled exceptions.
113
+ risk: Repository-side declarations can be bypassed because platform enforcement is absent or too broad.
114
+ allow_attestation: true
115
+ allow_agent_evidence: true
116
+ evidence:
117
+ - type: manual
118
+ scope: platform
119
+ prompt: Show protected branch or ruleset coverage, required reviews and checks, merge authority, bypass actors, and exception records.
120
+ remediation: Enforce branch or merge rules for relevant branches and restrict, record, and review bypasses.
121
+ - id: ADRB-GOV-004
122
+ level: 4
123
+ title: Governance outcomes drive improvement
124
+ outcome: Review escapes, bypasses, rollback causes, and approval latency are trended and improve governance.
125
+ risk: Governance becomes ceremony without evidence that it catches risk efficiently.
126
+ allow_attestation: true
127
+ allow_agent_evidence: true
128
+ evidence:
129
+ - type: manual
130
+ scope: outcome
131
+ prompt: Provide governance outcome trends and a recent review or merge-policy improvement driven by them.
132
+ remediation: Trend governance outcomes by risk class and tune ownership, review depth, and exceptions.
@@ -0,0 +1,78 @@
1
+ dimension: learning
2
+ controls:
3
+ - id: ADRB-LRN-001
4
+ level: 1
5
+ title: Agent corrections have a durable home
6
+ outcome: Review corrections and post-merge lessons are recorded in a tracked repository artifact.
7
+ risk: Every agent session repeats the same repository-specific mistakes.
8
+ allow_agent_evidence: true
9
+ agent_evidence_scopes: [repository]
10
+ evidence:
11
+ - type: path_any
12
+ scope: repository
13
+ patterns:
14
+ [
15
+ .ai/lessons.md,
16
+ .ai/memory/**,
17
+ .agents/memory/**,
18
+ docs/lessons/**,
19
+ docs/decisions/**,
20
+ ADR/**,
21
+ docs/adr/**,
22
+ ]
23
+ remediation: Create a concise tracked correction log with context, rule, owner, and date.
24
+ - id: ADRB-LRN-002
25
+ level: 2
26
+ title: Knowledge promotion and ownership are documented
27
+ outcome: Guidance defines when corrections become instructions, skills, decisions, or maintained references.
28
+ risk: The lesson store becomes a stale archive rather than usable agent knowledge.
29
+ allow_agent_evidence: true
30
+ agent_evidence_scopes: [repository]
31
+ evidence:
32
+ - type: content_terms
33
+ scope: repository
34
+ files:
35
+ [
36
+ AGENTS.md,
37
+ Agents.md,
38
+ agents.md,
39
+ .ai/lessons.md,
40
+ .ai/memory/**/*.md,
41
+ .ai/instructions/**/*.md,
42
+ .ai/rules/**/*.md,
43
+ .ai/skills/**/*.md,
44
+ .agents/**/*.md,
45
+ docs/knowledge/**,
46
+ ]
47
+ terms: [curation, promote, lesson, correction, stale, owner, deduplication]
48
+ min_terms: 3
49
+ required_any_terms: [curation, promote, lesson, correction]
50
+ max_span_lines: 120
51
+ max_files_per_pattern: 50
52
+ remediation: Define curation cadence, promotion rules, ownership, deduplication, and stale-content handling.
53
+ - id: ADRB-LRN-003
54
+ level: 3
55
+ title: Knowledge curation is mechanically enforced
56
+ outcome: Automation detects stale, duplicate, contradictory, or unpromoted agent knowledge.
57
+ risk: Knowledge quality relies on memory and quietly deteriorates as the repository evolves.
58
+ allow_agent_evidence: true
59
+ agent_evidence_scopes: [repository]
60
+ evidence:
61
+ - type: ci_command
62
+ scope: repository
63
+ providers: []
64
+ tools: []
65
+ min_tools: 1
66
+ remediation: Automate mechanical checks and require periodic judgement over knowledge quality.
67
+ - id: ADRB-LRN-004
68
+ level: 4
69
+ title: Knowledge effectiveness drives improvement
70
+ outcome: Recurring mistakes, stale guidance, retrieval success, and correction latency are trended and improve curation.
71
+ risk: Knowledge grows without evidence that it changes agent behavior.
72
+ allow_attestation: true
73
+ allow_agent_evidence: true
74
+ evidence:
75
+ - type: manual
76
+ scope: outcome
77
+ prompt: Provide recurring-error and knowledge-quality trends plus a recent curation improvement driven by them.
78
+ remediation: Measure whether promoted knowledge prevents repeated mistakes and prioritize weak guidance.
@@ -0,0 +1,91 @@
1
+ dimension: observability
2
+ controls:
3
+ - id: ADRB-OBS-001
4
+ level: 1
5
+ title: Agent run records are defined
6
+ outcome: A tracked schema or guide defines how material agent activity can be reconstructed.
7
+ risk: Teams cannot explain what happened after a poor change or security concern.
8
+ allow_agent_evidence: true
9
+ agent_evidence_scopes: [repository]
10
+ evidence:
11
+ - type: content_terms
12
+ scope: repository
13
+ files:
14
+ [
15
+ .ai/run-envelope.*,
16
+ .ai/runs/README*,
17
+ .agentic/run-envelope.*,
18
+ .agentic/runs/README*,
19
+ docs/observability/**,
20
+ docs/agentic/**,
21
+ evals/**,
22
+ evaluations/**,
23
+ observability/**,
24
+ ]
25
+ terms: [task, actor, harness, result, timestamp, evidence]
26
+ min_terms: 3
27
+ required_any_terms: [agent, actor, harness, agent run]
28
+ max_span_lines: 100
29
+ max_files_per_pattern: 50
30
+ remediation: Define a privacy-safe run record containing task, harness, result, timing, and evidence references.
31
+ - id: ADRB-OBS-002
32
+ level: 2
33
+ title: Run envelope and outcome taxonomy are documented
34
+ outcome: Run guidance covers authority, tools, budget, stop reason, verification, and outcome classification.
35
+ risk: Comparisons confound model, tooling, permissions, task risk, and checkout state.
36
+ allow_agent_evidence: true
37
+ agent_evidence_scopes: [repository]
38
+ evidence:
39
+ - type: content_terms
40
+ scope: repository
41
+ files:
42
+ [
43
+ .ai/run-envelope.*,
44
+ .ai/runs/README*,
45
+ .agentic/run-envelope.*,
46
+ .agentic/runs/README*,
47
+ docs/observability/**,
48
+ docs/agentic/**,
49
+ evals/**,
50
+ evaluations/**,
51
+ observability/**,
52
+ ]
53
+ terms:
54
+ [
55
+ task class,
56
+ tool,
57
+ permission,
58
+ budget,
59
+ stop reason,
60
+ outcome,
61
+ harness version,
62
+ verification,
63
+ ]
64
+ min_terms: 4
65
+ max_span_lines: 140
66
+ max_files_per_pattern: 50
67
+ remediation: Adopt a common run envelope and outcome taxonomy with privacy and retention rules.
68
+ - id: ADRB-OBS-003
69
+ level: 3
70
+ title: Outcome evidence is captured consistently
71
+ outcome: Material agent runs automatically emit retained metadata and verification outcomes.
72
+ risk: Only memorable successes and failures shape policy, creating selection bias.
73
+ allow_attestation: true
74
+ allow_agent_evidence: true
75
+ evidence:
76
+ - type: manual
77
+ scope: platform
78
+ prompt: Show automated run-envelope capture, completeness monitoring, retention controls, and access controls.
79
+ remediation: Emit structured run and outcome records automatically while minimizing sensitive content.
80
+ - id: ADRB-OBS-004
81
+ level: 4
82
+ title: Agent outcomes drive autonomy decisions
83
+ outcome: Quality, escape rate, cycle time, cost, intervention, and rollback trends change autonomy or harness policy.
84
+ risk: Token use or completion rate becomes a misleading proxy for engineering value and safety.
85
+ allow_attestation: true
86
+ allow_agent_evidence: true
87
+ evidence:
88
+ - type: manual
89
+ scope: outcome
90
+ prompt: Provide outcome trends segmented by task and risk class and an autonomy or harness decision they changed.
91
+ remediation: Evaluate quality and total effort by task class and use results to narrow or expand autonomy.
@@ -0,0 +1,170 @@
1
+ dimension: resilience
2
+ controls:
3
+ - id: ADRB-RES-001
4
+ level: 1
5
+ title: Changes have a documented recovery path
6
+ outcome: Contributors can locate actionable rollback, revert, recovery, or incident guidance.
7
+ risk: A harmful agent change persists because recovery is improvised under pressure.
8
+ allow_agent_evidence: true
9
+ agent_evidence_scopes: [repository]
10
+ evidence:
11
+ - type: content_terms
12
+ scope: repository
13
+ files:
14
+ [
15
+ README.md,
16
+ CONTRIBUTING.md,
17
+ AGENTS.md,
18
+ Agents.md,
19
+ agents.md,
20
+ .ai/AGENTS.md,
21
+ .ai/Agents.md,
22
+ .ai/constitution.md,
23
+ .ai/instructions/**/*.md,
24
+ .ai/rules/**/*.md,
25
+ .ai/skills/**/*.md,
26
+ .agents/**/*.md,
27
+ docs/recovery/**,
28
+ docs/operations/**,
29
+ docs/agentic/**,
30
+ runbooks/**,
31
+ ]
32
+ terms: [rollback, revert, recovery, incident, restore]
33
+ min_terms: 2
34
+ required_any_terms: [change, deployment, release, agent, task, pull request]
35
+ max_span_lines: 100
36
+ max_files_per_pattern: 50
37
+ remediation: Document how to stop work, revert code, recover affected state, and escalate an incident.
38
+ - id: ADRB-RES-002
39
+ level: 2
40
+ title: Failure containment and stop conditions are documented
41
+ outcome: Agent guidance defines mutation limits, resource budgets, retry bounds, stop triggers, escalation, and recovery ownership.
42
+ risk: A looping or confused agent continues spending or mutating beyond the intended scope.
43
+ allow_agent_evidence: true
44
+ agent_evidence_scopes: [repository]
45
+ evidence:
46
+ - type: content_groups
47
+ scope: repository
48
+ files:
49
+ [
50
+ AGENTS.md,
51
+ Agents.md,
52
+ agents.md,
53
+ SECURITY.md,
54
+ .ai/AGENTS.md,
55
+ .ai/Agents.md,
56
+ .ai/constitution.md,
57
+ .ai/instructions/**/*.md,
58
+ .ai/rules/**/*.md,
59
+ .ai/skills/**/*.md,
60
+ .agents/**/*.md,
61
+ docs/agentic/**,
62
+ docs/recovery/**,
63
+ runbooks/**,
64
+ templates/**,
65
+ ]
66
+ groups:
67
+ - id: mutation-scope
68
+ terms:
69
+ [
70
+ mutation limit,
71
+ allowed mutation,
72
+ allowed mutations,
73
+ allowed tools and mutations,
74
+ permitted mutation,
75
+ permitted mutations,
76
+ allowed path,
77
+ allowed paths,
78
+ allowed prefix,
79
+ allowed prefixes,
80
+ write scope,
81
+ out of scope,
82
+ outside scope,
83
+ edit only,
84
+ do not edit,
85
+ do not continue outside allowed paths,
86
+ do not continue outside the allowed paths,
87
+ ]
88
+ - id: resource-bounds
89
+ terms:
90
+ [
91
+ resource budget,
92
+ token budget,
93
+ time budget,
94
+ cost budget,
95
+ tool call budget,
96
+ tool-call budget,
97
+ token limit,
98
+ time limit,
99
+ cost limit,
100
+ tool call limit,
101
+ tool-call limit,
102
+ wall clock limit,
103
+ wall-clock limit,
104
+ ]
105
+ - id: retry-bounds
106
+ terms: [retry limit, retry budget, max retries, bounded retries, maximum attempts]
107
+ - id: stop-trigger
108
+ terms:
109
+ [
110
+ stop condition,
111
+ stop and ask,
112
+ stop and surface,
113
+ stop safely,
114
+ must stop,
115
+ halt work,
116
+ abort,
117
+ do not continue,
118
+ kill switch,
119
+ ]
120
+ - id: escalation
121
+ terms:
122
+ [
123
+ escalation,
124
+ escalate,
125
+ ask the coordinator,
126
+ ask coordinator,
127
+ surface to coordinator,
128
+ hand back,
129
+ ask a human,
130
+ escalate to a human,
131
+ hand back to a human,
132
+ ]
133
+ - id: recovery-ownership
134
+ terms:
135
+ [
136
+ recovery owner,
137
+ rollback owner,
138
+ incident owner,
139
+ responsible for recovery,
140
+ recovery responsibility,
141
+ on-call owner,
142
+ ]
143
+ min_groups: 6
144
+ max_span_lines: 120
145
+ max_files_per_pattern: 50
146
+ remediation: Add bounded scope, budget, retry, stop, escalation, and recovery requirements to task preflight.
147
+ - id: ADRB-RES-003
148
+ level: 3
149
+ title: Containment and recovery controls are exercised
150
+ outcome: Cancellation, credential revocation, rollback, timeout, and partial-failure recovery are tested.
151
+ risk: Recovery mechanisms exist on paper but fail when the harness behaves unexpectedly.
152
+ allow_attestation: true
153
+ allow_agent_evidence: true
154
+ evidence:
155
+ - type: manual
156
+ scope: organization
157
+ prompt: Show recent automated tests or exercises for stop, timeout, revocation, rollback, and partial failure.
158
+ remediation: Add failure-injection tests and periodic exercises for containment and reversible recovery.
159
+ - id: ADRB-RES-004
160
+ level: 4
161
+ title: Recovery outcomes drive improvement
162
+ outcome: Time-to-detect, time-to-stop, rollback success, impact, and recurrence trends improve containment.
163
+ risk: The same failure patterns repeat because recovery performance and residual impact are unknown.
164
+ allow_attestation: true
165
+ allow_agent_evidence: true
166
+ evidence:
167
+ - type: manual
168
+ scope: outcome
169
+ prompt: Provide recovery outcome trends and a recent containment or rollback improvement driven by them.
170
+ remediation: Trend containment and recovery outcomes and feed them into autonomy and tool design.