Skip to content

Develop - #105

Merged
sampleXbro merged 3 commits into
masterfrom
develop
Jul 22, 2026
Merged

Develop#105
sampleXbro merged 3 commits into
masterfrom
develop

Conversation

@sampleXbro

@sampleXbro sampleXbro commented Jul 22, 2026

Copy link
Copy Markdown
Owner

What does this PR do?

Type of change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Test coverage

Checklist

  • Tests written first (TDD)
  • All CI checks pass (pnpm test, pnpm lint, pnpm typecheck)
  • Changeset added (pnpm changeset) for user-visible changes

…-in trigger repair

PreToolUse recurrence gate: when the exact action has already failed >=2x and a captured lesson covers it, re-inject the covering rule above the recall bullets as a RECURRENT FAILURE escalation that cuts through session dedup. Advisory-only, once per action per session; the escalation is the rule's delivery so it is shown exactly once (recall body dedups it).

Per-session telemetry: recordDelivered/recordFailure/recall telemetry take an explicit harness session_id that wins over the AGENTSMESH_SESSION_ID env fallback, plus a per-batch relevance rank on delivered rows, so stats group by real sessions and a failure only impeaches deliveries within its own session.

Opt-in repairTriggers config (default false): narrow broad/wide file globs toward the evidence file's directory class, add matchable keyword variants, drop dead keywords - warn-only via NARROWED_GLOB/KEYWORD_VARIANT_ADDED/DROPPED_KEYWORD, never blocks a capture, never rewrites a glob to itself.

Split captureLesson into capture.ts for the 200-line cap; update CLI/MCP/public importers. Docs (README + cli/reference mdx), changeset, and resynced .agentsmesh/.lock (0.30.1 -> 0.31.0).
…th current repo

Pin pnpm 10 (pnpm 11 trips --frozen-lockfile on the lockfile); note CI Node 22/24; document the husky pre-commit gate and lint:dead. Add the load-bearing rules that were missing: never edit generated files (.agentsmesh is source of truth), docs must stay current, strict artifact tests, explicit return types/interface shapes. Add a dedicated Changesets section (published surface vs no-ship dirs; never hand-edit version/CHANGELOG). Expand the real CI gate list and fix the mis-nested capabilities heading.
Transitive via @modelcontextprotocol/sdk > ajv > fast-uri (was 3.1.2). Clears GHSA-v2hh-gcrm-f6hx and GHSA-4c8g-83qw-93j6 (host confusion) so 'pnpm audit --prod --audit-level=high' passes CI. Override added to package.json + pnpm-workspace.yaml and lockfile regenerated with pnpm 10 (lockfile stays 9.0); frozen install verified exit 0.
@sampleXbro
sampleXbro merged commit 8662544 into master Jul 22, 2026
26 checks passed
@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.24812% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/lessons/trigger-repair.ts 98.50% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/cli/commands/lessons-write-handlers.ts 93.05% <ø> (ø)
src/lessons/capture-guardrails.ts 100.00% <100.00%> (ø)
src/lessons/capture.ts 100.00% <100.00%> (ø)
src/lessons/hook-emit.ts 100.00% <100.00%> (ø)
src/lessons/hook.ts 100.00% <100.00%> (ø)
src/lessons/outcome-log.ts 100.00% <ø> (ø)
src/lessons/recall-config.ts 100.00% <ø> (ø)
src/lessons/recall.ts 97.29% <100.00%> (-0.78%) ⬇️
src/lessons/recurrence-gate.ts 100.00% <100.00%> (ø)
src/mcp/handlers/lessons.ts 98.36% <ø> (ø)
... and 1 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants