Docs⌘ K  Search
Docs/Reference/Legacy RL policies (operators)
Operators

Legacy Policy Administration

Hebbrix operators use these endpoints to inspect and administer offline policy snapshots. They are not available to API keys; to learn from outcomes in your own application, use Outcome Memory.

Every endpoint on this page needs a Hebbrix administrator signed in with a session; an API key receives 403. They are therefore not part of the public OpenAPI contract. This page describes them for transparency. To choose between actions in your own application and learn from the results, use Outcome Memory.

Deployment-dependent surface. These endpoints do not mean background training or automatic rollout is active. When enabled by an administrator, you can:
  • See which version is currently running
  • Compare different versions to see which performs better
  • Promote a better version to production
  • Rollback to a previous version if needed

01. Operator-Controlled Deployment

A policy rollout should use three explicit, separately validated stages:

1. Shadow Mode

Evaluate a candidate without applying its decisions. Shadow behavior requires deployment configuration and representative outcome collection.

2. Canary Release

Route an operator-chosen traffic fraction only after offline checks. Rollout percentages, guardrails, and rollback criteria belong to your deployment configuration.

3. Production

Promote through the authenticated admin endpoint only after validating causal evidence, safety constraints, latency, and tenant isolation.

02. When Do You Need This?

Testing New Improvements

When an offline candidate exists, evaluate it against held-out and randomized evidence before exposing it to user traffic.

A/B Testing

Compare policy versions with predeclared metrics and propensities. Outcome Memory provides the decision and delayed-result evidence.

Quick Rollbacks

If a new version isn't working as expected, roll back to the previous stable version through an explicit admin action. Do not assume automatic rollback unless your deployment has separately configured and tested it.

Per-Request Control

Search accepts explicit ranking controls, but production deployments may disable legacy RL entirely. Inspect response policy and fallback metadata.

03. What operators can do

  • List policy versions and see which one serves production for each agent type.
  • Compare a candidate version with the current one on recorded evaluations.
  • Promote a version, or roll back to an earlier one, with an audit reason.
  • Start an offline training run where the deployment enables it.

The routes are listed in the administrator schema, not in the public contract.

04. Who can call these

Only Hebbrix administrators, from a signed-in session. The server refuses API keys on every route above with 403, whatever the account's plan, so these endpoints have no customer code examples.

05. Best Practices

Always Compare First

Never promote a new policy without comparing it to the current one.

Monitor After Promotion

Watch for changes in error rates or performance degradation after promoting.

Keep Previous Versions

Don't delete old versions immediately. Keep at least 2-3 stable versions for rollback.

Have a Rollback Plan

Know how to rollback quickly. Save the rollback command somewhere accessible.

Nothing is promoted implicitly. Legacy policy training is deployment-dependent and may be disabled. Prefer the Outcome Memory API for new integrations, require sufficient randomized evidence, and use authenticated admin actions for any promotion or rollback.
Ask the docs
reading · this page

Hi! I'm the Hebbrix docs assistant. Ask me anything about this page: setup, code examples, endpoints, pricing, or integrations.