H2 AIDM · L2 · Agent layer
H2 Harness Logo

H2 Harness (H2HN for short)

Longer tasks
need more orchestration.

H2 Harness is not a call loop wrapped around a model. It is a server-side agent runtime architecture: state, memory, orchestration, gates, approval checkpoints and model routing have all been redesigned on the server side.

TASK GRAPH · Write → Gate → Review → Redo only the failed stepIllustrative
WritingProgrammatic gateAI reviewPassedFailed · single-step redo

Illustrative animation, using a short drama as the example. Text (T), images (I), audio (A) and video (V) are all first-class nodes on the task graph; when a node fails, only that node is sent back, and nodes that have already passed stay untouched.

0+
specialized agents, each with its own prompt and acceptance criteria.
Live
0min
longest unattended run of one-click full-series generation on Yingma (小影马).
Verified
1day / series
to release a production-run series.
Verified
0
agent clients already connected.
Live
An architecture, not a wrapper

It is not a harness in the traditional sense.

A common harness is a loop wrapped around a model: send a prompt, call tools, retry on error, with state kept on the client. H2 Harness turns this into a server-side runtime, with dedicated engineering optimizations in seven places.

AreaCommon harness designsThe H2 Harness designWhat you get
Where it runsRuns on the client or in a single process; state goes wherever the window goes.Server-side runtime: an append-only event log plus cross-process locks. The server is the single source of state; the device only displays it.Close the page, lose the connection or switch devices, and the task still resumes.
Context assemblyCarries the full history, or simply truncates once the length limit is reached.Recent turns keep their original text; earlier turns get a “three-line compression” (original words, conclusion, tool summary); skill bodies already loaded are deduplicated globally.The model gets the smallest sufficient context: fewer tokens spent, no conclusions lost.
Roles and budgetsOne prompt both writes the body text and checks the format.Scheduling, writing, review, revision and archiving each get their own minimal context; scheduling and review run on short output budgets, writing and revision on long output budgets.Steps that should be fast are fast; steps that need length are written in full.
Quality checksThe model is asked to check its own work.Countable checks such as missing sections, fields, format and counts go to programmatic gates and consume no tokens; AI review looks only at semantics and returns a diff list.Basic errors are stopped before they reach review.
High-risk actionsNo approval checkpoints; a retry after a timeout may run the action twice and charge twice.Approval checkpoint state machine: atomic server-side confirmation plus a write-ahead log; the same approval takes effect only once across multiple devices.Actions such as publishing, billing and writing to business systems are controllable and traceable.
MultimodalityAttachment links are pasted into the text.Task graph: text, images, audio and video are all nodes, with upstream and downstream dependencies; change a node and only the affected part is rerun.A local change does not mean redoing the whole chain.
Working with the model layerThe model is called as a black-box API.Designed together with H2 Model Combo and H2 GPU Combo: session affinity follows the “call the model, wait for tools, call the model again” rhythm, so history that has already been read still hits the cache on the next step.About 1 second to first token on long contexts Measured

“Common harness designs” is a summary of common forms, for comparison only; for the capabilities of any specific product, refer to its official documentation.

The problem · Error accumulation

95% reliable per step,
20% after 30 steps.

At 95% per step, the chance of 30 steps in a row all going right is only about 21% — nearly eight in ten long tasks hit an error along the way (illustrative math, assuming independent steps).

H2 Harness adds a gate and a review after every step, and redoes only the step that fails. Drag the sliders to see the two curves separate.

P(all steps right)Illustrative
No orchestration · pⁿ
—
Review + single-step redo (up to 2 redos per step)
—

Illustrative model, assuming every attempt is independent and review can identify a failed result: per-step success rate after redo = 1 − (1 − p)³. It explains the mechanism; it is not a measured metric.

Four mechanisms

Division of labor · Review · Single-step redo · Memory and reuse.

Together, the four mechanisms keep long tasks from losing their memory or drifting off course, and make them auditable.

01

Division of labor

Each role gets only its own minimal context, dedicated prompt and acceptance criteria. Writing roles get a long budget, review roles a short one; there is no single do-everything prompt shared by all.

02

Review

Programmatic gates run deterministic checks first, then the review role scores item by item. A result that fails is sent back to the same step and redone against a diff list.

03

Single-step redo

Only the failed step is rerun. Steps that have passed stay untouched; the whole segment is not reworked.

04

Memory and reuse

Session and workspace memory stay on the server. Characters, master images and templates are distilled into records and skills that the next project calls directly.

Programmatic gates · Deterministic checks

What a program can judge is not handed to the model.

Rules such as missing fields, format, word count and duration, and billing idempotency are checked directly by programs: no tokens consumed, and the results are reproducible.

AI review · Semantic quality check

What a program cannot judge goes to a dedicated review role.

Semantic issues such as plot logic, visual consistency and data rigor are scored item by item by the review role, which outputs actionable revision notes.

Multimodal task graph × cross-device approval checkpoints

Modalities work together in the task graph;
high-risk actions stop and wait for approval.

TASK GRAPH

Text, images, audio and video are all first-class nodes.

We do not bet on any one underlying model natively understanding every modality. Each output is written back to a node on the graph, and later steps fetch exactly what they need by reference; nobody has to carry assets back and forth by hand.

Approval checkpoint · CONFIRMATION

Irreversible and billable actions stop first, then get approved.

At nodes such as public release, large compute charges and writes to business systems, the task stops at an approval checkpoint automatically. Approve from either a phone or a computer; the result is written back idempotently to the same timeline.

Dual-scope memory

Memory follows the person,
and the workspace too.

Memory lives on the server, not in a browser tab. Switch devices and the work resumes; switch people and someone else can take over.

SERVER-SIDE MEMORY · 2 SCOPESIllustrative

Illustrative animation: the top half shows one person switching devices while the server-side timeline stays unbroken; the bottom half shows member B taking over the workspace and inheriting its records and skills.

Scope 01 · Follows the person (across devices)

Append-only event log

Each session is stored on the server as an append-only event log, with monotonic sequence numbers and cross-process locks. The most recent turns keep their original text; earlier turns are compressed into three lines: original words · conclusion · tool summary. Close the browser or change computers, and progress and context resume as usual.

Scope 02 · Follows the workspace (across members)

Structured records × team skills

Character and scene master images, company standards and stage results are written by dedicated roles into structured records and stored in the workspace. When someone new on the team takes over, they inherit verified facts and methods directly.

Model capability slots

Swap the model.
Memory and flow stay put.

Only four kinds of capability slots are exposed to agents (supplied slot by slot by H2MC). Each slot has a primary provider and a backup provider, with automatic switchover on rate limiting, timeout or failure. Replacing the underlying model, changing the quality tier or moving to a private-deployment node changes only the routing configuration; memory, roles, skills and approval checkpoints stay untouched.

LanguageRouted by role budget
ImageMapped to product tier
VideoMapped to product tier
AudioFailover to backup
Three-level skill library × three-layer contract

Skills hold methods · messages hold facts · gates do the checking

Skills are stored at three levels: platform, team and personal. A few candidates are recalled by metadata first, and only then are their bodies assembled. For a new industry, swap only the skill pack and the gate rules, and the same core can be embedded in a new product; timeline, memory, orchestration, task graph, approval checkpoints and primary–backup failover are all reused.

Embedded core

One core drives three finished products.

Users never see H2 Harness, but every long task in Yingma and H2 Code runs on it.

Yingma · Offline production

From one sentence to a full series

Specialized agents for scriptwriting, master-image audit, storyboard direction, camera-parameter orchestration, and dubbing and editing work together; a production-run series is released in 1 day, and one-click full-series generation runs unattended for up to 100 minutes.

Yingma Live · Real-time hub

The back-end brain of the live room

Live-comment understanding, knowledge-base retrieval, show direction and compliance filtering run in parallel, driving RayWorld Live to stream in real time.

H2 Code · General long tasks

A general-purpose desktop agent that delivers finished work

Industry research reports, cross-analysis of multiple spreadsheets, business processes that span systems; every step is checked and revised automatically, and high-risk actions stop at an approval checkpoint.

Where it sits in H2 AIDM

Calls capability slots in the model layer below;
embedded in three finished products above.

Resources

H2 Harness whitepaper

Error accumulation, the four mechanisms, task graph and approval checkpoints, dual-scope memory, capability slots and the three-level skill library. The same content as this page.

← H2 AIDM · L1 ModelsH2 Model Combo