feat: v0.4.1 — meta-progression nudges (coverage hook + intake suggestion)#4
Conversation
…tion)
Closes the gap from v0.4.0. Per-prompt routing was wired; observability
existed; but nothing nudged agents to RUN the analysis or notice when the
registry undercovered their work. v0.4.1 ships two complementary nudges,
both non-blocking and silent-when-healthy.
Added:
- `role-x coverage` subcommand — brief registry-health summary suitable
for a SessionStart hook. Silent (exit 0, no output) when fire-rate
>= 30% AND sanitized capture is on. Otherwise prints a 3-5 line nudge
with concrete next-step hints.
- `scripts/role-x-coverage-hook.sh` — Claude Code SessionStart wrapper.
24h cooldown via stamp file. Graceful-fail on missing Python / PyYAML /
CLI. Always exits 0.
- In-prompt authoring nudge: when intake routes to _meta only AND the
prompt is domain-rich (>= 8 words, >= 4 distinct meaningful tokens),
the agent's working-context output appends a one-line
"role-x init <slug>" suggestion with auto-derived slug.
- 8 new tests (30 -> 38 total): intake nudge fires / suppressed / no-op,
coverage silent / reports / force / below-min-events.
- SKILL.md "When to invoke" expanded with the meta-progression discipline
table (SessionStart cadence, per-prompt trigger, rule-of-three).
- CHANGELOG v0.4.1 with rationale + workspace wiring instructions.
Verified end-to-end against live events.jsonl (43 events / 7d):
- coverage subcommand correctly flags 12% fire-rate as low + sanitized
capture off
- intake nudge fires on "draft a one-page strategic brief..." with
suggested slug "draft-one-page"
- short prompt ("what does this function do") correctly suppresses nudge
- backward compat: 30 prior tests unchanged and green
Workspace wiring lands in a separate PR on broomva/workspace
(.claude/settings.json SessionStart entry). Until that merges, the hook
script is installed but inert.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThis PR releases v0.4.1 of role-x, adding intake-level authoring nudges for substantive _meta-only prompts and a new health-reporting coverage subcommand with SessionStart hook integration to address meta-progression gaps. Changesv0.4.1 Release: Intake Nudge and Coverage Reporting
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Closes the meta-progression gap from v0.4.0. v0.2.0 wired per-prompt routing; v0.4.0 shipped observability; v0.4.1 wires the agent-facing nudges so the system progresses without requiring the user to remember to run `role-x suggest`.
Added
Two complementary nudges
Both non-blocking, silent-when-healthy. Analogous to P8 skill-freshness — nudge but never gate.
Live verification
```bash
$ role-x coverage --since 7d
[role-x coverage] 43 events over 7d. Fire-rate: 12% (low).
Sanitized prompt capture is OFF — cluster discovery disabled. Enable: /Users/broomva/.config/broomva/role/config.json
Body: {"capture_sanitized_prompt": true, "sanitization_strategy": "keywords"}
Author next: `role-x init ` (status: candidate, promote on rule-of-three).
$ role-x intake --prompt "draft a thorough strategic brief about quarterly rollout plans for partner onboarding initiatives" --workspace ~/broomva
[role-x intake — P17 reflex applied]
Lens(es): _meta only (no domain lens scored ≥2)
Mode: augment
…
Note: no domain lens scored ≥2 for this prompt. If this kind of work recurs,
consider expanding the registry: `role-x init draft-thorough` (status: candidate).
```
Test plan
Workspace wiring follow-up
The SessionStart hook is installed by `npx skills update -g role-x` but inert until `.claude/settings.json` registers it. Separate PR on broomva/workspace adds:
```json
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "$HOME/.agents/skills/role-x/scripts/role-x-coverage-hook.sh",
"timeout": 5
}
]
}
]
```
🤖 Generated with Claude Code
Summary by CodeRabbit
v0.4.1 Release Notes
New Features
role-x coveragesubcommand for session-start health monitoring, with silent operation when healthy and reporting when issues are detectedDocumentation
Tests