Skip to content

Feature: Add Harness² experience-library schema and consolidate/promote workflow #171

Backlog

Description

@gosha70

Context

memkernel is a code-aware memory server with tiered storage. In a Harness² architecture, it is the natural place to store the “improvement harness” experience: which harness edits were proposed, tested, accepted, rejected, and why.

Harness²’s harnessing-level recursion depends on reusable meta-knowledge, not just raw error logs.

Proposal

Add a first-class experience-library schema and API for Harness² lessons.

Suggested record shape:

{
  "task_id": "...",
  "component": "system_prompt|guardrail|memory|tool_guidance|script|subagent|skill|plugin",
  "proposed_edit": "...",
  "evidence": ["trace_ref", "contrast_report_ref"],
  "decision": "accepted|rejected|deferred",
  "scope": "general|domain|repo",
  "confidence": 0.0,
  "expires_at": null,
  "created_at": "..."
}

Support:

  • Store/query lessons by component, repo, task type, and confidence.
  • Deduplicate and merge overlapping lessons.
  • Promote high-confidence lessons from working/short-term to long-term memory.
  • Expire or demote stale lessons.
  • Retrieve relevant lessons for a new task before proposing edits.
  • Record human-review outcomes.

Acceptance criteria

□ Schema documented and versioned.
□ API supports create/query/update/promote/expire.
□ Consolidation can merge duplicate or overlapping lessons.
□ Retrieval returns lessons relevant to a given task/component.
□ Promotion rules are configurable.
□ Tests cover dedupe, promotion, expiry, and retrieval.
□ Documentation includes a Harness² usage example.

Out of scope

  • Automatically applying edits to other repos.
  • Model-weight learning.

Activity

  1. gosha70 commented on Nov 27, 2026

    @gosha70
    OwnerAuthor

    ❗❗❗ This support the global Epic

  2. added 13 commits that reference this issue on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions