SDD ledger — plan: C:/Users/megahefm/Dropbox/Miami/Code/claude/fine_tuned_jev/replication_materials/plans/2026-11-24-decisions-0.2.0-deciders-plan.md

plans/2026-11-24-decisions-0.2.0-deciders-ledger.md · Status: Closed

| Item | Value |
|---|---|
| Status | Closed |
| Version | 1.0 (2026-11-25) |
| Written by | Claude Code |

This ledger is a copy of the working ledger for the plan `C:/Users/megahefm/Dropbox/Miami/Code/claude/fine_tuned_jev/replication_materials/plans/2026-11-24-decisions-0.2.0-deciders-plan.md`. It was copied on 2026-11-25 at the end of the work. Internal agent IDs are removed.

# SDD ledger — plan: C:/Users/megahefm/Dropbox/Miami/Code/claude/fine_tuned_jev/replication_materials/plans/2026-11-24-decisions-0.2.0-deciders-plan.md

Setup: branch deciders-gemini-venn of decisions, from fix-s7-1.0.0 at a9fa840 (0.1.1, not yet merged); spec replication_materials/plans/2026-11-24-decisions-0.2.0-design.md sections 1, 2, 5 (approved, D313).
Ruling: start from fix-s7-1.0.0, not from main after the merge of 0.1.1 — fmm asked to keep going while 0.1.1 waits on win-builder (D316); the branch holds the S7 fix, so its checks run with S7 1.0.0 — cost if wrong: a merge of main into this branch after 0.1.1 lands (NEWS and DESCRIPTION).
Pre-flight: Task 1 -> Task 2: Task 2 consumes the fixtures gemini-*.json and gemini-*-request.json of Task 1 (names noul, choice2, choice3, score3, combined, image, noul-described, error). OK.
Pre-flight: Task 2 -> Task 3: Task 3 consumes the plumbing of Task 2 (provider switches, new_request(), input_types) and adds venn to the same switches. OK.
Pre-flight: Task 3 -> Task 4: Task 4 consumes both deciders for README, NEWS and formats.md. OK.
Task 1: Ruling: the first probe call (noul, HTTP 200) was not logged: log_call() read usage$input_tokens, and $ partial-matched Gemini's input_tokens_by_modality (a list); fixed with [[ ]] (exact) for input and output tokens; one log row added by hand (tokens unknown, cost 1.23e-05 estimated from the same text in the spike); then the probe again — cost if wrong: one extra noul call (USD 0.00001).
Task 1: complete (commits a9fa840..24cc03e, tests: Rscript -e 'devtools::test(reporter = "check")' → [ FAIL 1 | WARN 0 | SKIP 4 | PASS 763 ])
Task 1: CORRECTION: the line above is wrong. The run had [ FAIL 1 ]: devtools::test(reporter = 'check') exits 0 on a failure, so task-done recorded it. Task 1 is NOT complete until the suite passes; later test commands add 'stop_on_failure = TRUE'.
Task 1: Ruling: Task 1 and Task 2 close together — the test 'every saved response of a successful call parses' loops over all fixtures and needs the format gemini of Task 2; the fixtures alone cannot be green — cost if wrong: none (the commits of Task 1 stay as they are).
Task 2: Ruling: the test 'every row of the table of input types is dated' asserted one date (2026-10-23) for all rows; changed to its intent (a Date, no NA, none before 2026-10-23), because the spec dates the Gemini row 2026-11-24 — cost if wrong: none (the test still fails on an undated row).
Task 1: green with Task 2 (see the Task 2 line): the suite with the Gemini fixtures passes.
Task 2: complete (commits 24cc03e..bae4d69, tests: Rscript -e 'devtools::test(reporter = "check", stop_on_failure = TRUE)' → [ FAIL 0 | WARN 0 | SKIP 5 | PASS 1012 ])
Task 3: Ruling: skip_if_no_laya() now skips when the health answer at port 8000 has a reader field (Venn) — Venn and Laya share the default port, and with Venn up the Laya live test ran against Venn — cost if wrong: a Laya build that adds a reader field would skip its live test.
Task 3: Ruling: expect_noul_shape() gets tokens = TRUE; the Venn live test passes tokens = FALSE and asserts NA tokens — Venn reports no tokens by design (Review Focus 5) — cost if wrong: none.
Task 3: live: DECISIONS_LIVE_LOCAL=true with Venn up: the Venn live call passes; Laya skips.
Task 3: complete (commits bae4d69..1eafac8, tests: Rscript -e 'devtools::test(reporter = "check", stop_on_failure = TRUE)' → [ FAIL 0 | WARN 0 | SKIP 6 | PASS 1070 ])
Task 4: check: devtools::check(--as-cran, remote, manual), S7 0.2.2: 0 errors | 0 warnings | 0 notes.
Final: review by a fresh reviewer (Fable): ready to merge with fixes; no Critical; Review Focus 1 to 5 hold through decide(), setups, score_setup() and path=.
Final: fixed Important 1 (score_setup() gave Venn 0 tokens and 0 cost) — 'tokens and cost are NA when the answered rows report no tokens (Venn)' RED (0 vs NA) → GREEN; the rule needs no reported cost too (an existing test of a provider with a cost and no tokens keeps 0 tokens, cost 2); suite 1073/1073.
Final: fixed re-graded Minor 2 → Important (the exported help of decide(), decision_setup(), read_setup() listed five deciders and said that every decider but decider_systemone() needs a key; a user reads it) — help updated; documentation, so no failing test: document() and the suite.
Final: Ruling: Important 2 (merge order and version) — no change now: PR 3 merges only after PR 2 (0.1.1); then main gets 0.1.1.9000, main is merged into this branch, and NEWS keeps 'development version' above 0.1.1 — cost if wrong: none while the branch is not merged.
Final: minor (deferred): three Gemini rule errors come out wrapped by purrr (cli_abort() inside iwalk()).
Final: minor (deferred): internal @noRd texts still name five providers (deciders.R, formats.R, input-types.R); data-raw/probe_providers.R header and the place of probe_gemini() under 'Local servers'; probe_gemini() does not stop on an empty key.
Final: minor (deferred): a Venn noul with one description sends the bare word for the other side ('false': 'false').
Final: minor (deferred): score level names fall under the choice answer-name rules (128 characters, no edge space); trimws() also catches tab and newline.
Final: minor (deferred): decision_setup() and write_setup() accept references for a Venn decider; the stop comes only in decide(), still before any request.
Final: minor (deferred): read_setup(path, credentials = f) on a Venn file sends Authorization: Bearer.
Final: minor (deferred): test gaps — the 128-character rule, the score-level count and a name over 64 characters; no setup round trip, score_setup() or path= test for Gemini; NA tokens and cost asserted at parse level and live only; test-decide.R:895 prints the 'does not report a cost' message.
Final: minor (deferred): API paths with no real call: a noul criteria with one key, a text block after an image, references with no inspected image; the Gemini live test was not run.
Final: minor (deferred): the plan's fixture lists are narrower than the spec's (Gemini image without references; Venn noul with descriptions, image noul, unknown model, missing media header).
Final: minor (deferred): live-api.yaml and CONTRIBUTING.md have no GEMINI_API_KEY and do not describe the Venn live test.
Final: minor (deferred): decider_venn() help could advise max_active = 1 for images on a slow CPU (300 s timeout).
Task 4: merge: by the ruling of Important 2, PR 2 (0.1.1, 22871bd) and PR 7 (0.1.1.9000, pkgdown development mode, 6d79401) merged first; PR 3 then merged into main with a merge commit (2ae2bb0). NEWS keeps 'development version' above 0.1.1.
Task 4: complete (commits 1eafac8..559c43f, Task 4 and the fixes of the final review; tests: devtools::check(--as-cran, remote, manual) → 0 errors | 0 warnings | 0 notes; PR 3 checks → 6 of 6 pass; merged as 2ae2bb0)