desk: re-pin the vendored vectors to CultLib 89755b08

Existing rows are byte-identical; deciders_at_the_cap_of_64 is a new valid card row.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Heimdall 2026-11-10 20:10:52 +00:00
commit a530aaa716
5 changed files with 209 additions and 6 deletions

View file

@ -4,7 +4,7 @@ using System.Text.Json.Serialization;
namespace Bifrost.Web.Features.Desk;
// The fork-desk documents Bifrost reads or writes, spelled as CultLib's contracts/cultnet/governance/fork-card.md
// (commit 6231ecad) spells them: snake_case keys, every key written (nil where absent), declared in the
// (commit 89755b08) spells them: snake_case keys, every key written (nil where absent), declared in the
// contract's key order. Bifrost authors only DeskRefusal and DeskUnavailable. AnswerRequest is the client's body;
// ForkCard, DeskAnswerDocument and AnswerResult are Huginn's documents, typed here so they pass through unchanged.

View file

@ -56,7 +56,7 @@ public sealed class DeskDocumentTests
public void Cards_round_trip_with_their_spelling()
{
var rows = DeskVectors.Rows("card", "valid").ToList();
Assert.Equal(4, rows.Count);
Assert.Equal(5, rows.Count);
foreach (var row in rows)
{
var message = row["message"]!;

View file

@ -6,7 +6,7 @@ namespace Bifrost.Web.Tests;
public sealed class DeskVectorPinTests
{
[Fact]
public void Vectors_are_cultlib_6231ecad()
public void Vectors_are_cultlib_89755b08()
{
var sha = Convert.ToHexString(SHA256.HashData(File.ReadAllBytes(DeskVectors.Path))).ToLowerInvariant();

File diff suppressed because one or more lines are too long

View file

@ -3,12 +3,12 @@ using System.Text.Json.Nodes;
namespace Bifrost.Web.Tests.Support;
// CultLib's fork-card vectors, vendored at commit 6231ecad5dc72dc75d858958fb8ec66c771a3b5e.
// CultLib's fork-card vectors, vendored at commit 89755b08b5dd4bf72ed8e5907b5ff4717e51da12.
public static class DeskVectors
{
public const string SourceCommit = "6231ecad5dc72dc75d858958fb8ec66c771a3b5e";
public const string SourceCommit = "89755b08b5dd4bf72ed8e5907b5ff4717e51da12";
public const string FileSha256 = "bf9444fbea753ce218b58989a896ff622927cedde376d1188526f9b8645d3588";
public const string FileSha256 = "3387debd16059621202b706761519231e7ad52d0d4bd071a32b80c0d916e42fa";
public static string Path => System.IO.Path.Combine(AppContext.BaseDirectory, "Fixtures", "fork-card-vectors.json");