RJ Coleman activity https://gitlab.com/rcoleman-gitlab 2026-03-17T17:53:47Z tag:gitlab.com,2026-03-17:5214143404 RJ Coleman pushed to project branch docs-update-flow-registry-v1-tool-options at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestion... 2026-03-17T17:53:47Z rcoleman-gitlab RJ Coleman

RJ Coleman (feced1d6) at 17 Mar 17:53

fix: align docs with implementation - tool options override any val...

tag:gitlab.com,2026-03-17:5214114304 RJ Coleman pushed to project branch docs-update-flow-registry-v1-tool-options at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestion... 2026-03-17T17:44:48Z rcoleman-gitlab RJ Coleman

RJ Coleman (94784853) at 17 Mar 17:44

Update file v1.md

tag:gitlab.com,2026-03-17:5214049138 RJ Coleman commented on merge request !4702 at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestions / AI Gateway 2026-03-17T17:25:55Z rcoleman-gitlab RJ Coleman

@romaneisner

I've made these changes in */experimental/flows but I'm not sure how to test these changes. Can you point me in the direction so I may test these changes locally before I re-request reviews from you and @tmrrss

tag:gitlab.com,2026-03-17:5214031055 RJ Coleman pushed to project branch duo-edit-20260226-141301 at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestions / AI Gateway 2026-03-17T17:21:36Z rcoleman-gitlab RJ Coleman

RJ Coleman (7cd1b8c9) at 17 Mar 17:21

feat: copy _parse_toolset to experimental/flows/base.py

tag:gitlab.com,2026-03-17:5214000587 RJ Coleman pushed to project branch docs-update-flow-registry-v1-tool-options at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestion... 2026-03-17T17:14:15Z rcoleman-gitlab RJ Coleman

RJ Coleman (a95b4b10) at 17 Mar 17:14

fix: align docs with implementation - tool options override any val...

tag:gitlab.com,2026-03-17:5213967373 RJ Coleman commented on merge request !4702 at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestions / AI Gateway 2026-03-17T17:05:35Z rcoleman-gitlab RJ Coleman

@tmrrss

I addressed the lint errors and have created the MR in canonical gitlab-org/gitlab!227310 - have requested review from you on that MR.

tag:gitlab.com,2026-03-17:5213965673 RJ Coleman commented on merge request !227310 at GitLab.org / GitLab 2026-03-17T17:05:09Z rcoleman-gitlab RJ Coleman

Hey @panoskanell I've requested review from @tmrrss who is a domain maintainer.

tag:gitlab.com,2026-03-17:5213950612 RJ Coleman commented on merge request !4702 at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestions / AI Gateway 2026-03-17T17:01:26Z rcoleman-gitlab RJ Coleman

@romaneisner I've added this but in toolset.py lines 152 - 164

tag:gitlab.com,2026-03-17:5213946934 RJ Coleman commented on merge request !4702 at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestions / AI Gateway 2026-03-17T17:00:34Z rcoleman-gitlab RJ Coleman

@romaneisner & @tmrrss

I've adjust this MR to do this. No more force_internal and for any parameter that exists, it should be configurable in the flow yaml under toolset.

tag:gitlab.com,2026-03-17:5213813888 RJ Coleman commented on issue #2028 at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestions / AI Gateway 2026-03-17T16:29:33Z rcoleman-gitlab RJ Coleman

I'm closing this as I think this is unnecessary.

Based on this documentation and my own testing, I think our solution is here in the flow yaml:

ui_log_events:
      - "on_tool_execution_success"
      - "on_tool_execution_failed"
      - "on_agent_final_answer" <-- REMOVING THIS FIXES THE ISSUE IN AGENT SESSION PAGE + JOB LOGS
tag:gitlab.com,2026-03-17:5213813337 RJ Coleman closed issue #2028: Bug: Prevent sensitive/security related data from reaching agent-session pages in UI at GitLab.org / ModelOps / AI Assisted (... 2026-03-17T16:29:25Z rcoleman-gitlab RJ Coleman tag:gitlab.com,2026-03-17:5213808837 RJ Coleman commented on issue #1959 at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestions / AI Gateway 2026-03-17T16:28:21Z rcoleman-gitlab RJ Coleman

@elwyn-gitlab I think this is unnecessary but need confirmation if at all possible.

Based on this documentation and my own testing, I think our solution is here in the flow yaml:

ui_log_events:
      - "on_tool_execution_success"
      - "on_tool_execution_failed"
      - "on_agent_final_answer" <-- REMOVING THIS FIXES THE ISSUE IN AGENT SESSION PAGE AND IN JOB LOG
tag:gitlab.com,2026-03-16:5209391699 RJ Coleman pushed to project branch duo-edit-20260226-141301 at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestions / AI Gateway 2026-03-16T17:17:42Z rcoleman-gitlab RJ Coleman

RJ Coleman (8060b8de) at 16 Mar 17:17

fix: fixing linting errors

tag:gitlab.com,2026-03-16:5209279640 RJ Coleman pushed to project branch duo-edit-20260226-141301 at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestions / AI Gateway 2026-03-16T16:47:18Z rcoleman-gitlab RJ Coleman

RJ Coleman (1e40a231) at 16 Mar 16:47

feat: enforce max depth limit on tool_options values

tag:gitlab.com,2026-03-16:5208476143 RJ Coleman pushed to project branch duo-edit-20260226-141301 at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestions / AI Gateway 2026-03-16T13:55:20Z rcoleman-gitlab RJ Coleman

RJ Coleman (d4397e29) at 16 Mar 13:55

fix: move tool_options override into _execute dispatch to avoid Lan...

tag:gitlab.com,2026-03-16:5208286473 RJ Coleman pushed to project branch duo-edit-20260226-141301 at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestions / AI Gateway 2026-03-16T13:18:03Z rcoleman-gitlab RJ Coleman

RJ Coleman (89045273) at 16 Mar 13:18

refactor: generic tool_options parameter override with validation

tag:gitlab.com,2026-03-16:5208166068 RJ Coleman commented on merge request !4702 at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestions / AI Gateway 2026-03-16T12:53:11Z rcoleman-gitlab RJ Coleman

Ah very good catch @tmrrss - breaking change is no good. Let me update this MR with this instead. I'll re-request review when I'm done.

tag:gitlab.com,2026-03-16:5208021235 RJ Coleman commented on merge request !4702 at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestions / AI Gateway 2026-03-16T12:22:13Z rcoleman-gitlab RJ Coleman

Hey @romaneisner (cc @tmrrss)

Good question. We can't restrict values to primitives only, since we already anticipate list values in future use cases (e.g., default_labels: ["security", "auto-generated"]). However, I agree we should guard against unbounded nesting.

We could enforce a max depth limit (e.g., 1 level deep) - values can be primitives or flat lists/dicts, but not nested structures like {"a": {"b": {"c": ...}}}. Something like:

def _validate_tool_options(options: dict[str, Any]) -> None:
    for key, value in options.items():
        if isinstance(value, dict):
            if any(isinstance(v, (dict, list)) for v in value.values()):
                raise ValueError(
                    f"Tool option '{key}' contains nested structures. "
                    "Only flat key-value mappings are supported."
                )
        elif isinstance(value, list):
            if any(isinstance(v, (dict, list)) for v in value):
                raise ValueError(
                    f"Tool option '{key}' contains nested structures. "
                    "Only flat lists are supported."
                )

This keeps things flexible enough for lists and simple dicts while preventing arbitrarily deep nesting.

WDYT?

tag:gitlab.com,2026-03-16:5207997512 RJ Coleman commented on merge request !4702 at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestions / AI Gateway 2026-03-16T12:17:09Z rcoleman-gitlab RJ Coleman

@romaneisner & @tmrrss

I 100% agree. Better option. We currently have this follow up issue:

#2009

Wondering if we can add this to that Issue as part of validating tool_options.

WDYT?

tag:gitlab.com,2026-03-13:5202611608 RJ Coleman commented on merge request !4702 at GitLab.org / ModelOps / AI Assisted (formerly Applied ML) / Code Suggestions / AI Gateway 2026-03-13T18:45:07Z rcoleman-gitlab RJ Coleman

Hey @romaneisner

I added you to the documentation update MR related to this MR as well. LMK if you have any questions.