Repository navigation
#877 phase 2a: Jev org-kind suggestions (flag off), drainer, timer, health card - #902
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d the gold set Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… to match) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion_runs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tion timer Jev errors say whether they are transient; the timer retries those on its #833 budget and alerts (exit 3, jev_failed) on a permanent failure or 48 h without an answer. co-status monitor requested: CannObserv/status#144 (pending). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…from provenance Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lan revisions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ules rows) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ting ok unrun Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 27, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#877 phase 2a: TypeSafe Jev suggests org kinds, with the flag off. Plan:
docs/plans/2026-11-26-877-phase-2-jev-suggestions.md(approved 2026-11-26; revisions at its end). Design:docs/plans/2026-11-24-org-kind-suggestions-design.md. The gold set and its score are PR 2b; the flag stays off until that report is approved.What ships
src/core/org_kind_question.py): the context, the org's state (display name, the registries that list it, up to 300 characters of active role titles; never a person's name), and the criteria (org_kinds.description, plusnone). Production and the gold-set builder both use it, so the score measures what runs. One org per request, so it matches the harness exactly.src/core/jev_client.py), modelled on the WSLCB tracker's: plainhttpx. Retries 429/529; classes errors as transient or permanent; never logs or quotes the key. Tests run onhttpx.MockTransportonly.classification.drain/reask): rules, then Jev for active orgs with no live answer from the pinned model, under an advisory lock. It writes suggestion and run rows only, neverorg_kind_id(the write sweep still holds). An answer from another model counts as a failure.classification_runs: one row per drain that asked or failed. It feeds the health card.src/core/classification_drainer.py): started in the lifespan. Woken bywake()at everysrc/org insert (swept), with a 5 s debounce, else every 15 min, at most 50 orgs.CLASSIFICATION_DRAINER=offleaves it out, and the test suite sets that.classify_suggestions.py --source all(with--limitand--reask-ids FILE), dry by default.power-map-classification. Its DB connect and Jev calls retry on the Timers: retry transient network failures, so a short outage doesn't cost a daily run #833 budget. Exit 3 (jev_failed) on a permanent failure, or after 48 h failing with no stored answer. The co-status monitor is requested in Dead-man monitor for power-map's org-kind classification timer (co-power-map-classification) status#144; the unit ships with an empty id, listed inPENDING_MONITORS.v0.83.0. The client diff is version-only.Verified
Deploy notes (operator)
TYPESAFE_API_KEYto/etc/power-map/.env, and leaveJEV_SUGGESTIONS_ENABLEDunset.docs/RUNBOOKS.md§ Org-kind suggestions). Its first runs are rules-only.--execute. These are suggestion rows only, written on change; today's rules dry run plans 0.TDD notes
permanent/last_answered_atadditions, were written alongside their tests rather than after a red run. Their tests were written first and pass. Everything else went red first.🤖 Generated with Claude Code