Sprints completed: - SPRINT_20260110_012_* (golden set diff layer - 10 sprints) - SPRINT_20260110_013_* (advisory chat - 4 sprints) Build fixes applied: - Fix namespace conflicts with Microsoft.Extensions.Options.Options.Create - Fix VexDecisionReachabilityIntegrationTests API drift (major rewrite) - Fix VexSchemaValidationTests FluentAssertions method name - Fix FixChainGateIntegrationTests ambiguous type references - Fix AdvisoryAI test files required properties and namespace aliases - Add stub types for CveMappingController (ICveSymbolMappingService) - Fix VerdictBuilderService static context issue Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.6 KiB
1.6 KiB
GoldenSet Library Charter
Mission
Provide foundational data models, storage, and validation for Golden Set definitions - ground-truth facts about vulnerability code-level manifestation.
Responsibilities
- Domain Models: GoldenSetDefinition, VulnerableTarget, BasicBlockEdge, WitnessInput, GoldenSetMetadata
- Validation: Schema validation, CVE existence check, edge format validation, sink registry lookup
- Storage: PostgreSQL persistence with content-addressed retrieval
- Serialization: YAML round-trip serialization with snake_case convention
- Sink Registry: Lookup service for known sinks mapped to CWE categories
Key Principles
- Immutability: All models are immutable records with ImmutableArray collections
- Content-Addressing: All golden sets have SHA256-based content digests for deduplication
- Determinism: Serialization and hashing produce deterministic outputs
- Air-Gap Ready: Validation supports offline mode without external lookups
- Human-Readable: YAML as primary format for git-friendliness
Dependencies
BinaryIndex.Contracts- Shared contracts and DTOsNpgsql- PostgreSQL driverYamlDotNet- YAML serializationMicrosoft.Extensions.*- DI, Options, Logging, Caching
Required Reading
docs/modules/binary-index/golden-set-schema.mddocs/implplan/SPRINT_20260110_012_001_BINDEX_golden_set_foundation.md
Test Strategy
- Unit tests in
StellaOps.BinaryIndex.GoldenSet.Tests - Integration tests with Testcontainers PostgreSQL
- Property-based tests for serialization round-trip