SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.19913 · 2026

JANUS: Foreseeing Latent Risk for Long-Horizon Agent Safety

Lijun Li, Shizhu He, Yequan Wang, Yuan Xiong, Linji Hao

arXiv · PDF · Open in the Atlas

Code that ran

10 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 9 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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/2607.19913.json · badge: /api/ran/2607.19913.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
xiongyuaay/JANUS canonical (classifier label)
classifier basis: census
10 ran · 1 no recorded run
FunctionStatusWhere it lives
benchmark_from_path Ran
ran; our contract draft was wrong, not the code
xiongyuaay/JANUS/eval_framework_online/annotate_unified.py
pointer only (licence: NONE) · get_code("f6ce89f17d0c24e7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiongyuaay/JANUS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_chat_client Ran
ran; our contract draft was wrong, not the code
xiongyuaay/JANUS/eval_framework_online/unified_safety_eval/model_client.py
pointer only (licence: NONE) · get_code("7b16e257f15fb49c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiongyuaay/JANUS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

content_text Ran
ran; our contract draft was wrong, not the code
xiongyuaay/JANUS/eval_framework_online/annotate_final_outputs.py
pointer only (licence: NONE) · get_code("63fa9db990ee7ef1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiongyuaay/JANUS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_failed_case_record Ran
ran; our contract draft was wrong, not the code
xiongyuaay/JANUS/trajectory_pipeline/src/trace.py
pointer only (licence: NONE) · get_code("04f6fe21389ee682")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiongyuaay/JANUS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

deep_get Ran
ran; our contract draft was wrong, not the code
xiongyuaay/JANUS/eval_framework_online/unified_safety_eval/config.py
pointer only (licence: NONE) · get_code("7b04aadc1ecb8dbc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiongyuaay/JANUS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_case Ran
ran; our contract draft was wrong, not the code
xiongyuaay/JANUS/trajectory_pipeline/src/trace.py
pointer only (licence: NONE) · get_code("5dbd2979f844d5cb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiongyuaay/JANUS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_case_files Ran
ran; our contract draft was wrong, not the code
xiongyuaay/JANUS/trajectory_pipeline/src/trace.py
pointer only (licence: NONE) · get_code("0bb7a3a207b83f62")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiongyuaay/JANUS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_json Ran
ran; our contract draft was wrong, not the code
xiongyuaay/JANUS/eval_framework_online/annotate_final_outputs.py
pointer only (licence: NONE) · get_code("a145434950c05a50")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiongyuaay/JANUS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sync_tree Ran
ran on a synthesized input
xiongyuaay/JANUS/eval_framework_online/annotate_unified.py
pointer only (licence: NONE) · get_code("be0ed5320ae993ab")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiongyuaay/JANUS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

textify Ran
ran; our contract draft was wrong, not the code
xiongyuaay/JANUS/eval_framework_online/annotate_final_outputs.py
pointer only (licence: NONE) · get_code("5b709aa6c18114c1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiongyuaay/JANUS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

load_config Not yet run
unverified (harvested, no recorded run)
xiongyuaay/JANUS/eval_framework_online/unified_safety_eval/config.py
pointer only (licence: NONE) · get_code("b85da31adba94cba")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xiongyuaay/JANUS when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 10 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.

FunctionAlso present inEarliest-datedOthers named
load_json 1 other paper
1 dated earlier
2502.18770 (2025-02)
Reward Shaping to Mitigate Reward Hacking in RLHF

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-23.

Repositories linked to this paper

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

Abstract

Agent safety is moving from content moderation toward preventing operational failures before tool-using agents act. We propose Janus, a foresight-oriented framework for longhorizon agent safety that trains guards to anticipate delayed risks from partial trajectories. Janus synthesizes diverse agent trajectories via multi-agent simulation and learns a shared policy with two coupled tasks: an anticipation task that forecasts safety-relevant futures and an adjudication task that decides safety from both the observed prefix and anticipated future. The two tasks are jointly optimized with CoAA-RL, which rewards forecasts by their utility for downstream safety judgment. The resulting guard model, Vanguard, blocks unsafe actions before execution. Across four agent-safety benchmarks, Vanguard improves average protection by 15.9 percentage points over baseline guards while increasing benign task completion by 5.1 percentage points. The code and data are available at https://github.com/xiongyuaay/JANUS.

For agents

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

get_harvested_code_for_paper("2607.19913")
get_code_for_paper("2607.19913")
have("2607.19913")

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

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

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

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

Connect an agent — have() is free.