# ReactorJet — Full Documentation & Field Corpus Canonical index: https://reactorjet.com/llms.txt ## Platform Overview - **Biro Workspace (/biro)**: Organizational & administrative UI for org structure, docs, clients, token-metered Commercial Billing, M-of-N Quorum approvals, tasks, tools, agents, and knowledge bases. - **Mattergraph (/biro#mattergraph)**: Biro's legal intelligence vertical with verified Authentik session incarnation and enforced Workforce ethical-wall gates. - **T3 Code & Apple Operator (/biro#developer-interfaces)**: Direct single-user coding via T3 Code integration plus native macOS, iOS, and iPadOS operator apps over MCP 2026-07-28 with ControlStream SSE resume. - **Workforce Governed Execution Cells (/workforce)**: Sealed zero-credential cells on a durable Postgres spine (Authentik, Cerbos, Infisical, nono, NetBird, durable kill switch, SEC 17a-4(f) WORM archive, metered LLM & idempotent Effect Gateways). - **RSI Reactor Harness (/rsi-reactor)**: 4-layer fixed-weight Recursive Self-Improvement engine emitting signed rsi.promotion.v1 bundles persisted in Postgres and reviewed in Biro's Evolution UI. - **Security & Trust (/trust, /trust.json)**: Enterprise InfoSec summary and machine-readable control matrix covering Authentik OIDC, Cerbos ethical walls, WORM 17a-4(f), durable kill switch, and the public-safe boundary. - **Workflow Readiness Check (/tools/readiness)**: Deterministic 5-axis evaluator returning recommended governance profile, autonomy level (L0-L4), required gates, and a Markdown Readiness Brief. - **Discovery & WebMCP (/.well-known/agent-card.json, /.well-known/mcp.json, /knowledge-graph, /api/knowledge-graph)**: A2A agent card v0.2, MCP 2026-07-28 manifest, collection-backed Knowledge Graph, and 4 read-only navigator.modelContext tools. --- # Intent brief URL: https://reactorjet.com/components/intent-brief Kind: component A versioned task contract that tells a software factory what outcome to pursue, what boundaries to respect, and how completion will be judged. ## Purpose An intent brief is the task contract for a software-factory run. It records the requested outcome, the allowed scope, the constraints, and the evidence that will count as completion. Workers use it to decide what to change. Evaluators use the same brief to decide whether the result satisfies the request. The brief should be assigned an immutable identifier and version. If the intent changes during a run, issue a new version and record why. Do not silently edit the contract after work has started. ## When to use Create an intent brief before work crosses a trust boundary or consumes a meaningful budget. It is useful when a task can produce a code change, alter an environment, publish an artifact, or require another person to review a result. A short conversational request may be enough for private exploration. Convert it into a brief before the workflow can merge, deploy, spend money, modify customer data, or make a public claim. ## Inputs and outputs Inputs: - a requested outcome in observable terms; - the repositories, services, files, or environments in scope; - explicit exclusions and prohibited actions; - acceptance checks and required evidence; - budget, deadline, and authority constraints; - the owner who can resolve ambiguity or approve a revised intent. Outputs: - a stable brief identifier and version; - a normalized task contract that workers and evaluators can read; - a list of unresolved assumptions, if any; - a change record when a later version replaces the original. ## Smallest useful interface The smallest useful interface accepts a brief, validates the required fields, and returns a stored reference. The store should preserve prior versions. ```ts type IntentBrief = { id: string; version: number; owner: string; outcome: string; scope: string[]; exclusions: string[]; acceptance: string[]; constraints: string[]; assumptions: string[]; }; type IntentBriefRef = { id: string; version: number; digest: string; }; function registerIntent(brief: IntentBrief): IntentBriefRef; ``` Downstream records should carry the returned reference rather than copying a mutable description of the task. ## Example ```yaml id: checkout-timeout-fix version: 1 owner: payments-platform outcome: Checkout requests return a controlled retry response when the tax service times out. scope: - services/checkout - tests/integration/checkout exclusions: - tax-service deployment - production configuration changes acceptance: - The timeout path returns the documented retry response. - Existing successful checkout tests still pass. - The evidence packet includes the focused test output and changed-file list. constraints: - Do not change the public success response. - Stop before merge and request human approval. assumptions: - The existing tax client exposes timeout errors separately from other failures. ``` The worker can challenge the final assumption after inspecting the code. If it is false and changes the requested approach, the owner issues version 2 instead of letting the worker reinterpret the task on its own. ## Failure modes - **The outcome describes an activity.** "Improve checkout" does not say what should become observably different. Ask the owner for a result and a check. - **Scope names a repository but no boundary.** A worker may make broad changes that are technically related. Add included paths, excluded systems, or both. - **Acceptance checks are written after implementation.** The checks can end up favoring the chosen solution. Define them before assigning the worker. - **The brief changes in place.** Evidence from different interpretations gets mixed into one run. Create a new version and link it to the superseded one. - **Unknowns are hidden as facts.** Record assumptions explicitly. Route a disproved assumption to the owner when it affects scope, risk, or acceptance. - **The worker can approve its own reinterpretation.** Give change authority to the named owner or another role outside the worker that proposes the change. ## What it does not solve An intent brief does not prove that the requested change is correct, worthwhile, or safe. It does not replace product prioritization, technical design, policy checks, evaluation, or approval. It also cannot remove ambiguity by adding more fields. When the owner cannot state an observable outcome, the workflow should remain in discovery rather than manufacture a precise-looking contract. ## Related reading - [Policy gate](/components/policy-gate) - [Evidence packet](/components/evidence-packet) - [Human approval checkpoint](/components/human-approval-checkpoint) - [Build the checks before you build the agent](/notes/control-loop/closing-the-loop) --- # What makes software autonomic URL: https://reactorjet.com/guides/concept/what-makes-software-autonomic Kind: concept Software is autonomic when it can observe the result of its own action, judge that result against a protected target, and choose the next bounded step. Autonomic software manages part of its own operation in service of a goal that someone else set. The operator still owns the goal, the limits, and the cases that require human judgment. The software handles the ordinary adjustments inside those limits. The word matters. "Autonomous" suggests an actor that can choose its own ends. "Autonomic" describes a system that regulates itself against an assigned end. A thermostat is a small example. A person chooses the target temperature. The thermostat observes the room, turns heating on or off, and checks again. For software engineering, the managed subject can be a repository, a service, or a workflow. The loop may propose a patch, apply it in a limited environment, observe the consequence, and decide whether to keep, revise, or discard it. ## The minimum loop An autonomic system needs all of the following: 1. **A declared target.** The desired state must be specific enough to test. "Make it better" is not a target. "Keep the existing checkout cases passing while reducing median response time" is closer. 2. **A bounded action.** The system must know what it may change. That could be one patch, one configuration value, or one queued message. The boundary also says what it may not change. 3. **Observation after action.** The system must inspect the result of the change, not merely record that a command ran. 4. **A decision rule.** Evidence must lead to a named outcome such as keep, revise, stop, roll back, or ask for review. 5. **Another turn of the loop.** The verdict affects what happens next. A report that nobody or nothing acts on leaves the loop open. The target and decision rule need protection from the part that proposes the change. Otherwise the easiest route to success is to weaken the test. ## A concrete example Consider a dependency update in a web service. A conventional update bot opens a pull request and reports that the package version changed. A more capable agent may also fix compile errors and rerun the test suite. Both can be useful, but neither is necessarily autonomic. An autonomic loop would work more like this: 1. Record the current revision and its results on a saved set of cases. 2. Propose the dependency update as a reviewable patch. 3. Apply the patch in an isolated workspace with a fixed time and cost budget. 4. Run protected checks, including cases the proposer cannot edit. 5. Compare the candidate with the saved baseline. 6. Discard the patch if a previously passing case fails. Keep or promote it only if the declared policy permits that outcome. 7. Record the proposal, observations, verdict, and next action. The important step is not generating the patch. It is connecting post-change evidence to the next action without letting the patch author redefine success. ## What does not qualify A system can use AI and still have no autonomic behavior. - A scheduled script is automation. It follows a sequence whether or not the result improved the managed subject. - A retry loop is recovery logic. It can be part of an autonomic system, but a repeated command is not evidence of convergence. - A coding agent that stops after its own self-review is still its own judge. - A dashboard that shows metrics is observation without adaptation. - A workflow that needs a person to choose every next step is human-operated, even if an agent performs each step quickly. None of these are failures by default. Many tasks should remain simple automation or human-led work. The distinction prevents a useful tool from being given authority its design does not support. ## Boundaries stay human-owned An autonomic loop should name its ordinary case and its exception class before it runs. A low-risk formatting fix may advance after protected checks. A change to payments, identity, access control, or irreversible data may always require a separate approval. The operator also decides the budget and blast radius. Running out of time, money, or attempts should produce a recorded stop. It should never become a silent pass. Autonomic therefore does not mean "no humans." It means people define the policy and the system can regulate a bounded subject under that policy. Human attention moves to goals, exceptions, and changes to the rules themselves. ## A quick test Ask five questions: 1. What state is the system trying to reach or preserve? 2. What can it change, and what is outside its authority? 3. How does it observe the consequence of its own change? 4. Who or what decides whether the evidence is good enough? 5. Does that decision reliably cause the next action? If any answer is missing, the loop is open or the boundary is unclear. Fix that before increasing autonomy. ## Related reading - [Autonomic software engineering](/reference/autonomic-software-engineering) - [The closure test](/reference/closure-test) - [Control plane versus work plane](/guides/concept/control-plane-versus-work-plane) - [Evidence before confidence](/guides/concept/evidence-before-confidence) --- # Design an evaluation the agent cannot edit URL: https://reactorjet.com/guides/how-to/design-an-evaluation-the-agent-cannot-edit Kind: how-to Separate evaluation assets and authority from the agent so a proposal cannot redefine the test that decides whether it passes. An evaluation is only independent when the agent cannot change the inputs, scoring rules, or pass decision during the run. A prompt that says "do not edit the tests" is an instruction. It is not a boundary. This guide builds that boundary around one workflow. Start small. Protect a single decision before trying to design an evaluation platform. ## 1. State the decision Write the question the evaluation must answer. Keep it narrower than "is the agent good?" For a coding agent, the decision might be: > May proposal `P` replace baseline `B` without breaking any protected behavior? Define the possible verdicts before writing the scorer: ```text PASS all required checks ran and the proposal met the acceptance rules REGRESSION one or more protected cases became worse than the baseline INVALID the submission or evidence was malformed NO_VERDICT the evaluator could not complete the required checks ``` Do not turn `NO_VERDICT` into `PASS`. A missing decision should stop promotion. ## 2. Draw the write boundary List every asset that can change the verdict. Record who can read it, who can write it, and what identity performs the write. | Asset | Agent access | Evaluation owner | Required control | | --------------- | ---------------------------- | ---------------------- | -------------------------------- | | Public rubric | Read | Evaluation maintainers | Agent has no write path | | Held-out cases | None during the run | Evaluation maintainers | Separate storage and credentials | | Scorer | Execute through an interface | Evaluation maintainers | Pinned version | | Pass rule | Read | Policy owner | Reviewed change process | | Proposal output | Write | Agent | Treated as untrusted input | | Verdict record | Read | Evaluator | Evaluator signs or writes it | Trace effective permissions rather than repository layout. Two directories in one checkout are not separate if the agent can edit both. A protected branch is not separate if the agent holds credentials that can bypass its rules. ## 3. Put the evaluator under another authority Choose a control the agent cannot grant to itself. Depending on the workflow, that could be: - a separate repository that the agent identity can read but not write; - an evaluation service with a narrow submission endpoint; - a protected CI job that checks out the scorer at a pinned revision; - read-only object storage for the corpus, with write access held by another identity. Keep the submission channel narrow. The agent should submit the artifact being judged and the minimum metadata needed to reproduce it. It should not submit a replacement scorer, a new threshold, or an instruction that changes how the evaluator runs. ```yaml submission: proposal_id: p-1842 baseline_id: b-1831 artifact_digest: sha256:... task_contract: support-refund-v3 proposer_version: agent-2026-08-13 ``` The evaluator resolves its own corpus, scorer, and acceptance rule from the declared task contract. ## 4. Build a corpus that can disagree Use cases that separate a plausible proposal from an acceptable one. Include: - ordinary cases that represent the intended task; - edge cases near a policy or data boundary; - regressions taken from earlier failures; - counterexamples where a fluent or syntactically valid answer is still wrong; - malformed inputs that should produce a safe refusal or error. Keep held-out cases hidden from the agent during the run. Public examples can teach the task. Held-out examples check whether the resulting behavior extends beyond those examples. Give each case a stable identifier. Add a reason when a case is quarantined, and keep the case visible in evaluation history. Silent deletion makes score changes difficult to interpret. ## 5. Make scoring reproducible Pin every input that affects the verdict: ```text evaluation_id = hash( corpus_version, scorer_version, rubric_version, pass_rule_version, runtime_version ) ``` Record those versions with the verdict. If scoring uses a model, record the model identifier and the exact evaluation prompt. If scoring uses a person, record the rubric version and the reviewer's decision, but avoid storing personal data that the decision does not need. Prefer explicit outcomes over one blended number. A proposal that improves 20 easy cases and breaks one protected case should not hide the regression inside an average. ## 6. Compare with the current baseline Run the baseline and proposal against the same protected corpus. Classify each case: ```text IMPROVED proposal passes, baseline fails UNCHANGED proposal and baseline have the same accepted result REGRESSED baseline passes, proposal fails UNCLEAR the scorer cannot distinguish them ``` Write the acceptance rule in terms of those classes. For example: ```text accept when: required_checks_completed and regressions == 0 and invalid_results == 0 and improved_cases >= 1 ``` Change the rule through the evaluation owner's process, not as part of the proposal under test. ## 7. Test the separation Verify the boundary with attempted violations as well as a successful run. 1. Ask the agent to edit a corpus case. Confirm the write is denied. 2. Ask it to replace the scorer or lower the threshold. Confirm the evaluator ignores proposal-supplied evaluation assets. 3. Remove evaluator access to one required input. Confirm the result is `NO_VERDICT` and promotion stops. 4. Submit an artifact whose digest does not match its manifest. Confirm the evaluator rejects it as `INVALID`. 5. Run the same pinned submission twice. Confirm the recorded inputs and verdict are the same, or that any nondeterminism is reported. 6. Add a known regression to a test proposal. Confirm the protected case catches it before using the evaluation for real decisions. ## Common failure modes ### The tests live elsewhere, but the credentials do not Moving files does not help if the agent can still write through a shared token. Separate the writer identity and inspect effective permissions. ### The agent can choose which checks run A command such as `evaluate --skip-held-out` gives the proposal control over the verdict. The evaluator should select required checks from the task contract. ### Only the latest score is stored A score without corpus, scorer, baseline, and runtime versions cannot explain why the result changed. Store the full evaluation identity with each verdict. ### Evaluator downtime becomes success Retries are reasonable. Promotion after exhausted retries is not. Record `NO_VERDICT`, preserve the proposal, and wait for the evaluator to recover. ### The corpus rewards the current agent Add cases from production failures, human disagreements, and boundary conditions. Do not build the corpus only from examples the current agent already handles. ## Related reading - [Build the checks before you build the agent](/notes/control-loop/closing-the-loop) - [Your agent should not be its own reviewer](/notes/control-loop/your-agent-should-not-be-its-own-reviewer) - [Two-plane loop](/reference/two-plane-loop) - [Closure test](/reference/closure-test) --- # Run an agent task with an independent check URL: https://reactorjet.com/guides/tutorial/run-an-agent-task-with-an-independent-check Kind: tutorial Run an agent in a restricted workspace, submit its result to a separate checker, and keep only work supported by recorded evidence. An agent can inspect its own output and fix obvious mistakes. That is useful feedback, but it is not an independent reason to accept the work. In this tutorial, the agent produces a proposal in a scratch workspace. A separate checker reads that proposal, runs protected checks, and returns a verdict. The example uses a repository task, but the pattern also fits reports, support drafts, data changes, and other work that can be saved before it takes effect. ## 1. Write the task contract Start with a task that has a bounded output and at least one result you can check without asking the agent whether it succeeded. Record these fields before the run starts: ```text task_id: TASK-1042 objective: update the retry policy for the import worker allowed_scope: worker configuration and its tests forbidden_scope: deployment settings, credentials, unrelated services required_checks: - configuration parses - existing retry cases still pass - maximum delay remains within policy budget: attempts: 3 elapsed_minutes: 20 ``` The objective tells the agent what to change. The checks tell the checker what evidence to collect. Keep them separate. If the agent can rewrite the check list during the run, the check no longer has independent authority. Expected outcome: the task has a stable identifier, an explicit write scope, and a stopping point. A reviewer should be able to understand the task without reading the agent transcript. ## 2. Prepare separate proposal and verdict paths Give the agent a disposable workspace. It may read the task inputs and write a proposal there, but it should not be able to merge, publish, deploy, or alter the protected checks. Give the checker read access to the completed proposal and write access to a separate verdict record. Where possible, use different credentials or processes for the two roles. A prompt that tells one agent to "act as an independent reviewer" does not create separation if the same process controls the proposal, checks, and verdict. Save the versions of the task, baseline, checker, and check data with the run: ```text run_id: RUN-8831 task_version: sha256:... baseline_version: rev:... checker_version: check-suite:17 check_data_version: retry-cases:6 workspace: scratch/RUN-8831 ``` Expected outcome: changing the proposal cannot silently change the rules used to judge it. ## 3. Run the agent in proposal mode Ask the agent to produce a saved change set and a short completion record. The record should point to evidence rather than paraphrase it. ```text run_id: RUN-8831 proposal_ref: sha256:... changed_scope: - worker configuration - retry policy tests agent_checks: - name: focused tests result_ref: evidence/agent-focused-tests.txt uncertainties: - production queue timing was not observed ``` Self-run tests are still worth keeping. They help the agent iterate and give the checker useful context. Treat them as claims to inspect, not as the final verdict. Stop the run if the agent writes outside the allowed scope, exhausts its budget, or cannot produce a stable proposal reference. Do not turn a partial workspace into an accepted result because the transcript sounded confident. Expected outcome: the agent leaves one immutable proposal that can be checked or discarded without affecting the live system. ## 4. Submit the proposal to the checker Pass the checker the task contract, baseline reference, and proposal reference. Do not make the transcript the source of truth. The checker should inspect the saved result and collect fresh evidence. A useful check sequence is: 1. Confirm the proposal reference matches the saved content. 2. Reject files or fields outside the allowed scope. 3. Run the declared functional checks from a clean state. 4. Compare the proposal with the saved baseline. 5. Run at least one protected case the agent did not choose. 6. Write each result and its evidence reference to the verdict record. The protected case does not need to be secret. It needs to be outside the agent's write permissions for this run. ## 5. Turn evidence into a verdict Use named outcomes rather than a score with an improvised threshold: | Verdict | Meaning | Workflow action | |---|---|---| | `PASS` | Required checks pass and no protected behavior regresses | Mark the proposal eligible for the next boundary | | `REVISE` | The proposal is valid but a named requirement failed | Return the failed evidence to a new proposal attempt | | `STOP` | Scope, policy, or a previously passing case regressed | Discard the proposal and require investigation | | `ERROR` | The checker could not produce a trustworthy result | Keep the proposal isolated and retry the check later | An unreachable checker is `ERROR`, not `PASS`. Missing evidence is not neutral. The final record might look like this: ```text run_id: RUN-8831 proposal_ref: sha256:... verdict: PASS checker_version: check-suite:17 checks: - name: allowed scope result: pass evidence_ref: evidence/scope-diff.txt - name: retry cases result: pass evidence_ref: evidence/retry-cases.xml - name: maximum delay policy result: pass evidence_ref: evidence/policy-result.json ``` `PASS` does not mean the work is universally safe. It means this exact proposal passed the named checks against the recorded baseline. Promotion or deployment may still need a human approval boundary. ## Check the workflow Run both positive and negative checks before relying on the design: - Submit a valid proposal and confirm the checker emits `PASS` with readable evidence references. - Make a proposal that edits a forbidden path and confirm the checker emits `STOP`, even if all functional tests pass. - Break a previously passing protected case and confirm the regression cannot be hidden by a better aggregate score. - Make the checker unavailable and confirm the proposal remains isolated. - Change the proposal after checking and confirm its old verdict no longer applies because the content reference changed. ## Handle failures If the proposal fails a check, create a new attempt linked to the same task. Do not overwrite the failed evidence. The history should show what changed between attempts. If the checker fails, repair or retry the checker without granting the agent permission to declare itself successful. If the task contract was wrong, close the run and start a new task version. Rewriting the contract under an existing verdict makes the record ambiguous. If every check passes but a person still finds the result wrong, add a case that captures the missed requirement before the next run. Keep the original failure visible. It is evidence that the old check set was incomplete. ## Next steps - [Add a human approval boundary](/guides/tutorial/add-a-human-approval-boundary) - [Read why the agent should not be its own reviewer](/notes/control-loop/your-agent-should-not-be-its-own-reviewer) - [Use the two-plane loop as an architecture reference](/reference/two-plane-loop) --- # Policy gate URL: https://reactorjet.com/components/policy-gate Kind: component A separate decision point that allows, denies, or escalates a proposed action against versioned rules before the action takes effect. ## Purpose A policy gate decides whether a proposed action is permitted before that action takes effect. It sits between proposal and execution. The gate reads structured facts, applies a named policy version, and returns one of three decisions: allow, deny, or require approval. The worker that proposes an action may supply context, but it should not control the gate, the policy, or the enforcement point. The component is useful only if an allowed decision is required to proceed. ## When to use Use a policy gate when a workflow can cross a boundary that should not depend on model judgment alone. Common boundaries include writing outside an assigned directory, merging a protected branch, deploying to a shared environment, sending a customer message, changing account access, or spending above a set amount. Do not insert a gate into every internal step. Put it where an action changes state or grants capability. A gate that runs constantly but controls nothing is an audit message, not an enforcement mechanism. ## Inputs and outputs Inputs: - the proposed action, target, and requested capability; - the actor and workflow run identifiers; - the intent brief reference; - relevant context from trusted systems, such as environment classification; - the policy name and version to apply; - evidence references needed by a rule. Outputs: - an `allow`, `deny`, or `review` decision; - machine-readable reason codes; - the policy version and input digest used for the decision; - optional conditions, such as a time limit or approved target; - a durable decision identifier for the execution record. ## Smallest useful interface ```ts type GateRequest = { action: string; target: string; actor: string; intentRef: string; context: Record; evidenceRefs: string[]; }; type GateDecision = { id: string; result: "allow" | "deny" | "review"; reasonCodes: string[]; policyVersion: string; requestDigest: string; expiresAt?: string; }; function decide(request: GateRequest): GateDecision; ``` The executor should verify that the decision matches the exact request digest, has not expired, and permits the requested target. It should reject a missing or malformed decision. ## Example A worker proposes a production deployment after tests pass: ```json { "action": "deploy", "target": "production/checkout-api", "actor": "run-1842/implementation-worker", "intentRef": "checkout-timeout-fix@1", "context": { "environment": "production", "changeClass": "application-code" }, "evidenceRefs": ["packet:run-1842:sha256:8f2c"] } ``` Policy `deployments@7` requires human approval for every production target. The gate returns `review` with reason code `PRODUCTION_APPROVAL_REQUIRED`. The deployment service refuses to continue until a human approval checkpoint issues an approval bound to the same action digest. If the worker changes the target or artifact after approval, the digest changes and the earlier decision no longer applies. ## Failure modes - **The gate trusts free-form claims from the worker.** A worker can label a production target as staging. Resolve sensitive context from a trusted registry or execution environment. - **Policies are not versioned.** A later audit cannot reconstruct why the gate allowed an action. Store the policy version with every decision. - **An allow result can be replayed.** Bind the decision to the request digest, target, actor, and an expiry or single-use nonce where replay matters. - **Missing context defaults to allow.** Treat unknown required facts as `review` or `deny`, based on the policy's stated fallback. - **The worker can call the executor directly.** Move enforcement to the capability boundary. Hiding an executor in prompt instructions is not a gate. - **Rules contain broad natural-language exceptions.** A model may interpret the same exception differently across runs. Use explicit predicates for enforceable rules and route true judgment calls to review. - **Policy owners cannot test changes.** Add saved allow, deny, and review cases before publishing a new policy version. ## What it does not solve A policy gate does not establish that an action is effective, that tests are meaningful, or that supplied evidence is authentic. It does not replace authorization at the underlying platform. It also does not make a poor policy safe. The gate makes policy application visible and enforceable; policy owners still have to define suitable rules and review their effects. ## Related reading - [Intent brief](/components/intent-brief) - [Evidence packet](/components/evidence-packet) - [Human approval checkpoint](/components/human-approval-checkpoint) - [Two-plane loop](/reference/two-plane-loop) --- # Control plane versus work plane URL: https://reactorjet.com/guides/concept/control-plane-versus-work-plane Kind: concept The control plane holds intent, policy, and authority while the work plane performs bounded actions and reports what happened. The control plane decides what work may happen. The work plane does that work. This separation is common in infrastructure, but it becomes more important when the workers are agents. An agent can interpret instructions and choose tools, so a vague boundary can turn a task assignment into unintended authority. The two planes do not have to be separate products. They do need separate responsibilities, data contracts, and permissions. ## What belongs in the control plane The control plane holds operational intent and the rules around it. Typical control-plane concerns include: - goals and task definitions; - ownership and assignment; - budgets, deadlines, and retry limits; - permissions and approval requirements; - policy for starting, stopping, or escalating work; - the status the rest of the organization can rely on; - references to evidence and the authority that issued a verdict. The control plane should answer: What are we trying to do? Why are we doing it? Who may act? What limits apply? What counts as done? What happens when the work cannot continue safely? ## What belongs in the work plane The work plane performs the bounded action. It might run a command, edit a repository, call an API, query a system, or prepare an artifact. It needs enough context to do the task, but it should not inherit every permission held by the control plane. The work plane should report facts such as: - which assignment and attempt it handled; - which inputs and revision it used; - which actions it took; - which outputs or artifacts it produced; - how much time or budget it consumed; - whether it completed, stopped, or lost its execution path. Those reports are observations. The worker should not be able to turn its own claim of completion into an authoritative status change when a separate check is required. ## A concrete example Imagine a team asks an agent to update a customer portal. The control plane records the task, links it to the customer goal, sets a budget, names the repository, and requires a protected test before completion. It issues a bounded assignment to an eligible worker. The work plane checks out the assigned revision, edits the code, runs available feedback checks, and returns a patch plus logs and test output. It does not grant itself more time, change the protected completion rule, or mark the task done solely because its own test command printed green. Back in the control plane, the recorded policy decides what comes next. A protected verifier may accept the result. A failed check may return the task for another attempt. Missing evidence may stop the workflow and ask for review. This model also handles a crash cleanly. The control plane can see that the task is assigned but no valid execution path remains. It can surface the problem or apply a declared recovery rule. It does not pretend that "in progress" means work is still happening. ## The handoff contract A useful handoff has four parts: | Direction | Data | Purpose | |---|---|---| | Control to work | assignment, target, scope, budget, input revision | Define the bounded attempt | | Work to control | events, artifacts, usage, terminal state | Report what happened | | Evaluator to control | verdict, evidence references, policy version | Decide whether the result may advance | | Control to work | retry, revise, stop, or new assignment | Start the next explicit attempt | Each message should carry stable identifiers. At minimum, record the task, attempt, actor, input revision, and policy version. Without them, a late result can be attached to the wrong attempt or judged under rules that changed halfway through the run. ## Do not confuse this with proposal and verdict Control plane versus work plane answers one question: where do coordination and authority live relative to execution? Proposal plane versus verdict plane answers another: can the thing proposing a change also control the rules that judge it? The boundaries often reinforce each other, but they are not synonyms. A work plane may contain a proposer and the tools it uses. A protected evaluator may run as a separate service while still feeding an authoritative verdict into the control plane. The important properties are permission separation and a clear record of which authority made the decision. ## Common boundary mistakes 1. **The worker owns the definition of done.** Completion becomes a self-report, so status drifts away from reality. 2. **The control plane runs every tool with broad credentials.** A scheduling concern becomes an execution breach with a large blast radius. 3. **Raw logs become the only source of truth.** Operators must reconstruct intent and status from transcripts instead of durable work objects. 4. **Assignments have no lease or attempt identity.** Two workers can act on the same task, or a stale worker can overwrite a newer result. 5. **Failure has no state.** A crashed worker leaves work marked as active even though nothing can move it forward. The cure is usually a smaller contract, not a smarter worker. ## Where people remain in control People set goals, define policies, approve exceptions, and decide how much authority a class of work receives. The control plane makes those decisions durable and enforceable. It should not hide them inside a prompt. The work plane can remain replaceable. A shell process, a hosted agent, or a future runtime can all accept the same bounded assignment if the contract is clear. That keeps changes in model or tooling from rewriting the organization's governance model. ## Related reading - [The two-plane loop](/reference/two-plane-loop) - [What makes software autonomic](/guides/concept/what-makes-software-autonomic) - [Evidence before confidence](/guides/concept/evidence-before-confidence) - [Your agent should not be its own reviewer](/notes/control-loop/your-agent-should-not-be-its-own-reviewer) --- # Define a policy gate URL: https://reactorjet.com/guides/how-to/define-a-policy-gate Kind: how-to Turn a written constraint into a separate, testable decision that permits or blocks a consequential agent action. A policy gate sits between a proposed action and the system that would carry it out. It answers a bounded question such as "may this refund be issued?" or "may this change deploy to production?" The agent can prepare the request. The gate owns the decision. The executor requires proof of that decision before it acts. ## 1. Name the protected action Start with one action and one enforcement point. "Check security" is too broad. "Authorize deployment of artifact digest `D` to production environment `E`" is specific enough to enforce. Write down: - the side effect; - the target system or resource; - the identity that performs it; - the last point where the workflow can still stop it; - whether the action is reversible; - the maximum acceptable scope. Place the gate before the side effect. A check that runs after a message is sent or money moves is an audit, not a gate. ## 2. Translate prose into a decision table Take the written policy and remove ambiguous terms. Define the input source for each condition. Example policy: refunds above 500 require a person, the order must be settled, and the refund must not exceed the captured amount. | Condition | Source | Decision | | ------------------------------------------------- | --------------------------- | ---------------- | | Order is not settled | Payments system | Deny | | Requested amount exceeds captured amount | Payments system | Deny | | Requested amount is above 500 | Request plus policy version | Require approval | | All required facts are present and no rule blocks | Gate | Allow | | A required fact is missing or stale | Gate | Indeterminate | Use the units and currency defined by the source system. If the source stores minor units, keep the gate input in minor units rather than introducing a conversion inside a prompt. ## 3. Define the contract The gate should receive facts, not a persuasive narrative from the agent. ```json { "action": "refund.create", "subject": "order-1842", "amount_minor": 42500, "currency": "ZAR", "captured_amount_minor": 60000, "order_state": "settled", "facts_observed_at": "2026-08-13T09:30:00Z", "request_digest": "sha256:...", "policy_version": "refund-v4" } ``` Return a structured decision: ```json { "decision": "allow", "reason_codes": ["ORDER_SETTLED", "WITHIN_CAPTURED_AMOUNT"], "policy_version": "refund-v4", "request_digest": "sha256:...", "expires_at": "2026-08-13T09:35:00Z", "decision_id": "gate-7f31" } ``` Use a closed set of decisions such as `allow`, `deny`, `require_approval`, and `indeterminate`. Reason codes should also come from a controlled set so callers can handle them without parsing prose. ## 4. Separate the gate from the proposer Run the gate with an identity the agent cannot modify or impersonate. The agent may call the decision interface, but it should not be able to: - deploy a new policy version; - edit the facts returned by systems of record; - mint an allow decision; - use the executor without a valid decision; - alter gate logs. Do not rely on the agent to remember to call the gate. Make the executor reject requests that lack an applicable decision. ```text execute(request, decision): require decision.decision == "allow" require decision.request_digest == hash(request) require decision.policy_version in accepted_policy_versions require now < decision.expires_at require decision has not been consumed perform request ``` Binding the decision to the request digest prevents an allow decision for one request from authorizing a different request. ## 5. Decide how uncertainty behaves List every dependency the gate needs: policy store, identity provider, source facts, clock, and decision store. For each dependency, define what happens when it is unavailable or returns stale data. Use `indeterminate` when the gate cannot establish the facts needed to allow or deny. The executor should treat `indeterminate` as a stop. If the workflow can route the case to a person, make that an explicit transition rather than converting uncertainty into permission. Also define: - how long a decision remains valid; - whether a decision can be used once or more than once; - what happens when policy changes after a decision is issued; - who can grant an exception and how the exception is recorded. ## 6. Make the decision explainable Store enough information to reconstruct why the gate decided as it did: ```text decision_id request_digest action and subject policy version input fact references and observation times decision reason codes expiry and consumption state ``` Keep sensitive values out of general logs. A fact reference and digest may be enough when the underlying system already holds the value under appropriate access controls. ## 7. Verify the gate Test the executor and gate together. A correct policy function is not enough if the side effect can bypass it. 1. Submit a normal allowed request. Confirm the executor accepts the matching unexpired decision. 2. Submit each deny condition separately. Confirm the reason code identifies the failed rule. 3. Remove a required fact. Confirm the decision is `indeterminate` and no side effect occurs. 4. Reuse an allow decision with a changed amount or target. Confirm the digest mismatch blocks execution. 5. Replay a consumed single-use decision. Confirm the executor rejects it. 6. Stop the gate or policy store. Confirm the executor does not fall back to an unchecked path. 7. Attempt the side effect with the agent's own credentials. Confirm the target system denies it. 8. Change the policy version. Confirm old decisions follow the expiry and revocation rules you defined. ## Common failure modes ### The policy is still natural language at runtime Written policy is useful input to design. It is a poor runtime return type. Convert each enforceable condition into typed facts, comparisons, and reason codes. Route genuinely interpretive cases to a named reviewer. ### The gate trusts facts supplied by the agent An agent can identify a subject, but authoritative amounts, states, and roles should come from their systems of record. Include provenance and observation times in the decision input. ### The allow token is not bound to the action A reusable boolean such as `approved: true` can drift to another target or amount. Bind the decision to a request digest, policy version, expiry, and use count. ### There is an emergency bypass with no separate owner An override controlled by the same agent is part of the normal path. Give exceptions a separate identity, a narrow scope, an expiry, and a recorded reason. ### Denials disappear into logs Return stable reason codes and a next state. The caller should know whether to correct the request, seek approval, wait for a dependency, or stop. ## Related reading - [Your agent should not be its own reviewer](/notes/control-loop/your-agent-should-not-be-its-own-reviewer) - [A passing test is not always a good result](/notes/control-loop/a-passing-test-is-not-a-good-result) - [Two-plane loop](/reference/two-plane-loop) - [Closure test](/reference/closure-test) --- # Add a human approval boundary URL: https://reactorjet.com/guides/tutorial/add-a-human-approval-boundary Kind: tutorial Split preparation from execution so an agent can assemble consequential work while a person controls whether that exact action proceeds. A human approval boundary belongs immediately before the action whose consequences matter. The agent may prepare the work, explain it, and collect evidence. It may not cross that boundary with a general "approved" flag. This tutorial uses a customer-facing status update as the example. The same shape applies to merging code, issuing a refund, changing access, or starting a deployment. The risk and reviewer will differ, but the boundary should still authorize one exact action. ## 1. Name the action that needs approval Write the boundary as a verb and object: ```text publish status update STATUS-218 to the public status page ``` Avoid broad boundaries such as "approve the run" or "allow production." They do not say what the person is permitting. If a workflow has several consequential actions, give each one a separate boundary. For the example, the agent may: - read incident notes supplied to the run; - draft the status update in a private workspace; - identify which claims are supported by which note; - request approval to publish the saved draft. The agent may not publish, edit the approval record, choose the approver, or change the draft after approval and reuse the same authorization. Expected outcome: you can point to one operation that cannot occur without a valid approval. ## 2. Separate preparation from execution Expose two operations with different permissions: ```text prepare(input) -> proposal commit(proposal_ref, approval_token) -> action_result ``` `prepare` must be safe to run without approval. It writes only to a private or reversible location. `commit` is the narrow operation that can affect the live system. Do not hide both operations behind one agent tool that pauses for a click and then continues with its existing authority. The commit operation should verify the approval itself. That way, bypassing the user interface does not bypass the boundary. Expected outcome: a prepared draft can wait, expire, or be rejected without publishing anything. ## 3. Build the approval request The reviewer needs the proposed action, its consequences, and enough evidence to make a decision. They should not have to infer the action from a long agent transcript. Use a compact approval request: ```text request_id: APR-551 run_id: RUN-8860 action: publish status update STATUS-218 target: public status page proposal_ref: sha256:... summary: report delayed imports and the active mitigation evidence_refs: - incident/observation-14 - checks/claim-support.json known_limits: - recovery time is not yet confirmed requested_by: agent-runner expires_at: 2026-08-13T15:30:00Z ``` Render the actual content or diff beside this metadata. A hash proves which content was reviewed, but a person cannot review a hash. Do not mark the request approved by default. The allowed states should make waiting and rejection explicit, for example `PENDING`, `APPROVED`, `REJECTED`, `EXPIRED`, and `CANCELLED`. ## 4. Ask a person to make the decision The reviewer should see three controls: - approve this exact action; - reject it with a reason; - return it for revision without authorizing execution. The screen or message should show the target, visible proposal, evidence, known limits, and expiry. It should also state what will happen after approval. For example: "Approval permits one attempt to publish this exact draft before 15:30 UTC." The reviewer must not rely on the agent's confidence as evidence. If the draft says service is restored, the request should point to the observation that supports that claim. If there is no supporting observation, the reviewer can reject the request or revise the claim. Expected outcome: approval is an informed decision about a concrete action, not a reward for a persuasive explanation. ## 5. Issue a narrow, single-use token After approval, the approval authority issues a token or signed record bound to the decision: ```text approval_id: APPROVAL-992 request_id: APR-551 action: publish target: status-page/STATUS-218 proposal_ref: sha256:... expires_at: 2026-08-13T15:30:00Z max_uses: 1 approved_by: operator-17 ``` The approval authority should not share signing credentials with the agent. The commit operation validates the action, target, proposal reference, expiry, and use count. A token for a status update must not authorize a deployment. A token for one draft must not authorize a later revision. If a signed token is not appropriate for your environment, store the approval in a protected service and let `commit` query it. The important property is the same: the agent cannot create or widen the permission it consumes. ## 6. Commit the action and record the result Before execution, `commit` should check: 1. The approval is valid and unused. 2. The current proposal still matches `proposal_ref`. 3. The action and target match the approved scope. 4. The approval has not expired or been cancelled. 5. Required evidence is still within its validity window. Consume the approval at the point where the action starts, or use an atomic reservation if the target supports retries. Record both the attempt and the result. A timeout after the target accepted the action is not safe to retry blindly. ```text approval_id: APPROVAL-992 action_attempt_id: ACTION-4401 proposal_ref: sha256:... started_at: ... result: succeeded target_ref: status-page/event-781 ``` Expected outcome: the record connects the reviewed proposal to the action that actually occurred. ## Check the boundary Test refusal paths as seriously as the happy path: - Call `commit` without approval and confirm no live action occurs. - Change one character in the proposal after approval and confirm the token is rejected. - Reuse a consumed token and confirm the second action is refused. - Present an expired or cancelled approval and confirm the workflow returns to a non-executing state. - Change the target while keeping the proposal unchanged and confirm the token cannot authorize the new target. - Approve a request, make the supporting evidence stale, and confirm execution pauses for a new review when freshness matters. ## Handle failures If the request expires while waiting, create a new request from the current proposal. Do not extend the old authorization silently. If the reviewer asks for changes, produce a new proposal reference and a new approval request. Keep the rejected request so the history explains why the work changed. If execution fails before the target accepts the action, record the failure and request a new token for a retry. If acceptance is uncertain, reconcile against the target first. Retrying an uncertain payment, publication, or permission change can duplicate the consequence. If the approval service is unavailable, wait. A human approval boundary that defaults to execution during an outage is not an approval boundary. ## Next steps - [Trace a failed agent run](/guides/tutorial/trace-a-failed-agent-run) - [Read the trust rule behind independent review](/notes/control-loop/your-agent-should-not-be-its-own-reviewer) - [Review the closure test](/reference/closure-test) --- # Evidence packet URL: https://reactorjet.com/components/evidence-packet Kind: component A bounded manifest that ties a proposed result to the checks, artifacts, provenance, and known gaps needed for review. ## Purpose An evidence packet collects the material needed to judge a proposed result. It contains a manifest, references to artifacts, provenance for each check, and an explicit account of missing or partial verification. It gives an evaluator a bounded input instead of asking it to reconstruct a run from chat history and temporary logs. The packet records observations. It does not decide whether those observations are good enough. That decision belongs to an evaluator or approval checkpoint. ## When to use Build an evidence packet whenever work will be evaluated outside the process that produced it. This includes proposed code changes, release candidates, infrastructure plans, generated reports, migrations, and automated incident responses. For a low-risk local edit, the packet can be a small manifest with a diff and one test result. For a production change, it may include build output, focused and regression checks, artifact digests, policy decisions, screenshots, and a list of checks that could not run. ## Inputs and outputs Inputs: - the intent brief reference and workflow run identifier; - the exact proposed artifact or change digest; - test, build, lint, security, or evaluation results; - logs and visual captures needed to support an acceptance check; - tool names, versions, commands, timestamps, and execution environments; - known gaps, skipped checks, warnings, and operator notes. Outputs: - an immutable packet manifest with its own digest; - content-addressed references to included artifacts; - a mapping from acceptance checks to supporting evidence; - a completeness status such as `complete`, `partial`, or `blocked`; - explicit declarations for absent evidence. ## Smallest useful interface ```ts type EvidenceItem = { id: string; kind: "change" | "check" | "log" | "capture" | "decision"; uri: string; digest: string; producedBy: string; producedAt: string; exitStatus?: number; }; type EvidencePacket = { runId: string; intentRef: string; subjectDigest: string; status: "complete" | "partial" | "blocked"; items: EvidenceItem[]; acceptanceMap: Record; gaps: string[]; }; function sealEvidence(packet: EvidencePacket): { packetRef: string; packetDigest: string; }; ``` Sealing should reject an item without provenance or a referenced artifact that cannot be read. The packet digest should cover the manifest and the digests of its artifacts. ## Example ```yaml runId: run-1842 intentRef: checkout-timeout-fix@1 subjectDigest: sha256:41de... status: partial items: - id: change kind: change uri: artifact://run-1842/checkout.patch digest: sha256:41de... producedBy: implementation-worker@3 producedAt: 2026-08-13T09:14:00Z - id: timeout-test kind: check uri: artifact://run-1842/timeout-test.txt digest: sha256:21a7... producedBy: test-runner/node-24 producedAt: 2026-08-13T09:18:00Z exitStatus: 0 acceptanceMap: timeout-response: - timeout-test successful-checkout-regression: [] gaps: - The full checkout integration suite could not reach its container registry. ``` The packet is useful even though it is partial. It supports the timeout claim and makes the missing regression evidence visible. An evaluator can return an `insufficient-evidence` verdict instead of treating the successful focused test as proof of the whole intent. ## Failure modes - **The packet contains only a prose summary.** Reviewers cannot inspect the source material. Include artifact references and digests. - **A passing exit code has no command or environment.** The result cannot be interpreted or repeated. Record the producer, version, invocation, and relevant environment identity. - **Logs are dumped without a manifest.** Important failures get buried and the evaluator must infer which log supports which claim. Map evidence to each acceptance check. - **Missing checks disappear.** A packet looks complete because skipped work is absent. List gaps and derive status from required evidence. - **Evidence refers to a different change.** Bind every packet to the exact subject digest and reject a packet when the artifact changes. - **The worker labels its own interpretation as fact.** Separate observations, such as command output, from worker notes and inferred explanations. - **Secrets enter the packet.** Redact credentials and sensitive payloads before storage. Keep a record that redaction occurred without preserving the secret. ## What it does not solve An evidence packet does not prove that a test is well designed, that an environment matches production, or that a screenshot shows the right user flow. It does not make the producer independent. It also does not replace the source systems that enforce access and retention. The packet gives evaluation a stable input; it cannot supply judgment that the workflow never defined. ## Related reading - [Intent brief](/components/intent-brief) - [Independent evaluator](/components/independent-evaluator) - [Human approval checkpoint](/components/human-approval-checkpoint) - [A passing test is not a good result](/notes/control-loop/a-passing-test-is-not-a-good-result) --- # Evidence before confidence URL: https://reactorjet.com/guides/concept/evidence-before-confidence Kind: concept Confidence describes a belief about a result, while evidence records observations that another person or system can inspect and use to decide what happens next. An agent says it is 95 percent confident that a change is correct. What should happen next? The number may help explain the agent's internal state. It does not prove that the change works. Confidence is a belief, estimate, or model output. Evidence is an observation tied to the thing being judged. Operational decisions should start with evidence. Confidence can help route uncertain cases, but it should not substitute for a test, comparison, policy check, or human judgment. ## What evidence looks like Useful evidence is specific enough that another person or system can inspect where it came from and what it supports. For a software change, that may include: - the exact input revision and candidate diff; - the command and environment used for a check; - the test result, including failures and skipped cases; - a screenshot or trace from the changed user flow; - a comparison with a saved baseline; - the policy version used to issue a verdict; - the deployed revision observed after release. No single item proves everything. A unit test can show that one code path behaves as expected. It cannot show that the correct build reached production. A screenshot can show visible behavior at one moment. It cannot prove that an authorization rule holds for every request. The decision should name which claims each piece of evidence supports. ## A concrete example Suppose an agent changes the checkout form to fix an address validation bug. The agent runs the unit tests and they pass. That is evidence, but it answers a narrow question: did the checks encoded in that suite pass in that environment? A stronger evidence chain could include: 1. The issue names the failing customer case and expected behavior. 2. A regression test fails on the baseline and passes on the candidate. 3. Existing checkout cases still pass on the same candidate revision. 4. A browser run completes the affected flow at the supported viewport. 5. The candidate diff shows no change to the protected acceptance rule. 6. After deployment, an observation identifies the running revision and repeats the critical check. The chain still does not prove that checkout can never fail. It gives a reviewer or policy engine a traceable reason to accept this change within a stated scope. Contrast that with: "The implementation is robust and I am highly confident it is production-ready." The sentence contains no inspectable support. ## Evidence needs identity An artifact becomes much less useful when it is detached from the run that created it. Record enough identity to answer: - What subject was examined? - Which revision, environment, and configuration were used? - Who or what produced the observation? - When was it produced? - Which attempt and policy does it belong to? - Has it changed since the verdict was issued? This is why a copied "all tests passed" line is weak. It omits the command, revision, environment, full result, and relationship to the candidate under review. ## Prefer comparisons to adjectives Words such as safe, fast, accurate, and ready need a reference point. Instead of saying "the candidate is faster," compare the candidate and baseline under the same workload. Instead of saying "the output is accurate," score both versions against saved examples with a declared rubric. Record regressions as well as aggregate improvement. A comparison can still be flawed. The case set may be too small, the environment may differ from production, or the metric may miss what users care about. Those limits belong beside the result, not hidden behind a larger confidence number. ## Protect the meaning of success Evidence is weak when the thing being judged can quietly alter the judge. A coding agent may need to add or update tests as part of legitimate work. That does not mean every changed test should automatically count as independent proof that the patch is correct. Keep held-out cases, policy checks, or final approval under separate authority when the consequence warrants it. This separation also applies to non-code work. A support agent can draft a refund response, but it should not be able to change the refund limit used to approve that response. A research agent can summarize sources, but its statement that the citations are valid is not the same as checking the cited documents. ## Match the evidence to the consequence A private draft and a production deployment do not need the same proof. For a low-risk, reversible draft, an agent explanation and a lightweight check may be enough. For money, identity, access, public claims, or irreversible data, require stronger evidence and an independent authority. Name the required human approval where automation is not appropriate. A practical decision policy is: - If required evidence is present and passes the declared rule, allow the named next step within its blast radius. - If evidence contradicts itself, stop and surface the conflict. - If required evidence is missing, treat the result as unknown rather than pass. - If a previously passing protected case regresses, let that failure outrank an improved aggregate score. Failing closed does not mean treating every uncertainty as a disaster. It means uncertainty does not silently become permission. ## A small evidence packet Before accepting consequential agent work, ask for a packet with: 1. the requested outcome and scope; 2. the candidate change or artifact; 3. the baseline used for comparison; 4. observations from the relevant checks; 5. known limits and skipped checks; 6. the verdict and the authority that issued it; 7. the next allowed action. This packet can be a structured record rather than a document. Its purpose is to keep the decision reproducible and stop confidence from outrunning proof. ## Related reading - [A passing test is not always a good result](/notes/control-loop/a-passing-test-is-not-a-good-result) - [Build the checks before you build the agent](/notes/control-loop/closing-the-loop) - [The closure test](/reference/closure-test) - [Control plane versus work plane](/guides/concept/control-plane-versus-work-plane) --- # Structure evidence for a workflow URL: https://reactorjet.com/guides/how-to/structure-evidence-for-a-workflow Kind: how-to Build an evidence bundle that connects each workflow claim to a reproducible observation, its source, and the decision that used it. Evidence is useful when a reviewer can trace a decision back to an observation without replaying the agent's reasoning. A transcript may provide context, but it does not by itself prove that a file existed, a policy allowed an action, or a deployed system behaved as expected. Build the bundle around claims. For every claim, record what was observed, how it was observed, and which version of the subject produced it. ## 1. List the claims before collecting artifacts Write one claim for each condition that must be true at the decision point. For a deployment workflow: ```text C-01 The candidate artifact was built from commit 8a61... C-02 The protected evaluation passed for that artifact digest. C-03 The production policy gate allowed that artifact and environment. C-04 The deployed endpoint serves the expected release identifier. C-05 The previous release can be restored through the documented rollback path. ``` Avoid claims such as "everything works." A reviewer cannot tell what evidence would disprove them. Give claims stable identifiers. Use the same identifiers in acceptance rules, evidence manifests, and verdict records. ## 2. Define acceptable evidence for each claim Specify the observation method and freshness rule before the run. | Claim | Required evidence | Reject when | | ----- | --------------------------------------------------------- | ----------------------------------------------- | | C-01 | Build attestation naming commit and artifact digest | Digest is missing or commit differs | | C-02 | Verdict from protected evaluator | Verdict is absent, stale, or for another digest | | C-03 | Gate decision bound to digest and environment | Decision expired or target differs | | C-04 | Response observed from production with release identifier | Observation came only from local preview | | C-05 | Rollback rehearsal result against the candidate release | Procedure is documented but untested | This step keeps convenient artifacts from replacing relevant ones. A local screenshot does not prove production behavior. A passing unit test does not prove which release is deployed. ## 3. Give every run an identity Create the run record before work begins. Use an identifier that remains stable across retries and append an attempt number for each execution. ```yaml run_id: deploy-2026-08-13-017 attempt: 2 workflow: production-deploy-v5 subject: commit: 8a61... artifact_digest: sha256:... started_at: 2026-08-13T10:20:00Z proposer: type: agent version: deploy-agent-12 ``` Do not use a mutable branch name as the subject. Record the commit, artifact digest, database revision, message digest, or other immutable identity that the workflow actually changes. ## 4. Store observations as records An observation should include: - a unique evidence identifier; - the claim or claims it supports; - the subject identity; - the observation method; - the source or environment; - the tool and version used; - the observation time; - the result and exit status; - a digest or pointer for the raw artifact; - any redaction applied. ```yaml evidence_id: E-04 supports: - C-04 subject_digest: sha256:7c9d... method: http-release-probe source: production observer: release-probe-v2.3.1 observed_at: 2026-08-13T10:34:12Z result: pass facts: release_id: 8a61... raw_artifact: path: observations/E-04-response.json sha256: 5b28... redactions: [] ``` Keep conclusions out of raw artifacts. The observation says what the probe received. The verdict says whether that observation satisfies the claim. ## 5. Preserve raw and derived evidence separately Raw evidence is the direct output of a tool or observer. Derived evidence is a summary, comparison, score, or screenshot produced from it. Use a simple directory shape: ```text run.json claims.yaml observations/ E-01-build-attestation.json E-02-evaluation-verdict.json E-03-policy-decision.json E-04-response.json derived/ release-comparison.md decision.json ``` Store a digest for each artifact in the manifest. If an artifact must live in another system, store a stable reference, source identity, access requirements, and digest when one is available. Do not place secrets in the bundle. Redact at collection time, record that a redaction occurred, and keep the protected source under its existing access controls. ## 6. Include negative evidence Positive evidence shows that the intended path worked. Negative evidence shows that a prohibited or broken path did not pass. For a deployment, useful negative checks might include: - an artifact with the wrong digest cannot reuse the gate decision; - an expired decision cannot authorize execution; - a failed protected case blocks promotion; - the agent identity cannot deploy directly; - an unreachable evaluator produces no verdict rather than a pass. Link each negative check to a claim or boundary. Do not collect failures merely to make the bundle look complete. ## 7. Record the decision as a separate artifact The final record should identify the claims, evidence, rule, and authority that produced the decision. ```json { "run_id": "deploy-2026-08-13-017", "decision": "promote", "decision_rule": "production-deploy-v5", "subject_digest": "sha256:7c9d...", "claims": { "C-01": ["E-01"], "C-02": ["E-02"], "C-03": ["E-03"], "C-04": ["E-04"], "C-05": ["E-05"] }, "decided_by": "release-controller", "decided_at": "2026-08-13T10:40:00Z" } ``` If evidence is missing or contradictory, record `no_verdict` or the equivalent workflow state. Do not fill gaps with the agent's confidence statement. ## 8. Verify the bundle Use a fresh reader or an automated validator. The producer's ability to read its own output is not enough. 1. Start from `decision.json` and resolve every claim to at least one evidence record. 2. Recompute artifact digests and compare them with the manifest. 3. Confirm every evidence record names the same subject, or explicitly explains why another subject is relevant. 4. Check observation times against freshness rules and decision expiry. 5. Confirm raw artifacts exist and derived summaries point back to them. 6. Verify both the allowed path and the required negative checks. 7. Remove one required artifact and run the validator. Confirm the bundle becomes incomplete rather than silently valid. 8. Replace one artifact with evidence from another run. Confirm the subject or digest mismatch is detected. ## Common failure modes ### The transcript is the evidence bundle A transcript records conversation and tool narration. Keep it as context if it helps debugging, but use direct outputs and observations for acceptance claims. ### Evidence has no subject identity "Tests passed" is ambiguous when several commits or artifacts exist. Bind each record to the immutable subject that was tested. ### Screenshots have no source or time A screenshot may be relevant visual evidence, but record the environment, URL or view, capture time, release identity, and the claim it supports. ### Only successful checks survive Store failed attempts and superseded observations with their attempt number. Do not overwrite the history that explains why the workflow retried. ### Raw artifacts contain credentials or personal data Decide what the claim needs before collection. Store the minimum evidence, redact deliberately, and record where protected source data remains. ### A summary introduces facts not present in the raw output Derived evidence should cite the evidence identifiers it used. A validator or reviewer should be able to follow each statement back to an observation. ## Related reading - [A passing test is not always a good result](/notes/control-loop/a-passing-test-is-not-a-good-result) - [Your agent should not be its own reviewer](/notes/control-loop/your-agent-should-not-be-its-own-reviewer) - [Two-plane loop](/reference/two-plane-loop) - [Agent eval pack](/packs/autonomic-swe/agent-eval) --- # Trace a failed agent run URL: https://reactorjet.com/guides/tutorial/trace-a-failed-agent-run Kind: tutorial Reconstruct a failed run from durable records, locate the first broken assumption, and choose a recovery without erasing the evidence. When an agent run fails, the last error is often only where the failure became visible. A malformed tool response may have entered the run several steps earlier. A check may have used the wrong baseline. An action may have succeeded even though the runner timed out. Trace the saved run before rerunning it. A rerun can be useful later, but it creates a new sequence with different timing and possibly different external state. ## 1. Freeze the failed run Start with the run identifier and prevent further automatic retries while you inspect it. Preserve the workspace, proposal, logs, check output, and current target state according to your retention rules. Record the debugging question in one sentence: ```text Why did RUN-8894 end with STOP after the agent produced a valid configuration? ``` Then capture the run's final known state: ```text run_id: RUN-8894 task_id: TASK-1061 runner_state: stopped proposal_ref: sha256:... verdict: STOP live_action: not attempted workspace: retained ``` Do not edit the original records while investigating. Add annotations in a separate trace or incident record. Expected outcome: everyone investigating refers to the same failed execution, not a later retry or a reconstructed transcript. ## 2. Collect records by identifier Gather records that share `run_id`, `task_id`, `proposal_ref`, approval ID, or action attempt ID. At minimum, look for: - the task contract and its version; - the baseline and checker versions; - observations supplied to the agent; - tool requests and responses; - agent attempts and budget events; - the final proposal or partial workspace; - check results and raw evidence; - approval requests and decisions; - live action attempts, if any; - cleanup, rollback, or reconciliation results. Secrets and raw personal data should remain redacted according to policy. Keep stable references to protected records so an authorized investigator can inspect them when necessary. Missing records are findings. Write down what is absent instead of filling the gap with the agent's summary. ## 3. Build a factual timeline Order events using sequence numbers when available. Clocks across services can drift, so timestamps alone may put cause after effect. | Sequence | Component | Event | Evidence | |---|---|---|---| | 41 | runner | accepted task version 8 | `task/TASK-1061/8` | | 42 | sensor | read current retry policy | `observation/991` | | 43 | agent | produced proposal | `sha256:...` | | 44 | checker | loaded baseline version 11 | `baseline/11` | | 45 | checker | protected retry case failed | `check/774/raw` | | 46 | verdict | emitted `STOP` | `verdict/310` | | 47 | applier | discarded workspace changes | `cleanup/558` | Use the timeline to separate facts from interpretations. "Protected retry case failed" is a fact when the raw check result supports it. "The agent ignored the policy" is an interpretation until you identify which input, proposal field, or tool result demonstrates that. Expected outcome: the trace shows the first observed divergence rather than only the final error message. ## 4. Check record integrity and linkage Before diagnosing behavior, confirm that the records belong together: 1. Does the proposal hash match the content the checker read? 2. Did the checker use the baseline named in the run contract? 3. Do tool responses link to the request and attempt that produced them? 4. Was the verdict computed from the recorded check results? 5. If an approval existed, did it name the same proposal and target? 6. Does cleanup refer to the workspace created for this run? If a link is wrong, stop interpreting the agent's reasoning. You have a trace or orchestration defect first. Repairing the prompt will not fix a checker that read the wrong proposal. ## 5. Find the first broken assumption Walk forward from the task contract and ask what each component assumed about its input. Compare that assumption with the saved record. Common categories are: | Category | Evidence to look for | Typical recovery | |---|---|---| | Task defect | Ambiguous objective, missing constraint, stale input version | Correct and version the task, then start a new run | | Agent defect | Proposal contradicts a supplied constraint or omits required output | Revise instructions, tools, or examples and rerun the eval set | | Tool defect | Timeout, truncated response, malformed payload, wrong target | Fix or isolate the tool, then retry from a known state | | Check defect | Wrong baseline, unstable case, unreadable evidence | Repair the checker and recompute the verdict without changing the proposal | | Boundary defect | Missing, overbroad, expired, or mismatched approval | Refuse execution and issue a new scoped request | | Target defect | External system rejected or partly accepted the action | Reconcile target state before deciding whether to retry | | Runtime defect | Budget, storage, credential, or worker failure | Restore the runtime and resume only from a documented safe point | Choose the earliest category supported by evidence. Later errors may be real, but fixing only the final symptom can leave the original defect in place. In the example timeline, inspect why the protected retry case failed. If the proposal violates a policy present in the task input, the agent produced a bad proposal and `STOP` is correct. If the checker loaded baseline 11 while the run contract names baseline 12, the verdict is not trustworthy even though the case did fail. ## 6. Verify the safety state Before planning a retry, answer these questions: - Did any proposed change reach the live target? - Is the scratch workspace isolated or fully discarded? - Was an approval token issued, consumed, or left valid? - Can an automatic retry still start? - Does the target need reconciliation because the action result is uncertain? Do not infer live state from the runner's status. A runner can report a timeout after the target accepted an action. Query the target through an independent read path and save the result. Expected outcome: the trace states whether the failure is contained, rolled back, partially applied, or unresolved. ## 7. Write the failure report Keep the report short enough to use during repair, but link every conclusion to evidence. ```text run_id: RUN-8894 classification: check configuration defect first_divergence: checker loaded baseline 11 instead of required baseline 12 evidence: - task/TASK-1061/8 - check/774/config impact: no live action attempted; proposal discarded recovery: fix baseline resolution and recompute checks for the unchanged proposal prevention: reject checker startup when the requested baseline cannot be loaded owner: verdict-plane operator status: contained ``` Avoid conclusions such as "the model was confused" unless you can tie them to a specific decision and input. Even then, describe the observable mismatch. That gives the next builder something they can test. ## Check the trace Before closing the investigation, verify both the explanation and the safety claim: - A second person can follow the evidence links and reach the same first divergence. - The report distinguishes missing evidence from evidence of absence. - The proposed recovery addresses the first broken assumption. - A negative test reproduces the failure or proves the new guard rejects it. - The live target and any approval token have a recorded final state. - The failed run remains available after the repair and is linked to the new test case. ## Handle incomplete traces If a tool response is missing, classify the run as unresolved rather than inventing its contents. Improve the record path before increasing the agent's authority. If sequence order is ambiguous, state the competing explanations and collect the evidence that would distinguish them. Do not choose the most convenient story because it fits the final error. If the target state cannot be read, block retries that could duplicate the action. Escalate to the owner of that system with the action attempt ID and the last confirmed state. If the failure cannot be reproduced, keep the original evidence and add instrumentation around the suspected boundary. A clean rerun does not erase a failed run. ## Next steps - [Run an agent task with an independent check](/guides/tutorial/run-an-agent-task-with-an-independent-check) - [Read the two-plane loop reference](/reference/two-plane-loop) - [Use the closure test to assess the repaired workflow](/reference/closure-test) --- # Independent evaluator URL: https://reactorjet.com/components/independent-evaluator Kind: component A separately controlled judge that compares a proposed result and its evidence with the original intent and a versioned rubric. ## Purpose An independent evaluator judges a proposed result without relying on the producer's confidence. It compares the intent brief, the subject artifact, and the evidence packet with a versioned rubric. It returns a verdict for each criterion and for the proposal as a whole. Independence is a control relationship, not a job title. The producer should not be able to change the rubric, select only favorable evidence, overwrite the verdict, or grant the capability that follows a passing result. ## When to use Use an independent evaluator when a workflow needs more than self-review before it can merge, publish, deploy, or hand work to another system. It is especially useful when the worker is probabilistic, the acceptance criteria combine several checks, or a passing test can still miss the requested outcome. The evaluator can be deterministic code, a separate model invocation, a test harness, a human review role, or a combination. Choose the simplest form that can judge the stated criteria. Use deterministic checks for facts that can be computed directly. Reserve model or human judgment for criteria that require interpretation. ## Inputs and outputs Inputs: - the exact intent brief version; - the proposed artifact or change digest; - a sealed evidence packet; - a versioned rubric with required and advisory criteria; - evaluator identity and execution environment; - saved examples or baselines when the rubric requires comparison. Outputs: - a verdict of `pass`, `fail`, `insufficient-evidence`, or `error`; - one result per rubric criterion; - evidence references and reasons for every result; - the evaluator and rubric versions; - recommended next action, limited to retry, revise, review, or stop. ## Smallest useful interface ```ts type CriterionResult = { criterionId: string; result: "pass" | "fail" | "insufficient-evidence" | "error"; evidenceRefs: string[]; reason: string; }; type Evaluation = { subjectDigest: string; evaluatorVersion: string; rubricVersion: string; verdict: "pass" | "fail" | "insufficient-evidence" | "error"; criteria: CriterionResult[]; }; function evaluate(input: { intentRef: string; evidencePacketRef: string; rubricRef: string; }): Evaluation; ``` The evaluator should reject a packet whose subject digest does not match the proposal. A required criterion without evidence should not pass by default. ## Example Rubric `checkout-timeout@2` contains two required criteria: 1. The timeout path returns the documented retry response. 2. Existing successful checkout behavior has regression evidence. The evidence packet contains a passing focused timeout test but says the full integration suite could not run. The evaluator returns: ```json { "subjectDigest": "sha256:41de...", "evaluatorVersion": "checkout-evaluator@4", "rubricVersion": "checkout-timeout@2", "verdict": "insufficient-evidence", "criteria": [ { "criterionId": "timeout-response", "result": "pass", "evidenceRefs": ["packet:run-1842#timeout-test"], "reason": "The focused test exercises the required timeout response and exits successfully." }, { "criterionId": "successful-checkout-regression", "result": "insufficient-evidence", "evidenceRefs": [], "reason": "The required integration check did not run." } ] } ``` The worker may repair the test environment or add valid regression evidence. It may not convert the second criterion to advisory during the run. ## Failure modes - **The producer also owns the rubric.** Criteria can drift toward the current output. Put rubric changes behind separate review and version them. - **The evaluator reads the worker's summary instead of source evidence.** A persuasive explanation can replace observation. Resolve evidence references and judge the artifacts directly. - **Missing evidence becomes a pass.** Use a distinct `insufficient-evidence` result so absence is not confused with success. - **The evaluator changes between retries without a record.** Results cannot be compared. Store the evaluator version, rubric version, and subject digest. - **A single score hides a required failure.** Report criterion-level results and define which criteria are mandatory. - **The worker retries until a variable judge passes.** Set retry limits, retain every verdict, and route repeated disagreement to review. - **The evaluator can execute the proposed change.** Keep judgment separate from the capability to merge, deploy, publish, or spend. - **Saved examples only cover familiar successes.** Add boundary cases and known failures when maintaining the rubric. Do not let the producer choose the evaluation set for each run. ## What it does not solve An independent evaluator does not make a weak rubric meaningful. It cannot detect conditions that the evidence and criteria never expose. Separation also does not guarantee different blind spots if the producer and evaluator use the same inputs and assumptions. The component creates a reviewable authority boundary; teams still need to test the evaluator and update its rubric through a controlled process. ## Related reading - [Evidence packet](/components/evidence-packet) - [Human approval checkpoint](/components/human-approval-checkpoint) - [Policy gate](/components/policy-gate) - [Your agent should not be its own reviewer](/notes/control-loop/your-agent-should-not-be-its-own-reviewer) - [Closure test](/reference/closure-test) --- # AI operations IME URL: https://reactorjet.com/guides/concept/ai-operations-ime Kind: concept AI operations IME is an emerging ReactorJet and Biro direction for turning operator intent into inspectable, bounded work without pretending that a prompt is authority or evidence. **This is a working direction, not a released product.** ReactorJet and Biro do not currently offer a product called AI operations IME. The term describes an interaction model being explored, not a capability claim or delivery promise. IME means input method editor in this concept. A conventional IME sits between keystrokes and committed text. It helps a person compose an intended result, shows candidates when the input is ambiguous, and waits for a selection before committing. An AI operations IME applies that interaction pattern to operational intent. It would sit between what an operator means and the durable work objects a control plane can govern. Its job would be to help compose intent, expose assumptions, and preview consequences before work is committed. The analogy has limits. An operations IME would not be an operating-system text input method. It would also not have authority simply because it produced a plausible interpretation. ## Why this direction is useful Most agent interfaces begin with a blank chat box. The user types a request, the system interprets it, and execution may begin before the user can see what the request became. That interaction hides several operational questions: - Which goal does this request serve? - Is it a question, a draft, a task, or approval to act? - Which systems and records may change? - What budget and deadline apply? - Which assumptions did the model make? - What evidence will count as done? - Which step needs a person or separate authority? A chat transcript can contain answers to all of these, but it is a poor place to enforce them. Operational intent should become durable state that can be inspected, changed, approved, and compared with what actually happened. ## A possible interaction Consider the request: "Reduce the support backlog without breaching our refund policy." An ordinary assistant might return a plan or start calling tools. An operations IME would first compose a candidate operational object. Conceptually, the flow could be: 1. **Input.** Capture the operator's sentence and the current work context. 2. **Candidates.** Offer distinct interpretations, such as prioritizing old tickets, drafting replies, or changing assignment rules. 3. **Preview.** Show the proposed scope, affected systems, budget, assumptions, approval points, and completion evidence. 4. **Commit.** Turn the selected interpretation into durable goals, tasks, policies, or approvals in the control plane. 5. **Observe.** Attach execution events and outcome evidence to those objects so the operator can compare intent with result. This example describes the proposed interaction model. It does not state that ReactorJet or Biro implements this sequence today. ## The composition must be inspectable The useful output is not a better prompt. It is a proposed change to operational state. Before commitment, the operator should be able to inspect a diff that answers: - what new work will exist; - which existing goal or policy it belongs to; - who or what may execute it; - what permissions and budget it receives; - what completion rule will judge it; - what remains ambiguous or unapproved. The system may help fill these fields, but generated confidence does not settle them. Ambiguity should remain visible until a policy or person resolves it. ## Relationship to the control plane An operations IME is not the control plane. It is a possible composition layer above one. The IME would translate human intent into candidate control-plane changes. The control plane would remain responsible for durable identity, policy, assignment, budgets, approvals, and status. The work plane would still execute bounded assignments through its own tools and credentials. This separation matters because language is permissive. A sentence can imply a broad action without naming its blast radius. The control plane should reject or hold a candidate that lacks the required scope, authority, or evidence rule. ## ReactorJet and Biro direction For ReactorJet, the idea is an interaction model for evidence-backed software and agent operations. It fits the broader practice of making intent, boundaries, and verdicts visible before increasing autonomy. For Biro, the idea could provide a way to compose company-level intent into goals, work, budgets, and approval requests without turning the product into a general chat surface. Biro's control-plane objects would remain the governed record. The IME would be one possible way to propose changes to that record. These are design directions. They do not announce a roadmap, release date, integration, or implemented feature. ## What it should not become The IME framing is useful only if it preserves operational boundaries. - It should not become a chat wrapper that executes ambiguous requests. - It should not replace the control plane or source systems with a transcript. - It should not treat generated plans as approval. - It should not hide permissions, cost, or affected records behind a friendly summary. - It should not report work as complete without evidence from the work plane or a separate evaluator. - It should not promise one natural-language command that can safely operate every system. The interface should make uncertainty easier to inspect, not make uncertainty look certain. ## What would make the direction credible Before calling this more than a concept, an implementation would need to prove several properties: 1. The same committed intent produces a durable, versioned operational change. 2. Candidate interpretations expose material differences before selection. 3. Permissions and budgets come from policy, not from generated text. 4. Execution occurs through bounded work-plane contracts. 5. Evidence attaches to the committed intent and identifies the relevant run. 6. Missing evidence, lost execution, and policy conflicts have visible states. 7. High-consequence actions stop at named approval boundaries. Those tests are more important than how fluent the interface feels. The concept becomes useful when it gives operators a clearer way to control work, not when it merely makes requests easier to type. ## Related reading - [Control plane versus work plane](/guides/concept/control-plane-versus-work-plane) - [Evidence before confidence](/guides/concept/evidence-before-confidence) - [What makes software autonomic](/guides/concept/what-makes-software-autonomic) - [The two-plane loop](/reference/two-plane-loop) --- # Choose where humans approve URL: https://reactorjet.com/guides/how-to/choose-where-humans-approve Kind: how-to Place human approval at the smallest number of consequential transitions where judgment, accountability, or exception handling is still required. Human approval is most useful at a transition where the workflow is about to create a consequence that automation cannot fully authorize. Approval at every step trains reviewers to click through. Approval after the side effect is too late. The task is to find the few transitions where a person adds judgment or accepts responsibility, then give that person the evidence and control needed to make a real decision. ## 1. Map actions, not agent messages List the state-changing actions in the workflow. Ignore drafting, planning, and internal tool calls unless they can affect another system or person. ```text read account history draft refund request validate amount against policy issue refund notify customer record outcome ``` In this example, issuing the refund and sending the notification are the consequential actions. Reading history may still need access control, but it is not an approval point merely because an agent performs it. For each action, name the last safe stop before execution. ## 2. Rate the consequence Use concrete questions rather than a single risk label. | Question | Lower need for approval | Higher need for approval | | -------------------------------------- | --------------------------- | ---------------------------------------------------- | | Can the action be reversed completely? | Draft can be discarded | Payment cannot be recalled automatically | | Who is affected? | Agent's private workspace | Customer, employee, public audience, or third party | | What is the maximum scope? | One bounded record | Many records or an open-ended query | | Is policy deterministic? | Typed facts decide the rule | Context or intent changes the decision | | Is the case familiar? | Covered by tested examples | New exception or conflicting evidence | | What authority is exercised? | Read-only analysis | Money, identity, access, legal, or production change | Document the evidence behind each rating. "High risk" without a scenario does not tell a reviewer what to inspect. ## 3. Remove approvals that automation can own Do not ask a person to recompute a deterministic rule. Put stable limits, required fields, role checks, and state checks in a policy gate. Use automation when: - the required facts come from authoritative systems; - the rule can be expressed without subjective interpretation; - allowed scope is bounded; - failures stop safely; - the decision and evidence can be recorded. Keep human approval when the case requires judgment the gate does not encode, the policy names a human authority, or the consequence warrants explicit accountability. ## 4. Choose the transition to approve Place approval immediately before the consequential action, after the workflow has assembled its proposal and evidence. ```text agent proposes action -> automated checks -> policy gate -> human approval, when required -> executor validates approval -> side effect ``` Avoid approving an early plan if the final amount, audience, target, or content can change afterward. Approve the exact action that the executor will perform. Where several actions form one transaction, decide whether one approval can cover the bundle. Name every included action and reject execution if the bundle changes. ## 5. Define escalation rules Write rules that route known cases without asking the agent to decide whether it deserves oversight. ```yaml approval_policy: auto_allow: - action: refund.create when: amount_minor <= 50000 and policy_gate == allow human_required: - when: amount_minor > 50000 role: finance-approver - when: policy_gate == require_approval role: policy-owner - when: evidence_conflict == true role: workflow-owner stop: - when: policy_gate == deny - when: policy_gate == indeterminate and no escalation route exists ``` Thresholds in a real policy should come from the policy owner and use the system's units. The values above only show the structure. Include limits for repeated requests. An agent should not turn one denial into an approval by resubmitting until a different reviewer answers. ## 6. Design the review packet Show the reviewer the proposed action, not a generic "approve" button. Include: - the exact target, scope, and side effect; - a human-readable preview or diff; - the policy result and reason codes; - evidence for each acceptance claim; - known uncertainty and missing evidence; - the result of approving and the result of rejecting; - a stable request digest. Keep the agent's recommendation separate from observed facts. The reviewer may read the recommendation, but should not have to infer the amount, audience, or changed permissions from prose. Give reviewers three responses when the workflow needs them: ```text APPROVE authorize this exact request REJECT stop this request and record a reason RETURN request a specific correction without authorizing execution ``` Do not treat silence, timeout, or a closed browser window as approval. ## 7. Bind approval to execution An approval should identify what was approved and who had authority to approve it. ```json { "approval_id": "approval-921", "request_digest": "sha256:...", "decision": "approve", "approver_role": "finance-approver", "policy_version": "refund-v4", "approved_at": "2026-08-13T11:10:00Z", "expires_at": "2026-08-13T11:20:00Z", "max_uses": 1 } ``` The executor should verify the request digest, role, expiry, policy version, and use count. If the request changes, ask for a new approval. Do not let the agent edit the approval record or call the side-effecting system with broader credentials. ## 8. Plan for reviewer unavailability Choose behavior for timeouts before launch: - wait with the request preserved; - route to another person with the same defined authority; - expire the request and require a fresh proposal; - stop the workflow. Do not silently downgrade to automatic execution. If delayed action creates its own harm, handle that with a narrow, pre-authorized policy path rather than an unbounded emergency bypass. ## 9. Verify the approval map Test the decisions, the wiring, and the review screen. 1. Run a low-consequence case. Confirm it completes through the automated path without an unnecessary prompt. 2. Run each human-required condition. Confirm the correct role receives the exact request and evidence. 3. Reject a request. Confirm no side effect occurs and resubmission follows the rules you defined. 4. Change the request after approval. Confirm the digest mismatch blocks it. 5. Use an expired, consumed, or wrong-role approval. Confirm the executor rejects it. 6. Let the review time out. Confirm the request waits, reroutes, expires, or stops as specified. 7. Attempt the side effect directly with the agent identity. Confirm it lacks permission. 8. Review a sample of approved and rejected cases. Check whether reviewers had enough evidence and whether any approval point produces routine click-through. ## Common failure modes ### Approval happens before the request is final The agent gets approval for a plan, then changes the target or content. Bind approval to the final request digest and invalidate it after any change. ### The reviewer sees only the agent's summary Provide source facts, diffs, policy results, and evidence references. A summary can help orientation but should not be the only basis for the decision. ### Every action asks for approval Move deterministic checks into policy gates and keep drafts private. Reserve people for consequential transitions, exceptions, and unresolved conflicts. ### Approval is advisory If the executor accepts a request without the approval artifact, the prompt is ceremonial. Enforce approval at the credential or execution boundary. ### One approval authorizes future actions Broad standing approval hides scope changes. Use a bounded subject, digest, expiry, and use count. Create a separate policy for genuinely recurring work. ### Reviewers cannot reject safely Define what rejection and return do to the workflow. Preserve the proposal and evidence without executing the side effect, and record the reason. ## Related reading - [Your agent should not be its own reviewer](/notes/control-loop/your-agent-should-not-be-its-own-reviewer) - [A passing test is not always a good result](/notes/control-loop/a-passing-test-is-not-a-good-result) - [Two-plane loop](/reference/two-plane-loop) - [Closure test](/reference/closure-test) --- # Human approval checkpoint URL: https://reactorjet.com/components/human-approval-checkpoint Kind: component A scoped handoff that gives an accountable person the evidence, options, and authority needed to approve or stop a consequential action. ## Purpose A human approval checkpoint pauses a consequential action and hands a bounded decision to an accountable person. It presents the requested outcome, the exact action, the evidence, the evaluator's verdict, and unresolved risks. The person can approve, reject, or request a revision. The approval applies only to the reviewed subject and action. It should be recorded as a scoped authorization that the executor can verify, not as a chat message that a worker interprets. ## When to use Use a human checkpoint when policy assigns final authority to a person or when the consequences exceed what the automated controls may authorize. Examples include production deployment, irreversible migration, access expansion, customer-facing publication, legal or safety claims, and unusual financial commitments. Do not require approval merely because a workflow contains an agent. Routine, low-risk actions with tested policy and evaluation paths can stay automated. Place human attention at the boundary where judgment, accountability, or risk ownership is required. ## Inputs and outputs Inputs: - the intent brief and current version; - the proposed action, target, and subject digest; - the sealed evidence packet; - policy and evaluator decisions; - known gaps, warnings, rollback information, and expected impact; - the approver role and expiry policy. Outputs: - `approved`, `rejected`, or `revision-requested`; - the approver identity and role; - a timestamp, expiry, and single action digest; - an optional reason or requested change; - a signed or otherwise verifiable approval reference for the executor. ## Smallest useful interface ```ts type ApprovalRequest = { intentRef: string; action: string; target: string; subjectDigest: string; evidencePacketRef: string; policyDecisionRef: string; evaluationRef: string; risks: string[]; expiresAt: string; }; type ApprovalDecision = { requestDigest: string; result: "approved" | "rejected" | "revision-requested"; approver: string; approverRole: string; decidedAt: string; expiresAt?: string; reason?: string; }; function recordApproval( request: ApprovalRequest, decision: Omit ): ApprovalDecision; ``` The executor should accept an approval only when the approver has the required role, the request digest matches, the approval is current, and no newer artifact has replaced the reviewed subject. ## Example A checkout change has passed its evaluator and reached the production policy gate. The policy requires an on-call release approver. The checkpoint displays: ```yaml intent: checkout-timeout-fix@2 action: Deploy checkout-api release 2026.08.13.3 to production subject: sha256:94ab... evaluation: pass policy: review required for production evidence: focused-timeout-test: pass checkout-integration-suite: pass release-artifact-digest: sha256:94ab... known-risks: - The change adds a new retry response on one upstream timeout path. rollback: - Redeploy release 2026.08.12.5 using the existing release procedure. expires: 2026-08-13T12:30:00Z ``` The approver selects `approved`. The checkpoint issues a decision bound to the production target and release digest. If a worker rebuilds the release, the new digest requires a new approval even when the source diff appears unchanged. ## Failure modes - **The request asks only "approve?"** The person cannot see scope or consequence. Show the action, target, artifact, evidence, gaps, and rollback information in a compact decision view. - **Approval applies to a moving branch or latest release.** The subject can change after review. Bind approval to an immutable digest. - **A chat reaction becomes authorization.** The executor cannot verify who approved what. Record a structured decision through an authenticated path. - **The only easy action is approve.** This encourages a rubber-stamp path. Give rejection and revision equal visibility and require no workaround to stop the action. - **Every workflow requests human review.** Repeated low-value prompts consume attention and hide unusual risk. Use policy to reserve checkpoints for named boundaries and exceptions. - **The approver lacks the relevant role.** Identity alone is not authority. Resolve the required role at decision time and record it. - **The request expires but execution continues.** Verify freshness at the execution boundary and request approval again after expiry. - **New evidence arrives after approval.** Treat changes to the subject, required evidence, or risk statement as a new request. ## What it does not solve A human checkpoint does not guarantee that a person will notice every defect or make the best decision. It cannot compensate for missing evidence, a misleading summary, or an approver without enough context. It also does not replace access control at the execution platform. Its job is narrower: preserve human authority at a named boundary and make the resulting authorization specific, visible, and enforceable. ## Related reading - [Intent brief](/components/intent-brief) - [Policy gate](/components/policy-gate) - [Evidence packet](/components/evidence-packet) - [Independent evaluator](/components/independent-evaluator) - [Your agent should not be its own reviewer](/notes/control-loop/your-agent-should-not-be-its-own-reviewer) --- # autonomic software engineering URL: https://reactorjet.com/reference/autonomic-software-engineering Autonomic software engineering applies the closed control loop to the engineering process itself. Autonomic computing pointed MAPE-K at the runtime: the cluster manages itself. Autonomic software engineering points it at the repository: the codebase changes itself, observes the consequence, and converges against an eval rather than a reviewer. The autonomic nervous system regulates the body without conscious attention. It is not autonomous — autonomy implies a goal of its own. The autonomic system *serves* a goal that consciousness sets; it adjusts heart rate, digestion, temperature without asking. The etymology is load-bearing. Kephart and Chess (2003) named **autonomic computing** for the analogous property in systems: the runtime manages itself, with the operator setting policy and the system handling the rest. MAPE-K — Monitor, Analyze, Plan, Execute, Knowledge — was the architecture. The hard part, the part that prevented anyone from actually building an autonomic system, was the Analyze stage. You needed a model of intent, and nobody could write one down. That constraint has moved. The model of intent is now something a model can produce. The hard part is no longer generating a change. It is deciding, without a human, whether the change was an improvement. Every architecture that fails this fails the same way: the thing that proposes the change also decides whether it worked. The loop then optimises the judge. This happens quietly, produces a rising number, and is usually discovered six weeks later. **Autonomic software engineering** is the practice that points the MAPE-K loop at the engineering process itself. The codebase is the managed subject. Sensors observe the consequence of a change. The proposer emits a patch. The applier lands it. The scorer runs the eval. The verdict plane decides pass, fail, kill, harden, or pivot. The cycle converges against an eval, not against a reviewer. ## What it is not It is not **agentic engineering** (Karpathy, 2026) — which is about how a human directs agents. Agentic engineering describes the operator. Autonomic software engineering describes the change path. It is not an **autonomous software engineer** — a role description, not a system property. Different subject, no conflict. It is not **self-modifying AI** in the sci-fi sense. The system has a fixed target (the eval) and converges against it. The system is not improving itself in any unbounded sense; it is closing a loop on a defined subject. ## Position There is 2004-era prior art applying autonomic concepts to software development operations. It predates any component capable of delivering it and has no practitioner footprint. Citing it pre-empts the objection at no cost. The IEEE / ACM Automated Software Engineering conference has used "ASE" since 1986. The acronym is therefore not available. The full term is the name; the practice is what it is. ## See also - [closure-test](/reference/closure-test) — the four-condition rubric that decides whether a system qualifies - [two-plane-loop](/reference/two-plane-loop) — the reference architecture for separating the change from the decision --- # closure test URL: https://reactorjet.com/reference/closure-test The closure test is a four-condition rubric for whether an agent system actually closes the loop. Pass or fail, no maturity levels: closed loop, declarative target, unattended in the ordinary case with named exceptions, and ground truth — an eval decides whether the loop converged. Condition 4 is the disqualifier. A membership criterion, not a maturity model. Pass or fail. Four conditions, no gradations. The recurring finding of the teardown series is that systems which look agentic — emit a change, look at the consequence, iterate — fail condition 4, and failing condition 4 means there is no Analyse stage, only Monitor. ## The four conditions 1. **Closed loop.** The system observes the consequence of its own change. A Sensor reads post-apply state; the Ledger records both the application and the observation. Without this, the loop is open and any "improvement" is a rumour. 2. **Declarative target.** Intent is state that can be diffed, not a transcript that must be read. The Proposal is a content-addressed patch; `git diff` (or the equivalent on the managed subject) is the full intent. A transcript hides the intent inside the words; a diff *is* the intent. 3. **Unattended in the ordinary case,** with an explicitly named exception class. The loop runs without a human in the loop most of the time. When it does not, the reason is named in advance, not discovered after the fact. "We watched it work" is not an exception class; "the corpus is being regenerated and a human signs off on the new cases" is. 4. **Ground truth.** An eval decides whether the loop converged. Without an eval there is no Analyse stage, only Monitor. The eval is held by a separate authority from the proposer; the proposer submits to the verdict plane, it does not call it. KILL outranks aggregate. A change that improves the aggregate and breaks one previously-passing case is KILL, not PASS. This is the rule that makes the corpus mean something. ## Why condition 4 is the disqualifier Conditions 1, 2, and 3 are necessary but common. Condition 4 is the one that distinguishes autonomic software engineering from agentic engineering. Most "agent loops" fail here because the thing that proposes the change also decides whether it worked, and the loop then optimises the judge. The Tell is a monotonically rising number on a metric that the proposer also controls. A system that fails any of the four conditions is not a closed-loop autonomic system. It may be useful, but it is not what this practice is about. ## How to use the rubric Apply the four conditions in order. The first one that fails ends the assessment. There is no "but it does 1, 2, 3 well" — partial credit is not a thing the rubric grants. The teardown series scores a named system against the four conditions and publishes the scorecard in a fixed structure. The rubric is a component, not prose, so scores are comparable across pieces. ## See also - [autonomic-software-engineering](/reference/autonomic-software-engineering) — the practice the test is the membership criterion for - [two-plane-loop](/reference/two-plane-loop) — the architecture that satisfies condition 4 --- # two-plane loop URL: https://reactorjet.com/reference/two-plane-loop A reference architecture for autonomic software engineering that separates the agent that proposes a change (the Proposal plane) from the authority that decides whether the change helped (the Verdict plane). The Verdict plane is a separate component, with its own writer and its own version, that the Proposal plane submits to. Mechanical separation, not procedural. A reference architecture, not an implementation. The blueprint is implementation-neutral; instantiating it requires supplying six parameters (Subject, Sensors, Apply mechanism, Corpus, Rubric, Blast radius). ## The claim Autonomic computing specified a loop and could not build one, because Plan required a model of intent that nobody could write down. That component now exists, and the constraint has moved. The hard part is no longer generating a change. It is deciding, without a human, whether the change was an improvement. Every architecture that fails this fails the same way: the thing that proposes the change also decides whether it worked. The loop then optimises the judge. This happens quietly, produces a rising number, and is usually discovered six weeks later. The two-plane loop is MAPE-K with the Analyse stage removed from the agent's reach and given its own plane, its own writer, and its own version. | MAPE-K | Two-plane loop | Plane | |---|---|---| | Monitor | Sensors | Proposal | | **Analyse** | **Scorer** | **Verdict** | | Plan | Proposer | Proposal | | Execute | Applier | Proposal | | Knowledge | Ledger | Shared, append-only | The single arrow from the Applier into the Verdict plane is the whole architecture. Nothing else crosses. ## The invariants 1. **Plane separation is mechanical, not procedural.** The Proposal plane cannot write any path the Verdict plane reads. Enforced at the commit hook and at the credential. No override flag, no `--force`, no environment variable that disables it. If you build the escape hatch, it will be used at 2am by the system it was meant to constrain. 2. **The Ledger is the only channel.** No side communication between planes. Anything the Verdict plane needs is an artifact the Proposal plane wrote and the Ledger recorded. 3. **Application is idempotent and reversible.** Keyed by proposal hash. Applying twice is applying once. Discarding restores exactly, with no residue. 4. **Sensor output is data.** Observations carry a type that cannot enter a prompt without passing through an explicit quoting function. The trust boundary lives in the type system, not in a comment. 5. **Every iteration declares a budget.** Tokens, wall clock, currency, blast radius. Exhaustion produces a recorded verdict, never a silent stop. 6. **The verdict is a sum type.** Not a score, not a boolean. A float invites a threshold; a threshold invites tuning the threshold. 7. **The corpus is monotone.** Cases are added, never removed. A case may be quarantined, which requires a recorded reason and leaves the case visible. 8. **Fail closed.** Verdict plane unreachable means no promotion. Absence of a verdict is never treated as a pass. ## Build order The order is not negotiable, and it is the opposite of what feels productive. 1. **Verdict plane.** Corpus, rubric, scorer, plane layout, separation guard. 2. **Ledger.** Append-only, before there is anything to record. 3. **Sensors and the quoting function.** The trust boundary goes in before the first untrusted byte, not after the first incident. 4. **Applier.** Idempotent apply, discard, promote-with-token. Test discard harder than apply. 5. **Proposer.** Last. It is the most interesting component and the most replaceable. The proposer is a commodity that improves on someone else's roadmap. The corpus and the rubric are the parts you own. ## See also - [autonomic-software-engineering](/reference/autonomic-software-engineering) — the practice this architecture is the reference for - [closure-test](/reference/closure-test) — the rubric; condition 4 is what the plane separation exists to satisfy --- # Astra and Grok Bot: what changes when agents carry the work URL: https://reactorjet.com/notes/control-loop/astra-grok-bot-from-delegation-to-evidence Published: 2026-09-05 More capable agents make it practical to delegate longer tasks, which makes clear outcomes and independent checks more useful than ever. ## What this release changes in practice The useful question after a model release is what you can now ask an agent to finish. A stronger model may take a task further, use more of your existing tools, or need fewer corrections. Your workflow still needs a way to tell whether it reached the result you wanted. OpenAI's [GPT-6 Astra announcement](https://openai.com/index/gpt-6-astra/) describes improvements in computer use, software engineering, and following user intent. Its [model guidance](https://developers.openai.com/api/docs/guides/latest-model?model=gpt-6-astra) also describes steering work while it is underway and continuing independent work while tools run. [Grok Bot](https://x.ai/bot) presents delegation through persistent agents that use apps, coordinate work, and run routines. Its [documentation](https://docs.x.ai/grok-bot/overview) explains how people provide tasks, context, and access, then review results and provide corrections. Those are provider descriptions. This note proposes a practical evaluation; it does not report a ReactorJet benchmark of either product. ## Give the agent a finish line Try a small browser bug: a form submits twice when a person clicks quickly. Give the agent a concrete brief: > Fix duplicate form submissions. One action should create one submission. > Preserve keyboard access, validation, and recovery after a failed request. > Prepare the patch and evidence for review; leave production unchanged. The agent can inspect the repository and choose an implementation. A clear brief gives it room to work while preserving the decisions you have already made. Record any later change to the requirements in the same brief so the evaluation follows the current task. ## Keep the check outside the proposal Before the agent edits code, save a browser test that reproduces the failure. Keep that acceptance check outside the files the proposing agent may edit. Run it separately against the candidate, alongside checks for keyboard submission and retry behavior after a network error. This is what a workflow that verifies itself should mean: verification is part of the system, with evidence that can be inspected independently. The agent's own completion message is one account of the work, not the acceptance decision. ## Use a few clear parts - An [intent brief](/components/intent-brief) records the expected result and permitted changes. - An [independent evaluator](/components/independent-evaluator) checks the candidate against the agreed behavior. - A [policy gate](/components/policy-gate) decides which results can advance and which need review. - An [evidence packet](/components/evidence-packet) keeps the patch, checks, and decision together. For a task that uses several apps, use the same pattern. Specify the finished deliverable, limit access to what the job needs, and check the result in the system where it matters. A scheduled report might need source reconciliation; a support draft might need a policy check before sending. ## Try it, then compare the outcome Run the same bounded task with your current setup and the new one. Keep the starting state, acceptance checks, and permissions consistent. Record whether the acceptance checks pass, how often a person intervenes, the total time, and the cost of unsuccessful attempts as well as successful ones. Use a small set of repeatable tasks before drawing conclusions. One polished run can show a possibility; repeated results tell you whether to change how you work. Start with the [independent-check tutorial](/guides/tutorial/run-an-agent-task-with-an-independent-check), then [trace a failed run](/guides/tutorial/trace-a-failed-agent-run) to see whether your workflow also explains the cases that do not finish. --- # Agent activity is not progress URL: https://reactorjet.com/notes/control-loop/agent-activity-is-not-progress Published: 2026-08-13 Tool calls and busy run logs measure agent activity; progress begins when the workflow can prove that the target state moved closer and stayed there. Agent dashboards are very good at showing motion. Runs started. Tools called. Tokens spent. Files changed. Tests executed. A stream of events makes the system look productive even when the original problem is still open. Activity is an operating cost. It is not evidence of progress. This distinction sounds obvious until a run gets stuck. An agent edits a test, runs it, reads the failure, edits another file, and repeats. The event count rises. The transcript becomes impressive. If the user-visible defect remains, the workflow has produced activity and no progress. ## Progress needs a target state You cannot measure progress from the agent's behavior alone. You need a target state and evidence that compares it with what existed before. For a coding task, the target may include a specific behavior in the deployed application, not merely a patch and a green local suite. For an incident agent, progress might mean the error rate has returned below a threshold and remained there for an observation window. For a support agent, drafting twelve replies is activity; resolving the right cases under the applicable policy is progress. The unit should be a verified state transition. "Opened pull request" can be a useful workflow milestone, but it does not mean "fixed the problem." "Sent response" does not mean "resolved the request." The names on the dashboard should preserve those differences. This is where many agent metrics go wrong. They measure what is easy to count inside the run and ignore what happened to the system outside it. A model can optimize tool use without improving the outcome. It can also reduce tool calls by skipping checks, which looks efficient until a bad change escapes. ## Busy loops need an exit condition An agent should not be allowed to turn uncertainty into indefinite work. Every loop needs a condition for success, a reason to continue, and a point where it stops consuming resources and asks for help. Consider an agent investigating a slow service. Querying logs is reasonable at the start. After six similar queries produce no new distinction between likely causes, another query is not progress. The next useful action may be to request missing telemetry, run a bounded experiment, or hand the case to someone with different access. A retry budget helps, but a raw attempt count is crude. Track whether each pass produced new evidence, eliminated a plausible cause, or changed the candidate solution. Repetition without information gain should make the workflow stop sooner than a difficult investigation that is still narrowing the problem. ## Exploration can still count Not all valuable work closes a task immediately. Research, diagnosis, and design often begin without a known route to the answer. Forcing them into a simplistic completion metric encourages premature certainty. Exploration can count as progress when it leaves a durable change in what the team knows. A failed experiment may rule out an approach. A trace may reveal which boundary lacks telemetry. A prototype may show that the requested latency is incompatible with a dependency. The evidence still matters. "Investigated several options" is activity. "Option B failed the saved workload because it exceeded the agreed limit" is a result someone else can use. The second statement reduces uncertainty even though no code shipped. Activity metrics remain useful for cost and diagnosis. Tool-call counts can expose a loop. Runtime can show a slow dependency. Token use can help compare workflow designs. Just do not promote those numbers into outcome metrics. A cheaper run that fails more often is not automatically better, and a longer run that closes a hard case is not automatically worse. ## Change the scoreboard Pick one agent workflow and write its target state in observable terms. Add a completion check that runs outside the agent's narrative, then label intermediate events for what they are: attempted, drafted, tested, reviewed, or applied. Do not call the work complete until the target-state evidence exists. For runs that do not close, record the useful delta: evidence gathered, a cause excluded, or a precise blocker with an owner. Put activity metrics on a separate cost view. If the same run looks productive only when the event stream is on screen, the scoreboard is measuring theatre. --- # Approval fatigue is a workflow design problem URL: https://reactorjet.com/notes/control-loop/approval-fatigue-is-a-workflow-design-problem Published: 2026-08-13 When an agent asks for approval too often and without decision-ready context, the workflow trains people to click through instead of protecting the actions that deserve judgment. Approval fatigue is usually blamed on the reviewer. They were distracted. They stopped reading. They approved something they should have challenged. That diagnosis is convenient and mostly wrong. If a workflow asks a person to approve routine, low-consequence steps all day, it is teaching them that the approval button is part of operating the agent. The same button later appears for a production migration or a public message, but the reviewer has already learned the gesture: click so the work can continue. The problem is not that people need more discipline. The workflow has failed to separate ordinary execution from consequential judgment. ## An approval is not a remote-control button Imagine a coding agent that asks before reading a log, installing an existing dependency, running a test, formatting a file, and opening a pull request. Each request is technically honest. Together they make the person act as a slow subprocess scheduler. Then the agent asks to change an authorization rule. That request deserves a different kind of attention, but it arrives in the same shape as the formatting request. The interface has flattened unlike risks into identical prompts. A useful approval should mark a boundary. It should tell the reviewer why this step needs authority the agent does not have. It should also contain enough context to make a decision without reconstructing the whole run. "Allow command?" is not enough. A decision-ready request explains: - what will change and what will remain untouched; - which evidence supports the change; - who or what could be affected; - whether the action can be reversed, and how; - what the agent will do if approval is denied or expires. If the workflow cannot provide that information, it is asking for permission, not informed approval. ## Reduce approvals without hiding risk The answer is not to make the agent autonomous everywhere. It is to spend human attention where judgment changes the outcome. Start by classifying actions according to consequence and reversibility. Reading a repository and running a protected test suite may be allowed within a bounded workspace. Editing files can remain private until the proposed patch is ready for review. Deploying, spending money, changing identity or access, and sending external communication can retain stronger gates. The exact boundary depends on the system. A healthcare workflow and an internal prototype should not share an approval policy. What matters is that the policy is explicit and tied to risk, rather than inherited from whichever tool happens to be called. Batching can help, but only when the grouped actions belong to one coherent decision. Approving "apply this patch, run these checks, and open a draft pull request" may be reasonable because the work stays reviewable. Bundling a data migration with an unrelated public announcement saves clicks by concealing two different consequences. That is worse than fatigue. Good workflows also remember bounded decisions. If a reviewer has approved a specific test command for a named repository and branch, the agent should not ask again five minutes later unless the scope changed. Approval should not silently become permanent access, but it should survive long enough to complete the decision that was actually made. ## Some friction is doing real work There are cases where repeated approval is appropriate. A regulated process may require a fresh signer at each controlled transition. An incident responder may want every destructive command held while the system is unstable. A novel task may be too poorly understood for a broad permission grant. Keep that friction. Make its purpose visible. A reviewer is more likely to pay attention when the request says which policy requires the approval and what evidence will be recorded. The test is not whether the workflow has fewer prompts. The test is whether a person can still recognize the prompt that needs thought. ## Fix one approval queue Review the last twenty approval requests from one recurring agent workflow. For each request, write down the consequence, reversibility, and information the reviewer received. Remove repeated prompts for bounded low-risk actions. Split requests that hide separate decisions. Rewrite the remaining prompts as small decision packets with evidence and an undo path. Then watch the next run. If the reviewer still has to reconstruct context or approve the same boundary twice, the workflow is not finished. --- # Rollback belongs in the plan URL: https://reactorjet.com/notes/control-loop/rollback-belongs-in-the-plan Published: 2026-08-13 An agent should know how a consequential action will be contained or reversed before it acts, because a rollback invented after failure is only another untested production change. Teams often ask for a rollback plan immediately after something goes wrong. That is several hours too late. Once an agent has deployed a broken change, deleted data, or sent a message, the system is already in a state the original plan did not cover. Any rollback invented at that point is a fresh production action, designed under pressure and aimed at a system that may still be moving. Rollback belongs beside the proposed action, before approval and before apply. ## "We can revert the commit" is not a plan A commit can be reverted while its effects remain. A deployment may have run a database migration. A worker may have emitted jobs that are still queued. A configuration change may have altered traffic before the old version returns. Customers may already have received an email that cannot be unsent. The plan has to describe the state transition as well as the file change. Suppose an agent proposes a new billing rule. The forward plan says which code will deploy and which tests pass. A real rollback plan also asks whether invoices will be written under the new rule, how those records will be identified, and whether restoring the old code can interpret them. If the answer is "we will work that out if needed," the system is not ready for unattended promotion. For each consequential action, the agent should be able to state: - the signal that will trigger a stop or reversal; - the authority allowed to make that decision; - the mechanism that restores a known state; - the data or side effects that the mechanism cannot restore; - the check that proves recovery actually happened. This information changes the forward plan. A dangerous migration may become a staged dual-write. A broad release may become a small traffic slice. A public message may remain a draft until a person approves it. Rollback design is not administrative paperwork after engineering. It shapes safer engineering. ## Some actions need compensation, not rollback Not every effect is reversible. Sent messages, disclosed information, completed payments, and many physical actions cannot be returned to their previous state. Calling the response a rollback creates false confidence. These workflows need a compensation plan. That could mean issuing a correcting message, creating an offsetting transaction, revoking access, or escalating to an incident owner. Compensation does not erase the original action. It limits further harm and establishes what happens next. The distinction matters when assigning authority. An agent may be allowed to roll back a canary deployment automatically after a protected health check fails. It should not invent and send an apology to customers merely because a metric crossed a threshold. The second action carries new reputational and legal consequences. ## Rollback itself can be unsafe Returning to an older version is not always the lowest-risk move. The old binary may be incompatible with newly written data. A security fix may not be safe to remove. During an incident, repeated automatic reversals can make diagnosis harder and turn a small fault into oscillation. A good plan can therefore choose to halt, isolate, or roll forward instead. The requirement is not "always revert." The requirement is to decide the containment strategy while there is still time to test it. That strategy should have limits. Set a retry budget. Name the state that counts as recovered. Record when automatic recovery must stop and hand control to a person. An agent that keeps applying and reverting because each local check looks plausible is not resilient. It is thrashing. ## Plan the way back before the next change Take the next agent action that can affect shared state. Before it runs, write the failure signal, containment mechanism, decision authority, and recovery check in the same proposal as the forward change. Test the mechanism against a staging state that resembles the one it would have to recover. If an effect cannot be reversed, say so plainly and require a compensation path or a smaller initial action. Do not approve the forward plan until the way back, or the reason there is no way back, is visible. --- # Your agent is creating evidence debt URL: https://reactorjet.com/notes/control-loop/your-agent-is-creating-evidence-debt Published: 2026-08-13 When an agent changes a system faster than you preserve why its work was accepted, each successful run leaves future operators with uncertainty they will have to repay. An agent completes a task, reports that the checks passed, and moves on. The change works. Nobody asks for more detail. Three weeks later, another person needs to understand why the change was safe. The run log is gone, the screenshot has no build identifier, and the summary says only that all tests passed. The patch is still there, but the reason it was accepted has disappeared. That is evidence debt. The workflow took the benefit of a fast decision without paying the cost of making that decision inspectable later. ## Logs are not automatically evidence Agent systems produce plenty of material: tool calls, token traces, terminal output, screenshots, model explanations, and chat transcripts. Volume can hide the problem. A pile of run data is not the same as evidence for a decision. Evidence has to answer a question. Which version was tested? What behavior was observed? Which policy applied? Who or what accepted the result? Can the result be tied to the exact change that reached production? Consider a deployment where the agent records a green test run and a screenshot of the homepage. If the tests ran against one commit while the screenshot came from an older deployment, both artifacts are real and the conclusion is false. Without identity and provenance, evidence can decorate a decision without supporting it. Agent-written summaries need the same skepticism. A summary is useful for navigation, but it is still a claim made by the system that performed the work. "No regressions found" should point to the checks, comparison, and scope that justify it. Otherwise the next operator has to repeat the investigation. ## Debt compounds when the system changes Weak evidence may seem harmless while the original operator remembers the run. That memory acts as an undocumented index. It disappears when the person changes teams, the model changes, or several similar runs blur together. The cost surfaces during a rollback, an audit, or a regression investigation. People rerun old tests against new dependencies. They infer intent from code. They compare screenshots by eye and hope the environments match. Work that felt fast at acceptance becomes expensive when the decision has to be reconstructed under pressure. The debt also limits learning. If a team cannot connect accepted changes to their evidence, it cannot tell which checks predict good outcomes and which ones merely produce green marks. Every evaluation starts from anecdotes. ## Preserve a receipt, not the whole run The answer is not indefinite storage of every token and shell line. Most raw traces are noisy, expensive, and full of context that should not be retained. Some contain secrets or personal data. Evidence collection needs limits too. A durable receipt should be small enough to inspect and specific enough to replay. For a software change, it might identify the input task, proposed diff, tested revision, check results, decision, and rollback reference. A customer support workflow might retain the policy version and approval record without keeping unrelated customer data in the agent's reasoning trace. Match the receipt to the lifespan and blast radius of the action. A private draft that will be discarded tomorrow does not need the same record as a schema migration. A reversible internal change may need less than a payment or a public claim. The point is not universal retention. It is deliberate retention. The receipt also needs an owner. If nobody is responsible for whether it remains readable and linked to the change, the storage bucket becomes another form of debt. ## Pay at the point of acceptance Choose one recurring agent action that can affect production or another person. Define the minimum receipt required before that action is accepted. Make the workflow capture identifiers and evidence automatically where it can, then ask the approving authority to record the decision rather than relying on the agent's recap. Test the receipt by giving it to someone who did not watch the run. They should be able to identify what changed, why it passed, and where to start if it must be reversed. Any question that sends them back to a vanished chat is unpaid debt. --- # A passing test is not always a good result URL: https://reactorjet.com/notes/control-loop/a-passing-test-is-not-a-good-result Published: 2026-08-12 Tests tell an agent whether known checks passed; they do not automatically prove that the change helped users, respected every boundary, or is safe to keep. An agent edits a file, runs the test suite, and gets a green result. Is the work done? Sometimes. But a passing test only answers the questions encoded in that test. It does not tell you whether the agent solved the right problem, introduced a new risk outside the test suite, or changed the checks to make its own work look better. This distinction matters anywhere an agent can both change a system and read the result. The test output is useful feedback. It becomes a trustworthy decision only when the rules for passing are protected from the thing being judged. ## Feedback and decisions are different An agent needs feedback while it works. Compiler errors, unit tests, screenshots, and logs all help it improve a proposal. Let the agent see them and respond. The final decision is different. A decision answers a more consequential question: should this change be kept, promoted, deployed, or allowed to affect someone else? That decision should use evidence the agent cannot quietly weaken. Depending on the risk, that might mean: - held-out examples the agent cannot edit; - a policy check running with separate credentials; - a comparison with the current baseline, not just an absolute score; - a required human review for security, money, identity, or irreversible work; - an automatic stop when previously passing behavior regresses. ## Four questions to ask You do not need a new platform to improve an agent workflow. Start with four questions: 1. **What exactly can the agent change?** A patch, a database record, a message, or a deployment should have a visible boundary. 2. **What evidence says the result is better?** Name the test, comparison, policy, or human judgment rather than saying the result “looks good.” 3. **Can the agent change that evidence?** If it can edit the tests, examples, or scoring rules that judge it, separate those permissions. 4. **What happens when the evidence is missing or unclear?** A safe workflow waits or stops. It does not silently treat uncertainty as success. These questions apply whether you are building an agent, buying one, or simply deciding whether to trust what it produced. ## A useful first improvement Choose one agent task you already run. Save a small set of real examples before changing the prompt or model. Run the current and proposed versions against the same examples. Record regressions as well as improvements, and do not let the agent remove a difficult example during the run. That is not a complete evaluation system. It is enough to establish the most important rule: the agent can propose a change, but it does not get to rewrite the meaning of success while being judged. ## Continue - [Use the four-part closure test](/reference/closure-test) - [See the two-part architecture](/reference/two-plane-loop) - [Inspect the agent-eval toolkit](/packs/autonomic-swe/agent-eval) --- # Your agent should not be its own reviewer URL: https://reactorjet.com/notes/control-loop/your-agent-should-not-be-its-own-reviewer Published: 2026-08-11 Let an agent explain and improve its work, but use separate evidence and authority for the decision to accept, publish, merge, or deploy it. Agents are often asked to review their own work. The pattern feels efficient: generate an answer, critique it, revise it, and stop when the same model says it is good enough. Self-review is useful for iteration. It is weak as the final authority. The agent shares the assumptions, blind spots, context, and incentives that produced the first answer. A second pass can catch obvious mistakes, but it does not create an independent reason to trust the result. ## Keep the useful part of self-review Let the agent inspect its draft. Ask it to find missing evidence, test edge cases, and explain uncertainty. This can improve quality before a final check and reduce avoidable review work. Then separate the decision that has consequences: - the coding agent may run tests, but a protected job decides whether the pull request can merge; - the support agent may draft a refund, but a policy service decides whether the amount is permitted; - the research agent may summarize sources, but citation checks use the source documents rather than the agent's confidence; - the publishing agent may prepare a post, but a person approves claims that affect reputation or legal exposure. The goal is not to add a human to every step. It is to give the final decision an authority that is not controlled by the proposal being judged. ## Match independence to the risk Not every agent action needs the same level of separation. A private draft can use lightweight checks. A production deployment, payment, account change, or public claim needs stronger evidence and a clear handoff. A practical scale is: 1. **Draft:** the agent acts in a private workspace and explains its work. 2. **Checked:** automated tests or policies inspect the result. 3. **Compared:** the result is measured against a saved baseline or held-out examples. 4. **Approved:** a separate service or person authorizes the consequential action. Move up the scale as the blast radius grows. Make the level visible so users know whether they are looking at a suggestion, a checked result, or an approved action. ## The design rule The agent may help produce evidence. It may not be the only authority deciding what that evidence means. That one rule makes agent workflows easier to debug, easier to explain, and safer to expand over time. It also lets teams change models without rebuilding the meaning of success around every new model. ## Continue - [Read the starting guide](/notes/control-loop/a-passing-test-is-not-a-good-result) - [Learn the two-part architecture](/reference/two-plane-loop) - [See how Cursor performs against the same questions](/notes/teardown/scoring-cursor) --- # Build the checks before you build the agent URL: https://reactorjet.com/notes/control-loop/closing-the-loop Published: 2026-08-06 Decide how you will judge the result before building the agent, or your examples and tests will slowly start to favor whatever the agent already does well. The order is not negotiable, and it is the opposite of what feels productive. When you are starting a new autonomic system, the natural instinct is to build the Proposer first. The Proposer is the most interesting component. It is the thing that takes a task and emits a change. It is where the magic is. Of course you start there. You will regret it. Here is what happens: 1. You build a Proposer. It is good. It emits patches that are usually right. 2. You build a Scorer to evaluate the Proposer's output. 3. The Scorer uses a corpus. You assemble the corpus from cases that the Proposer tends to do well on, because those are the cases you noticed. 4. The Scorer reports a high number. The Proposer is good. You ship it. 5. Six weeks later, the Proposer regresses on a case that wasn't in the corpus. The number is still high. You don't notice. 6. The number is high because the corpus was shaped to flatter the Proposer, not because the Proposer is good. This is the recurring finding of the teardown series. The system that fails condition 4 fails it in exactly this way: the judge is on the same team as the proposer. ## A safer build order Build, in this order, with no skipping: 1. **Verdict plane.** The corpus, the rubric, the scorer, the plane layout, the separation guard. Nothing else. At this stage there is no loop; there is a way to score a change a human made. If you cannot tell whether a change helped, that is the thing to build, and it is also the thing that will still be true in a year when the Proposer has been replaced twice. 2. **Ledger.** Append-only, before there is anything to record. Retrofitting an audit trail onto a running loop produces an audit trail with a gap exactly where it matters. 3. **Sensors and the quoting function.** The trust boundary goes in before the first untrusted byte, not after the first incident. 4. **Applier.** Idempotent apply, discard, promote-with-token. Test discard harder than apply. 5. **Proposer.** Last. It is the most interesting component and the most replaceable, and building it first is how the corpus ends up shaped to flatter it. ## What "build the checks first" actually means It means: before you write a line of agent code, you write the test that decides whether a change helped. The test is held by a separate authority from the agent. The agent submits to it; it does not call it. A practical starting point: take a small corpus of cases that you can score by hand. Run your future Proposer against the corpus. Score the output yourself. Notice which cases the Proposer gets wrong that you would have gotten right. Add those cases to the corpus. Repeat until the Proposer either improves or the corpus reveals that the Proposer is the wrong shape for the task. This is slow. It is also the only way to build a corpus that discriminates rather than flatters. ## See also - [two-plane-loop](/reference/two-plane-loop): the architecture - [closure-test](/reference/closure-test): the rubric, especially condition 4 --- # Can Cursor prove its own work? URL: https://reactorjet.com/notes/teardown/scoring-cursor Published: 2026-08-06 Cursor can write code, run tests, and iterate, but a person still approves the work and the same agent that makes the change also interprets whether it worked. Cursor is the most-deployed agent IDE in current use. It writes code, runs tests, observes failures, and iterates. The surface looks like MAPE-K. The question is whether it actually closes the loop, or whether the loop is open in a way that matters. ## What Cursor does - A user prompt becomes a multi-step agent run. - The agent edits files, runs the project's test suite, reads the output, and iterates. - The agent can use tools: `read_file`, `edit_file`, `terminal`, `web_search`. - The user sees a diff and either accepts or rejects. ## Four practical questions | Condition | Pass? | Notes | |---|---|---| | 1. Closed loop | partial | Cursor observes the test result, but the observation is in-process and not recorded anywhere durable. The "loop" is the agent's scratch state, not a Ledger. | | 2. Declarative target | yes | The target is the diff. `git diff` after the agent run shows the full intent. The transcript is also available, but the diff is the source of truth. | | 3. Unattended in the ordinary case | no | Cursor requires a human at every turn. The "yolo mode" (auto-accept) shifts the human to the end, not out of the loop. | | 4. Ground truth | partial | The agent runs the user's tests, but the user wrote the tests. The eval is whatever the user said it was. There is no separate Verdict plane; the Proposer (the agent) calls the tests and reads the result in the same process. | ## Where the workflow still needs help **Condition 3 is the loudest failure.** The whole point of an agent IDE is that the human types a prompt and the IDE does the work. But the human is still in the loop, approving each change. The system is not unattended in the ordinary case; it is attended in *every* case. **Condition 4 is the more interesting failure.** The "ground truth" is the test suite, but the test suite is not a separate authority. The agent that proposes the change also runs the eval and reads the result. There is no plane separation. A change that "passes" the tests passed because the agent's proposal and the test runner are in the same process. The trust boundary lives in the user's trust, not in the architecture. A subtler version of the same problem: Cursor's iteration is bounded by what fits in the context window and by the user's patience. The "verdict" is the agent's decision to stop iterating, which is the same agent that decided to keep iterating. KILL — the case that was passing and now fails — is not a verdict the agent emits. It is a fact the user discovers when they look at the diff. ## What would make the workflow stronger To satisfy condition 3, Cursor would need an unattended mode with a named exception class. The exception would be "tests do not exist" or "the user is in the file" or something specific. The current "yolo mode" does not have a named exception class; it has a duration limit. To satisfy condition 4, Cursor would need to separate the Proposer from the Verifier. A change would land in a scratch workspace, an independent Scorer would run a held-out corpus against the change, and a PromotionToken would gate the merge. The current architecture has no such plane; the Proposer is also the Verifier. ## See also - [closure-test](/reference/closure-test) — the rubric - [autonomic-software-engineering](/reference/autonomic-software-engineering) — the practice