// Copyright 2024-2026 Tymofii Pidlisnyi. Apache-2.0 license. See LICENSE.
/**
 * APS v2 Module Index — Constitutional Governance Extensions
 * Full v2 implementation: Bridge + Delegation + Outcome + Anomaly + Emergency + Migration + Attestation
 */
// v2 Bridge (crypto adapter, type converters, core functions)
export { sha256, hashObject, signObject, verifyObject, createPolicyContext, isPolicyContextActive, isPolicyContextInGrace, v1DelegationToV2, v2DelegationToV1, createArtifactProvenance, verifyArtifactIntegrity, computeDecayedWeight, getUncertaintyRequirements, resolveUncertaintyLevel, evaluateConditions, } from './bridge.js';
// v2 Delegation Versioning
export { createV2Delegation, supersedeV2Delegation, renewV2Delegation, revokeV2Delegation, validateV2Delegation, getV2Delegation, getV2DelegationsFor, getActiveV2Delegation, traceV2DelegationHistory, getExpiringV2Delegations, processV2Expirations, clearV2DelegationStore, isScopeExpansion, isScopeNarrowing, } from './delegation-v2.js';
// v2 Outcome Registration
export { createV2OutcomeRecord, addV2PrincipalReport, addV2AdjudicatedReport, getV2OutcomeRecord, getV2OutcomesForAgent, getV2EffectiveDivergence, getV2AgentDivergenceAverage, getV2DisputedOutcomes, isV2AgentFlaggedForReview, clearV2OutcomeStore, } from './outcome-v2.js';
// v2 Anomaly Detection — primitives only (pure predicate over shape).
// The action-history ledger + first-max-authority + concentration
// detection moved to anomaly-detection in @aeoess/gateway on 2026-04-17.
export { validateV2UncertaintyCompliance, } from './anomaly-v2.js';
// v2 Emergency Pathways
export { defineV2EmergencyPathway, activateV2Emergency, logV2EmergencyAction, reviewV2Emergency, getV2Pathway, getV2PathwaysForDelegation, getV2Activation, getV2ActiveEmergencies, getV2OverdueReviews, clearV2EmergencyStores, } from './emergency-v2.js';
// v2 Fork-and-Sunset Migration — primitive version-compat predicate.
// The lifecycle workflow (request/approve/execute/probation tracking)
// moved to migration-workflow in @aeoess/gateway on 2026-04-17.
export { isV2MigrationFactorCompatible, } from './migration-v2.js';
// v2 Contextual Attestation — signing + quality primitives.
// The attestation ledger moved to attestation-ledger in @aeoess/gateway
// on 2026-04-17.
export { signAttestation, assessV2AttestationQuality, } from './attestation-v2.js';
// v2 Semantic Drift Detection (Intent Subversion) — pure math.
// The intent-record ledger moved to semantic-drift-tracker in
// @aeoess/gateway on 2026-04-17.
export { extractKeywords, computeSemanticDrift, } from './semantic-drift.js';
// v2 Epistemic Isolation (Consensus Trap Defense)
export { createBarrier, submitToBarrier, isBarrierComplete, getBarrierStatus, revealResults, getBarrier, clearEpistemicIsolationStores, } from './epistemic-isolation.js';
// v2 End-to-End Intent Binding (Distributed Responsibility Defense)
export { createIntentChain, extendChain, validateChainIntegrity, getIntentChain, clearIntentBindingStores, } from './intent-binding.js';
// v2 Semantic Scoping (Section 4 — runtime enforcement) — pure check.
// The scope registry + violation ledger moved to scope-violations in
// @aeoess/gateway on 2026-04-17.
export { evaluateSemanticConstraints, } from './semantic-scoping.js';
// v2 Policy Profiles (Section 9.14)
export { createProfile, attachProfile, getProfilesForTarget, checkProfileCompliance, detachProfile, listActiveProfiles, getProfile, clearPolicyProfileStores, } from './policy-profiles.js';
// v2 Sub-Delegate Advisor (bounded-escalation delegation primitive)
export { subDelegateAdvisor, consultAdvisor, getAdvisorUses, clearAdvisorUseTracker, } from './sub-delegate-advisor.js';
// v2 HumanEscalationFlag (per-action-class owner confirmation)
export { checkEscalationRequired, requestOwnerConfirmation, recordOwnerConfirmation, verifyOwnerConfirmation, isConfirmationValid, verifyV2DelegationForAction, hashActionDetails, DEFAULT_FLAGGED_ACTION_CLASSES, } from './human-escalation.js';
// Wallet Binding (agent-native structural attestation)
export { bindWallet, unbindWallet, verifyBoundWallet, verifyUnbindEvent, } from "./wallet-binding/index.js";
// Cognitive Attestation (Paper 7 — Zenodo DOI 10.5281/zenodo.19646276)
// Signed declarations of feature-level model computation. SDK ships the
// envelope, JCS canonicalization, Ed25519 signing, Stage 1 verification,
// Stage 2 registry interface, Stage 3 replay stub, typed dispute primitives.
// Dispute resolution / transparency logs / cross-tenant correlation live
// in @aeoess/gateway.
export { buildAttestation, canonicalizeAttestation, signAttestation as signCognitiveAttestation, cognitiveAttestationDigest, sortFeatureActivations, validateAttestationShape, verifySignature as verifyCognitiveAttestationSignature, verifyRequiredSignerRoles, verifyAgainstRegistry, verifyByReplay, } from './cognitive-attestation/index.js';
// Credential Check Policy (verification timing for governance metadata)
// Proposed by @piiiico on a2aproject/A2A governance metadata thread.
export { verifyOnAccept, evaluateCredentialCheck, resolveCheckMode, } from "./credential-check-policy/index.js";
// Attribution Consent (citation requires cited-principal sign-off)
// Triggered by the Apr 14 A2A#1734 pattern.
export { createAttributionReceipt, signAttributionConsent, verifyAttributionConsent, checkArtifactCitations, receiptCore, } from './attribution-consent/index.js';
// Provisional Statement — default for agent-to-agent negotiation statements.
// Binding status requires explicit PromotionEvent satisfying a PromotionPolicy.
export { createProvisional, isBinding, verifyAuthorSignature, withdrawProvisional, withdrawalPayload, statementSigningPayload, promoteStatement, processDeadMan, promotionSigningPayload, verifyPromotion, } from './provisional-statement/index.js';
// Attribution Weights — Build B fractional weight formulas for D and C
// axes. Spec: BUILD-B-FRACTIONAL-WEIGHTS.md. Runs upstream of Build A
// construction: callers compute weights from AccessReceipt/billing data
// here and feed the resulting axis entries into constructAttributionPrimitive.
export { ATTRIBUTION_ROLES, DEFAULT_WEIGHT_PROFILE, computeComputeAxisWeights, computeDataAxisWeights, contentLengthWeight, hashWeightProfile, recencyDecay, roleWeight, validateWeightProfile, } from './attribution-weights/index.js';
// Attribution Settlement — Build C. Aggregates a stream of Attribution
// Primitives over a settlement period into one signed, queryable
// record. Spec: BUILD-C-SETTLEMENT-PIPELINE.md. Pure evidence; economic
// conversion (weight → currency) stays gateway-private.
export { aggregateAttributionPrimitives, buildContributorMerklePath, buildContributorQueryResponse, buildMerkleRoot as settlementBuildMerkleRoot, contributorLeafHashHex, emptyAxisMerkleRoot, formatSettlementWeight, residualLeafHashHex, settlementLeafHash, settlementRecordHash, settlementSigningPayload, signSettlementRecord, verifyContributorQueryResponse, verifyMerklePath as verifySettlementMerklePath, verifySettlementRecord, verifySettlementSignature, } from './attribution-settlement/index.js';
// Attribution Primitive — unified four-axis (D, P, G, C) signed Merkle
// receipt. Spec: ATTRIBUTION-PRIMITIVE-v1.1.md. Disjoint from
// attribution-consent (that module's AttributionReceipt is a citation-
// consent primitive; this one is the per-action cross-axis primitive).
export { ATTRIBUTION_AXIS_TAGS, DEFAULT_MIN_WEIGHT, aggregateComputeAxis, aggregateDataAxis, aggregateProtocolAxis, assertCanonicalTimestamp, buildMerkleFrame, canonicalTimestamp as attributionCanonicalTimestamp, canonicalHashHex as attributionCanonicalHashHex, checkProjectionConsistency, computeAttributionActionRef, constructAttributionPrimitive, envelopeBytes, hashAxisLeaf, hashNode, normalizeAxes, orderGovernanceAxis, projectAllAxes, projectAttribution, projectionPath, projectionDataAsC, projectionDataAsD, projectionDataAsG, projectionDataAsP, reconstructRoot, resignAttributionPrimitive, sortComputeAxis, sortDataAxis, sortProtocolAxis, toWeightString, verifyAttributionPrimitive, verifyAttributionProjection, } from './attribution-primitive/index.js';
// v2 Revocation Enforcement (W2-B3) - relying-party decision layer on top of
// the M4 verifier-hardening recorder. Ships the freshness-policy decision, the
// ephemeral capability-token FORMAT + local checks, the delegation-refresh
// reissue path, and the RFC 8417 / CAEP Security Event Token FORMAT and build
// HOOK. SET distribution and revocation propagation (Bloom filters, streams)
// are @aeoess/gateway operations and stay out of the SDK.
export { decideFreshness, enforceFreshnessPolicy, mintEphemeralToken, validateEphemeralToken, refreshDelegation, buildRevocationSET, isWellFormedSET, buildRevocationEnforcementScopeOfClaim, } from './revocation-enforcement/index.js';
// ══════════════════════════════════════
// Accountability MVP (Wave 1)
// ══════════════════════════════════════
export { createActionReceipt, createAuthorityBoundaryReceipt, createCustodyReceipt, createContestabilityReceipt, attachControllerResponse, createAPSBundle, computeMerkleRoot, verifyActionReceipt, verifyAuthorityBoundaryReceipt, verifyCustodyReceipt, verifyContestabilityReceipt, verifyAPSBundle, } from './accountability/index.js';
// v2 Scope Dimension Registry. Classifies delegation dimensions into strict
// decidable (routed into the M6 feasibility hard obligation) vs advisory
// (excluded from the hard check). Ships data_class and destination as new
// decidable set-narrowing dimensions. Extends src/v2/feasibility; does not
// duplicate its constraint emission.
export { SCOPE_REGISTRY_VERSION, CANONICAL_DIMENSIONS, buildRegistry, classifyDimensions, compileStrictDimensions, checkSetNarrowing, canHardDeny, } from './scope-registry/index.js';
// v2 Context Provenance Attestation (CPA v0.1). General partitioned-Merkle
// context-basis commitment: custody of a declared context basis signed by the
// producer key at the stated producer time, admissibility under a disclosure
// policy, tamper-evidence, action-bound and receipt-bound replay-resistance,
// and structural-origin partitioning. Pure public SDK primitive (no network,
// no scoring, no stateful store). Frozen tree shape in
// context-provenance/TREE-SHAPE.md. The low-level Merkle and hex helpers stay
// module-internal; this barrel exposes the high-level primitive only.
export { buildCPA, verifyCPA, computeCpaRef, carryCpaRef, bindCpaRefToReceipt, CHANNEL_ORDER, } from './context-provenance/index.js';
//# sourceMappingURL=index.js.map