/*
Facilitates the export of core functionalities and types for kernel operations and RFC governance.
- Do not implement the internal logic of kernel commands or RFC processing.
- Do not handle raw content parsing or transport orchestration.
- The barrel only re-exports — kernel logic lives in the sibling modules.
- RFC-0260: export resolveCommandFlags, KERNEL_UNIVERSAL_FLAGS, and the KernelFlagSpec type.
- RFC-0264 cleanup: delegate complete domains to their subpath barrels and keep the root entrypoint thin.
- RFC-1097: step 6 — compass.migrate codemod run
Mechanical v1 to v2 header migration across the workspace: 942 files rewritten — CHANGE_SUMMARY windows collapsed into history, forbidden v1 blocks stripped, KEY_DECISIONS seeded from @ai-invariant comments (5 files) or TODO placeholders (103 files), blocks reordered to canonical order.
- RFC-1097: sweep — werkstatt-engine clean
Sweep batch 4: 73 Compass headers on headerless engine files (certification, component-runtime, isolation, evolution, testing), real KEY_DECISIONS on 75 files (kernel, cache, dht, swim, gitmesh, runtime), ~80 purpose expansions (CONTRACT-02/PURPOSE-02), non-goals on 13 CONTRACT-03 files, CS-07 history literal fix repo-wide (253 files). Policy: .template.ts/.template.astro excludedPaths. werkstatt-engine now 0 diagnostics.
- RFC-1173: declare mutatesState on all kernel commands — collectDeclarationDiagnostics emits error-severity MUTATES-STATE-DECLARED, command.manifest.validate is the blocking consumer in packages.check, sweep declares the flag on every command definition (factories hardcode false for read-only check specs)
RFC-0258
*/
export * from "./discovery.ts";
export * from "./workspace-discovery.ts";
export { COMMON_CLI_FLAG_NAMES } from "./cli/flags.ts";
export {
resolveSiteWorkspace,
type SiteWorkspace,
type SiteWorkspaceSource,
} from "./site-workspace-resolver.ts";
export { createKernelLogger } from "./logger.ts";
export { buildActualState } from "../runtime/reconciler.ts";
export {
collectDeclarationDiagnostics,
type DeclarationDiagnostic,
} from "../runtime/validate-declarations.ts";
export * from "./runtime.ts";
export * from "@warpgogol/werkstatt-shared/kernel";
export { resolveCompassScanRoot } from "./resolve-compass-scan-root.ts";
export { runKernelWire } from "./wire.ts";
// Icons generation domain
export { createIconsModule } from "./icons/icons.module.ts";
export { runIconsGenerate } from "./icons/index.ts";
// RFC governance domain — migrated to @warpgogol/forge (RFC-0374, RFC-0391)
export {
runRfcList,
runRfcCreate,
runRfcValidate,
runRfcCommandLifecycleValidate,
runRfcCheck,
runRfcAcceptanceRun,
runProbe,
validateAcceptanceShape,
runRfcVerificationEmit,
buildEvidenceEnvelope,
runRfcDnaTraceValidate,
runRfcDnaTraceGenerate,
buildDnaTrace,
collectDecisionLog,
scoreDecisions,
runRfcDecisionLogGenerate,
runRfcSupersedePropose,
runRfcArchive,
RFC_STATUSES,
RFC_KINDS,
RFC_SCOPES,
RFC_DIR,
RFC_TEMPLATE_FILE,
RFC_ID_PATTERN,
RFC_FULL_REQUIRED_SECTIONS,
RFC_METADATA_CUTOFF,
} from "@warpgogol/forge/os/rfc";
export type {
DnaTraceEntry,
DnaTraceResult,
DecisionLogEntry,
DecisionLogEntryKind,
DecisionLogResult,
ConsultedDecision,
RfcSupersedeProposeResult,
RfcStatus,
RfcKind,
RfcScope,
RfcCommands,
RfcFrontmatter,
RfcListEntry,
RfcListResult,
RfcCreateResult,
RfcValidationViolation,
RfcValidationResult,
RfcCommandLifecycleViolation,
RfcCommandLifecycleValidationResult,
RfcCheckViolation,
RfcCheckResult,
AcceptanceProbe,
ProbeResult,
RfcAcceptanceRunResult,
VerificationEvidence,
VerificationEvidenceProbeRecord,
RfcVerificationEmitResult,
RfcArchiveResult,
RfcArchiveMove,
RfcArchiveSkip,
} from "@warpgogol/forge/os/rfc";
// ADR governance domain (RFC-0366)
export * from "./adr/index.ts";
// Compass inventory scanning (shared with site-kernel-codegen to avoid circular dep)
export { createCompassInventoryEntries, type CompassInventoryEntry } from "./compass-inventory.ts";
// RFC-0258: atomic file-write primitive for workspace-shared writers
// RFC-1104: writeFileAtomic + WriteFileAtomicOptions re-exported via werkstatt-shared/kernel above.
// RFC-0345: idempotent file-write primitive — skips writes when content is unchanged
export { writeFileIfChanged } from "./fs-idempotent.ts";
// RFC-0267: WorkspaceIO port + adapters
// RFC-1104: workspace-io re-exported via werkstatt-shared/kernel above.
// RFC-0081: Generated-file governance marker (canonical source lives in site-kernel)
// RFC-0336: buildGeneratedHeader is the single shared advisory-block builder.
export {
GENERATED_MARKER,
EDITABLE_GENERATED_MARKER,
hasGeneratedMarker,
generatedOwnerCommand,
stripGeneratedMarker,
isGeneratedMarkerTextCandidate,
buildGeneratedHeader,
type StripGeneratedMarkerResult,
type GeneratedHeaderInput,
} from "./generated-marker.ts";
// RFC-0042: Semantic layer validation domain
export { createSemanticModule } from "./semantic/semantic.module.ts";
export { runSemanticPageValidate } from "./semantic/handlers.ts";
// RFC-0075: Agent workflow discovery and linting domain — workflowModule migrated to @warpgogol/forge (RFC-0374)
export { runWorkflowLint, runWorkflowList } from "./workflow/index.ts";
export type {
WorkflowPhase,
WorkflowFrontmatter,
WorkflowListEntry,
WorkflowLintViolation,
WorkflowLintResult,
} from "./workflow/index.ts";
// RFC-0265: commit message hygiene lint
export { createCommitMessageModule } from "./commit-message.module.ts";
export {
runCommitMessageLint,
lintCommitSubject,
parseGitLogOutput,
parseNameOnlyOutput,
isExempt,
} from "./commit-message-lint.ts";
export type { CommitRecord, CommitMessageFinding } from "./commit-message-lint.ts";
// RFC-0270: pipeline timing budgets derived from telemetry
export { createPipelineBudgetModule } from "./pipeline-budget.module.ts";
// RFC-0963: validator inventory and consolidation
export { createValidatorInventoryModule } from "./validator-inventory.module.ts";
// RFC-0332: change impact classifier and advisory check profiles
export { createChangeImpactModule } from "./change-impact.module.ts";
export * from "./change-impact.ts";
export * from "./pipeline-budgets.ts";
// RFC-0266: single command manifest — generator core + generate command
export { createCommandManifestModule } from "./command-manifest.module.ts";
export * from "./command-manifest.ts";
// RFC-0563: Git-mesh platform code replication
export { createGitmeshModule } from "./gitmesh/gitmesh-module.ts";
export type {
GitMeshConfig,
GitMeshRemote,
GitMeshSyncResult,
GitMeshStatus,
GitMeshVerifyResult,
} from "./gitmesh/types.ts";
// ADR-0015: Shared utilities extracted from site-kernel-handoff to break cyclic dependency
export {
parseSemver,
compareSemver,
ltSemver,
gtSemver,
eqSemver,
inOpenClosedRange,
} from "./semver.ts";
export {
PLATFORM_SCOPE_PREFIXES,
isPlatformScope,
hasPlatformScopeFiles,
extractTrailer,
hasTrailer,
} from "./platform-scope.ts";
export { resolveMissionDir } from "./mission-resolver.ts";
export { resolvePlatformSemanticHash } from "./platform-hash.ts";
// RFC-0564: SWIM membership and CRDT genome
export { createSwimModule } from "./swim/swim-module.ts";
export type {
SwimMember,
SwimMemberStatus,
SwimConfig,
SwimMembershipView,
GenomeLogEntry,
} from "./swim/types.ts";
// RFC-1026: kernel module lifecycle management
// RFC-1038: kernelModuleModule deleted — kernel.module.load/unload/inspect removed.
// RFC-1125: single-sourced workshop module loader map (site-workshop profile)
// RFC-1148: single-sourced site module loader map (Sternsystem kernel.config)
export {
WORKSHOP_MODULE_MAP,
SITE_MODULE_MAP,
workshopModuleLoaders,
siteModuleLoaders,
forgeModuleLoaders,
type WorkshopModuleMap,
type WorkshopModuleDescriptor,
} from "./module-map.ts";