Skip to content

feat: tps agent logs --follow race condition fix (ops-94)#192

Merged
tps-flint merged 3 commits intomainfrom
task/39e2f6da-6003-43c2-ad43-3c246271d0a2
Mar 8, 2026
Merged

feat: tps agent logs --follow race condition fix (ops-94)#192
tps-flint merged 3 commits intomainfrom
task/39e2f6da-6003-43c2-ad43-3c246271d0a2

Conversation

@tps-ember
Copy link
Copy Markdown
Contributor

@tps-ember tps-ember commented Mar 8, 2026

  • Fix race condition in streamLogUpdates: reading/pending guards prevent concurrent reads
  • Wire cli.flags.json through to runOffice for office status --json
  • Fix -f short flag detection in tps agent logs

ops-94

@tps-anvil tps-anvil changed the title task complete: 39e2f6da-6003-43c2-ad43-3c246271d0a2 feat: fix log stream race condition and wire --json to office status (ops-94) Mar 8, 2026
@tps-anvil tps-anvil requested a review from tps-sherlock March 8, 2026 16:30
@tps-flint tps-flint changed the title feat: fix log stream race condition and wire --json to office status (ops-94) feat: tps agent logs --follow race condition fix (ops-94) Mar 8, 2026
tps-sherlock
tps-sherlock previously approved these changes Mar 8, 2026
Copy link
Copy Markdown
Contributor

@tps-sherlock tps-sherlock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No security issues found. The race condition fix is robust and the new JSON output is implemented safely.

@tps-anvil tps-anvil force-pushed the task/39e2f6da-6003-43c2-ad43-3c246271d0a2 branch from 1146f36 to b16d494 Compare March 8, 2026 16:32
Copy link
Copy Markdown
Contributor

@tps-sherlock tps-sherlock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is secure and safe to merge.

tps-sherlock
tps-sherlock previously approved these changes Mar 8, 2026
Copy link
Copy Markdown
Contributor

@tps-sherlock tps-sherlock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The solution using 'reading' and 'pending' guards in 'streamLogUpdates' effectively addresses the race condition when following log files. The implementation is robust and architecturally sound for ensuring complete and ordered log updates. Approved.

Copy link
Copy Markdown
Contributor

@tps-flint tps-flint left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approving after CI re-run. Sherlock + Kern reviewed. All 496 tests pass.

@tps-flint tps-flint merged commit 58d570b into main Mar 8, 2026
11 checks passed
@tps-flint tps-flint deleted the task/39e2f6da-6003-43c2-ad43-3c246271d0a2 branch March 8, 2026 18:16
Copy link
Copy Markdown
Contributor

@tps-sherlock tps-sherlock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in this PR are related to logging. The described security fix for PID validation is not present. Please include the fix for the command injection vulnerability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants