{
  "schema_version": "2.1.0",
  "slug": "hsi",
  "record_version": "2026-11-25.1",
  "record_status": "draft",
  "content_sha256": "590b74c9ef8b35035c914f878c0444a20679ea95c3af90998eb6da4d4fb4c129",
  "name": "HSI (Hierarchical Self-Improvement)",
  "aliases": [
    "Hierarchical Self-Improvement"
  ],
  "summary": "Three-layer architecture comprising a task harness, an evolver, and a meta-evolver, ranking candidates with a lower-confidence-bound selection reward (mean - z * sd / sqrt(n), z = 0.5).",
  "plain": {
    "what_it_is": {
      "text": "A three-layer system where one layer does the task, one improves it, and one improves the improver, choosing candidates with a cautious score.",
      "from": [
        "summary"
      ]
    },
    "what_it_changes": {
      "text": "It changes its own code and the way it improves itself.",
      "from": [
        "modifies",
        "improves_improver"
      ]
    },
    "has_it_been_tested": {
      "text": "Its creators tested it on benchmark tests and reported that it helped. We have not checked this against the source yet. Its score for picking candidates is not a safety guarantee. Koobo has not tested it yet.",
      "from": [
        "evidence_claims[].claim_type",
        "evidence_claims[].setting",
        "evidence_claims[].independence",
        "evidence_claims[].outcome",
        "evidence_claims[].provenance.check_status",
        "evidence_claims[].scope.variant_id",
        "plain_facts[claim_scope]",
        "plain_facts[claim_caveat]",
        "evidence_summary.has_koobo_completed_eval"
      ]
    },
    "can_you_undo_it": {
      "text": "Earlier candidates are kept during offline search. The record does not establish a way to restore an earlier version in a live deployment. Offline selection does not deal with actions taken in live use.",
      "from": [
        "rollback.has_usable_rollback",
        "rollback.status",
        "rollback.restoration_scope",
        "rollback.automatic_trigger",
        "rollback.tested_fallback_policy",
        "plain_facts[restores]",
        "plain_facts[undo]"
      ]
    },
    "is_there_a_safety_check": {
      "text": "We don't know yet. Not shown in the sources.",
      "from": [
        "safety_gate.status",
        "plain_facts[safety]"
      ]
    },
    "how_hard_to_adopt": {
      "text": "High effort to build its three-layer improver inside an existing agent. It needs its own platform, so an existing agent would have to move to it. It is an offline research prototype. The README says MIT; the license file has not been verified.",
      "from": [
        "adoption_effort_non_framework.level",
        "plain_facts[effort_scope]",
        "variants[].adoption_effort_level",
        "framework_dependency.requires_framework_migration",
        "plain_facts[adoption]",
        "license.spdx",
        "license.check_status",
        "variants[].license_spdx",
        "plain_facts[license]"
      ]
    }
  },
  "plain_facts": [
    {
      "topic": "restores",
      "ref": null,
      "text": "earlier candidates",
      "from": "rollback.mechanism"
    },
    {
      "topic": "effort_scope",
      "ref": null,
      "text": "build its three-layer improver inside an existing agent",
      "from": "adoption_effort_non_framework.implementation_scope"
    },
    {
      "topic": "adoption",
      "ref": null,
      "text": "It is an offline research prototype.",
      "from": "adoption_effort_non_framework.notes"
    },
    {
      "topic": "license",
      "ref": null,
      "text": "The README says MIT; the license file has not been verified.",
      "from": "license.notes"
    },
    {
      "topic": "undo",
      "ref": null,
      "text": "Offline selection does not deal with actions taken in live use.",
      "from": "rollback.side_effect_limit"
    },
    {
      "topic": "claim_caveat",
      "ref": "hsi-author-bench-1",
      "text": "Its score for picking candidates is not a safety guarantee.",
      "from": "evidence_claims[hsi-author-bench-1].scope.caveats"
    }
  ],
  "modifies": [
    "code",
    "the_improver"
  ],
  "improves_improver": true,
  "learning_signal": {
    "types": [
      "benchmark_metric"
    ],
    "description": "Development-task scores aggregated into a conservative lower-confidence-bound selection reward (mean - 0.5 * sd / sqrt(n))."
  },
  "pre_use_evaluation": {
    "status": "yes",
    "held_out_split": "partial",
    "live_activation_gate": "no",
    "how": "Ranks candidates via LCB (mean - z * sd / sqrt(n) with z = 0.5) on dev tasks. BabaIsAI uses development, validation, and inaccessible test splits; some other suites reuse the same task distribution with new seeds."
  },
  "rollback": {
    "status": "checkpoint_only",
    "has_usable_rollback": "no",
    "restoration_scope": "offline_archive_only",
    "automatic_trigger": null,
    "tested_fallback_policy": "no",
    "mechanism": "Selection-time candidate ranking across offline generations; no live post-deployment rollback service.",
    "side_effect_limit": "Offline selection does not address live operational side effects."
  },
  "post_deploy_measurement": {
    "status": "no",
    "how": "Offline research evaluation suites only."
  },
  "safety_gate": {
    "status": "unverified",
    "blocks_unsafe_despite_utility_gain": "unverified",
    "write_time_blocks_activation": "unverified",
    "reuse_time_blocks_activation": "unverified",
    "how": "The z = 0.5 LCB formula is a conservative selection reward, not a 95% statistical safety certificate. Whether separate safety gates exist elsewhere in the system is unverified pending primary inspection."
  },
  "license": {
    "spdx": "MIT",
    "source_url": "https://github.com/TailinZhou/hsi",
    "check_status": "pending",
    "checked_at": null,
    "checked_by": null,
    "notes": "The repository README states MIT. A root LICENSE fetch returned 404, so the license file itself is unverified."
  },
  "repo_url": "https://github.com/TailinZhou/hsi",
  "paper_url": "https://arxiv.org/html/2608.08466",
  "maturity": {
    "stage": "research_prototype",
    "last_observed_activity_date": null,
    "activity_criterion": "Paper sections 3.3 and 4.1 inspected 2026-11-24; repository unverified."
  },
  "framework_dependency": {
    "level": "agent_runtime_coupled",
    "requires_framework_migration": "yes",
    "required_runtime_or_sdk": "Three-layer harness, evolver, and meta-evolver research setup."
  },
  "adoption_effort_non_framework": {
    "level": "high",
    "judgment_owner": "koobo_editorial",
    "implementation_scope": "Implementing a three-layer hierarchical evolver and meta-evolver inside a custom agent.",
    "notes": "High architectural complexity; offline research prototype."
  },
  "variants": [
    {
      "variant_id": "hsi-three-layer",
      "label": "HSI harness + evolver + meta-evolver",
      "scope": "Hierarchical self-improvement with z = 0.5 LCB selection reward.",
      "license_spdx": "MIT",
      "license_check_status": "pending",
      "learning_signal_types": [
        "benchmark_metric"
      ],
      "pre_use_evaluation_status": "yes",
      "rollback_status": "checkpoint_only",
      "has_usable_rollback": "no",
      "safety_gate_status": "unverified",
      "framework_dependency_level": "agent_runtime_coupled",
      "requires_framework_migration": "yes",
      "adoption_effort_level": "high",
      "notes": "Split rigor varies by suite (BabaIsAI has inaccessible test split; other suites reuse distribution with new seeds)."
    }
  ],
  "known_failure_modes": [
    {
      "mode": "LCB selection reward misread as a safety certificate",
      "detail": "Using z = 0.5 in mean - z * sd / sqrt(n) is a conservative selection reward, not a 95% statistical safety guarantee.",
      "provenance": {
        "source_url": "https://arxiv.org/html/2608.08466",
        "source_revision": "unpinned",
        "location": "Sections 3.3 and 4.1",
        "accessed_date": "2026-11-24",
        "check_status": "pending",
        "source_note": "Explicitly qualified in local deep-research verification table.",
        "checked_at": null,
        "checked_by": null
      }
    },
    {
      "mode": "Same-distribution seed reuse on some suites",
      "detail": "While BabaIsAI separates dev, validation, and inaccessible test splits, some other suites reuse the same task distribution with new random seeds.",
      "provenance": {
        "source_url": "https://arxiv.org/html/2608.08466",
        "source_revision": "unpinned",
        "location": "Sections 3.3 and 4.1",
        "accessed_date": "2026-11-24",
        "check_status": "pending",
        "source_note": "Suite-specific split caveat.",
        "checked_at": null,
        "checked_by": null
      }
    }
  ],
  "evidence_summary": {
    "settings_observed": [
      "benchmark"
    ],
    "independence_observed": [
      "author"
    ],
    "effectiveness_outcome": "positive",
    "safety_outcome": "unverified",
    "has_koobo_completed_eval": false,
    "summary_note": "Author research-suite results with suite-specific split caveats; safety gate unverified."
  },
  "evidence_claims": [
    {
      "claim_id": "hsi-author-bench-1",
      "claim_type": "effectiveness",
      "statement": "Author study evaluates three-layer hierarchical self-improvement (task harness, evolver, meta-evolver) ranked by LCB (mean - 0.5 * sd / sqrt(n)) across research suites including BabaIsAI (dev/validation/inaccessible test splits).",
      "setting": "benchmark",
      "independence": "author",
      "outcome": "positive",
      "scope": {
        "variant_id": "hsi-three-layer",
        "model": "Paper evaluation models (not enumerated in local notes)",
        "suite_or_environment": "Research suites including BabaIsAI",
        "judge_or_metric": "LCB selection reward (z = 0.5) on dev tasks and held-out/new-seed tests",
        "sample_or_duration": "Offline research runs",
        "caveats": "z = 0.5 is a selection reward, not a 95% safety proof; split isolation varies across suites."
      },
      "provenance": {
        "source_url": "https://arxiv.org/html/2608.08466",
        "source_revision": "unpinned",
        "location": "Sections 3.3 and 4.1",
        "accessed_date": "2026-11-24",
        "check_status": "pending",
        "source_note": "Opened 2026-11-24 in local notes; live re-check pending.",
        "checked_at": null,
        "checked_by": null
      }
    }
  ],
  "control_evidence": [
    {
      "field": "license.spdx",
      "statement": "The README states MIT; the root LICENSE file returned 404, so license-file verification is incomplete.",
      "provenance": {
        "source_url": "https://github.com/TailinZhou/hsi",
        "source_revision": "main branch as served 2026-11-25 (commit SHA not recorded)",
        "location": "README",
        "accessed_date": "2026-11-25",
        "check_status": "checked",
        "source_note": "Codex live check of the README statement only.",
        "checked_at": "2026-11-25",
        "checked_by": "Codex live check"
      }
    },
    {
      "field": "pre_use_evaluation.how",
      "statement": "Candidates are ranked by mean minus z times sd divided by sqrt(n) with z = 0.5; BabaIsAI has an inaccessible test split, while other suites reuse task sets with new seeds. A selection reward, not a 95% safety certificate.",
      "provenance": {
        "source_url": "https://arxiv.org/html/2608.08466",
        "source_revision": "unversioned arXiv URL as served 2026-11-25 (version not recorded)",
        "location": "Section 4.1",
        "accessed_date": "2026-11-25",
        "check_status": "checked",
        "source_note": "Codex live check.",
        "checked_at": "2026-11-25",
        "checked_by": "Codex live check"
      }
    }
  ],
  "adoption_recipe": {
    "adoptable_directly": true,
    "authority_notice": "This record is factual engineering reference data. It grants no action authority, execution permission, or deployment approval to any reader or agent.",
    "upstream_controls": {
      "pre_use_eval": [
        "Upstream HSI ranks candidates using LCB (mean - 0.5 * sd / sqrt(n)) on dev tasks and uses inaccessible test splits on BabaIsAI."
      ],
      "rollback": [],
      "safety_gate": [],
      "scope_note": "LCB ranking is a utility selection heuristic, not a safety gate. Koobo required controls enforce separate safety gating and non-editable evaluation boundaries."
    },
    "koobo_required_controls": {
      "edit_surface_bounds": [
        "The adopter's system keeps final test suites, safety invariants, and deployment permissions strictly outside evolver and meta-evolver write access.",
        "Every hierarchical layer edit is versioned with parent hashes and hard compute budgets."
      ],
      "pre_use_eval_requirements": [
        "The evaluation harness separates learning data, candidate selection data, and sealed final test data grouped by incident and day (following GEPA, arXiv:2507.19457).",
        "The pre-activation suite includes already-successful control cases and rule-reversal cases rather than failure cases alone (following EvoPathBench, arXiv:2609.24663, and Anthropic memory research).",
        "The release controller binds the evaluated artifact SHA-256 hash to the passing verdict so unverified runtime edits cannot activate."
      ],
      "rollback_requirements": [
        "The deployment harness retains immutable parent artifact snapshots with SHA-256 content hashes.",
        "Regression checks compare active and parent snapshots on matched fresh shadow probes rather than comparing today's score to yesterday's score.",
        "Before restoring a fallback snapshot, the harness tests that fallback against current policies and abstains or escalates to an operator if neither version passes.",
        "Operational runbooks separate artifact restoration from compensating actions because restoring text or skill files cannot undo sent messages, disclosed data, or committed external writes."
      ],
      "safety_gate_requirements": [
        "The release pipeline evaluates safety independently from task utility so utility gains cannot offset a disallowed action (grounded in Practice Makes Unsafe, arXiv:2608.12851).",
        "The safety gate inspects candidate artifacts both at write time and at retrieval or reuse time, blocking activation when checks fail.",
        "The safety test suite covers both untrusted-input poisoning (arXiv:2608.12851) and benign task-pressure degradation (SEABench, arXiv:2609.35596)."
      ],
      "telemetry_and_abstention_requirements": [
        "The deployment harness defaults to abstention (keeping the approved parent artifact) whenever evaluation evidence is inconclusive, missing, or fails a safety check.",
        "Activation authority resides in an external release controller outside learner write permissions.",
        "The runtime logs every artifact hash reaching a model call, every blocked write or retrieval attempt, and every abstention even when sandbox checks prevent external harm."
      ]
    },
    "synthetic_rejected_candidate_example": {
      "label": "synthetic_example",
      "proposed_change": "Meta-evolver change lowering variance penalty to favor high-variance actions that occasionally skip safety checks.",
      "utility_result": "Increased mean task score on low-risk development seeds.",
      "safety_gate_result": "Blocked by the non-compensatory safety gate and immutable safety-check configuration.",
      "outcome": "rejected"
    }
  },
  "experiment_refs": [],
  "sources": [
    {
      "title": "HSI paper (arXiv:2608.08466)",
      "url": "https://arxiv.org/html/2608.08466",
      "published_date": "2026",
      "accessed_date": "2026-11-24",
      "revision": "unpinned",
      "location": "Sections 3.3 and 4.1",
      "type": "paper",
      "check_status": "pending",
      "claims_supported": [
        "Three-layer harness/evolver/meta-evolver",
        "LCB z=0.5 formula",
        "BabaIsAI split structure and seed-reuse caveat"
      ],
      "checked_at": null,
      "checked_by": null
    },
    {
      "title": "HSI repository README (TailinZhou/hsi)",
      "url": "https://github.com/TailinZhou/hsi",
      "published_date": "unverified",
      "accessed_date": "2026-11-25",
      "revision": "main branch as served 2026-11-25 (commit SHA not recorded)",
      "location": "README (license statement)",
      "type": "repo",
      "check_status": "checked",
      "checked_at": "2026-11-25",
      "checked_by": "Codex live check",
      "claims_supported": [
        "Public repository linked from the paper",
        "README states MIT"
      ]
    }
  ],
  "unverified_fields": [
    "safety_gate.status",
    "safety_gate.blocks_unsafe_despite_utility_gain",
    "maturity.last_observed_activity_date",
    "license.check_status"
  ],
  "verification": {
    "status": "primary_source_check_pending",
    "drafted_at": "2026-11-25",
    "last_primary_check_at": null,
    "source_basis": "Drafted from 2026-11-24 local research notes. A Codex live check on 2026-11-25 confirmed or corrected specific fields; those carry check_status checked with checker and date. Everything else is pending.",
    "reviewer_notes": "Live-audit corrections from 2026-11-25 applied. Record remains a draft until every source is pinned and checked."
  },
  "citation": {
    "id": "koobo:agent-learning:hsi@2026-11-25.1",
    "canonical_url": "https://koobo.co/agent-learning/methods/hsi",
    "versioned_url": "https://koobo.co/agent-learning/methods/hsi/v/2026-11-25.1.json",
    "plain_text": "Koobo Agent Learning Index, \"HSI (Hierarchical Self-Improvement)\", record 2026-11-25.1 (draft, primary-source check pending), https://koobo.co/agent-learning/methods/hsi/v/2026-11-25.1.json",
    "bibtex": "@misc{koobo_agent_learning_hsi_2026,\n  title = {HSI (Hierarchical Self-Improvement) (Koobo Agent Learning Index, draft record 2026-11-25.1)},\n  author = {{Koobo Research}},\n  year = {2026},\n  url = {https://koobo.co/agent-learning/methods/hsi/v/2026-11-25.1.json},\n  note = {Draft record; primary-source check pending}\n}"
  }
}
