Documentation
¶
Overview ¶
Package contracts embeds the machine-checkable JSON Schemas so Go services and CI tests can validate produced artifacts against the canonical contract files instead of re-declaring the shapes in code (T08 阶段2:契约收敛, contracts 校验进 CI).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CandidateEnvelopeSchemaJSON []byte
CandidateEnvelopeSchemaJSON is contracts/candidate-envelope.schema.json (candidates.CandidateEnvelope 的 JSON 表达,client layer 候选卡面向、CI 校验; T12 阶段A:client layer 契约面补全)。
var ContributionReceiptSchemaJSON []byte
ContributionReceiptSchemaJSON is contracts/contribution-receipt.schema.json.
var DeliberationAutomationGrantReadModelSchemaJSON []byte
DeliberationAutomationGrantReadModelSchemaJSON is the projection of a Base-issued bounded automation grant; clients cannot self-mint its refs.
var DeliberationProviderLaneReadModelSchemaJSON []byte
DeliberationProviderLaneReadModelSchemaJSON is the adapter-lane projection with separately declared release eligibility and runtime readiness.
var DeliberationSessionReadModelSchemaJSON []byte
DeliberationSessionReadModelSchemaJSON is the client-safe session projection for the governed multi-provider deliberation flow.
var DeliberationSynthesisCandidateSchemaJSON []byte
DeliberationSynthesisCandidateSchemaJSON describes an AI synthesis output that is permanently candidate_only and non_formal.
var DeliberationTurnReadModelSchemaJSON []byte
DeliberationTurnReadModelSchemaJSON is the client-safe turn projection. It carries a question artifact reference and SHA-256, never question content.
var FaultIncidentSchemaJSON []byte
FaultIncidentSchemaJSON is contracts/monitoring/fault-incident.schema.json.
var FlowViewSpecSchemaJSON []byte
FlowViewSpecSchemaJSON is contracts/flow-view-spec.schema.json.
var IntentClassificationSchemaJSON []byte
IntentClassificationSchemaJSON is contracts/spines/intent-classification.schema.json.
var IntentEventSchemaJSON []byte
IntentEventSchemaJSON is contracts/spines/intent-event.schema.json.
var IntentInboxItemSchemaJSON []byte
IntentInboxItemSchemaJSON is contracts/spines/intent-inbox-item.schema.json.
var IntentReceiptSchemaJSON []byte
IntentReceiptSchemaJSON is contracts/spines/intent-receipt.schema.json.
var IntentToCandidateResultSchemaJSON []byte
IntentToCandidateResultSchemaJSON is contracts/spines/intent-to-candidate-result.schema.json.
var MarketCatalogProductSchemaJSON []byte
MarketCatalogProductSchemaJSON is contracts/market-catalog-product.schema.json.
var MarketCheckoutResultSchemaJSON []byte
MarketCheckoutResultSchemaJSON is contracts/market-checkout-result.schema.json.
var MarketEntitlementSchemaJSON []byte
MarketEntitlementSchemaJSON is contracts/market-entitlement.schema.json.
var MarketLocalGateCheckResultSchemaJSON []byte
MarketLocalGateCheckResultSchemaJSON is contracts/market-local-gate-check-result.schema.json.
var MarketOrderStatusSchemaJSON []byte
MarketOrderStatusSchemaJSON is contracts/market-order-status.schema.json.
var MobilePairingBootstrapCandidateSchemaJSON []byte
MobilePairingBootstrapCandidateSchemaJSON is the Host-owned candidate projection shown to phone and PC clients before a mobile session exists.
var MobilePairingBootstrapRequestSchemaJSON []byte
MobilePairingBootstrapRequestSchemaJSON is the authority-free first-pairing request shape. It intentionally excludes every authority and credential.
var MobileSessionIssueIntentSchemaJSON []byte
MobileSessionIssueIntentSchemaJSON is the body shape for post-approval session issuance. Bootstrap proof stays header-only and is not embedded.
var MonitoringEventSchemaJSON []byte
MonitoringEventSchemaJSON is contracts/monitoring/monitoring-event.schema.json.
var PackExportBundleSchemaJSON []byte
PackExportBundleSchemaJSON is contracts/pack-export-bundle.schema.json.
var PackHandsRequirementReadModelSchemaJSON []byte
PackHandsRequirementReadModelSchemaJSON is the client-safe explanation projection for one Pack Hands requirement. It is not an authority source.
var PackInstallResultSchemaJSON []byte
PackInstallResultSchemaJSON is contracts/pack-install-result.schema.json.
var PackManifestSchemaJSON []byte
PackManifestSchemaJSON is contracts/pack-manifest.schema.json.
var PackUsageContributionCandidateSchemaJSON []byte
PackUsageContributionCandidateSchemaJSON is contracts/pack-usage-contribution-candidate.schema.json.
var PackVersionMigrationCandidateSchemaJSON []byte
PackVersionMigrationCandidateSchemaJSON is contracts/pack-version-migration-candidate.schema.json.
var ProviderRequirementSchemaJSON []byte
ProviderRequirementSchemaJSON is contracts/provider-requirement.schema.json.
var ReceiptEnvelopeSchemaJSON []byte
ReceiptEnvelopeSchemaJSON is contracts/receipt-envelope.schema.json (receipts.ReceiptEnvelope 的 JSON 表达,client layer 回执卡面向、CI 校验; T12 阶段A:client layer 契约面补全)。
var SceneFlowSpecSchemaJSON []byte
SceneFlowSpecSchemaJSON is contracts/scene-flow-spec.schema.json.
var ScenePackSpecSchemaJSON []byte
ScenePackSpecSchemaJSON is contracts/scene-pack-spec.schema.json.
var SceneRuntimePlanCandidateSchemaJSON []byte
SceneRuntimePlanCandidateSchemaJSON is contracts/scene-runtime-plan-candidate.schema.json. It is embedded so the SceneFlow producer can validate the fixed Pack version and provider requirement reference boundary without re-declaring it.
var SoftwareResolutionLockSchemaJSON []byte
SoftwareResolutionLockSchemaJSON is contracts/software-resolution-lock.schema.json.
var TransactionObjectProjectionSchemaJSON []byte
TransactionObjectProjectionSchemaJSON is contracts/transaction-object-projection.schema.json (事务对象 05 BusinessObject 的前端只读投影 DTO 契约,client layer 渲染事务对象卡的单一来源; T12 阶段A:client layer 契约面补全)。
var VisualUnitSpecSchemaJSON []byte
VisualUnitSpecSchemaJSON is contracts/visual-unit-spec.schema.json (前端 7 类主权视觉单元封顶规格契约,client layer 多端单一来源; T12 阶段A:client layer 契约收敛起步)。
Functions ¶
This section is empty.
Types ¶
type KnowledgeMountReadModel ¶
type KnowledgeMountReadModel struct {
MountRef string `json:"mount_ref"`
OwnerID string `json:"owner_id"`
PackRef string `json:"pack_ref"`
PackVersionRef string `json:"pack_version_ref"`
SceneRef string `json:"scene_ref,omitempty"`
KnowledgeScopeRef string `json:"knowledge_scope_ref"`
DisplayName string `json:"display_name"`
Status KnowledgeMountStatus `json:"status"`
KnowledgeKinds []string `json:"knowledge_kinds"`
KnowledgeRefs []string `json:"knowledge_refs,omitempty"`
EnabledReceiptRef string `json:"enabled_receipt_ref,omitempty"`
DisabledReceiptRef string `json:"disabled_receipt_ref,omitempty"`
LastReceiptRef string `json:"last_receipt_ref,omitempty"`
BlockedReason string `json:"blocked_reason,omitempty"`
}
type KnowledgeMountStatus ¶
type KnowledgeMountStatus string
const ( KnowledgeMountPending KnowledgeMountStatus = "pending" KnowledgeMountActive KnowledgeMountStatus = "active" KnowledgeMountDisabled KnowledgeMountStatus = "disabled" KnowledgeMountBlocked KnowledgeMountStatus = "blocked" )
type KnowledgeScopeDeclaration ¶
type KnowledgeScopeDeclaration struct {
ScopeRef string `json:"scope_ref"`
DisplayName string `json:"display_name"`
Description string `json:"description,omitempty"`
SceneRef string `json:"scene_ref,omitempty"`
MountPolicy string `json:"mount_policy"`
KnowledgeKinds []string `json:"knowledge_kinds"`
Tags []string `json:"tags,omitempty"`
Required bool `json:"required,omitempty"`
}
Directories
¶
| Path | Synopsis |
|---|---|
|
Package market 声明本地网关与云端市场之间的「市场表面契约」(§18-A 契约化)。
|
Package market 声明本地网关与云端市场之间的「市场表面契约」(§18-A 契约化)。 |
|
check_go_schema_consistency verifies the intentionally small, explicit Go-to-JSON-Schema mapping declared in scripts/go-schema-map.json.
|
check_go_schema_consistency verifies the intentionally small, explicit Go-to-JSON-Schema mapping declared in scripts/go-schema-map.json. |