Commit Graph

1330 Commits

Author SHA1 Message Date
master
24be2f2268 chore(devops): dotnet release image + compose/bootstrap stabilization
Sprint SPRINT_20260417_024_DevOps_dotnet_release_image_stabilization.

- Dockerfile.platform + Dockerfile.dotnet-service adjustments for
  deterministic layer ordering and cache-friendly publish.
- devops/release/components.json updates.
- devops/compose: .env, README, legacy + stella-services docker-compose,
  stellaops env example, postgres-init 04/04b/15/16 authority + release
  schemas, setup.bootstrap.local.yaml.
- Gitea build_release.py script.
- scripts/register-local-integrations.ps1.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:43:23 +03:00
master
c7109ed214 feat(concelier): postgres feed mirror runtime + management endpoints
Sprint SPRINT_20260417_024_Concelier_truthful_feed_mirror_runtime.

- WebService extensions: feed mirror management endpoints, mirror domain
  management endpoint extensions, mirror endpoint extensions.
- Persisted mirror runtime settings provider.
- StellaOpsMirror connector: Jobs, StellaOpsMirrorConnector,
  StellaOpsMirrorDependencyInjectionRoutine, runtime settings provider.
- Tests: StellaOpsMirrorConnectorTests + mirror-advisory expected fixture.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:43:14 +03:00
master
77b88cbfa3 feat(concelier): unsupported affected-symbol runtime guard
Sprint SPRINT_20260417_023_Concelier_truthful_affected_symbol_runtime.

UnsupportedAffectedSymbolServices shim returning a clear
501/unsupported response until the durable affected-symbol backend ships.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:42:34 +03:00
master
9bcd0fdba3 feat(advisoryai): testing-only runtime fallback contract tests
Sprint SPRINT_20260417_022_AdvisoryAI_truthful_testing_only_runtime_fallback.

AdvisoryAiRuntimeStartupContractTests documenting the testing-only
in-memory fallback and its boundary versus the durable runtime.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:42:28 +03:00
master
f2eaf6bb3d feat(doctor): evidence schema registry runtime
Sprint SPRINT_20260417_021_Doctor_truthful_evidence_schema_registry_runtime.

IEvidenceSchemaRegistry contract, service-collection extension,
registration tests.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:41:58 +03:00
master
fb3762ef6c feat(integrations): built-in plugin catalog runtime + impact endpoints
Sprint SPRINT_20260417_020_Integrations_truthful_builtin_plugin_runtime.

- IntegrationBuiltInPluginCatalog + IntegrationEndpoints +
  IntegrationService wiring, program updates, csproj.
- Tests: plugin loader, service, impact endpoints.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:41:48 +03:00
master
70cbfcee72 feat(scheduler): postgres + redis webhook rate limiter runtime
Sprint SPRINT_20260417_019_JobEngine_truthful_webhook_rate_limiter_runtime.

NoOpWebhookRateLimiter + RedisWebhookRateLimiter, service-collection
wiring, WebhookRateLimiterRuntimeTests, SCHED-WEB-16-104-WEBHOOKS doc.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:41:42 +03:00
master
052de213e1 feat(advisoryai): postgres runtime state cutover
Sprint SPRINT_20260417_018_AdvisoryAI_truthful_runtime_state_cutover.

- Migrations 009 ai_runtime_state + 010 advisory_ai_runtime_state_extensions.
- PostgresConversationService + PostgresAdvisoryChatSettingsStore.
- PostgresExplanationStore, PostgresPolicyIntentStore, PostgresRunStore,
  PostgresAiAttestationStore, PostgresAiConsentStore.
- Core + WebService runtime persistence extensions and program wiring.
- Chat integration + durable runtime tests.

Sub-sprint _022 (testing-only runtime fallback) follows.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:41:34 +03:00
master
a15405431b wip(scheduler): compose storage configuration compatibility
Sprint SPRINT_20260417_002_JobEngine_scheduler_storage_compose_compatibility
(SCHEDULER-COMPAT-001 still DOING — sprint remains active).

Adds scheduler storage configuration adapter layer so the web host
accepts the compose-shaped storage configuration without manual remapping,
plus SchedulerStorageConfigurationTests.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:41:18 +03:00
master
0b7ba36f30 feat(web): advisory/vex onboarding setup wizard
Sprint SPRINT_20260417_001_Platform_setup_advisory_vex_onboarding
(Platform backend landed in commit 9393baf1a).

- Setup wizard feature: components (setup-wizard, step-content,
  step-content.defaults.spec), models, services
  (setup-wizard-api.service, setup-wizard-state.service) + specs.
- Advisory source catalog component + behavior spec.
- Live setup-wizard first-run bootstrap script + playwright auth/state
  output fixtures.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:41:08 +03:00
master
fcf9cc1b77 feat(attestor): postgres entry repo + audit sink + bulk shim
Sprint SPRINT_20260416_017_Attestor_truthful_runtime_storage_cutover.

- Attestor.Persistence: migration 002 attestor_runtime_entries_and_watchlist,
  PostgresAttestorEntryRepository + PostgresAttestorAuditSink,
  service-collection extensions.
- Attestor.WebService: composition + endpoints wiring.
- Attestor.Infrastructure: UnsupportedBulkVerificationJobStore shim.
- Tests: AttestorTruthfulRuntimeTests.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:40:40 +03:00
master
5c574cd787 feat(exportcenter): truthful web/job-admin/timeline-sink runtime cutover
Sprints SPRINT_20260416_014/015/016_ExportCenter_truthful_*_runtime.

- Infrastructure: PostgresExportArtifactRepository.
- WebService: unsupported-shims for export attestation, audit-bundle job
  handler, exception report generator, incident manager, promotion
  attestation assembler, risk-bundle job handler, simulation exporter,
  timeline notification sink; runtime/verification scaffolding.
- Tests: AuditBundle program HTTP integration + runtime suites.

Consolidated because sprints _014 (web), _015 (job admin), _016
(timeline sink) share repo + Program.cs + runtime wiring; splitting
would produce non-buildable intermediate states.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:40:31 +03:00
master
f6f1bde5f2 feat(issuerdirectory): postgres persistence runtime + sample config
Sprint SPRINT_20260416_013_Authority_issuerdirectory_truthful_persistence_runtime.

IssuerDirectory.WebService Postgres persistence, options,
program wiring, tests. Sample config under etc/.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:40:22 +03:00
master
fe3eacbba4 feat(authority): truthful dpop runtime extensions
Sprint SPRINT_20260416_012_Authority_truthful_dpop_runtime.

AuthorityDpopRuntimeExtensions wiring, standard plugin bootstrapper +
options tests, DPoP runtime security tests.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:40:16 +03:00
master
45ebcb88b9 feat(notifier): security + deadletter runtime
Sprint SPRINT_20260416_011_Notify_truthful_security_deadletter_runtime.

- Migration 004 security_deadletter_runtime_state.
- DeadLetterRuntimeEntity + WebhookSecurityConfigEntity +
  WebhookValidationNonceEntity persistence models.
- PostgresDeadLetterService + PostgresDeadLetterHandler observability.
- PostgresTenantIsolationValidator + PostgresWebhookSecurityService.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:40:06 +03:00
master
43d8398a5d feat(notifier): quiet-hours + maintenance window runtime
Sprint SPRINT_20260416_010_Notify_truthful_quiet_hours_maintenance_runtime.

- Migration 002 quiet_hours_maintenance_runtime_metadata.
- QuietHoursEntity + MaintenanceWindowEntity persistence models.
- PostgresQuietHoursRuntimeServices + QuietHoursRuntimeProjection.
- Notify + Notifier WebService compat shims.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:39:56 +03:00
master
9148c088da feat(notifier): postgres escalation + on-call schedule compat
Sprint SPRINT_20260416_009_Notify_truthful_escalation_oncall_runtime.

PostgresEscalationRuntimeServices plus Notify + Notifier WebService
compat shims for escalation policy and on-call schedule service.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:39:47 +03:00
master
b877e13b3c feat(notifier): postgres suppression admin runtime
Sprint SPRINT_20260416_008_Notify_truthful_suppression_admin_runtime.

Postgres-backed suppression runtime services wired through the admin
runtime extension registered in the durable storage bootstrap.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:39:37 +03:00
master
23bef5befc feat(router,gateway): postgres dpop replay + cache store + claim mapper
Sprint SPRINT_20260416_007_Router_truthful_dpop_replay_runtime.

- Gateway.WebService: GatewayDpopReplayRuntimeExtensions, authorization
  middleware + integration + dpop replay runtime tests.
- Messaging.Transport.Postgres: PostgresCacheStore + tests.
- Microservice.AspNetCore: DefaultAuthorizationClaimMapper + tests.
- Router.Common: ClaimRequirement.
- Router.Gateway: authorization middleware, OpenAPI claim security
  mapper + document generator.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:39:28 +03:00
master
8ed3f869f5 feat(binaryindex,symbols): truthful symbol-source runtime + migrations
Sprint SPRINT_20260416_006_BinaryIndex_symbols_truthful_manifest_runtime.

Symbols.Server: in-memory symbol source read repository with real
endpoints, program wiring, migrations, tests services.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:39:20 +03:00
master
9efe5cdb64 feat(timeline): truthful ingestion transport + indexer wiring
Sprint SPRINT_20260416_005_Timeline_truthful_ingestion_transport_contract.

Timeline WebService + TimelineIndexer worker program wiring; infrastructure
DI extension with null subscriber fallback; startup registration +
ingestion runtime registration tests.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:39:14 +03:00
master
9d569fdeb8 feat(replay): truthful snapshot index runtime
Sprint SPRINT_20260416_004_Replay_truthful_snapshot_index_cutover.

Replay WebService program wiring; runtime startup contract tests,
point-in-time query API integration tests, test environment variable
scope helper.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:39:09 +03:00
master
32551baf0e feat(graph): truthful postgres runtime + unsupported feature gating
Sprint SPRINT_20260416_003_Graph_graph_api_truthful_runtime_cutover.

Postgres-backed graph repository + runtime repo with
GraphFeatureUnavailableException and GraphRuntimeFallbackServices.
Runtime-state compatibility endpoints, tenant authorization alignment,
integration tests for edge metadata / export / query overlay /
unsupported feature paths.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:39:03 +03:00
master
2b58c9ed3c feat(concelier,excititor): postgres lease + vex attestations + graph overlay
Sprint SPRINT_20260415_007_DOCS_concelier_excititor_real_backend_cutover.

- Concelier.Persistence: migrations 000 (pg_trgm) + 007 (job_leases),
  PostgresLeaseStore + service collection wiring + tests.
- Concelier.Core.Sources: source definitions / registry / sync trigger
  contract.
- Concelier.WebService: Postgres-backed advisory/source services,
  job registration, immediate sync trigger, options post-configure +
  validator, internal setup-source endpoint extensions, plugin unified
  adapter factory, unsupported job/coordinator/orchestrator shims.
- Excititor.WebService: graph options + overlay store wiring.
- Excititor.Persistence: migrations 004 (graph overlays) + 005
  (vex attestations), PostgresVexAttestationStore + tests.

Sub-sprints _023 (affected symbol guard), _024 (feed mirror runtime),
_025 (durable mirror bundle import), _026 (allowlisted root) follow up.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:38:44 +03:00
master
462565fdab feat(policy,signer): postgres stores + verdict rekor wiring
Sprint SPRINT_20260415_006_DOCS_policy_findings_signer_real_backend_cutover
(findings portion landed in commit e60d5e0fc).

- Policy.Engine: Postgres stores for airgap state, attestation reports,
  verification policy, console export, policy pack repo, risk scoring job,
  violation events; messaging-backed evaluation + reachability facts cache;
  governance / violation / simulation endpoints; UnsupportedVerdictRekorClient.
- Policy.Persistence: migrations 010 (policy pack runtime state),
  011 (violation fusion results), 012 (runtime canonical state).
- Policy.Gateway: governance + simulation endpoints + rekor/token-cache
  runtime wiring tests.
- Policy.Registry: in-memory store scaffolding + testing harness.
- Signer: Postgres ceremony repo + audit sink, structured logging sink,
  stateless quota service, configured POE introspector, runtime proof /
  wiring / key rotation / observability / negative / contract tests.
- Signer.KeyManagement: migrations 002 ceremony runtime state,
  003 trust anchor runtime state, 004 key audit log shape fix.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:37:43 +03:00
master
9393baf1ad feat(platform,binaryindex,doctor): runtime persistence cutover
Sprint SPRINT_20260415_005_DOCS_platform_binaryindex_doctor_real_backend_cutover.

- Platform.WebService: AoC/quota compatibility endpoints, platform health
  service, setup wizard contracts/endpoints/service, release migrations
  058 (trust signing demo seed) + 067 (cleanup), context migration tests.
- BinaryIndex.WebService: golden-set controller + storage extensions,
  runtime persistence extensions, durable runtime + storage registration
  tests.
- Doctor: scheduler runtime guard, report storage extensions,
  scheduler + webservice registration tests.

Sub-sprints _006 (symbols truthful manifest) and _021 (doctor evidence
schema registry) land as follow-ups.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:37:20 +03:00
master
e60d5e0fce feat(findings,sbomservice,scanner): runtime data plane cutover
Sprint SPRINT_20260415_004_DOCS_runtime_data_plane_real_backend_cutover.

- Findings.Ledger: Postgres-backed endpoints (runtime timeline/traces,
  scoring, vuln-explorer, webhook), unsupported-compat shim, ledger data
  source, vulnerability detail service.
- RiskEngine.WebService: web application factory + runtime wiring tests.
- SbomService: rename InMemory -> ManifestBacked metadata repo, add
  Postgres registry source/ledger/lineage/event/watermark repos +
  migrations 001 initial schema and 002 runtime durable state.
- Scanner: SBOM uploads store + migration 026, scan runtime state +
  migration 027, persisted scan coordinator, Postgres policy repos,
  VEX gate query service + controller, reachability evidence migration 022.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:36:40 +03:00
master
302826aedb feat(scheduler,packsregistry,registry): postgres backend cutover
Sprint SPRINT_20260415_003_DOCS_scheduler_registry_real_backend_cutover.

- Scheduler WebService: Postgres-backed audit service + resolver job service,
  system schedule bootstrap, durable host tests, jwt app factory
- PacksRegistry: persistence extensions + migration 002 runtime pack repo,
  durable runtime + startup contract tests
- Registry.TokenService: Postgres plan rule store + admin endpoints,
  migration 001 initial schema, durable runtime + persistence tests
- Scheduler.Plugin.Doctor: wiring for doctor job plugin
- Sprint _019 (webhook rate limiter) and _002 (compose storage compat)
  land separately.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:36:05 +03:00
master
6b89bd5652 feat(notify,notifier): postgres durable runtime base cutover
Sprint SPRINT_20260415_002_DOCS_notify_notifier_real_backend_cutover.

Base durable storage wiring for both Notify and Notifier:
- NotifyDbContext + EF migrations (002 pack_approvals, 003 operator_override)
- Pack approval / operator override / retention / tenant isolation repos
- Notifier worker Postgres repository adapters (audit, channel, delivery,
  inbox, localization, lock, rule, template) + runtime service base
- Durable runtime fixture + integration test scaffolding
- WebService compat shims for pack approval, operator override, throttle

Sub-sprints _008 (suppression), _009 (escalation), _010 (quiet hours),
_011 (security/deadletter) land as follow-ups.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:35:30 +03:00
master
577a56ebc0 docs(implplan): real-service cutover master plan
Sprint SPRINT_20260415_001 — track execution across the cutover
sub-sprints and record per-module evidence.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:34:08 +03:00
master
44c4aec0d4 chore: ignore claude code agent worktrees
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 14:33:59 +03:00
master
5892937e39 feat(workflow): add ArtifactExporter console tool + MSBuild targets
New StellaOps.Workflow.ArtifactExporter project: a post-build console app that
reads the generator's bundled workflow registry from the compiled plugin DLL and
writes canonical JSON (authoritative, fail-build) plus SVG/PNG visual artifacts
(graceful warn) next to each *Workflow.cs source file. Replaces per-csproj
rendering boilerplate with a single targets import.

Key design choices:
- Console app invoked via <Exec>, not an MSBuild ITask DLL — easier to debug,
  no rendering-lib loading into the MSBuild process.
- Links WorkflowRenderGraphCompiler.cs from Engine as a compiled file instead of
  ProjectReference, avoiding EF Core + Oracle transitive deps in the tool.
- Parallel.ForEachAsync across workflows with file-lock + PID-sentinel
  "latest-wins" cross-process coordinator (FileShare.None + FileOptions
  .DeleteOnClose — no thread-affinity issues unlike Mutex).
- Hash-based cache: expected canonical-hash marker injected into
  .definition.json; unchanged workflows skip re-render. First build 167
  workflows in ~143s; no-change rebuild in ~0.1s.
- Atomic write-via-rename on every artifact.

Targets file (StellaOps.Workflow.ArtifactExporter.targets) plugins can import
to get: analyzer wiring + JSON/SVG/PNG export in one <Import>. Configurable via
StellaOpsWorkflowArtifactExport / StellaOpsWorkflowSkipSvg /
StellaOpsWorkflowSkipPng properties. Also surfaces CanonicalTemplates/*.json as
AdditionalFiles so the analyzer's fragment loader can inline runtime-loaded
fragments at compile time.

Verified: builds clean against upstream Abstractions/Contracts/Renderer.ElkSharp/
Renderer.Svg (net10.0, 0 warnings, 0 errors).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 17:42:38 +03:00
master
fd689748c9 feat(workflow): analyzer expansion — SubWorkflow/Fork/state+payload guards + helper-context
Port analyzer improvements developed downstream that extend canonical artifact
emission and non-trusted-call exemptions:

- WorkflowCanonicalArtifactGenerator: SubWorkflow / Fork / WhenStateEquals /
  WhenPayloadEquals step handlers; Call desugaring with
  WorkflowHandledBranchAction; HelperContext with parent chain and
  ResolveParameter identifier chase for multi-hop parameter forwarding;
  fluent-helper inliner (TryInlineFluentHelper + WalkFluentHelper*); spec-level
  inliner (TryInlineSpecHelper); JSON-fragment loader surfaced via
  AdditionalFiles (TryResolveLazyFragmentValue + TryResolveDirectFragmentCall);
  ContinueWith HelperContext threading; null-coalesce support; const-name in
  ParseNamedExpr; conditional-spread via TryExpandConditionalSpread.
- CanonicalSteps: add SubWorkflowStep and ForkStep IR classes.
- CanonicalJsonFragmentParser (new): minimal recursive-descent JSON→CanonicalExpr
  parser to support compile-time inlining of pre-built
  WorkflowExpressionDefinition fragments loaded at runtime via LoadFragment<T>.
- WorkflowCanonicalityAnalyzer: helpers returning trusted workflow types
  (WorkflowSpec<T>, WorkflowExpressionDefinition, etc.) are now treated as
  compile-time construction factories and exempt from WF010 — needed for the
  fluent-helper inliner to cover real-world plugin patterns.
- Tests: AnalyzerTestHarness gains an additionalTexts overload (with
  InMemoryAdditionalText); GeneratorStepsTests adds coverage for the new
  handlers and inliners; NonTrustedCallTests inverts
  CallingHelperThatHasImperative to assert the new WF010 exemption for helpers
  returning trusted workflow types.

Verified: 51/51 analyzer tests pass (net10.0).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-18 17:42:09 +03:00
master
bc6b1c5959 Finalize UI truthfulness and bootstrap hardening 2026-04-16 16:23:54 +03:00
master
4799aa2402 feat(workflow): generator emits businessReference (mitigates Bulstrad migration risk #2)
37 of the 179 Bulstrad workflow start-request types carry
[WorkflowBusinessId] / [WorkflowBusinessReferencePart] attributes
which the runtime compiler surfaces as the top-level `businessReference`
canonical JSON field. Until now the generator omitted this field and
would have broken byte-parity on every one of those workflows during
the split.

Generator changes:

  * BuildBusinessReference(INamedTypeSymbol) walks TStartRequest's
    public instance properties collecting attributes:
      Ablera.Serdica.Workflow.Abstractions.WorkflowBusinessIdAttribute
      StellaOps.Workflow.Abstractions.WorkflowBusinessIdAttribute
      Ablera.Serdica.Workflow.Abstractions.WorkflowBusinessReferencePartAttribute
      StellaOps.Workflow.Abstractions.WorkflowBusinessReferencePartAttribute
  * Emits null when neither attribute is present (matches the runtime's
    `SingleOrDefault => null` path). Only emits when at least one is found.
  * KeyExpression = WorkflowExpr.Path("start.{camelCased-or-JsonPropertyName}")
    from the property tagged with [WorkflowBusinessId].
  * Parts[] = one NamedExpr per [WorkflowBusinessReferencePart] property,
    Name = attribute's partName arg or property name if null,
    Expression = WorkflowExpr.Path("start.{camelCased-or-JsonPropertyName}").
  * ResolveJsonPropertyName mirrors the runtime: [JsonPropertyName] wins,
    else camelCase of the CLR property name.

Test fixture BusinessKeyedRequest + BusinessReferenceWorkflow
exercises the full path. Added as a third byte-parity test alongside
PureExpressionWorkflow + StartWithDecisionWorkflow. All 3 pass.

Other risk flagged in the migration manifest (nameof() in WorkflowName
/ WorkflowVersion / DisplayName): a grep across the Bulstrad plugin
returned zero matches — no workflow builds its name via nameof().
Namespace changes during the split cannot drift JSON. Risk #1
eliminated by evidence, no code needed.

Tests: 39/39 pass in both repos.
2026-04-15 13:04:28 +03:00
master
a81b524a89 feat(workflow): StellaOps.Workflow.Publisher library
New net10.0 library that reads bundled canonical workflows out of
plugin assemblies (via the source generator's
_BundledCanonicalWorkflowRegistry) and POSTs each one to the workflow
service's /Orchestration/definition-import endpoint on microservice
startup. Server handles dedup + auto +N versioning; publisher just
drives the roundtrip and logs the outcome.

Public surface:
  * WorkflowPublisherOptions — appsettings-bindable config
    (Enabled, Endpoint, CommandPath, ServiceName, AuthToken, Timeout,
    MaxRetriesPerWorkflow, RetryBaseDelay, FailOnError, DryRun)
  * BundledWorkflow record
  * IBundledWorkflowProvider + ReflectionBundledWorkflowProvider
    (reads StellaOps.Workflow.Generated._BundledCanonicalWorkflowRegistry
    from any assembly in a provided list; AppDomain.CurrentDomain
    fallback at DI resolution)
  * WorkflowPublisher — orchestrator with retry/backoff/summary
  * WorkflowPublisherHostedService — IHostedService adapter that
    runs PublishAllAsync on startup
  * PublisherServiceCollectionExtensions.AddWorkflowPublisher()

Behaviour:
  * Enabled=false -> no requests, summary DisabledReason set
  * DryRun=true  -> logs what would POST, no network
  * Endpoint missing -> each workflow counted failed, DisabledReason
    set, no HTTP calls; FailOnError=true throws
  * Non-2xx 5xx -> exponential retry MaxRetriesPerWorkflow times
  * 4xx / persistent 5xx -> FailOnError=false logs+continues,
    FailOnError=true throws
  * Server response's WasImported=false (hash match) -> counted as
    HashSkipped
  * AuthToken propagates as Authorization: Bearer
  * ServiceName propagates into WorkflowDefinitionImportRequest.ImportedBy
    as "{ServiceName}/publisher"

Consumer wiring example (a microservice's Program.cs):

    services
        .Configure<WorkflowPublisherOptions>(
            builder.Configuration.GetSection(nameof(WorkflowPublisherOptions)))
        .AddWorkflowPublisher();

Tests: 11/11 pass using an in-memory HttpMessageHandler fake.
Covers disabled, empty provider, missing endpoint, happy path,
hash-match skip, dry-run, transient retry, persistent failure
(FailOnError false + true), auth header, ImportedBy.
2026-04-15 12:35:56 +03:00
master
90592352bb feat(workflow): generator byte-parity with runtime compiler (option A)
Extends WorkflowCanonicalArtifactGenerator to produce canonical JSON
byte-identical to what WorkflowCanonicalDefinitionCompiler +
WorkflowCanonicalJsonSerializer produce at runtime, so the server's
SHA-256 content-hash dedup sees generator-emitted JSON and runtime-
emitted JSON as the same content.

Drift points resolved:

  * startRequest (new CanonicalStartRequest.cs) — generator walks
    TStartRequest's public instance IPropertySymbols, maps CLR types
    to JSON-schema types (string / boolean / number / string for
    enums / array with items / string for DateTime[Offset] / object
    fallback), converts property names to camelCase, unwraps
    Nullable<T>, detects IEnumerable<T>, emits enum constants from
    enum type members. Matches BuildStartRequestContract +
    BuildPropertiesSchema exactly.

  * requiredModules (new RequiredModule IR) — generator walks the
    IR and seeds `workflow.dsl.core`, adds `workflow.functions.core`
    on any FunctionExpr, adds transport modules on LegacyRabbit /
    Microservice addresses. Sorted alphabetically. Each module has
    `versionExpression = ">=1.0.0"` + `optional = false` matching
    the runtime's WorkflowRequiredModuleDeclaration record defaults.

  * Brace / array formatting — BeginObject/BeginArray now inline
    directly after a property colon (`"prop": {`) instead of
    inserting newline+indent before the `{` / `[`. Matches
    System.Text.Json WriteIndented behavior.

  * String escaping — AppendEscapedString now matches
    JavaScriptEncoder.Default: escapes <, >, &, ', +, ` and all
    non-ASCII printable (>0x7E) as uppercase \uXXXX. Runtime's
    System.Text.Json uses this encoder by default; without these
    escapes every `">=1.0.0"` version string differs.

  * Task emission (CanonicalTask.cs) — always emits
    routeExpression (defaulting to WorkflowExpr.String(route)) and
    payloadExpression (defaulting to Null) since the runtime's
    BuildTask applies `??= WorkflowExpr.String(...)` /
    `??= WorkflowExpr.Null()`. Always emits onComplete (defaulting
    to empty sequence).

  * Top-level field order — startRequest slots in after displayName,
    workflowRoles after, businessReference between workflowRoles and
    start — matching the runtime record's property declaration order.

Tests: 38 pass, 2 parity tests previously [Explicit] now active.
Generator produces byte-identical JSON for both parity fixtures:
expression-only workflow + step/task workflow with Set +
WhenExpression + AddTask + OnComplete.

Still deferred (future commits as Bulstrad corpus surfaces them):
  * businessReference emission when TStartRequest has
    [WorkflowBusinessId] / [WorkflowBusinessReferencePart] attributes.
    Current fixture has neither; field omits via WhenWritingNull.
  * Fork / Repeat / Wait / WaitForSignal / ContinueWith /
    SubWorkflow / HttpAddress / GraphqlAddress — WF020 until
    extended. Each requires a small visitor addition + tests.
2026-04-15 12:28:53 +03:00
master
a2c9098dc8 feat(workflow): byte-parity test harness + pinned LF newline (pending option A vs B)
Wires the analyzer + source generator into the analyzer test project
so parity tests can compare the generator's bundled JSON against what
the runtime WorkflowCanonicalDefinitionCompiler produces for the same
workflow class instance.

Changes:

* WorkflowCanonicalJsonSerializer.SerializerOptions: explicitly pin
  `NewLine = "\n"` so canonical-JSON bytes are identical across build
  platforms. Default would be Environment.NewLine = \r\n on Windows,
  \n on Unix — unstable for hash-dedup across CI runners.
* Test project now consumes StellaOps.Workflow.Analyzer via <Analyzer>
  item with a pre-build MSBuild Target that builds the analyzer csproj
  first, so generator output is available in-assembly.
* New Fixtures/ParityFixtureWorkflows.cs with two canonical fixtures
  exercising expression-only + step/task builder chains.
* New GeneratorByteParityTests.cs with diagnostic output showing the
  exact byte-offset of first drift + visible-char window around it.

Parity tests are marked [Explicit] because the runtime compiler
populates `startRequest`, `businessReference`, and `requiredModules`
via CLR reflection — fields the generator does not yet emit
(replicating them symbolically requires significant work). The drift
surface is documented in the test class doc comment.

The next architectural decision is captured in the plan file: either
(A) extend the generator to reimplement those reflection paths
symbolically, or (B) pivot to a hybrid where the generator emits
metadata + type registry and the publisher calls the runtime
compiler at startup. Option B eliminates the parity gap entirely
with publisher overhead of ~1-5 ms per workflow on first boot.

Test status: 36 passing, 2 explicit-skipped (parity).
2026-04-15 12:07:17 +03:00
master
cbfdd0e96c feat(workflow): generator supports StartWith/AddTask chains + addresses + helper fields
Extends WorkflowCanonicalArtifactGenerator (ships alongside the existing
analyzer in the same Roslyn component) to walk the real-world builder
surface used by the Bulstrad corpus.

New step visitors (inside StartWith(flow => ...) lambdas and
OnComplete(flow => ...) lambdas):
  * Set(key, expr) and SetIfHasValue(key, expr) -> set-state
  * ActivateTask(name) -> activate-task
  * Complete() -> complete
  * WhenExpression(name, cond, whenTrue, whenElse?) -> decision with
    nested whenTrue/whenElse step sequences (lambdas walked recursively)
  * Call(stepName, address, payload?, resultKey?, whenFailure?,
    whenTimeout?, timeoutSeconds?) -> call-transport

Address resolution covers:
  * new LegacyRabbitAddress("cmd") and new LegacyRabbitAddress("cmd", mode)
  * new Address("serviceName", "command")
  * Referenced static readonly fields -- walks the field's declarator
    initializer and emits the address there (matches real Bulstrad pattern
    "private static readonly LegacyRabbitAddress FooAddress = new(...)").

AddTask chains:
  WorkflowHumanTask.For<T>("name", "type", "route")
    .WithRoles(...) / .WithTimeout(...) / .WithRoute(expr)
    / .WithPayload(expr) / .OnComplete(flow => ...)
The generator walks each segment and appends a CanonicalTask to
definition.tasks[].

IR extended:
  * CanonicalSteps.cs   -- SetStateStep, ActivateTaskStep, CompleteStep,
    DecisionStep, TransportCallStep, AssignBusinessReferenceStep,
    StepSequence
  * CanonicalAddress.cs -- MicroserviceAddress, LegacyRabbitAddress
  * CanonicalTask.cs    -- CanonicalTask
  * CanonicalDefinition now emits the full top-level shape
    (workflowRoles[], start{initializeStateExpression, initialTaskName,
    initialSequence}, tasks[], requiredModules[], requiredCapabilities[]).

Tests: 36/36 pass (31 existing + 5 new covering the step/task surface,
including a WF020 fallback test for the not-yet-supported Fork().

Still not supported (WF020 continues to fire): Fork, Repeat, Wait,
WaitForSignal, ContinueWith, SubWorkflow, SetBusinessReference with
object-initialiser syntax, QueryGraphql, HttpAddress / GraphqlAddress.
Follow-up commits extend these as the corpus migration surfaces them.
2026-04-15 11:57:02 +03:00
master
cd18bd1fce chore: post-archive sprint status edits + integration-detail UI polish
Archived sprint files inherit the rename without the post-move status edits
since git recorded the rename against pre-edit content. Applies the
OBSOLETE/DONE annotations directly on the archived copies so the record is
internally consistent.

Integration-detail component + spec: small polish pass. integration-hub-ui
spec: trivial assertion tweak. Playwright: refreshed live-frontdoor-auth
snapshot.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 11:28:39 +03:00
master
c01ce36b62 docs(implplan): add DOCS cutover plan sprint, archive FE integration-hub sprint
Adds SPRINT_20260415_001_DOCS_real_service_cutover_plan tracking the doc
work needed to finalize the no-mocks / real-service migration.

Archives SPRINT_20260415_002_FE_integration_hub_truthful_status_and_button_styling
— both tasks complete (truthful integration status + button styling fix
landed in the earlier Web UI commit).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 11:27:31 +03:00
master
07e227fdb7 feat(findings): close VulnExplorer -> Ledger merger and archive sprints
Closes SPRINT_20260408_002_Findings_vulnexplorer_ledger_merge via Option B:

- Phase 1 (VXPM-001..005) marked OBSOLETE. The separate vulnexplorer
  schema was superseded by commit 6b15d9827 (direct merger into Findings
  Ledger); there is no separate Postgres schema to build.
- Phase 2 corrections: VXLM-003/004/005 flipped to DONE. The adapter
  ConcurrentDictionary pattern is accepted as the VXLM-003 closure — these
  are read-side projections over Ledger events; durability comes from the
  append-only event log, not from the adapter. Two follow-ups logged in
  Decisions & Risks (FOLLOW-A: write-through Ledger event emission;
  FOLLOW-B: /api/v1/vulnerabilities gateway route alignment).
- Deletes stale VulnExplorer project trees:
  - src/Findings/StellaOps.VulnExplorer.Api/ (entire service)
  - src/Findings/StellaOps.VulnExplorer.WebService/ (shell + migrated contracts)
  - src/Findings/__Tests/StellaOps.VulnExplorer.Api.Tests/ (tests targeted
    SampleData IDs that no longer exist under Ledger)
  - src/Findings/StellaOps.Findings.Ledger.WebService/Services/
    VulnExplorerRepositories.cs (33-line placeholder with a misleading
    header comment; the actual Postgres path was never wired)
- Updates StellaOps.sln and Findings.sln to drop the removed project GUIDs
  and their 24 configuration entries. dotnet build
  src/Findings/StellaOps.Findings.sln passes 0 warnings / 0 errors.

Also archives the 4 previously-closed sprints:
- SPRINT_20260408_002 Findings VulnExplorer merger (above)
- SPRINT_20260410_001 Web runtime no-mocks (21/21 tasks done via earlier
  Postgres persistence commits)
- SPRINT_20260413_002 Integrations GitLab bootstrap automation
- SPRINT_20260413_003 Web UI-driven local setup rerun
- SPRINT_20260413_004 Platform UI-only setup bootstrap closure

Active sprints reduced to 2: SPRINT_20260408_004 Timeline unified audit
sink (15-25hr breadth work) and SPRINT_20260408_005 Audit endpoint filters
deprecation (mandatory 30/90-day verification windows).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 11:26:32 +03:00
master
a6a7e0a134 chore: devops compose tweaks, playwright artifacts, sprint log updates
devops/compose: docker-compose.stella-ops.legacy.yml +
docker-compose.stella-services.yml receive small service wiring updates.

Playwright: refreshed auth-state/report fixtures from the latest
integrations + setup-wizard + policy-runtime live runs. Includes a new
playwright-report-integrations/ bundle.

Docs: SPRINT_20260410_001 (runtime no-mocks) significantly expanded with
additional NOMOCK tasks reflecting the Postgres-backed work shipped across
Policy, Graph, Excititor, VexLens, Scanner, VexHub. SPRINT_20260413_004
(UI-only setup bootstrap closure) log updates.

Gitignore: narrow the earlier `output/` rule to `/output/` so the tracked
src/Web/StellaOps.Web/output/playwright fixtures continue to be picked up.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 11:16:33 +03:00
master
fc14a59b1f feat(web): VEX hub client expansion, integration hub bootstrap, policy e2e
app.config: wiring updates for VEX hub statement providers + integration
hub DI.

VEX hub client: large refactor and expansion of vex-hub.client.ts (+spec)
with the shape needed by the statement detail panel and the new
noise-gating surfaces. vex-statement-detail-panel.component aligned with
the new client contract.

Integration hub component: extends the bootstrap + verification flow
(browser-backed, no mocks) and updates the spec coverage accordingly.

New tooling:
- scripts/run-policy-orchestrator-proof-e2e.mjs to drive the orchestrator
  proof flow from outside the Angular test harness.
- src/tests/triage/noise-gating-api.providers.spec.ts covers the DI
  providers wiring for the triage noise-gating surface.
- tests/e2e/integrations/policy-orchestrator.e2e.spec.ts exercises the
  policy orchestrator UI end-to-end.
- tsconfig.spec.vex.json isolates the VEX spec compile so it does not
  fight the main triage configs.
- angular.json + package.json wire the new spec/e2e targets.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 11:16:05 +03:00
master
1e8dbbeeb0 feat(authority,scanner): IssuerDirectory wiring + scanner score replay persistence
Authority: StellaOpsLocalHostnameExtensions gains additional local aliases
for the IssuerDirectory service; new StellaOpsLocalHostnameExtensionsTests
cover the alias table. IssuerDirectory.WebService Program.cs wires the
IssuerDirectory host against the shared auth integration.

Scanner: WebService swaps in-memory score replay tracking for
PersistedScoreReplayRepositories (Postgres-backed) in Program.cs.

Docs: scanner architecture page updated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 11:15:44 +03:00
master
291c3d3ad4 feat(vex): Postgres persistence for Excititor + VexLens + VexHub hardening
Excititor: new migration 003_vex_claim_store.sql and PostgresVexClaimStore
replace the in-memory claim tracking. ExcititorPersistenceExtensions wires
the store; ExcititorMigrationTests updated. Archives S001 demo seed.

VexLens: new migration 002_noise_gating_state.sql with
PostgresGatingStatisticsStore, PostgresSnapshotStore, and
PostgresNoiseGatingJson bring noise-gating state onto disk. New
VexLensRuntimeDatabaseOptions + AuthorityIssuerDirectoryAdapter +
VexHubStatementProvider provide the runtime wiring. WebService tests cover
the persistence, the issuer-directory adapter, and the statement provider.

VexHub: WebService Program, endpoints, middleware, models, and policies
tightened; VexExportCompatibilityTests exercise the Concelier↔VexHub export
contract.

Docs: excititor, vex-hub (architecture + integration guide), and vex-lens
architecture pages updated to match the new persistence and verification
paths.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 11:15:31 +03:00
master
ee93c0bac2 feat(graph): add Postgres graph runtime repository + compatibility endpoints
Introduces IGraphRuntimeRepository + PostgresGraphRuntimeRepository that back
runtime-path graph reads with real persistence. Graph.Api Program.cs wires
the new repository into the DI graph. InMemory* services get small cleanups
so they remain viable for tests and local dev.

CompatibilityEndpoints: extends the integration-test surface.

Tests: GraphPostgresRuntimeIntegrationTests,
GraphRuntimeRepositoryRegistrationTests, expanded
GraphCompatibilityEndpointsIntegrationTests.

Docs: graph architecture page updated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 11:15:07 +03:00
master
786d09b88f feat(policy): persist gate evaluation queue, snapshots, orchestrator jobs
Policy Engine: moves gate evaluation, snapshots, orchestrator job tracking,
and ledger export from in-memory state to Postgres-backed stores.

- New persistence migrations 007 (runtime state), 008 (snapshot artifact
  identity), 009 (orchestrator jobs).
- New repositories: PolicyEngineSnapshotRepository,
  PolicyEngineLedgerExportRepository, PolicyEngineOrchestratorJobRepository,
  WorkerResultRepository.
- Gateway services: GateEvaluationJobDispatchService,
  GateEvaluationJobStatusService, GateEvaluationJobWorker,
  SchedulerBackedGateEvaluationQueue (plus Unsupported fallback),
  GateTargetSnapshotMaterializer, PersistedKnowledgeSnapshotStore,
  GateBaselineBootstrapper, PolicyGateEvaluationJobExecutor.
- New endpoints: GateJobEndpoints for job status + dispatch.
- Worker host: PolicyOrchestratorJobWorkerHost to drain the persistent queue.
- PersistedOrchestratorStores + DeltaSnapshotServiceAdapter swap in the
  persistent implementations via DI.

Tests: PersistedDeltaRuntimeTests, PolicyEngineGateTargetSnapshotRuntimeTests,
PolicyEngineRegistryWebhookRuntimeTests, PostgresLedgerExportStoreTests,
PostgresSnapshotStoreTests, PolicyGatewayPersistedDeltaRuntimeTests,
RegistryWebhookQueueRuntimeTests. Archives the old S001 demo seed.

Docs: policy API + architecture pages updated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 11:14:41 +03:00
master
d8f6bade9a chore: gitignore codex scratch scripts, output dir, stray src/src duplicates
Ignore .codex-*.mjs scratch scripts used by Codex agents, the top-level
output/ scratch dir, and accidentally-created duplicate source trees
(src/src/ and src/Web.StellaOps.Web/) so they stop appearing as untracked.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 11:14:15 +03:00
master
b7acf692b6 docs(workflow): analyzer rule reference + golden real-shape regression tests
docs/modules/workflow/analyzer.md — user-facing reference for
WF001-WF006 + WF010: one section per rule with a "bad" example and
the canonical fix. Covers activation, scope (Spec property is the
entry point; helpers walked transitively), trusted-assembly prefix
rule, cross-project WF010 indirection, and non-goals (no source
generator, no severity config, no escape hatch).

The DiagnosticDescriptors' HelpLinkUri already points at sections in
this doc (e.g., #wf005), so users who hit a build error can click
through to the exact rule explanation.

Golden tests (GoldenWorkflowShapeTests) exercise three patterns
lifted from the Bulstrad corpus:
  1. static readonly LegacyRabbitAddress fields + nested
     WhenExpression(Gt, Len, ...) + .Call + OnComplete with
     WhenExpression(Eq, ...) + ActivateTask/Complete
  2. SetBusinessReference(new WorkflowBusinessReferenceDeclaration
     { KeyExpression, Parts = new WorkflowNamedExpressionDefinition[] { ... } })
  3. WorkflowExpr.Func("bulstrad.normalizeCustomer", path)
     — custom runtime function dispatch

Each asserts zero WF* diagnostics. A regression that rejects these
patterns would break the entire Serdica corpus.

30/30 tests pass.
2026-04-15 09:29:08 +03:00