feat(workspace-probe): @metaharness/workspace-probe β eval + Darwin-Mode bridge for workspace-lens (ADR-239)#131
Merged
Merged
Conversation
β¦ode bridge for workspace-lens (ADR-239)
A thin, pure companion to @metaharness/workspace-lens (ADR-238) that turns Jacobian-Lens interpretability
receipts into evaluation signal:
- workspaceProbeScore(receipts, {driftThreshold}) β { n, score=cleanFraction, meanDrift, flagRate,
criticalRate } β a flywheel-consumable `workspace_probe` surface: the fraction of decisions whose
workspace was clean (no critical trigger AND drift below threshold). Empty set β 0 (nothing witnessed
β no credit).
- gradeMutationByWorkspace(baseline, mutant, opts) β { keep, reasons, baseline, mutant } β Darwin-Mode
mutation evidence: a VETO that rejects a mutation which raises the critical-trigger rate, destabilizes
the workspace (mean drift up beyond tolerance), or drops the clean fraction β even if final answers
improved ("final answer up, workspace grip down" = structurally brittle). Pairs with the gold/answer
gate (keep only if BOTH pass); never weakens it. meetsPromotionRule untouched.
Depends only on the workspace-lens types; deterministic; $0. Logic was developed + validated in
isolation against the published @metaharness/workspace-lens@0.1.0, then re-homed with a local workspace
dep. 9 synthetic tests; tsc clean; healthcheck 8/8. Wired into build-ordered phase-2 (after workspace-lens)
+ the version-coherence allowlist; ADR-239. (The lockfile also gains the workspace-lens entry that #129
did not add.)
Co-Authored-By: claude-flow <ruv@ruv.net>
4 tasks
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.
What / why
A thin, pure companion package to
@metaharness/workspace-lens(ADR-238, #129) β the application layer that turns Jacobian-Lens interpretability receipts into evaluation signal:workspaceProbeScore(receipts, {driftThreshold})β{ n, score = cleanFraction, meanDrift, flagRate, criticalRate }β a flywheel-consumableworkspace_probesurface: the fraction of decisions whose workspace was clean (no critical trigger AND drift below threshold). Empty set β0(nothing witnessed β no credit).gradeMutationByWorkspace(baseline, mutant)β{ keep, reasons, baseline, mutant }β Darwin-Mode mutation evidence: a veto that rejects a mutation which raises the critical-trigger rate, destabilizes the workspace (mean drift up beyond tolerance), or drops the clean fraction β even if final answers improved ("final answer up, workspace grip down" = structurally brittle). It pairs with the gold/answer gate (keep only if both pass) and never weakens it;meetsPromotionRuleis untouched.Depends only on the workspace-lens types; deterministic;
$0.Validation
@metaharness/workspace-lens@0.1.0, then re-homed with a local workspace dep.tscclean against the local workspace-lens; healthcheck 8/8.build-orderedphase-2 (builds afterworkspace-lensin phase-1) + the version-coherence allowlist; ADR-239.@metaharness/workspace-lensworkspace entry that feat(workspace-lens): @metaharness/workspace-lens β Jacobian-Lens interpretability primitive (ADR-238)Β #129 didn't add.π€ Generated with claude-flow