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
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: setup check lint fmt test contracts bundle web web-check help
.PHONY: setup check lint fmt test contracts bundle robustness web web-check help

help:
@echo "make setup install Python and web dependencies"
Expand All @@ -8,6 +8,7 @@ help:
@echo "make fmt format Python and web code"
@echo "make contracts regenerate schemas/, the fixture bundle and the web types"
@echo "make bundle REPO=<id> copy that repo's report bundle into the web app"
@echo "make robustness REPO=<id> measure the stability table, then rebuild the report"
@echo "make web run the web app against the bundles in web/public/bundles"

setup:
Expand Down Expand Up @@ -41,6 +42,12 @@ bundle:
uv run python -c 'from codexray.report.bundle import main; main()' $(REPO)
@if [ -f web/scripts/layout.mjs ]; then node web/scripts/layout.mjs web/public/bundles/$(REPO); fi

# After `codexray report --repo <id>`: the stability table of spec.md §11.3. Re-runs analyze
# twice on copies and the whole pipeline once with END a month earlier, then the report.
robustness:
@test -n "$(REPO)" || (echo "usage: make robustness REPO=<repo id>"; exit 2)
uv run python -c 'from codexray.report.robustness import main; main()' $(REPO)

web:
cd web && npm run dev

Expand Down
8 changes: 5 additions & 3 deletions rules/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

One file per analysed repository: `rules/<repo_id>.yaml`.

`codexray decisions propose` writes a proposal into the run folder. A person reviews it,
sets `reviewed: true` on the rules that are right, and commits the result here. Only
reviewed rules can produce a finding. The record is `Decision` in
`codexray decisions propose` writes the proposals into the run folder: `proposals.yaml`
in this format, and `proposals.json` with each source's outcome and a dry run of every
checkable proposal against the map (links it applies to, exceptions, examples). A person
reviews them, sets `reviewed: true` on the rules that are right, and commits the result
here. Only reviewed rules can produce a finding. The record is `Decision` in
`src/codexray/core/contracts.py`; the shapes and sources are in spec.md §9.1.

```yaml
Expand Down
Loading