Skip directly to article

Developer Manual

Architecture and responsibilities

Understand the host, packages, provider, verifier, and authority boundaries.

The Developer Manual is for engineers integrating AnswerUp into an application they operate. It complements Concepts, which explains the model, and the API Reference, which records exact package declarations.

The system boundary

The host application receives a request, supplies trusted identity and business context, searches its authoritative systems, and renders the result. AnswerUp does not perform provider or verifier I/O and does not own the host’s business database.

ComponentRoleOwnsDoes not do
Host applicationCoordinates transport, domain interpretation, context, policy, adapters, persistence, and presentationBusiness meaning, credentials, tenant scope, durable recordsTreat model output or provider acknowledgment as truth
Proposing systemProduces a bounded proposalIntent supplied by the user or workflowAuthority, authorization, or effect truth
Framework/channel adapterMaps an ingress or tool call into host inputTransport parsing and channel identityWiden trusted context or authorize an action
@answerup/actionsProtected-action composition and bounded result projectionThe package’s public action contractHosted execution or durable storage
@answerup/runtimeProcess-local orchestration, execution, verification, reconciliation, and projection; durable verifier-only rehydration through the accepted recovery authorityRuntime handles, lifecycle sequencing, and verifier-only read-backHosted durability, automatic recovery, exactly-once execution, or provider redispatch
@answerup/coreGrounding, authorization provenance, identities, lifecycle, effect resolution, and claim permissionCore semantic artifactsProvider calls, business searches, or persistence
Provider adapterAttempts the requested external mutationProvider credentials, request mapping, acknowledgmentIndependent proof of success
Independent verifierReads the authoritative system and reports bounded evidenceVerifier credentials and read policyGuessing, self-verification, or mutation
Authoritative systemOwns business stateRecords and final stateAnswerUp lifecycle semantics
Durable action recordHost-owned record of the lifecycleRetention, access control, and recovery dataBecoming business authority
Trace/conformance toolingConnects bounded observations or evaluates fixturesTooling output and evidenceBecoming effect truth or production certification

Lifecycle crosswalk

The Semantic Integrity Chain is the authority and claim-semantic model. The Runtime

operational lifecycle is its implementation and control-flow projection. They are

complementary abstraction layers, not competing lifecycle definitions or a

one-to-one list of software functions.

Semantic Integrity ChainRuntime operational relationshipMeaning and boundary
EvidenceAdmission and trusted context; grounding inputsBounded request data, source observations, identity, tenant or scope, and other inputs the host admits for grounding. Supplied evidence does not become authority merely because it was received.
ProposalAdmission and trusted contextThe admitted request or operation to evaluate. The proposing system supplies intent, not authorization or effect truth.
GroundingGroundingThe host resolves the exact referent using trusted context and authoritative candidates. Ambiguity, staleness, or insufficient scope stops or suspends preparation.
AuthorizationAuthorizationThe post-grounding decision for the exact operation, using host-owned policy and trusted identity or scope. Approval may inform authorization but cannot prove an external effect.
Execution IdentityProtected executionOperation, effect, execution, and attempt identities bind the protected run to the grounded operation. They provide continuity but do not prove exactly-once execution or external effect.
AttemptDispatch and acknowledgmentThe dispatch boundary and provider observation. ACKNOWLEDGED belongs to Attempt; it means the provider received or accepted a request, not that the authoritative effect is COMMITTED.
Authoritative EffectIndependent verification; effect truth and projectionThe authoritative business system owns external state. An independent verifier reads it and supplies evidence from which effect truth may be classified. Provider acknowledgment, telemetry, and local records do not replace that evidence.
ReconciliationReconciliationVerifier/read-only resolution of knowledge about the original unresolved effect. It does not create another physical Attempt or authorize blind redispatch.
Permitted ClaimEffect truth and projectionThe bounded projection and claim permission determine what may be asserted externally. The projection communicates supported effect truth without exposing private evidence or widening authority.

Trusted context supports grounding, authorization, and protected execution. The

provider attempts the change, while the verifier independently reads the system

that owns the fact. UNKNOWN is unresolved effect truth, never permission to

redispatch; a retry or compensation is a new proposal requiring fresh grounding and

authorization. Telemetry may support investigation but is not automatically effect

proof.

ClaimPermission is the structured Core/code artifact used to express permission.

Permitted Claim is the Semantic Integrity Chain stage describing the bounded

external assertion. They are related but not interchangeable. See the [Core

lifecycle concepts](/docs/core-lifecycle) and safe claims,

then continue with Grounding and authorization,

Execution and reconciliation,

Provider adapters, and

Independent verifiers.

End-to-end sequence

The following is the Runtime-oriented operational walkthrough for the semantic

crosswalk above.

  1. The host accepts and validates the proposal.
  2. The host supplies requester, tenant, subject, policy, and source context.
  3. The host supplies authoritative candidates; Core resolves or requests clarification.
  4. The host binds confirmation and authorization to the grounded operation.
  5. Runtime/Core prepares an execution with operation, effect, execution, and attempt identities.
  6. The host-owned provider adapter dispatches once.
  7. A separate verifier reads the authoritative system.
  8. PRESENT supports COMMITTED; ABSENT_FINAL supports DISPROVED; INDETERMINATE yields UNKNOWN.
  9. The host projects only a permitted, bounded user-facing claim.

ACKNOWLEDGED means the provider observed or accepted the dispatch request. It is not COMMITTED. An UNKNOWN result is not permission to redispatch.

A live Runtime reconciliation handle is process-local and cannot itself be used after process loss. Separately, Runtime durable recovery supports verifier-only rehydration from a host-retained closed DurableRecoveryRecordV2 through accepted recovery authority and stable verifier registration. It performs authoritative read-back only, with source-record digest and CAS protections; it may yield COMMITTED, DISPROVED, or another UNKNOWN version-2 record and never grants execution or redispatch permission. Hosts own persistence, routing, authority controls, leases/fencing where required, scheduling, monitoring, and bounded delivery. This is not automatic or AnswerUp-hosted recovery, exactly-once execution, universal restart handling, or universal or production-grade durability.

Responsibility matrix

The following guidance keeps business authority, lifecycle classification, execution

orchestration, provider mutation, verification, and customer presentation separate.

Actor responsibilities

ActorOwns or may supplyMust not claim or do
Agent, model, or frameworkUser or workflow intent, bounded proposal content, and proposed argumentsCannot establish trusted identity, tenant scope, authorization, execution identity, or effect truth; cannot widen authority
Host application or backendAuthentication, trusted context, tenant or project scope, business policy, candidate lookup, provider and verifier credentials, customer-facing behavior, and operational decisionsMust not treat model output, provider acknowledgment, telemetry, or local state as effect truth; must not dispatch before grounding and authorization
Core packageSemantic lifecycle evaluation, exact grounding relationships, evaluation of the host-supplied authorization contract after grounding, execution identity binding, effect classification, and bounded claim permissionDoes not own business policy, provider or verifier I/O, business searches, credentials, persistence, or hosted execution
RuntimeProcess-local orchestration, execution sequencing, dispatch and verification coordination, projection, and durable verifier-only version-2-record rehydration through accepted recovery authorityDoes not provide hosted durability, automatic recovery, or exactly-once execution; does not convert acknowledgment into effect truth or redispatch on UNKNOWN
ActionsHigher-level protected operations and exact-result, one-shot live reconciliation through verifier-only read-backDoes not make clones or serialized results authoritative, survive process loss, or redispatch a provider during reconciliation
ActionsProtected-action and provider/verifier contract façade, bounded action inputs, outcomes, and projection surfacesIs not a provider, verifier, business authority, credential store, durable host, or independent source of effect truth
ProviderThe attempted external mutation and bounded dispatch or acknowledgment observation within the host-owned integrationCannot prove its own external effect merely by acknowledging dispatch; cannot change trusted scope or execution identity
VerifierIndependent read-only evidence from the authoritative business system: PRESENT, ABSENT_FINAL, or INDETERMINATE under the accepted verifier and finality contractMust not mutate, dispatch, retry, guess, or self-authorize; must reject wrong-scope, stale, contradictory, or insufficiently final evidence
Authoritative business systemExternal business records and the state that determines whether the intended effect existsDoes not obtain truth from a provider acknowledgment or from AnswerUp’s local record
Operator or support functionHost-governed monitoring, investigation, escalation, retention, redaction, and recovery proceduresCannot rewrite effect truth, manufacture ClaimPermission, reconstruct stale authority, or assert unsupported success
Customer, Product Maker, or enterpriseTenant ownership, customer policy, business meaning, data governance, and the appropriate customer-facing system of recordDoes not transfer tenant, policy, data, credential, or business-system authority to AnswerUp merely by using Core

Records and lifecycle relationship

ActorRecords/persistence responsibilityApplicable lifecycle relationship
Agent, model, or frameworkSupplies proposal and bounded evidence inputs to the host; no authoritative persistenceEvidence, Proposal
Host application or backendOwns durable lifecycle records, retention, access control, recovery, tenant isolation, and external response recordsEvidence, Proposal, Grounding, Authorization, Execution Identity, Attempt, Reconciliation, Permitted Claim
Core packageProduces bounded semantic artifacts, identities, effect classification, and claim-permission decisions; the host persists themEvidence, Proposal, Grounding, Authorization, Execution Identity, Attempt, Authoritative Effect, Reconciliation, Permitted Claim
RuntimeOwns process-local handles and lifecycle sequencing; durable recovery remains host-ownedExecution Identity, Attempt, Authoritative Effect, Reconciliation, Permitted Claim
ActionsCarries bounded protected-action, provider/verifier, outcome, and projection data; owns no authoritative or durable recordProtected action, Attempt observations, effect projection, and claim-permission surface
ProviderReturns provider-side dispatch and acknowledgment observations through the hostAttempt
VerifierReturns bounded read observations and finality evidence without mutationAuthoritative Effect, Reconciliation
Authoritative business systemOwns external business state and authoritative effect truthAuthoritative Effect
Operator or support functionRetains privacy-safe case references, investigation records, and escalation historyReconciliation, Permitted Claim
Customer, Product Maker, or enterpriseOwns customer records, policy records, tenant history, governance, and product-specific projectionsAll applicable stages within the customer architecture