- Create scripts/utils/propose-pattern.js to propose new patterns or
extend existing ones based on a newly applied workaround/fix.
- Default to dry-run preview; --apply writes files only after human review.
- Matches against existing patterns via keyword overlap and proposes an
update when the shape is similar enough, or a new pattern file otherwise.
- Update patterns/README.md with feedback-loop instructions.
- Update MEMORY.md to document the plasticity loop.
- Update CONTEXT.md decisions log and current tasks.
- Create patterns/ directory with README, manifest, and 10 initial patterns
covering Ollama JSON fallback, API escaping, deprecation, PTY auth,
queue-poll, LLM-as-parser, credential rotation, reverse proxy binding,
human approval gates, and transient retry.
- Wire pattern loading into architecture/pipeline.js based on task tags.
- Update architecture/orchestrator.js to load patterns and surface them in
the system prompt.
- Update MEMORY.md, ARCHITECTURE.md, and CONTEXT.md to document the registry
and record the decision.