Expert: success/failure outcome labeling for dataset construction #15
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/llm-log#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #8
Depends on: #10, #13
Goal
Build a provenance-first outcome expert that derives task/request success and failure labels suitable for later training/evaluation datasets.
Outcome states
At minimum:
Do not force weak evidence into success/failure.
Evidence classes
Represent evidence separately from the derived label. Candidate evidence includes:
Each evidence item must carry source ID, timestamp, evidence type, strength/authority and exact observed value.
Rules
Prolog derives outcome assertions from bounded task/request evidence. Store:
Never delete earlier labels; preserve label history.
Dataset contract
Provide a query/export contract that can select examples by:
Export must retain links to the immutable raw capture and derived-label provenance so labels can be audited or regenerated.
RED-first
Fixtures must prove baseline cannot distinguish:
Acceptance
Bounded #15 substrate merged via PR #45 at main
00e960a9e75c386054d293eaf72a3678f6fbea5a.Canonical docs:
research/LLM-LOG-RESEARCH-045-outcome-evidence-substrate.orgevidence/LLM-LOG-EVIDENCE-031-outcome-evidence-red.orgevidence/LLM-LOG-EVIDENCE-032-outcome-evidence-green.orgVerified RED → GREEN:
6da93978808564e6d5242ec17ea72e0b80e647f2, run 33445207439: new operation failed withunknown_operation; prior CL/Tek9/SWI contracts passed, Python + HM green.287ac94e30327ed3f987e02c03f1aa290ee95a4c, run 33445559581.704417d5ccf822c8fe18d37be9aa301bb4fcfa9a, run 33445653420.70df878bf514b8e8c6f99a10e8a993e4ec910e38, run 33445728577, all three checks green.Semantics now pinned: outcome evidence is immutable and separate from derived assertions; SWI-Prolog alone owns
outcome_decision; authoritative user rejection beats provider HTTP 200; HTTP 200 alone remainsunknown; exact rule/evidence provenance survives expert-host restart. Tek9 public primitives were sufficient, so no Tek9 repo change. No dotfiles mutation, #13 outcome analytics, provider-census work, or PR #5 changes were mixed into this slice.#15 remains open. Next bounded work should add richer evidence/rules (success/failure/partial/cancelled/timeout), supersession/history query surfaces, then bounded dataset export; #13 outcome analytics should consume those semantics rather than infer from transport.
Bounded #15 slice merged via #47 at merge commit
ac58224f1343ce58bb2189f4164e7ab9df6ab721from exact GREEN headc74fddf94a4a47f2506568e255b117d4d99f6942(workflow33450033533). Canonical design:research/LLM-LOG-RESEARCH-046-outcome-supersession-history.org; RED/GREEN evidence:EVIDENCE-033/EVIDENCE-034. Verified finite Prolog success/failure/partial/cancelled/rejected/timeout rules, HTTP-200-alone remains unknown, cross-scope supersession rejection, immutable supersession projection, and bounded restart-durablequery_outcome_history. No Tek9 repo or dotfiles mutation. Keep #15 open for bounded dataset-export/corpus construction work.Merged bounded #15 outcome dataset substrate via PR #49 at exact tested head
9bf2d997d10a3b2340858a24f1141fdf655832e9;mainis now2f5e4acb5569a2f54a028e2dec30a857b6eb736b.Canonical docs:
research/LLM-LOG-RESEARCH-047-outcome-dataset-export.orgevidence/LLM-LOG-EVIDENCE-035-outcome-dataset-red.orgevidence/LLM-LOG-EVIDENCE-036-outcome-dataset-upgrade-red.orgevidence/LLM-LOG-EVIDENCE-037-outcome-dataset-green.orgVerified: bounded
query_outcome_dataset; immutable rule/expert/evidence/source provenance; superseded labels excluded by default with historical opt-in; truthful truncation; no Prolog re-inference during export; and versioned one-time Tek9 index backfill for pre-upgrade outcome assertions. Final evidence-only run 33455152519 passed Common Lisp/Tek9/SWI-Prolog, Python expert-policy/transport, and Home Manager.Adversarial correction: temporary Tek9 issue #13 / draft PR #14 were closed unmerged after fresh source review showed Tek9 duplicate traversal was not the defect; the fixture had incorrectly assumed positive user feedback alone derived
success. No Tek9 production mutation was required.#15 remains open. Next bounded work should extend the base dataset surface with provenance-preserving joins/curation/export (classification/provider/model/task-cost as separately versioned projections), before #13 consumes #15 outcomes for expensive-failure and token-burn-before-success analytics.
Bounded #15 dataset-metadata slice merged via PR #52.
Canonical design:
research/LLM-LOG-RESEARCH-050-outcome-dataset-request-metadata.orgRED:
evidence/LLM-LOG-EVIDENCE-042-outcome-dataset-request-metadata-red.orgGREEN:
evidence/LLM-LOG-EVIDENCE-043-outcome-dataset-request-metadata-green.orgVerified after expert-host restart:
query_outcome_datasetcan now select request-scoped outcome examples by exact provider/model through bounded Tek9 request→usage lookup and returns usage/provider/model/client/transport metadata. Outcome authority remains the stored #15 assertion; export does not invoke Prolog. Existing Tek9 public primitives were sufficient, so Tek9 was not changed.Exact evidence-only head
558d714bdbf419d41c786fcb54cc78ddf0d13775passed all three expert-plane lanes in workflow 33465664814 before expected-head merge. #15 remains open for later bounded corpus/dataset work.Bounded Auto-ARADR/RAGE slice merged via #54 at
bd377f3472cf61405f62cb79ac25c61268b46fea.Canonical design:
research/LLM-LOG-RESEARCH-051-outcome-dataset-classification.org; RED/GREEN evidence:EVIDENCE-044/EVIDENCE-045.Accepted RED: exact
241b7d10f9d6fbfa72713a423ce98eb2393684dd, run 33469398054 (Python + Home Manager GREEN; only the new CL/Tek9/SWI contract RED). Implementation GREEN:e1f71731da231f700ce46272667454624db69b4d, run 33469561648. Evidence-only exact headfd6f50a265bab174eb97abfc3a18dd17f7c3696a, run 33469628408, independently GREEN in all three lanes.query_outcome_datasetnow supports exact stored #12 classification dimension/value/state selectors and returns classifier assertion/rule/evidence provenance after expert-host restart. The join is bounded through existing Tek9 request/source indexes; SWI-Prolog is not re-run during export and classification metadata grants no outcome authority. No Tek9 or dotfiles mutation was required. #15 remains open for further bounded dataset/corpus work.Bounded #15 task-cost dataset slice merged via #55.
Canonical design:
research/LLM-LOG-RESEARCH-052-outcome-dataset-task-cost.orgRED evidence:
evidence/LLM-LOG-EVIDENCE-046-outcome-dataset-task-cost-red.orgGREEN evidence:
evidence/LLM-LOG-EVIDENCE-047-outcome-dataset-task-cost-green.orgAccepted RED:
d8f0a86a58a0337ba8757a681a352c30fa6bdf18, workflow33472780086— existing gates stayed green except the new CL/Tek9/SWI contract, which proved task-cost selectors were ignored.GREEN implementation:
662acc1ca9099a300a9bff01d26d124d50568b78, workflow33472989667. Final evidence-only exact head3e53d01de73eda503211589d7d27f207d9f55e32, workflow33473123450, independently passed Common Lisp/Tek9/SWI-Prolog, Python expert policy/transport, and Home Manager.Behavior:
query_outcome_datasetnow supports bounded task cost state/currency/min/max selection by reusing #13query-task-accounting; numeric bounds only match complete known costs, task projections are cached per query, truncated accounting is rejected, and immutable usage/cost assertion provenance is returned. No export-time Prolog, price recomputation, Tek9 repo mutation, Python transport mutation, or dotfiles mutation.Merged main:
f3f146c160afc91509e96afcde3db4040517550d.Leaving #15 open for remaining bounded dataset/corpus acceptance work.
Historical corpus backfill/query/export slice merged via #84 at merge commit
692d3820f638c011fc248a7694ecabd72a6e2895from exact GREEN head70561b68ce6346e33f30645ccb8aec556415698c.Delivered:
events.jsonlreplay with stable IDs and checkpoints;query_outcome_datasetproven across 257 examples;Final PR head GREEN: Expert plane run
34921711756, Analytics run34921711765, Quota run34921711768. Canonical design/evidence:LLM-LOG-RESEARCH-053/LLM-LOG-EVIDENCE-048.Keep #15 open for later bounded training projections such as SFT/DPO/tool-trajectory dataset transforms.