Merge reviewed dependency updates and test synchronization

This commit is contained in:
codex committed 2026-10-07 15:03:18 +02:00
commit 76ab48bb9e
5 files changed
+41 -6

No files matched your search

@@ -14,7 +14,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="coverlet.collector" Version="10.0.1" /> <PackageReference Include="coverlet.collector" Version="10.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.12" /> <PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="10.0.12" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.10.1" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.10.1" />
<PackageReference Include="xunit" Version="2.9.3" /> <PackageReference Include="xunit" Version="2.9.3" />
@@ -53,8 +53,14 @@ public sealed class RecordingCoordinatorTests
{ {
try try
{ {
return File.Exists(path) && if (!File.Exists(path))
File.ReadAllText(path).Contains(text, StringComparison.Ordinal); {
return false;
}
using var stream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite | FileShare.Delete);
using var reader = new StreamReader(stream);
return reader.ReadToEnd().Contains(text, StringComparison.Ordinal);
} }
catch (IOException) catch (IOException)
{ {
@@ -3336,6 +3342,7 @@ public sealed class RecordingCoordinatorTests
await coordinator.StartAsync(CancellationToken.None); await coordinator.StartAsync(CancellationToken.None);
await audioSource.WaitUntilCapturedAsync(); await audioSource.WaitUntilCapturedAsync();
await artifactStore.WaitUntilTranscribingAsync();
await coordinator.StopAsync(CancellationToken.None); await coordinator.StopAsync(CancellationToken.None);
@@ -3479,6 +3486,7 @@ public sealed class RecordingCoordinatorTests
{ {
var audioSource = new CapturedChunkThenCancelAudioSource(new AudioChunk([1, 0, 2, 0], 16000, 1)); var audioSource = new CapturedChunkThenCancelAudioSource(new AudioChunk([1, 0, 2, 0], 16000, 1));
var artifactStore = new InMemoryMeetingArtifactStore(); var artifactStore = new InMemoryMeetingArtifactStore();
var metadataProvider = new BlockingMeetingMetadataProvider(new MeetingMetadata("Summary failure", [], "", null));
var coordinator = new MeetingRecordingCoordinator( var coordinator = new MeetingRecordingCoordinator(
audioSource, audioSource,
new TestSpeechRecognitionPipelineFactory(new FinalSegmentOnAudioCompletionProvider()), new TestSpeechRecognitionPipelineFactory(new FinalSegmentOnAudioCompletionProvider()),
@@ -3489,11 +3497,15 @@ public sealed class RecordingCoordinatorTests
new InMemoryRecordedAudioStore(), new InMemoryRecordedAudioStore(),
new CapturingMeetingSummaryPipeline(succeeded: false), new CapturingMeetingSummaryPipeline(succeeded: false),
Options.Create(CreateOptionsWithoutFinalizer()), Options.Create(CreateOptionsWithoutFinalizer()),
NullLogger<MeetingRecordingCoordinator>.Instance); NullLogger<MeetingRecordingCoordinator>.Instance,
meetingMetadataProvider: metadataProvider);
await coordinator.StartAsync(CancellationToken.None); await coordinator.StartAsync(CancellationToken.None);
await metadataProvider.WaitUntilRequestedAsync();
await audioSource.WaitUntilCapturedAsync(); await audioSource.WaitUntilCapturedAsync();
metadataProvider.Release();
await artifactStore.WaitUntilTranscribingAsync();
await coordinator.StopAsync(CancellationToken.None); await coordinator.StopAsync(CancellationToken.None);
Assert.Equal( Assert.Equal(
@@ -3527,6 +3539,7 @@ public sealed class RecordingCoordinatorTests
await coordinator.StartAsync(CancellationToken.None); await coordinator.StartAsync(CancellationToken.None);
await audioSource.WaitUntilCapturedAsync(); await audioSource.WaitUntilCapturedAsync();
await artifactStore.WaitUntilTranscribingAsync();
await coordinator.StopAsync(CancellationToken.None); await coordinator.StopAsync(CancellationToken.None);
@@ -4543,6 +4556,7 @@ public sealed class RecordingCoordinatorTests
private sealed class InMemoryMeetingArtifactStore : IMeetingArtifactStore private sealed class InMemoryMeetingArtifactStore : IMeetingArtifactStore
{ {
private readonly TaskCompletionSource transcribing = new(TaskCreationOptions.RunContinuationsAsynchronously);
private readonly bool createAssistantContextFile; private readonly bool createAssistantContextFile;
private bool failNextMetadataUpdate; private bool failNextMetadataUpdate;
@@ -4558,6 +4572,11 @@ public sealed class RecordingCoordinatorTests
public List<AssistantContextState> States { get; } = []; public List<AssistantContextState> States { get; } = [];
public Task WaitUntilTranscribingAsync()
{
return transcribing.Task.WaitAsync(TimeSpan.FromSeconds(15));
}
public string? Agenda { get; private set; } public string? Agenda { get; private set; }
public DateTimeOffset? ScheduledEnd { get; private set; } public DateTimeOffset? ScheduledEnd { get; private set; }
@@ -4599,6 +4618,10 @@ public sealed class RecordingCoordinatorTests
CancellationToken cancellationToken) CancellationToken cancellationToken)
{ {
States.Add(state); States.Add(state);
if (state == AssistantContextState.Transcribing)
{
transcribing.TrySetResult();
}
return Task.CompletedTask; return Task.CompletedTask;
} }
+2 -2
View File
@@ -5,7 +5,7 @@
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<PreserveCompilationContext>true</PreserveCompilationContext> <PreserveCompilationContext>true</PreserveCompilationContext>
<MicrosoftSpeechVersion>1.51.2</MicrosoftSpeechVersion> <MicrosoftSpeechVersion>1.52.0</MicrosoftSpeechVersion>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'"> <PropertyGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">
@@ -45,7 +45,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.Agents.AI.OpenAI" Version="1.21.0" /> <PackageReference Include="Microsoft.Agents.AI.OpenAI" Version="1.23.0" />
<PackageReference Include="DiffPlex" Version="1.9.0" /> <PackageReference Include="DiffPlex" Version="1.9.0" />
<PackageReference Include="Microsoft.CognitiveServices.Speech" Version="$(MicrosoftSpeechVersion)" /> <PackageReference Include="Microsoft.CognitiveServices.Speech" Version="$(MicrosoftSpeechVersion)" />
<PackageReference Include="Microsoft.CognitiveServices.Speech.Extension.MAS" Version="$(MicrosoftSpeechVersion)" ExcludeAssets="build" /> <PackageReference Include="Microsoft.CognitiveServices.Speech.Extension.MAS" Version="$(MicrosoftSpeechVersion)" ExcludeAssets="build" />
@@ -58,6 +58,12 @@ The summary agent SHALL be able to read and write the assistant context body as
- **WHEN** transcription, final speaker recognition, and summary generation progress - **WHEN** transcription, final speaker recognition, and summary generation progress
- **THEN** Meeting Assistant updates assistant context frontmatter state to `transcribing`, `speaker recognition`, `summarizing`, `finished`, or `error` as appropriate - **THEN** Meeting Assistant updates assistant context frontmatter state to `transcribing`, `speaker recognition`, `summarizing`, `finished`, or `error` as appropriate
#### Scenario: Summary failure follows initialized transcription
- **GIVEN** a meeting has completed its initial metadata collection and reached `transcribing`
- **WHEN** recording stops and automatic summary generation fails
- **THEN** assistant context transitions from `transcribing` to `summarizing` and then `error`
- **AND** observing captured audio alone does not establish that metadata collection has finished
#### Scenario: Summary pipeline is invoked #### Scenario: Summary pipeline is invoked
- **WHEN** transcript processing finishes for the current meeting - **WHEN** transcript processing finishes for the current meeting
- **THEN** the agent can read the transcript, assistant context, user notes, glossary, and bound project knowledge, can write the finished markdown summary to the configured summary note, and can update existing project files - **THEN** the agent can read the transcript, assistant context, user notes, glossary, and bound project knowledge, can write the finished markdown summary to the configured summary note, and can update existing project files
@@ -27,6 +27,12 @@ A `transcript_line` trigger MAY filter by speaker name.
- **THEN** the written transcript line contains `[redacted]` - **THEN** the written transcript line contains `[redacted]`
- **AND** the written transcript line does not contain `*****` - **AND** the written transcript line does not contain `*****`
#### Scenario: Live transcript verification does not obstruct durable writes
- **GIVEN** a live transcript line is being durably appended and then rewritten by a `transcript_line` rule
- **WHEN** automated behavior verification observes the live transcript file
- **THEN** its observer permits the ongoing append and rewrite rather than denying the writer access
- **AND** verification still requires the completed transcript line to contain the transformed text and no original masked profanity
### Requirement: Meeting automation rules support conditions and steps ### Requirement: Meeting automation rules support conditions and steps
Meeting Assistant SHALL support rule conditions using an expression engine. Meeting Assistant SHALL support rule conditions using an expression engine.