Skip to component
GGamma

Credit inspector

A token-level view of turn-boundary advantages across an agent trajectory.

New
Turn-boundary credit3 turns · 11 positions
Positionls
Turn1
Reward0.00
Value0.10
Advantage+1.07
Target1.17
Γ turn 0.90 · Λ turn 0.802 boundaries34 observation tokens skipped

Observations condition the values but are not recursion nodes; the boundary decay applies once per turn, not per token.

ls, turn 1, advantage +1.07, target 1.17.

Live previewUse keyboard to interact

Implementation

1"use client";2 3import {4  useRef,5  useState,6  type CSSProperties,7  type HTMLAttributes,8  type KeyboardEvent,9} from "react";10import { turnBoundaryGae } from "@/lib/terminal-rsi";11 12export type CreditToken = {13  id: string;14  /** Short visible label for the generated position. */15  label: string;16  /** Interaction turn id. */17  turn: number;18  /** Pre-token value v_j. */19  value: number;20  /** Reward causally assigned to this position. */21  reward?: number;22  terminal?: boolean;23};24 25export type CreditInspectorProps = Omit<26  HTMLAttributes<HTMLElement>,27  "onChange" | "title"28> & {