Ranker_Class.ApplyFeedback scales each candidate's score by the tenant's ratings of its
current revision (x1.1 per useful up to 5, x0.9 per not_useful up to 5, x0.5 per
incorrect/harmful up to 3) and re-sorts. Recall and search results carry feedback
counts; all three endpoints warn when results were demoted. A corrected memory starts
without feedback. tests/phase3-learning.sh: 93 checks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Router_Class.Resolve falls back to ErrorController.MethodNotAllowed when the path is
routed for other methods; ErrorController answers /api/... without the layout in the
API error format. Tests: phase1 (79 checks) and phase3-learning assert 405.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ApiLearningController: POST/GET /sessions/:id/events, POST /learn, GET /candidates[/:id],
POST /candidates/:id/review (verify permission, no self-approval without admin, stale
revision proposals 409, duplicates reuse the memory), GET /memories/:id/sources (evidence
the caller cannot read is shown without its id), POST /feedback.
- core/lib.Learning.asp: evidence validation and pinning, shared memory writes, telemetry.
Recall, search and context record the query_id they return and each result revision.
- Migration for experiences, learning_candidates, evidence_links, retrieval_queries,
retrieval_results and feedback; forget and provision purge remove the linked rows.
- Readiness reports degraded plus the embedding backlog; embed-worker container retries
pending items every 30 s.
- tests/phase3-learning.sh (85 checks); OpenAPI, README and AGENTS.md updated.
- scripts/kb.sh: use this repo's own knowledge base (keys in git-ignored .amk.env).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- docker-compose: ollama (nomic-embed-text) and qdrant services.
- core/lib.Embeddings.asp: Ollama and Qdrant clients, embedding_index
bookkeeping (pending/indexed/failed/delete with model, dimensions and
revision), Ranker_Class with reciprocal rank fusion of lexical and vector
ranks. Falls back to lexical with a warning when the provider is off/down.
- Write paths mark rows inside their transaction and index after commit
without failing the write; forget, purge and new document revisions remove
points. scripts\embed.cmd status|run|reindex catches up or rebuilds.
- /recall, /search and /context use the shared ranker and report strategy.
- Lexical queries drop common English stopwords; fix AscW sign so characters
U+8000..U+FFFF are kept as word characters.
- Migration create_embedding_index_table; tests/phase3-semantic.sh (30
checks); OpenAPI, README and AGENTS.md updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ApiContextController: token-budgeted task briefing. Constraints are loaded by
scope and required (422 context_budget_exceeded when they do not fit);
working state from the session checkpoint, preferences, disputed items as
conflicts, lexical decisions/lessons/knowledge and reference passages,
optional unverified items; deduplicated by content, trust-labelled.
- Api_Utf8Decode, JsonLite and the API generator template flag code points
above U+FFFF (ChrW fails on the pinned AxonASP build, surrogate pairs come
out as CESU-8); Api_ReadBody answers 422 unsupported_character. Fixes the
signed hex parse of \u escapes in JsonLite.
- Pin the AxonASP image by digest.
- tests/phase3-context.sh (60 checks); phase1 UTF-8 checks updated (74).
- OpenAPI, README and AGENTS.md updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds ApiDocumentsController, core/lib.Search.asp (class-based chunker, FTS5 indexing),
POST /recall and /memories/:id/verifications, the documents/search migration, purge
coverage for the new tables, OpenAPI spec and tests/phase2-api.sh.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Two reversible migrations: tenants/principals/api_keys/namespaces/
access_grants, then memory_types/memories/memory_revisions/
idempotency_keys/sessions/checkpoints/audit_events. Verification is
per revision. Document migrator one-per-process quirk in AGENTS.md.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- docker-compose.yml mounts the repo at /opt/axonasp/site and serves
public/ via SERVER_WEB_ROOT so gen.cmd/migrate.cmd work
- AGENTS.md/README.md: drop deploy/ references, add include-order,
Eval/Execute, call-site binding and single-line If gotchas
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- Add docker-compose.yml serving public/ on 8801 (mounts core, app, db)
- Include mvc.asp last in autoload_core so class methods can see
GetRouter()/Flash()
- Dispatch controllers through per-controller Invoke + <Name>_Invoke
(GetRef) entry points instead of runtime Eval/Execute, which doubled
output and bound a shared call site to the first controller
- Update generateController.vbs and Api.tpl.asp to emit Invoke
- Ignore UPSTREAM-TODO.txt
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>