summaryrefslogtreecommitdiff
path: root/makima/src/server
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-01-31 22:51:47 +0000
committersoryu <soryu@soryu.co>2026-01-31 22:51:47 +0000
commitc7336735050be3722d71a178dcbd180641043b72 (patch)
tree00a4018f374162d38e27f99174b432853d0a23db /makima/src/server
parent13a92411b6710da18952e5f5bf4043d0521da38b (diff)
downloadsoryu-makima/task-task-21748e1d-21748e1d.tar.gz
soryu-makima/task-task-21748e1d-21748e1d.zip
[WIP] Heartbeat checkpoint - 2026-01-31 22:51:47 UTCmakima/task-task-21748e1d-21748e1d
Diffstat (limited to 'makima/src/server')
-rw-r--r--makima/src/server/handlers/mesh_red_team.rs14
1 files changed, 12 insertions, 2 deletions
diff --git a/makima/src/server/handlers/mesh_red_team.rs b/makima/src/server/handlers/mesh_red_team.rs
index 1d8e0b0..2822baa 100644
--- a/makima/src/server/handlers/mesh_red_team.rs
+++ b/makima/src/server/handlers/mesh_red_team.rs
@@ -793,11 +793,21 @@ pub async fn get_task_diff(
///
/// This helper function can be used by the red team to filter task output
/// notifications to only include outputs from work tasks in its contract.
+///
+/// # Arguments
+/// * `notification` - The task output notification to filter
+/// * `_contract_id` - The contract ID to filter for (used in database lookup)
+/// * `owner_id` - The owner ID for data isolation
+/// * `_pool` - Database pool for looking up task contract association
+///
+/// # Note
+/// This is a simplified check. Full contract association verification
+/// requires a database lookup which should be done at the subscription level.
pub fn filter_task_output_for_contract(
notification: &TaskOutputNotification,
- contract_id: Uuid,
+ _contract_id: Uuid,
owner_id: Uuid,
- pool: &sqlx::PgPool,
+ _pool: &sqlx::PgPool,
) -> bool {
// Note: This is a placeholder for the actual filtering logic.
// In practice, the filtering would be done at the subscription level