Skip to content

Handle queue and task allocation failures before starting sensor work - #1034

Merged
msitarzewski merged 1 commit into
msitarzewski:mainfrom
rudycelekli:fix/agency-sensor-startup-failure-more20-20261005
Oct 6, 2026
Merged

msitarzewski merged 1 commit into
msitarzewski:mainfrom
rudycelekli:fix/agency-sensor-startup-failure-more20-20261005

Conversation

@rudycelekli

Copy link
Copy Markdown
Contributor

Problem and change

A failed queue allocation still starts sensor_task with a null queue; a failed task allocation leaks the successful queue. Guard both startup failures and release only the unowned queue.

This changes one existing agent profile. No generated conversion output or new repository tooling is included.

Verification

  • Extracted the actual upstream example and reproduced the defect before the fix; the same regression passes after the change.
  • bash scripts/lint-agents.sh engineering/engineering-embedded-firmware-engineer.md passed.
  • bash scripts/test-convert-outputs.sh --drift=advisory passed for the complete roster and every supported converter. Expected content manifest drift is advisory; the manifest is unchanged.

Native C tests use controlled FreeRTOS function seams; no ESP32 board or real-time scheduling claim.

New content is coordinated in #917. Related examples/tests are available on request; local proof fixtures are kept outside the upstream source tree.

AI assistance

Prepared with Codex assistance. The patch and native reproduction were reviewed before submission. Signed commit includes the DCO sign-off.

Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
@msitarzewski
msitarzewski merged commit e51a805 into msitarzewski:main Oct 6, 2026
8 checks passed
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.

2 participants