docs: publish Preview 19 dogfood evidence
Export the reviewed allowlisted snapshot from private source commit 05928cebd01b586cf9e9d4b8c8537a7605a6068c. This records the exact candidate, bounded capacity result, stateful migration scratch requirement, authenticated batch identity proof, and immediate live acceptance evidence. AI-Assisted: OpenAI Codex Signed-off-by: Cole Speelman <crspeelman@gmail.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
package schema
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"gamertan.com/observatory/internal/model"
|
||||
)
|
||||
|
||||
func TestUnknownFieldsAreSensitiveAndUnindexed(t *testing.T) {
|
||||
descriptor := Unknown(model.SignalLogs, "vendor.unreviewed")
|
||||
if err := descriptor.Validate(); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if descriptor.Sensitivity != SensitivitySensitive || descriptor.Index != IndexNone || descriptor.Cardinality != CardinalityHigh {
|
||||
t.Fatalf("descriptor=%+v", descriptor)
|
||||
}
|
||||
}
|
||||
|
||||
func TestDescriptorRejectsHighCardinalityExactIndex(t *testing.T) {
|
||||
descriptor := Descriptor{Version: 1, Signal: model.SignalLogs, Field: "request.id", Type: TypeString, Meaning: "A request correlation identifier.", Sensitivity: SensitivityInternal, Cardinality: CardinalityHigh, Index: IndexExact, Retention: RetentionRaw, ProjectionVersion: 1}
|
||||
if err := descriptor.Validate(); err == nil {
|
||||
t.Fatal("expected unsafe index rejection")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user