feat(01KVS12K): A skill that helped a story reach done is credited as useful even when no READY-FOR-MERGE verdict event was recorded#438
Merged
jackmcintyre merged 2 commits intoJun 23, 2026
Conversation
… useful even when no READY-FOR-MERGE verdict event was recorded Adds a done/-manifest read to computeSkillEffectiveness so that a skill.invoke whose story reached done/ is credited as a useful fire even when no READY-FOR-MERGE reviewer.verdict event was recorded in telemetry (e.g. completion via the auto-merge gate or operator merge on the paused-for-human path). The fix augments — not replaces — the existing verdict join: the done/ directory is read as a new declared injected dependency (readDoneRefsImpl), and any invoke whose story_id is found in done/ is credited. The integration test AC1 uses a fresh isolated temp dir to avoid the two-in-progress-manifest ambiguity that prevented story_id attribution; both AC1 and AC2 pass with the fixed implementation.
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 changed
A skill that helped a story reach done is credited as useful even when no READY-FOR-MERGE verdict event was recorded
This change delivers the following acceptance criteria:
Why
As a maintainer relying on the retro to keep the skill set healthy, I want skill-effectiveness to credit a skill.invoke as a useful fire when its joined story reached done/, not only when a later READY-FOR-MERGE reviewer.verdict event exists in telemetry, so that the retro does not draft a false skill-retire/revise proposal against a skill that helped a story complete through a path that recorded no READY-FOR-MERGE verdict event (for example an auto-merge-gate or operator-merge completion).
How to check it yourself
Risk and blast radius
Risk tier: medium
The change is scoped to the files in the diff below. Review the diff to judge its actual blast radius — including any effect on shared state, data schemas, or authentication paths — before approving.
What is explicitly not covered: reviewer verification of this summary's accuracy is handled by a separate companion story.
Evidence
The pre-pull-request build-and-test gate passed before this pull request was opened. No pull request can be opened by the automated flow unless both
pnpm buildandpnpm testexit 0 in the developer's working directory.Per-criterion covering checks:
plugins/flow/mcp-server/src/tools/__tests__/skill-effectiveness-attribution.int.test.ts(automated test)plugins/flow/mcp-server/src/tools/__tests__/compute-skill-effectiveness.test.ts(automated test)Story: native:01KVS12KCEYJTVPN84NMRAPTT4
Spec: .flow/native-stories/01KVS12KCEYJTVPN84NMRAPTT4.md
ACs:
Credit skill.invoke as useful when its story reached done/ with no READY-FOR-MERGE verdict event