Skip to content

fix(agent): enforce robot search --fields output contract Refs #1735#879

Merged
AlexMikhalev merged 5 commits into
mainfrom
task/1735-robot-fields-contract
May 18, 2026
Merged

fix(agent): enforce robot search --fields output contract Refs #1735#879
AlexMikhalev merged 5 commits into
mainfrom
task/1735-robot-fields-contract

Conversation

@AlexMikhalev
Copy link
Copy Markdown
Contributor

Summary

RobotFormatter::format now applies field-mode filtering. Full/Summary/Minimal/Custom modes drop the correct fields from results.

Verification

  • 6 new tests: full, minimal, summary, custom, non-search passthrough
  • cargo fmt, cargo clippy, cargo test: clean

Refs terraphim/terraphim-ai#1735 (Gitea)

Alex and others added 5 commits May 18, 2026 14:10
…ed Refs #1733

Convert advisory permission warning to hard error. An attacker
who can write the artifact file can forge both bytes and checksums
together, making the checksum gate useless for integrity.

Changes:
- medical_artifact.rs: world-writable and group-writable artifacts
  now bail before any data is read on Unix.
- sharded_extractor.rs: update SAFETY comment to list both
  enforced gates (permission check + checksum verification).
- Tests: replace advisory-success test with rejection tests for
  world-writable and group-writable, add secure-permissions test.
@AlexMikhalev AlexMikhalev merged commit 4d077dd into main May 18, 2026
@AlexMikhalev AlexMikhalev deleted the task/1735-robot-fields-contract branch May 18, 2026 13:46
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.

1 participant