Skip to content
NovelForge DocsReference

Harness Agent · One manager, model-owned meaning, deterministic execution truth

TIER C · CONTRACT  ONE MANAGER  ONE PRIMARY MODE  AI-NATIVE

TIER C · CONTRACT  ONE MANAGER  ONE PRIMARY MODE  AI-NATIVE

The NovelForge Harness coordinates a validated fiction Project plus a declared task into a bounded, resumable run. It owns execution policy, not story truth.

Project authority owns Canon and project-specific facts. Models own semantic fiction judgment. Deterministic runtime owns identity, power, persistence and exact execution state.

01 · AI-native does not mean model-authoritative

Section titled “01 · AI-native does not mean model-authoritative”

Model-owned work includes, when needed:

  • search intent, query formulation, relevance, continuation and stopping;
  • story/scene/planning interpretation;
  • character action, motivation, plausible inference and integrity;
  • Reader experience;
  • semantic hard-rule applicability/violation;
  • repair mechanism/depth;
  • research interpretation;
  • feedback/preference interpretation.

Deterministic code owns only what can be proved mechanically:

  • Project/resource/session/run/checkpoint identity;
  • permissions and capability boundaries;
  • exact artifacts, hashes and fingerprints;
  • provenance and exact-source binding;
  • stage/private-state visibility;
  • persistence, CAS, transactions and idempotency;
  • hard budgets/resource limits;
  • typed envelope/result/receipt validation;
  • required semantic execution presence and exact candidate binding;
  • settlement and release-role invariants.

A semantic result is evidence/proposal unless a separate authority mechanism explicitly grants more.

Use one capable manager/agent unless separation has a concrete benefit:

  • mandatory independent evaluation;
  • information/context isolation;
  • private per-character state;
  • genuinely different permissions/tools/runtime;
  • useful parallel work over immutable inputs;
  • human review.

Do not create multi-agent round-tables merely to mirror a software organization chart.

Every user-visible run has exactly one primary mode:

DESIGN-BOOK | DESIGN-VOLUME | PLAN-UNIT | PLAN-CHAPTER | DRAFT | REVISE | RESEARCH | SETTLE | AUDIT | CORPUS-INGEST | LEARN | SYSTEM-IMPROVE

A mode may invoke shared internal subroutines, but it may not silently perform another mode’s user-visible side effect. DRAFT does not SETTLE; AUDIT does not rewrite by surprise; LEARN does not self-promote durable behavior.

04 · Bootstrap live authority before semantic work

Section titled “04 · Bootstrap live authority before semantic work”

A fresh manager resolves:

  1. current/pinned Framework manifest/identity;
  2. consuming Project manifest + exact lock/fingerprint;
  3. Project Adapter/logical paths;
  4. exactly one task mode;
  5. manager session/run identity;
  6. authority cutoff + permissions;
  7. sparse Context Manifest/candidate set;
  8. current host capabilities.

Old chat/provider session state is not bootstrap authority. Resume revalidates Framework/Project compatibility, current fingerprints, approvals/write preconditions and pending capabilities before continuing.

05 · Search/context: semantic selection, deterministic boundary

Section titled “05 · Search/context: semantic selection, deterministic boundary”

The manager/model decides what it lacks, what to search, how to query, which result matters, whether to reformulate/continue, what to retain and when it has enough evidence.

The runtime may expose search/fetch/extract/index primitives and generate candidates. Recency, fixed last-N windows, vector similarity, top-k and item classes are not narrative truth.

context_inspector.py verifies mechanical eligibility/stage/protected-edit state and intentionally rejects a relevance field.

context_assembly.py v2 runs after semantic selection. It validates exact selected/source refs, receiving stage, hidden/private/invalidated state, fingerprints and exact higher-authority refs when an operation mechanically requires them. It does not enforce literary class/purpose obligations or claim semantic sufficiency.

Hard-budget packing may enforce whole-item resource limits after selection. Persistent storage never implies automatic prompt injection.

06 · DRAFT / REVISE production responsibilities

Section titled “06 · DRAFT / REVISE production responsibilities”

The adaptive production path is approximately:

authority/session bootstrap
→ agent-owned context/search
→ deterministic exact-set/stage/fingerprint verification
→ Story / Canon + planning preflight
→ private character state
→ character.action_propose
→ scene.resolve_actions
→ compact writer-safe realization
→ Reader Pressure
→ event-first Raw Draft
→ Surface realization
→ freeze candidate fingerprint
→ Blind Reader (`reader.engagement_audit`)
→ Semantic Rule Auditor when required (`quality.semantic_rule_audit`)
→ Editor repair spec (`editor.repair_spec`)
→ repair / challenger comparison as warranted
→ continuity/state checks
→ required independent semantic gate
→ user-visible Review Draft

Important boundaries:

  • Raw Draft is internal.
  • Regression bad examples remain post-generation until Raw Draft/candidate freeze.
  • Private character state is causal evidence, not Writer exposition payload.
  • Surface-clean prose is a floor, not production readiness.
  • Blind Reader is not a hard-rule checklist executor.
  • Rule Auditor sees authoritative rules Reader should not see.
  • Editor chooses repair owner and generation mode semantically.
  • repair_policy.py only enforces the resulting writer-context boundary.
  • Any material candidate change invalidates stale fingerprint-bound review results.
  • Explicit acceptance and SETTLE remain separate.

Catalog authority: harness/semantic_workers/model_contract_catalog.json.

Semantic work resolves exact contract IDs through that progressive-disclosure catalog. A job binds:

  • kind / subject / exact contract version;
  • bounded input/context;
  • rubric;
  • output contract;
  • permissions;
  • semantic fingerprint;
  • execution provenance requirements.

The model owns judgment. Runtime validates identity/fingerprint/permissions/type/provenance and consumes results once. Internal semantic work is not automatically independent.

Every tool/external action must be resolved against current host capabilities. Undeclared capability is unavailable.

A provider name, executable on PATH, remembered prior session, network primitive, documentation page or model assertion is not proof of authorization.

Capability never grants authority: filesystem write capability does not grant Canon write.

Credentials/authority tokens stay outside ordinary semantic context.

Execution identities remain distinct:

Project/resource
→ session
→ run
→ checkpoint
→ event/handoff/job
→ result
→ validated consume-once receipt
→ resume

Checkpoint before external waits, required independent review and consequential writes. Context-window loss is recoverable because authoritative state lives in durable artifacts/events/checkpoints, not in the transcript.

When a gate requires independence, the manager may:

freeze → package → checkpoint → dispatch → await → validate → consume → route repair

It may not perform the judgment itself under a different role label.

A materially changed candidate needs fresh bound review unless the contract explicitly permits reuse. Transport failure may route to another eligible transport; a valid semantic reject routes repair and must not trigger reviewer shopping.

No eligible independent provider/model means PENDING_MODEL, never PASS.

Learning separates:

semantic interpretation
!= evidence
!= hypothesis
!= promotion review
!= write authority
!= active eligibility
!= current relevance

learning.preference_interpret interprets feedback. LearningStore/Author Model persist evidence/hypotheses under authority/CAS. Promotion Gate validates exact bound semantic review plus objective prerequisites; it does not use arbitrary evidence-count thresholds as semantic truth and cannot grant write authority.

Active preferences are not automatically injected: the manager/model selects relevant active hypothesis IDs for the current task.

General Craft changes remain SYSTEM-IMPROVE work with research, counterexamples/evals, compatibility, rollback and explicit promotion authority.

Every consequential side effect needs least privilege, exact target, before-state/precondition, idempotency, checkpoint/write intent where required, postcondition verification and trace/rollback semantics.

Canon settlement is legal only after explicit Project acceptance/authorized Canon intent. Connectors, schedules, webhooks, model results, learning state, CI or corpus evidence do not grant write authority by arrival alone.

Valid workflow states include:

complete · review · awaiting_user · awaiting_external · semantic_pending · semantic_invalid · failed_gate · blocked · settlement_incomplete

A green deterministic workflow cannot replace a required semantic judgment. A semantic job that did not execute remains pending. Never label an artifact production-ready while a required gate is unresolved.

Material Framework work follows:

live bootstrap
→ candidate/owner reconciliation
→ current research
→ overreach audit
→ spec/plan/tasks
→ incremental implementation
→ ablations + deterministic tests
→ independent semantic evidence when required
→ CI/security/compatibility/docs synchronization
→ human-review readiness

Every consequential write revalidates current branch/HEAD/before-state. Long operations are bounded; repeated pending without new evidence routes to job/log diagnosis rather than blind waiting. Candidate-owned failures are separated from pre-existing unrelated repository debt.