judgelint 0.2.0-aarch64-linux → 0.2.1-aarch64-linux
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +27 -0
- data/README.md +42 -1
- data/libexec/judgelint +0 -0
- metadata +1 -2
- data/lib/rubygems_plugin.rb +0 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cdcc8e2aac141c94d2f7309f811f6c5826856360fe0370147a9c3a271cea8e4b
|
|
4
|
+
data.tar.gz: 93772aa61c39089407ebc0b8c772b459b6d278ae5da23e994af42e595038145e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88b7e71265b5cd6def316ea31d4afee6e978be6443b85dc86525fe2eb4f1a8ce69d87c32ab244600987cbbac2bf0cffa5cb64ce8b71bd2614e4bd5a331ccf2e5
|
|
7
|
+
data.tar.gz: b3021fb040ca2cdca13d0c0d8f504761aa48b95999d4c1b7885277a5272bdf9b8178200a1962a700a2d32076b2be57fef0468e761d9385f4b254beb12e6d0adc
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.1 (2026-10-29)
|
|
4
|
+
|
|
5
|
+
Security fixes, after two reviews of 0.2.0. A pull request could change the
|
|
6
|
+
config or specs to send code and environment variables to its own server,
|
|
7
|
+
read files outside the project, or pass with answers it made up.
|
|
8
|
+
|
|
9
|
+
- `--pr` reads `.judgelint.yml`, the specs and the cache from the base
|
|
10
|
+
branch, not the pull request.
|
|
11
|
+
- Every file sent to a model, including `context:` files and a directory
|
|
12
|
+
rule's files, must be inside the project, not reached through a link that
|
|
13
|
+
leaves it, not ignored by git, not binary, and at most 4 MB.
|
|
14
|
+
- A provider pointed at another `api_base` doesn't get the provider's key;
|
|
15
|
+
set `api_key_env` for it. Its answers are cached apart.
|
|
16
|
+
- Plain http goes only to localhost. Redirects aren't followed. Responses
|
|
17
|
+
are capped at 16 MB, and a request at 60 seconds.
|
|
18
|
+
- Under `--base` or `--pr`, a changed file that's skipped or refused fails
|
|
19
|
+
the run.
|
|
20
|
+
- An added line that looks like a diff header no longer hides changed lines.
|
|
21
|
+
- Malformed answers and cached values that aren't probabilities are errors
|
|
22
|
+
or misses, not passes.
|
|
23
|
+
- A model with no price fails the cost check unless you pass `--yes` or set
|
|
24
|
+
`price_per_million`. Servers on localhost cost nothing.
|
|
25
|
+
- Errors show the URL as configured, before `${VAR}` is filled in.
|
|
26
|
+
- Releases carry build attestations, are built with a pinned Rust, and push
|
|
27
|
+
the gems from CI. The gem no longer replaces its command with a link to the
|
|
28
|
+
binary, which could break after an uninstall.
|
|
29
|
+
|
|
3
30
|
## 0.2.0 (2026-10-28)
|
|
4
31
|
|
|
5
32
|
- judgelint is written in Rust now. The gem carries the binary for macOS and
|
data/README.md
CHANGED
|
@@ -21,6 +21,10 @@ for macOS and Linux, on arm64 and x86_64. Linux needs glibc 2.34 or newer
|
|
|
21
21
|
binary. Anywhere else, build it with Rust:
|
|
22
22
|
`cargo install --git https://github.com/jpcamara/judgelint`.
|
|
23
23
|
|
|
24
|
+
Each release's archives and gems carry a build attestation from the GitHub
|
|
25
|
+
Actions run that built them, from the tagged source. To check one:
|
|
26
|
+
`gh attestation verify judgelint-aarch64-apple-darwin.tar.gz --repo jpcamara/judgelint`.
|
|
27
|
+
|
|
24
28
|
## Getting started
|
|
25
29
|
|
|
26
30
|
Write your conventions as bullets in a `CONVENTIONS.md`:
|
|
@@ -237,6 +241,39 @@ Actions, GitLab, Buildkite, Bitbucket, Azure Pipelines,
|
|
|
237
241
|
`JUDGELINT_BASE_BRANCH`, or `gh`. Fetch enough history for git to find the
|
|
238
242
|
merge base.
|
|
239
243
|
|
|
244
|
+
Under `--base` or `--pr`, a changed file judgelint can't judge fails the
|
|
245
|
+
run: one too large for the model, or one the model refused to answer about.
|
|
246
|
+
|
|
247
|
+
### Pull requests from people you don't trust
|
|
248
|
+
|
|
249
|
+
`--pr` reads `.judgelint.yml`, the specs, and `.judgelint/cache.bin` from the
|
|
250
|
+
base branch, not from the pull request, so a pull request can't change the
|
|
251
|
+
rules it's checked against, where its code is sent, or the answers it's
|
|
252
|
+
judged by. New or changed conventions apply once they're merged. Run
|
|
253
|
+
judgelint with `--pr` on pull requests; a plain `judgelint` or `--base` run
|
|
254
|
+
uses the checked-out files as they are.
|
|
255
|
+
|
|
256
|
+
Even so, give the job only the model's API key. The pull request's code is
|
|
257
|
+
still what's being read, and the model can be argued with: a comment in the
|
|
258
|
+
code can sway its answer. judgelint is a reviewer, not a security gate.
|
|
259
|
+
|
|
260
|
+
## What gets sent
|
|
261
|
+
|
|
262
|
+
For each file a rule checks, the model gets the file's path and its whole
|
|
263
|
+
contents, numbered, with the spec's text and any `context:` files the rule
|
|
264
|
+
names. A directory rule sends every file in the directory. Nothing else on
|
|
265
|
+
your machine is read or sent:
|
|
266
|
+
|
|
267
|
+
- Only files inside the directory judgelint runs in, and none reached
|
|
268
|
+
through a link that leads out of it.
|
|
269
|
+
- In a git repository, only files git tracks or would add, never ignored
|
|
270
|
+
ones.
|
|
271
|
+
- No binary files, and nothing over 4 MB.
|
|
272
|
+
|
|
273
|
+
Requests go to the model's API over https, or plain http to a server on
|
|
274
|
+
your own machine. The API key goes only to its own provider's address: a
|
|
275
|
+
provider pointed somewhere else with `api_base` needs its own `api_key_env`.
|
|
276
|
+
|
|
240
277
|
## Configuration
|
|
241
278
|
|
|
242
279
|
judgelint runs without a config file. `.judgelint.yml` has four settings:
|
|
@@ -248,6 +285,10 @@ ignore: ["vendor/**"] # files no rule checks, and READMEs that aren't specs
|
|
|
248
285
|
max_cost_usd: 1.00 # refuse a run estimated to cost more, unless --yes
|
|
249
286
|
```
|
|
250
287
|
|
|
288
|
+
A model judgelint has no price for, like any model on OpenRouter, needs a
|
|
289
|
+
`price_per_million` (see below) before a run will spend money on it, or
|
|
290
|
+
`--yes`. A server on your own machine costs nothing.
|
|
291
|
+
|
|
251
292
|
Every run prints what it cost. Answers are cached in `.judgelint/cache.bin`,
|
|
252
293
|
so a file that hasn't changed costs nothing. Commit the cache to share it.
|
|
253
294
|
`judgelint --help` lists the flags.
|
|
@@ -270,7 +311,7 @@ For any other System One or Decisions endpoint, add a mapping to `models`:
|
|
|
270
311
|
models:
|
|
271
312
|
- api_base: https://gateway.example.com/${TEAM} # ${VAR} reads the environment
|
|
272
313
|
model: some-decider
|
|
273
|
-
api_key_env: GATEWAY_KEY
|
|
314
|
+
api_key_env: GATEWAY_KEY # sent only to this api_base
|
|
274
315
|
# path: /v1/systemone protocol: system_one|decisions auth: bearer|basic|none|header:<name>
|
|
275
316
|
# headers: {} provider_options: {} price_per_million: 0.04 batch_size: 32
|
|
276
317
|
```
|
data/libexec/judgelint
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: judgelint
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- JP Camara
|
|
@@ -25,7 +25,6 @@ files:
|
|
|
25
25
|
- LICENSE
|
|
26
26
|
- README.md
|
|
27
27
|
- exe/judgelint
|
|
28
|
-
- lib/rubygems_plugin.rb
|
|
29
28
|
- libexec/judgelint
|
|
30
29
|
homepage: https://github.com/jpcamara/judgelint
|
|
31
30
|
licenses:
|
data/lib/rubygems_plugin.rb
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
# Ships only in judgelint's platform gems, which carry the native binary in
|
|
4
|
-
# libexec/. After installing one, point the judgelint command straight at the
|
|
5
|
-
# binary instead of at RubyGems' Ruby wrapper, which spends about 40 ms
|
|
6
|
-
# loading Ruby and RubyGems before it gets there.
|
|
7
|
-
Gem.post_install do |installer|
|
|
8
|
-
next unless installer.spec.name == "judgelint"
|
|
9
|
-
|
|
10
|
-
native = File.join(installer.spec.full_gem_path, "libexec", "judgelint")
|
|
11
|
-
command = File.join(installer.bin_dir, "judgelint")
|
|
12
|
-
next unless File.executable?(native) && File.file?(command)
|
|
13
|
-
|
|
14
|
-
File.delete(command)
|
|
15
|
-
File.symlink(native, command)
|
|
16
|
-
end
|