SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2606.10813 · 2026

REDACT: Redacting Agent Capability Traces for Procedural Skill Protection

Yi Fung, Zhitao He, Shuwen Xu

arXiv · PDF · Open in the Atlas

Code that ran

2 of 3 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2606.10813.json · badge: /api/ran/2606.10813.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
XuShuwenn/RedAct community
Papers with Code archive
2 ran · 1 no recorded run
FunctionStatusWhere it lives
ConfigLoader Ran
ran on a synthesized input
XuShuwenn/RedAct/redact/src/core/trajectory_rewriter.py
code served (permissive licence) · get_code("c2e320e8eaac0222")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
from pathlib import Path
import yaml

# Create a temporary directory and config file for testing
temp_dir = tempfile.mkdtemp()
config_dir = Path(temp_dir) / 'redact' / 'src' / 'configs'
config_dir.mkdir(parents=True, exist_ok=True)

# Create a minimal default.yaml
default_config = {
    'llm': {
        'model': 'gpt2',
        'temperature': 0.7
    },
    'redaction': {
        'enabled': True,
        'threshold': 0.5
    },
    'batch_size': 32
}

config_file = config_dir / 'default.yaml'
with open(config_file, 'w') as f:
    yaml.dump(default_config, f)

# Patch the DEFAULT_CONFIG_PATH to point to our temp config
from pathlib import Path
from typing import Optional, Any
import yaml

_default_config = None

class ConfigLoader:
    """YAML configuration loader."""
    DEFAULT_CONFIG_PATH = str(config_file)

    @classmethod
    def load(cls, config_path: Optional[str]=None) -> dict:
        """
        Load configuration.

        Args:
            config_path: Config file path. Defaults to default.yaml.

        Returns:
            Configuration dictionary.
        """
        global _default_config
        if config_path is None:
            config_path = cls.DEFAULT_CONFIG_PATH
        config_file = Path(config_path)
        if not config_file.exists():
            raise FileNotFoundError(f'Config file not found: {config_file}')
        with open(config_file, 'r', encoding='utf-8') as f:
            config = yaml.safe_load(f)
        _default_config = config
        return config

    @classmethod
    def get(cls, key: str, default: Any=None) -> Any:
        """
        Get a configuration value.

        Args:
            key: Configuration key. Dot-separated nested keys are supported,
                such as "llm.model".
            default: Default value.

        Returns:
            Configuration value.
        """
        global _default_config
        if _default_config is None:
            cls.load()
        keys = key.split('.')
        value = _default_config
        for k in keys:
            if isinstance(value, dict) and k in value:
                value = value[k]
            else:
                return default
        return value

    @classmethod
    def reload(cls) -> dict:
        """Reload configuration."""
        return cls.load()


# Setup for testing
INIT_ARGS = {}

ARGS = {
    'config_path': str(config_file)
}

METHOD = 'load'

# Execute
loader = ConfigLoader(**INIT_ARGS)
result = getattr(loader, METHOD)(**ARGS)
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
LLMClient Ran
ran on a synthesized input · constructed an object; no result was computed
XuShuwenn/RedAct/redact/src/core/trajectory_rewriter.py
code served (permissive licence) · get_code("5c6571853b655195")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, LLMClient: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
from unittest.mock import Mock, MagicMock, patch

# Set environment variables
os.environ['OPENAI_API_KEY'] = 'test-key-12345'
os.environ['OPENAI_BASE_URL'] = 'http://localhost:8000/v1'

# Create mock OpenAI client
mock_client = MagicMock()
mock_response = MagicMock()
mock_response.choices = [MagicMock()]
mock_response.choices[0].message.content = "Test response content"
mock_client.chat.completions.create.return_value = mock_response

# Patch OpenAI at module level before importing
with patch('os.getenv') as mock_getenv:
    def getenv_side_effect(key, default=None):
        env_map = {
            'OPENAI_API_KEY': 'test-key-12345',
            'OPENAI_BASE_URL': 'http://localhost:8000/v1',
            'API_KEY': None,
            'BASE_URL': None,
        }
        return env_map.get(key, default)
    
    mock_getenv.side_effect = getenv_side_effect

ARGS = {
    'api_key': 'test-api-key-xyz',
    'base_url': 'http://localhost:8000/v1',
    'model': 'gpt-4',
    'temperature': 0.5,
    'max_tokens': 2048,
    'timeout': 60
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
openai, yaml — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type LLMClient — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a LLMClient output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
TrajectoryRewriter Not yet run
unverified (harvested, no recorded run)
XuShuwenn/RedAct/redact/src/core/trajectory_rewriter.py
code served (permissive licence) · get_code("b7b086b2979b2331")
How it ran

no invocation recorded.

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Users rely on execution traces to observe agent behavior, diagnose failures, and ensure accountability. These traces contain rich procedural detail, including tool invocations, intermediate decisions, and error-recovery logic. Yet this detail can expose private procedural skills, allowing downstream methods to recover key formulas, thresholds, and strategies without access to model weights or skill files. To quantify this risk and evaluate protection, we construct CAPTRACEBENCH, a benchmark of 75 specialized long-horizon tasks and 154 curated skills across seven domains. We also introduce REDACT 1 , a protected trace release framework that localizes protected key information, rewrites traces while preserving verifier-critical evidence, and embeds behavioral watermarks for downstream provenance analysis. Across representative trace reuse methods, REDACT reduces normalized skill transfer (NST) from 44.7-67.1% on raw traces to below the no-skill baseline, while preserving audit evidence. Its standalone behavioral watermarks reach 93.6-100.0% true detection with a false alarm rate of at most 1.9%. These results frame public agent traces as security interfaces and show that selective redaction can reduce procedural capability leakage without removing audit evidence.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2606.10813")
get_code_for_paper("2606.10813")
have("2606.10813")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2606.10813.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2606.10813.svg)](https://syntology.ai/paper/2606.10813)

Connect an agent — have() is free.