-
Notifications
You must be signed in to change notification settings - Fork 0
fix: clarify closed-loop timing and frozen capture semantics #131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
masarray
merged 20 commits into
main
from
agent/p0-evidence-semantics-operator-timing-ux
Aug 9, 2026
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
75e41fb
feat: add operator timing semantics helpers
masarray 97673d5
fix: separate BI timing from capture frame semantics
masarray 238292b
feat: make frozen capture and timing rail explicit
masarray ececea6
ux: clarify relay LED live and latched semantics
masarray 7c09182
fix: order closed-loop timeline by event timestamp
masarray f4d39d1
fix: separate relay and test-set timing events
masarray 3bd09c4
feat: make closed-loop timing strip operator-visible
masarray d8b5865
fix: clarify native relay pickup and trip indicators
masarray 3cb2586
fix: import WPF controls for frozen timing labels
masarray 932029e
perf: keep ANY pickup check allocation-free
masarray 23c1219
fix: scope timing tooltip to active closed-loop run
masarray b21b485
fix: clear prior timing tooltip on relay reset
masarray 9e9bf9c
fix: make closed-loop relay reset a single settle transaction
masarray d8c7e75
fix: make relay reset wait for one-click re-arm postcondition
masarray 775a416
fix: route P6 RESET through authoritative reset transaction
masarray 5d4be17
test: require one-click reset to fully release desktop feedback
masarray 5559a78
test: lock P6 reset to unified relay transaction
masarray 7bd1582
test: keep alarm ACK separate from unified relay reset
masarray 8ee5b4b
test: require P6 RESET to use unified equipment authority
masarray 3f37c97
test: preserve evidence history through unified reset authority
masarray File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| using System.Windows; | ||
| using System.Windows.Controls; | ||
| using System.Windows.Threading; | ||
|
|
||
| namespace Arvrel.App; | ||
|
|
||
| public partial class MainWindow | ||
| { | ||
| private const int ClosedLoopOperatorClarityMaximumAttempts = 24; | ||
| private bool _closedLoopTimingPanelReflowed; | ||
| private bool _closedLoopSetpointHeadersClarified; | ||
| private int _closedLoopOperatorClarityAttempts; | ||
|
|
||
| internal void InitializeClosedLoopOperatorClarity() | ||
| { | ||
| if (_closedLoopTimingPanelReflowed && _closedLoopSetpointHeadersClarified) | ||
| return; | ||
|
|
||
| if (!IsLoaded || _virtualInjectionView is null) | ||
| { | ||
| RetryClosedLoopOperatorClarity(); | ||
| return; | ||
| } | ||
|
|
||
| if (!_closedLoopTimingPanelReflowed) | ||
| _closedLoopTimingPanelReflowed = TryReflowClosedLoopTimingPanel(); | ||
| if (!_closedLoopSetpointHeadersClarified) | ||
| _closedLoopSetpointHeadersClarified = TryClarifyInjectionSetpointHeaders(); | ||
|
|
||
| if (!_closedLoopTimingPanelReflowed || !_closedLoopSetpointHeadersClarified) | ||
| RetryClosedLoopOperatorClarity(); | ||
| } | ||
|
|
||
| private void RetryClosedLoopOperatorClarity() | ||
| { | ||
| if (_closedLoopOperatorClarityAttempts++ >= ClosedLoopOperatorClarityMaximumAttempts) | ||
| return; | ||
|
|
||
| Dispatcher.BeginInvoke( | ||
| DispatcherPriority.ApplicationIdle, | ||
| new Action(InitializeClosedLoopOperatorClarity)); | ||
| } | ||
|
|
||
| private bool TryReflowClosedLoopTimingPanel() | ||
| { | ||
| if (_virtualInjectionView is null || _testSetTimingPanel is null) | ||
| return false; | ||
|
|
||
| var footer = _virtualInjectionView.Children | ||
| .OfType<Grid>() | ||
| .FirstOrDefault(child => Grid.GetRow(child) == 2); | ||
| if (footer is null) | ||
| return false; | ||
|
|
||
| // The timing result is primary test-equipment information, not a narrow | ||
| // accessory beside CT controls. Give it one full row and keep source/CT | ||
| // actions on the lower row. | ||
| if (_virtualInjectionView.RowDefinitions.Count >= 3) | ||
| _virtualInjectionView.RowDefinitions[2].Height = new GridLength(92); | ||
|
|
||
| footer.RowDefinitions.Clear(); | ||
| footer.RowDefinitions.Add(new RowDefinition { Height = new GridLength(51) }); | ||
| footer.RowDefinitions.Add(new RowDefinition { Height = new GridLength(36) }); | ||
|
|
||
| foreach (UIElement child in footer.Children.Cast<UIElement>().ToArray()) | ||
| { | ||
| Grid.SetRowSpan(child, 1); | ||
| if (ReferenceEquals(child, _testSetTimingPanel)) | ||
| continue; | ||
|
|
||
| Grid.SetRow(child, 1); | ||
| if (child is FrameworkElement element) | ||
| element.VerticalAlignment = VerticalAlignment.Center; | ||
| } | ||
|
|
||
| Grid.SetRow(_testSetTimingPanel, 0); | ||
| Grid.SetColumn(_testSetTimingPanel, 0); | ||
| Grid.SetColumnSpan(_testSetTimingPanel, Math.Max(1, footer.ColumnDefinitions.Count)); | ||
| _testSetTimingPanel.Margin = new Thickness(0, 0, 0, 5); | ||
| _testSetTimingPanel.HorizontalAlignment = HorizontalAlignment.Stretch; | ||
| _testSetTimingPanel.VerticalAlignment = VerticalAlignment.Stretch; | ||
|
|
||
| return true; | ||
| } | ||
|
|
||
| private bool TryClarifyInjectionSetpointHeaders() | ||
| { | ||
| if (_virtualInjectionView is null) | ||
| return false; | ||
|
|
||
| var table = _virtualInjectionView.Children | ||
| .OfType<DataGrid>() | ||
| .FirstOrDefault(child => Grid.GetRow(child) == 1); | ||
| if (table is null || table.Columns.Count < 4) | ||
| return false; | ||
|
|
||
| table.Columns[2].Header = "RMS SET"; | ||
| table.Columns[3].Header = "ANGLE SET"; | ||
| table.ToolTip = | ||
| "Configured source setpoints. After auto-stop these values are retained for repeatability; " + | ||
| "the OUTPUT OFF / FROZEN CAPTURE banner is the authority for actual output state."; | ||
| return true; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.