arXiv · 2608.18580

Fine-grained Agentic Construction of Executable Tasks

FACET

Preserving Source Intent and Executable State in Terminal Task Synthesis

Kou Shi,Zun Wang,Qisheng Su,Shiting Huang,Ziao Zhang,Zhen Fang,Qingnan Ren,Jin Liu,Yu Zeng,Yiming Zhao,Lin Chen,Zehui Chen,Feng Zhao*

University of Science and Technology of China · Shanghai AI Laboratory · Fudan University

stokou@mail.ustc.edu.cn · * Corresponding author

facet / pipeline● live state

$ facet build --grounded

01scenario.reconstruct()recover intent + dependencies
02environment.realize()build → inspect → repair
03artifacts.align(state)instruction · solution · verifier
Executable task acceptedshared state · dense tests · clean validation
6,078Validated in study
22.77Tests per task
1.2KTraining trajectories
+8.24Best absolute gain

Build the world first.
Then write the task.

A terminal task couples an instruction, environment, solution, and verifier. One mismatch can invalidate the whole task.

FACET preserves source knowledge and grounds every artifact in the same realized environment.

From scattered skills to verified tasks.

Three stages. One continuous information path.

01Acquire

Information source acquisition

Collect, filter, and understand reusable agent skills, then organize them into a scenario–skill repository.

71K+ valid skillsScenario extraction
02Reconstruct

Scenario & reference building

Recover goals, dependencies, intermediate states, tools, and I/O contracts before building aligned instruction and solution references.

Five-dimensional viewIntent preserved
03Ground

Environment-driven construction

Realize the environment first, ground every artifact in the same container state, and repair only the component that fails.

Shared executable stateTargeted repair
The three-stage FACET pipeline, from information source acquisition through scenario reconstruction to environment-driven task construction
FACET pipeline. Source acquisition, agentic scenario reconstruction, and environment-driven construction produce a complete executable Harbor task.

One state.
Every artifact aligned.

Environment changes are not hidden in a textual handoff. Files, paths, ports, packages, schemas, and fixtures are visible to each generator in sequence.

  • 01Instruction grounded in the realized initial state
  • 02Solution executed against the same environment
  • 03Verifier observes both initial and final states
Instruction
Solution
Verifier
realizede₀ → eₜexecutable state

Consistent gains across scales.

Fine-tuning with only 1.2K successful trajectories.

Qwen3.5-4B+7.12
Base
17.60
FACET
24.72
Qwen3.5-9B+8.24
Base
27.34
FACET
35.58
Qwen3.5-27B+6.75
Base
40.82
FACET
47.57

The 27B model reaches 47.57—within 1.49 points of Qwen3.5-397B under the same evaluation setting, at roughly 1/15 the model size.

Data and models are available.

6,020 public-release tasks and three fine-tuned Qwen3.5 checkpoints.

83/100

Sequential grounding yields more valid tasks.

The forward order—environment, instruction, solution, then solution-aware verifier—reaches an 83% final yield, compared with 63% for reverse and 65% for joint generation.

Forward83%
Joint65%
Reverse63%

More data. Less narration.

Compact comparisons from the paper and appendix.

A.1

Terminal-agent dataset comparison

Same Terminus-2 scaffold. P@k in percent.

DatasetTrajectoryTask
# Traj.Turns# TasksTestsP@1P@3
Nemotron-Terminal5K6.1215K6.1840.6748.00
Endless-Terminals2004.532,4925.5183.0087.00
Terminal-Lego32K5.7715K16.6047.0049.00
TerminalWorld20011.941,5303.9857.0082.00
Tmax50011.1415K3.2980.0086.00
FACET (ours)1.2K11.866,07822.7727.0035.00
A.2

Terminal-Bench 2.1

ModelSizeBaseFACETΔ
Qwen3.5-4B4B17.6024.72+7.12
Qwen3.5-9B9B27.3435.58+8.24
Qwen3.5-27B27B40.8247.57+6.75
Qwen3.5-397B-A17B397B49.06reference
A.3

Generation order

SchemeValidatedInitialFinal yield
Forward9946.5%83/100
Joint9637.5%65/100
Reverse9124.2%63/100
A.4

Construction funnel

StageCountRetention
Scenario–skill seeds7,852
Successful environments7,50495.70%
First-pass valid tasks2,85638.35%
Final validated tasks6,07881.63%
A.5

Successful trajectories

StatisticValue
Observation commands84.7%
Observation-only first turn95.6%
Action → observation53.1%
Top ten commands88.4%

Build on FACET.

FACET is available as arXiv:2608.18580.

@misc{shi2026facet,
  title   = {{FACET}: Preserving Source Intent and Executable
             State in Terminal Task Synthesis},
  author  = {Kou Shi and Zun Wang and Qisheng Su and
             Shiting Huang and Ziao Zhang and Zhen Fang and
             Qingnan Ren and Jin Liu and Yu Zeng and
             Yiming Zhao and Lin Chen and Zehui Chen and Feng Zhao},
  year    = {2026},
  eprint  = {2608.18580},
  archivePrefix = {arXiv},
  primaryClass  = {cs.AI},
  url     = {https://arxiv.org/abs/2608.18580}
}