Import software-factory/guidance-acceptance from an exact reviewed private tarball. This component was accepted locally on 1 October 2026; publication and live host qualification remain separate gates. Node 26.8.1 on a qualified local host is the demonstrated target; no runtime npm dependency, default store or network service is supplied. Public declarations use ES2024 with types: [].
Bind the actual receiver
The host supplies an already open actual CommandJournal, a synchronous Product registry, accepted ProposalOwnership.read, immutable commission, clock and current-authority fence. The adapter constructs actual ProductGuidance on that exact Journal. It accepts no separate target. Original Journal methods must remain unoverridden; descriptor checks refuse substitutions/accessors before use, after caller work and before Guidance invocation. No caller method or constructor opens or initialises a store implicitly.
The commission fixes one offered generation, original guidance-sfpc-… command/payload, Product, receiver/store incarnation and original occurrence. The lifetime is at most 60 seconds within that occurrence. Reopening, changing a namespace or restoring an empty file never creates another allowance. The host persistently qualifies exact physical ownership/receiver handles, registry/authority writers and one non-expiring outer lock. Every relevant writer takes that lock before either Journal lock. Copied strings and permission Booleans alone do not prove this qualification.
import { GuidanceAcceptance } from 'software-factory/guidance-acceptance';
// Each argument comes from the caller's separately qualified host arrangement.
export function receiver({ receiverJournal, identities, ownership, commission, fence, clock }) {
return new GuidanceAcceptance({ receiverJournal, identities, ownership, commission, fence, clock });
}
The same physical Journal may hold ownership and Guidance, or they may occupy two local Journals. Either arrangement still has two independent Journal transactions. This module writes no second inbox/ownership aggregate. Native Journal busy timeout must be at most 1,000 ms; outer-lock acquisition at most 5,000 ms. Once held, the lock has no lease or timeout reassignment. These are trusted-host qualification obligations, not pre-emption of arbitrary synchronous code.
Inspect, apply and reconcile
inspect({ actorId, identity }) requires current read permission. It reconciles the actual offered generation and a bounded exact Guidance prefix, returning a historical recorded witness or absence at a captured version. Absence never excludes a delayed old write. Inspection does not authenticate the private receipt table and never calls setValues.
apply on an unrecorded command also needs current write permission, source/rule/complete-cause checks, a current offered disposition, original revision and unexpired admission/commission. It derives the unchanged input through the actual ownership converter and invokes real setValues once. Its atomic domain commit is acceptance: one Guidance revision, command receipt, event and ordinary outbox item. No queued-but-unexecuted acceptance or downstream permission is inferred.
An already recorded command takes the original-ID receipt replay path under current read permission, even after write/source permission or commission expiry. The adapter requires replayed === true and exact original event/result agreement. Current Product registration and a valid clock remain prerequisites. A missing receipt is STALE; a malformed receipt refuses while retaining the authorised historical witness. Later revisions do not change the original acceptance time. A subsequent outer fence exception or substituted acknowledgement still returns a fixed host refusal, retaining only the historical witness reconciled under this invocation's current read admission. It never promotes that refusal to success or exposes a witness cached from another invocation.
An exception or lost fence reply after a possible call is unknown. Reopen the same stores and inspect; an explicit reapply uses only the original ID, payload and expected revision. Nothing retries automatically. All outcomes retain replacement: 'forbidden'. Cancellation, expiry, process death, absent receipts and a recorded revision never release the ownership offer. Current Guidance has no old-generation exclusion API.
Before Guidance invocation, a known ownership read STORAGE or UNAVAILABLE error returns UNAVAILABLE/store. Unavailable storage does not establish corrupt retained history. Invalid or mismatched history still refuses as CORRUPT; a fault after possible invocation remains unknown. Current read permission continues to gate every historical witness.
The current admission check occurs immediately before invocation, under the common lock. Guidance samples its recordedAt before native SQLite lock acquisition: a validly admitted call can commit after expiry. This module guarantees admission timing, not physical commit-before-expiry. A stronger deadline requires a separately reviewed receiver extension.
Bounds and errors
One commissioned operation, generation, target, Product and at most one new revision; no fanout, refill, receiver queue or adapter rows. Guidance keeps its existing 8 values, 280 code units per text, 16 KiB domain payload and 500 revisions. Preflight reads at most 500 events plus one sentinel before full Guidance reconciliation. Legacy v1 history remains readable; new acceptance needs exact v2 evidence.
Reference 1 KiB; commission/admission/witness 2 KiB each; selected generation 24 KiB; combined frame 32 KiB; JSON depth 24. Intersecting field and byte limits refuse, never truncate. Repeated refusals/replays create no rows. No lifetime read-rate allowance is claimed.
Fixed codes distinguish INVALID, FORBIDDEN, UNAVAILABLE, CONFLICT, STALE, LIMIT, CORRUPT and UNKNOWN. Witnesses contain only original identities, digest, revision, event and times. Private Guidance values/provenance remain in their domain store. Caller exceptions, paths, SQL and rejected Promise reasons are not returned. Native Promises in own string and symbol data-descriptor values are observed before refusal. Fulfilment values and rejection reasons share the original observation allowance. Native Promise own properties are skipped after attaching reactions. Synchronous traversal faults reach the owning refusal classifier; later-settlement faults are contained and cannot alter the returned result. Observation allows at most 24 nested levels and 32,768 descriptor/value steps, using the existing depth and frame constants. It reads own data descriptors, never invokes generic thenables or awaits permission. Descriptor operations can invoke Proxy traps; native Promise.prototype.then can read constructor and Symbol.species and run host code. Malformed values retain the same refusal or possible-commit outcome.
Source closure comprises the three Guidance acceptance files, existing ownership, Guidance core/input, Journal, EV1 value parser and canonical/error/strict helpers and the shared Promise observer. This module has no model, transport or provider commissioning. See the agent reference and human guide. Installed qualification covers real caller arrangements, process races, killed boundaries, original-ID reconciliation and strict error boundaries. Qualify the actual host and published version separately.
