stabilize tests

This commit is contained in:
master
2026-02-01 21:37:40 +02:00
parent 55744f6a39
commit 5d5e80b2e4
6435 changed files with 33984 additions and 13802 deletions

View File

@@ -0,0 +1,24 @@
# AGENTS - TimelineIndexer Module
## Working Directory
- `src/TimelineIndexer/**` (core, infrastructure, WebService, Worker, tests).
## Required Reading
- `docs/README.md`
- `docs/07_HIGH_LEVEL_ARCHITECTURE.md`
- `docs/modules/platform/architecture-overview.md`
- `docs/modules/timeline-indexer/architecture.md`
- `docs/modules/timeline-indexer/README.md`
- `docs/modules/timeline-indexer/guides/timeline.md`
## Engineering Rules
- Deterministic timeline indexing and replay outputs.
- Enforce tenant isolation and stable ordering for events.
- Offline-first; no network calls in tests.
## Testing & Verification
- Tests live in `src/TimelineIndexer/__Tests/**`.
- Cover ingestion, ordering, and replay determinism.
## Sprint Discipline
- Track task status in sprint tracker and local TASKS boards.

View File

@@ -1,4 +1,4 @@
# Tenant Timeline Indexer Agent Charter
# Tenant Timeline Indexer ??? Agent Charter
## Mission
Build the tenant-scoped timeline ingestion and query service described in Epic 15. Consume structured timeline events from all services, maintain queryable indices, and expose APIs to Console and CLI without violating imposed rule guarantees.
@@ -17,15 +17,15 @@ Build the tenant-scoped timeline ingestion and query service described in Epic 1
## Definition of Done
- Service ships with deterministic migrations + repeatable seeds.
- Integration tests replay recorded event fixtures to stable results.
- Docs updated under `docs/forensics/timeline.md` per release.
- Docs updated under `docs/modules/timeline-indexer/guides/timeline.md` per release.
## Module Layout
- `StellaOps.TimelineIndexer.Core/` event models, ordering/dedupe logic, query contracts.
- `StellaOps.TimelineIndexer.Infrastructure/` Postgres/NATS clients, persistence abstractions.
- `StellaOps.TimelineIndexer.WebService/` query/lookup APIs and authentication glue.
- `StellaOps.TimelineIndexer.Worker/` ingestion consumers and background compaction jobs.
- `StellaOps.TimelineIndexer.Tests/` unit tests focused on ordering/dedupe/query correctness.
- `StellaOps.TimelineIndexer.sln` solution aggregating module projects.
- `StellaOps.TimelineIndexer.Core/` ??? event models, ordering/dedupe logic, query contracts.
- `StellaOps.TimelineIndexer.Infrastructure/` ??? Postgres/NATS clients, persistence abstractions.
- `StellaOps.TimelineIndexer.WebService/` ??? query/lookup APIs and authentication glue.
- `StellaOps.TimelineIndexer.Worker/` ??? ingestion consumers and background compaction jobs.
- `StellaOps.TimelineIndexer.Tests/` ??? unit tests focused on ordering/dedupe/query correctness.
- `StellaOps.TimelineIndexer.sln` ??? solution aggregating module projects.
## Required Reading
- `docs/modules/telemetry/architecture.md`
@@ -37,3 +37,4 @@ Build the tenant-scoped timeline ingestion and query service described in Epic 1
- 3. Keep changes deterministic (stable ordering, timestamps, hashes) and align with offline/air-gap expectations.
- 4. Coordinate doc updates, tests, and cross-guild communication whenever contracts or workflows change.
- 5. Revert to `TODO` if you pause the task without shipping changes; leave notes in commit/PR descriptions for context.

View File

@@ -1,8 +1,9 @@
using System.Security.Cryptography;
using System.Text;
using StellaOps.TimelineIndexer.Core.Abstractions;
using StellaOps.TimelineIndexer.Core.Models;
using StellaOps.TimelineIndexer.Core.Models.Results;
using System.Security.Cryptography;
using System.Text;
namespace StellaOps.TimelineIndexer.Core.Services;

View File

@@ -0,0 +1,8 @@
# StellaOps.TimelineIndexer.Core Task Board
This board mirrors active sprint tasks for this module.
Source of truth: `docs/implplan/SPRINT_20260130_002_Tools_csproj_remediation_solid_review.md`.
| Task ID | Status | Notes |
| --- | --- | --- |
| REMED-05 | TODO | Remediation checklist: docs/implplan/audits/csproj-standards/remediation/checklists/src/TimelineIndexer/StellaOps.TimelineIndexer/StellaOps.TimelineIndexer.Core/StellaOps.TimelineIndexer.Core.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -1,9 +1,10 @@
using Microsoft.Extensions.Logging;
using Npgsql;
using System.Text.Json;
using StellaOps.Infrastructure.Postgres.Repositories;
using StellaOps.TimelineIndexer.Core.Abstractions;
using StellaOps.TimelineIndexer.Core.Models;
using System.Text.Json;
namespace StellaOps.TimelineIndexer.Infrastructure.Db;

View File

@@ -1,8 +1,9 @@
using System.Reflection;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using StellaOps.Infrastructure.Postgres.Migrations;
using StellaOps.Infrastructure.Postgres.Options;
using System.Reflection;
namespace StellaOps.TimelineIndexer.Infrastructure.Db;

View File

@@ -1,9 +1,10 @@
using Microsoft.Extensions.Logging;
using Npgsql;
using System.Text.Json;
using StellaOps.Infrastructure.Postgres.Repositories;
using StellaOps.TimelineIndexer.Core.Abstractions;
using StellaOps.TimelineIndexer.Core.Models;
using System.Text.Json;
namespace StellaOps.TimelineIndexer.Infrastructure.Db;

View File

@@ -1,9 +1,10 @@
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using StellaOps.Infrastructure.Postgres.Options;
using StellaOps.TimelineIndexer.Infrastructure.Db;
using StellaOps.TimelineIndexer.Core.Abstractions;
using StellaOps.TimelineIndexer.Core.Services;
using StellaOps.TimelineIndexer.Infrastructure.Db;
namespace StellaOps.TimelineIndexer.Infrastructure.DependencyInjection;

View File

@@ -1,11 +1,12 @@
using System.Runtime.CompilerServices;
using System.Text;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using NATS.Client.Core;
using StellaOps.TimelineIndexer.Core.Abstractions;
using StellaOps.TimelineIndexer.Core.Models;
using StellaOps.TimelineIndexer.Infrastructure.Options;
using System.Runtime.CompilerServices;
using System.Text;
namespace StellaOps.TimelineIndexer.Infrastructure.Subscriptions;

View File

@@ -1,10 +1,11 @@
using System.Runtime.CompilerServices;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using StackExchange.Redis;
using StellaOps.TimelineIndexer.Core.Abstractions;
using StellaOps.TimelineIndexer.Core.Models;
using StellaOps.TimelineIndexer.Infrastructure.Options;
using System.Runtime.CompilerServices;
namespace StellaOps.TimelineIndexer.Infrastructure.Subscriptions;

View File

@@ -1,5 +1,6 @@
using System.Text.Json;
using StellaOps.TimelineIndexer.Core.Models;
using System.Text.Json;
namespace StellaOps.TimelineIndexer.Infrastructure.Subscriptions;

View File

@@ -0,0 +1,8 @@
# StellaOps.TimelineIndexer.Infrastructure Task Board
This board mirrors active sprint tasks for this module.
Source of truth: `docs/implplan/SPRINT_20260130_002_Tools_csproj_remediation_solid_review.md`.
| Task ID | Status | Notes |
| --- | --- | --- |
| REMED-05 | TODO | Remediation checklist: docs/implplan/audits/csproj-standards/remediation/checklists/src/TimelineIndexer/StellaOps.TimelineIndexer/StellaOps.TimelineIndexer.Infrastructure/StellaOps.TimelineIndexer.Infrastructure.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -0,0 +1,8 @@
# StellaOps.TimelineIndexer.Tests Task Board
This board mirrors active sprint tasks for this module.
Source of truth: `docs/implplan/SPRINT_20260130_002_Tools_csproj_remediation_solid_review.md`.
| Task ID | Status | Notes |
| --- | --- | --- |
| REMED-05 | TODO | Remediation checklist: docs/implplan/audits/csproj-standards/remediation/checklists/src/TimelineIndexer/StellaOps.TimelineIndexer/StellaOps.TimelineIndexer.Tests/StellaOps.TimelineIndexer.Tests.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -1,13 +1,14 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using StellaOps.Cryptography.Audit;
using StellaOps.Auth.Abstractions;
using StellaOps.Auth.ServerIntegration;
using StellaOps.Cryptography.Audit;
using StellaOps.Router.AspNet;
using StellaOps.TimelineIndexer.Core.Abstractions;
using StellaOps.TimelineIndexer.Core.Models;
using StellaOps.TimelineIndexer.Infrastructure.DependencyInjection;
using StellaOps.TimelineIndexer.WebService;
using StellaOps.Router.AspNet;
var builder = WebApplication.CreateBuilder(args);

View File

@@ -0,0 +1,8 @@
# StellaOps.TimelineIndexer.WebService Task Board
This board mirrors active sprint tasks for this module.
Source of truth: `docs/implplan/SPRINT_20260130_002_Tools_csproj_remediation_solid_review.md`.
| Task ID | Status | Notes |
| --- | --- | --- |
| REMED-05 | TODO | Remediation checklist: docs/implplan/audits/csproj-standards/remediation/checklists/src/TimelineIndexer/StellaOps.TimelineIndexer/StellaOps.TimelineIndexer.WebService/StellaOps.TimelineIndexer.WebService.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -1,6 +1,7 @@
using System.Linq;
using Microsoft.Extensions.Logging;
using StellaOps.Cryptography.Audit;
using System.Linq;
namespace StellaOps.TimelineIndexer.WebService;

View File

@@ -0,0 +1,8 @@
# StellaOps.TimelineIndexer.Worker Task Board
This board mirrors active sprint tasks for this module.
Source of truth: `docs/implplan/SPRINT_20260130_002_Tools_csproj_remediation_solid_review.md`.
| Task ID | Status | Notes |
| --- | --- | --- |
| REMED-05 | TODO | Remediation checklist: docs/implplan/audits/csproj-standards/remediation/checklists/src/TimelineIndexer/StellaOps.TimelineIndexer/StellaOps.TimelineIndexer.Worker/StellaOps.TimelineIndexer.Worker.md. |
| REMED-06 | DONE | SOLID review notes captured for SPRINT_20260130_002. |

View File

@@ -1,8 +1,9 @@
using StellaOps.TimelineIndexer.Core.Abstractions;
using StellaOps.TimelineIndexer.Core.Models;
using System.Collections.Concurrent;
using System.Diagnostics.Metrics;
using System.Linq;
using StellaOps.TimelineIndexer.Core.Abstractions;
using StellaOps.TimelineIndexer.Core.Models;
namespace StellaOps.TimelineIndexer.Worker;