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
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The README's promises of provenance, per-run tool census, grading "already on di
```mermaid
graph TD
mcp[MCP server]:::amendment
m6c_integrity[M6c Integrity]:::amendment
m6c_integrity[M6c Integrity]:::done
classDef done fill:#166534,color:#bbf7d0
classDef inprogress fill:#854d0e,color:#fef08a
classDef planned fill:#374151,color:#e5e7eb
Expand All @@ -28,7 +28,7 @@ graph TD
| Node | Type | Status |
|:-----|:-----|:-------|
| `mcp/` | 📁 Directory | 🔵 Amendment |
| `m6c_integrity.md` | 📄 Leaf Task | 🔵 Amendment |
| `m6c_integrity.md` | 📄 Leaf Task | ✅ Done |

## Amendment Log
| ID | Date | Source | Nodes Added | Rationale |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
- [x] The diet's first half landed on `main` as PR #57 (`70d4c3bf`)
- [x] The plan read: `__reports__/diet/04-architecture_cycle_plan_v2.md`, with Eliott's rulings applied and the cut order accepted
**Success Gates**:
- ⬜ Sealed runs have one test producer: with the pre-S1 sealing reapplied on a scratch branch, the guards that read outputs fail; on the base the same revert left them green
- ⬜ Collect has an oracle outside the driver: with B1's fix reverted on a scratch branch, the shared conformance case fails for OpenCode only, naming the files the agent wrote
- ⬜ One reader per input: an experiment with a malformed MCP server is refused by `resolve` with the field path, with the same record from the CLI and the op API, where the base ran it with the server silently absent; the diff adds no trait, wrapper type or module between an input and its use
- ⬜ The `AGENTS.md` section "Sustainable, scalable, efficient" is replaced by the approved paragraph, and the leaf template carries the conventions of D3
- ⬜ The three seam reviews ran, each on its levels' whole diff, and their findings are resolved or recorded
- ⬜ `inspect` shows the census and the resolved `mcp.*` values a sealed run ran with, and no catalog snapshot that Candler did not observe
- ⬜ The dogfooding pass ran on the after tip with two RiVault models under OpenCode, every friction is classified by whose failure it is, the golden covers are listed as passed with the corpus set, and latency and USD are reported
- ⬜ Spend is measured from transcripts per row and no row passed its cap without stopping; levels 1 and 2, coordinator included, stay within the $127 the maintainer approved, and level 3, its lead included, within $70
- ✅ Sealed runs have one test producer: with the pre-S1 sealing reapplied on a scratch branch, the guards that read outputs fail; on the base the same revert left them green (`__reports__/diet/leaves/sealed_run_producer_v0.md`, PR #60)
- ✅ Collect has an oracle outside the driver: with B1's fix reverted on a scratch branch, the shared conformance case fails for OpenCode only, naming the files the agent wrote (`__reports__/diet/leaves/collect_oracle_v0.md`, PR #62)
- ✅ One reader per input: an experiment with a malformed MCP server is refused by `resolve` with the field path, with the same record from the CLI and the op API, where the base ran it with the server silently absent; the diff adds no trait, wrapper type or module between an input and its use (PRs #63 and #66; the before/tip run in `__reports__/diet/05-findings_dogfooding_pass_v0.md` §Rerun)
- ✅ The `AGENTS.md` section "Sustainable, scalable, efficient" is replaced by the approved paragraph, and the leaf template carries the conventions of D3 (PR #59)
- ✅ The three seam reviews ran, each on its levels' whole diff, and their findings are resolved or recorded (`__reports__/diet/leaves/seam_review_one_v0.md`, `seam_review_two_v0.md`, `seam_review_three_v0.md`; open findings carried to the knowledge-transfer report's Next)
- ✅ `inspect` shows the census and the resolved `mcp.*` values a sealed run ran with, and no catalog snapshot that Candler did not observe (PR #77: `inspect-run/1` requires `mcp`, the constant snapshot is removed)
- ✅ The dogfooding pass ran on the after tip with two RiVault models under OpenCode, every friction is classified by whose failure it is, the golden covers are listed as passed with the corpus set, and latency and USD are reported (`__reports__/diet/05-findings_dogfooding_pass_v0.md`: Reasoning-Medium and Reasoning-Large under OpenCode, tokens and latency reported, no USD since RiVault bills none. **Deviation:** the golden covers ran with the corpus set and 15 of 18 passed; the 3 `guard_golden_parity` failures are cross-repo, htn-creator-eval 0.5.2's import rules lack `entry_params`, which Candler's importer requires since `7872a22d`, recorded in §Cross-repo finding; the plug-in will release no 0.5.x with it, so the guard is retired, `test(cli): retire the golden-parity guard`)
- ✅ Spend is measured from transcripts per row and no row passed its cap without stopping; levels 1 and 2, coordinator included, stay within the $127 the maintainer approved, and level 3, its lead included, within $70 (`__roadmap__/integrity/README.md` gate 3: levels 1 and 2 $90.93, at most about $99 with P7's container runs; level 3 $61.78; `__reports__/diet/06-knowledge_transfer_integrity_v0.md` §Spend)
**References**: [Cycle plan v2](../../../../../../../../../../../__reports__/diet/04-architecture_cycle_plan_v2.md) — causes, proof, pieces, order and cost; [AGENTS.md](../../../../../../../../../../../AGENTS.md) — where the D4 paragraph lands; [README.md](../../../../../../../../../../../README.md) — the purpose paragraph, the yardstick

## Step 1: Plan the rest of the milestone
Expand Down
45 changes: 0 additions & 45 deletions crates/candler-core/src/evaluation/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,6 @@ pub enum EvaluateError {
/// own business, so no plug-in process is given it.
const STORE_ROOT_VARIABLE: &str = "CANDLER_STORE_ROOT";

/// The size of the evaluator pool `regrade` opens.
const REGRADE_SLOTS: u32 = 2;

/// The directory under the environment root where `regrade`'s evaluator pool lives.
const REGRADE_POOL: &str = "slots-regrade";

/// Drops what the engine reports: the sink of a call that does not ask for events.
struct Quiet;

Expand Down Expand Up @@ -547,42 +541,3 @@ where
.await
.map_err(|error| EvaluateError::Task(error.to_string()))
}

/// Grades the runs `runs` selects (every run for `None`) of the store at `store` with the plug-in
/// whose manifest is `plugin` and the suite at `suite`, as [`evaluate`] does, with the defaults the
/// golden-parity comparison uses: two requests at once, from an evaluator pool of its own under
/// `env_root/slots-regrade`, each with the deadline its items add up to, and no cancel. It keeps
/// the sender of its cancel watch alive until [`evaluate`] returns.
///
/// # Errors
///
/// Returns the errors of [`evaluate`].
pub async fn regrade(
store: &Path,
plugin: &Path,
suite: &Path,
runs: Option<&str>,
env_root: &Path,
supervisor: Arc<Supervisor>,
) -> Result<EvaluateReport, EvaluateError> {
let (sender, receiver) = watch::channel(false);
let request = EvaluateRequest {
store: store.to_path_buf(),
plugins: vec![plugin.to_path_buf()],
suite: suite.to_path_buf(),
selection: runs.map_or(RunSelection::All, |glob| {
RunSelection::Glob(glob.to_owned())
}),
slots: EvaluatorSlots {
dir: env_root.join(REGRADE_POOL),
count: NonZeroU32::new(REGRADE_SLOTS).unwrap_or(NonZeroU32::MIN),
job: format!("regrade-{}", RequestId::new_v7()),
},
env_root: env_root.to_path_buf(),
request_deadline: None,
record_dir: None,
};
let report = evaluate(request, supervisor, receiver).await;
drop(sender);
report
}
Loading