Skip to content

Commit 670b844

Browse files
committed
fix: restore contrib template compatibility floors
1 parent 8e13b4f commit 670b844

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

evaluators/contrib/template/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ The template uses `{{NAME}}` for that package identifier. It does not use `{{ORG
3737
- `{{CLASS}}` -> evaluator class name
3838
- `{{AUTHOR}}` -> authoring team
3939

40-
Then confirm the package `version` and the `agent-control-evaluators` /
41-
`agent-control-models` dependency floors still match the current monorepo version before you
42-
commit the new package.
40+
Then confirm the package `version` reflects your release plan and that the
41+
`agent-control-evaluators` / `agent-control-models` dependency floors still match the
42+
compatibility floor used by the existing contrib packages and builtin extras (currently
43+
`>=3.0.0`) before you commit the new package.
4344

4445
3. Add package code and tests:
4546

@@ -76,9 +77,12 @@ After the new package exists as a real contrib package, wire it into the repo co
7677

7778
```toml
7879
[project.optional-dependencies]
79-
<name> = ["agent-control-evaluator-<name>>=<current-version>"]
80+
<name> = ["agent-control-evaluator-<name>>=<minimum-compatible-version>"]
8081
```
8182

83+
Use the lowest published version that is actually compatible with the package; do not tie
84+
this extra to the current monorepo version unless the contrib package itself requires it.
85+
8286
2. Add the workspace source pin to `evaluators/builtin/pyproject.toml`:
8387

8488
```toml

evaluators/contrib/template/pyproject.toml.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ requires-python = ">=3.12"
77
license = { text = "Apache-2.0" }
88
authors = [{ name = "{{AUTHOR}}" }]
99
dependencies = [
10-
"agent-control-evaluators>=7.5.0",
11-
"agent-control-models>=7.5.0",
10+
"agent-control-evaluators>=3.0.0",
11+
"agent-control-models>=3.0.0",
1212
# Add your package-specific dependencies here
1313
]
1414

0 commit comments

Comments
 (0)