Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@
# section, and internal/pipeline/replay, which reads
# no year (ADR-0074), counts their work-type change
# events all the same
# the report writes the families commit-size, ADR-0062 WP-0061
# ai-archaeology and static-analysis under those
# keys, while their declarations give the
# catalogue's namespaces commit_size, ai_archaeology
# and static_analysis (clause 3); nothing routes
# output through a declaration until WP-0061
#
# Two rules from table 1 are enforced by a checker rather than here, because
# this linter's configuration cannot express them (ADR-0055 clause 2):
Expand Down
5 changes: 1 addition & 4 deletions docs/metrics.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,6 @@ family's method field says so.
| `hotspots` | Top 100 files by `hotspot_score`, with all three values. |
| `churn_files` | Files receiving at least 5 analysed commits within any rolling 30-day window, limit 100. |

Without working tree access, the family is `skipped` with reason
`worktree_unavailable`.

---

## 11. `static-analysis`
Expand Down Expand Up @@ -373,7 +370,7 @@ so the set can be read mechanically.
Family status codes, carried by a skipped or degraded family (ADR-0032
clause 2):

`worktree_unavailable`, `not_implemented`, `empty_population`,
`not_implemented`, `empty_population`,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Remove the retired reason code from the entire tree

When this line removes worktree_unavailable from the authoritative catalogue, docs/conventions.md:21 still presents that token as a reason-code example. It therefore now recommends a code that the catalogue says does not exist, while ADR-0076 clause 11 and its acceptance criteria require the code to be absent from the tree. Since that remaining file is outside WP-0061's allow list, this contradiction should have stopped the package instead of being left as an out-of-scope item.

AGENTS.md reference: AGENTS.md:L18-L25

Useful? React with 👍 / 👎.

`cardinality_limit`, `low_classification_confidence`, `shallow_clone`,
`limit_reached_commits`, `limit_reached_size`, `limit_reached_duration`,
`limit_reached_memory`, `symlink_escaped_root`, `capability_unavailable_in_mode`,
Expand Down
17 changes: 8 additions & 9 deletions docs/report-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"major": {
"type": "integer",
"enum": [
1
2
]
},
"minor": {
Expand Down Expand Up @@ -193,18 +193,18 @@
"families": {
"type": "object",
"additionalProperties": false,
"description": "Every family of ADR-0024 clause 5, each with a version and a status (ADR-0031 clause 2, ADR-0032).",
"description": "Every family of ADR-0076 clause 6, each under the namespace docs/metrics.md gives it (ADR-0076 clause 1, ADR-0062 clause 3), with a version and a status (ADR-0031 clause 2, ADR-0032). The namespaces became the keys in document version 2.0.",
"required": [
"temporal",
"commit-size",
"commit_size",
"messages",
"files",
"coupling",
"ownership",
"worktype",
"ai-archaeology",
"ai_archaeology",
"hotspot",
"static-analysis"
"static_analysis"
],
"properties": {
"temporal": {
Expand Down Expand Up @@ -278,7 +278,7 @@
}
]
},
"commit-size": {
"commit_size": {
"oneOf": [
{
"type": "object",
Expand Down Expand Up @@ -570,7 +570,7 @@
"$ref": "#/$defs/skippedFamily",
"description": "Not implemented yet; present as skipped (ADR-0032 clause 1)."
},
"ai-archaeology": {
"ai_archaeology": {
"$ref": "#/$defs/skippedFamily",
"description": "Not implemented yet; present as skipped (ADR-0032 clause 1)."
},
Expand Down Expand Up @@ -645,7 +645,7 @@
}
]
},
"static-analysis": {
"static_analysis": {
"$ref": "#/$defs/skippedFamily",
"description": "Not implemented yet; present as skipped (ADR-0032 clause 1)."
}
Expand Down Expand Up @@ -749,7 +749,6 @@
"items": {
"type": "string",
"enum": [
"worktree_unavailable",
"not_implemented",
"empty_population",
"cardinality_limit",
Expand Down
7 changes: 4 additions & 3 deletions docs/work/0061-aggregate-stage.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ repository unreadable.
`internal/pipeline/run.go`, `internal/core/**`, `internal/checks/**`,
`docs/report-schema.json`, `testdata/**` golden files, `docs/metrics.md`
**for the section 10 sentence and the section 13 code in clause 4a only**, `internal/metrics/hotspot/**`
and `internal/metrics/staticanalysis/**` **for their declarations only**, and
`.golangci.yml` **for the namespace deviation entry and the hotspot deviation
entry only**.
and `internal/metrics/staticanalysis/**` **for their declarations only**,
`internal/server/api_test.go` **for the report schema version assertion
only**, and `.golangci.yml` **for the namespace deviation entry and the
Comment on lines +84 to +85

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Revert the package's self-expanded allow list

For WP-0061, this hunk edits docs/work/0061-aggregate-stage.md even though the package does not include its own definition in the Files allow list, specifically to authorize the internal/server/api_test.go change made by this implementation. Repository rules require stopping and reporting when a needed file is outside the list rather than widening the list during implementation; otherwise the scope restriction can be bypassed by every package. The package author must adjust the scope separately, or the implementation must avoid that file.

AGENTS.md reference: AGENTS.md:L38-L42

Useful? React with 👍 / 👎.

hotspot deviation entry only**.
**Must not touch:** `internal/metrics/**` other than the two declarations above,
`internal/pipeline/collect/**`, `internal/pipeline/replay/**`, `cmd/**`,
`docs/decisions/**`, `docs/metrics.md`.
Expand Down
Loading
Loading