feat: adaptive learning engine + cross-layer validator + starter templates (v3.5.0)#4
Merged
Merged
Conversation
…layer validator, starter templates (v3.5.0) Self-learning across sessions: patterns auto-extracted from retrospectives into structured YAML store, agent performance scored with rolling metrics, cross-layer validator catches ABI mismatches before audit, and OP-20 starter template eliminates boilerplate for the most common project type. 272/272 tests pass.
… update README - CRITICAL: Rewrite extract-patterns.sh and update-scores.sh to pass all variable data via sys.argv/sys.stdin instead of string interpolation into Python source code. Eliminates 3 code injection vectors. - MAJOR: Create missing useToken.ts hook referenced by design.md and App.tsx. - MAJOR: Fix cross-layer-validator Write tool contradiction (agent is READ-ONLY, now outputs report as text for orchestrator to save). - MAJOR: Wire up $OUTCOME parameter in update-scores.sh as fallback for ambiguous agent statuses. - MAJOR: Update README.md for v3.5.0 (adaptive learning, cross-layer validator, starter templates, 12 agents, 272 tests, 26 categories). - MINOR: Add cross-layer-validator to agent-scores.yaml. - MINOR: Remove unused Selector import from contract template. - NIT: Replace "latest" with "^1.0.0" in frontend template package.json.
…eferred scope - Fix pipefail crash: add || true to grep pipelines in extract-patterns.sh so missing sections don't cause script exit before the empty-check guard - Implement actual knowledge slice promotion: patterns with 3+ occurrences now append to the relevant knowledge/slices/*.md file with [LEARNED] tag - Add 200-pattern cap with pruning (lowest frequency + oldest first) - Mark US-6 (score-based routing) and US-8 (project-type profiles) as explicitly deferred to v3.6 in CHANGELOG — user scoped this PR to items 1-4 only - Add loop-explorer and loop-researcher to agent-scores.yaml - Comment out unused React imports in App.tsx template - Fix template.yaml: "@rc tags" -> "semver ranges"
…import - Remove duplicate case block in extract-patterns.sh that used unset $CATEGORY variable (would crash under set -u). Keep only the correct $CATEGORY_FOR_SLICE lookup. - Remove unused Map import from contract template.
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.
Summary
learning/patterns.yaml): Auto-extracts anti-patterns from retrospectives into structured YAML. Deduplicates, tracks occurrence counts, auto-promotes to knowledge slices at 3+ occurrences.learning/agent-scores.yaml): Rolling metrics per agent — success rate, cycles to pass, tokens consumed. Suggests model upgrades for underperformers after 5+ sessions.agents/cross-layer-validator.md): READ-ONLY agent that catches ABI-to-frontend mismatches, parameter type errors, contract address inconsistencies, and network config conflicts before the auditor runs.templates/starters/op20-token/): Complete contract + frontend scaffold for OP-20 tokens with customization manifest.New Files (12)
learning/patterns.yaml+learning/agent-scores.yamlscripts/extract-patterns.sh+scripts/update-scores.shagents/cross-layer-validator.md+knowledge/slices/cross-layer-validation.mdtemplates/starters/op20-token/(7 files)Test plan
bash tests/plugin-tests.sh— 272/272 pass (37 new tests)bash -n scripts/extract-patterns.sh— syntax validbash -n scripts/update-scores.sh— syntax validvalidatingphase