WIP fase 2b-2: rimosso login ChatGPT/OAuth/device code, agent/workload identity, backend-client; resta solo chiave API (test non tutti verdi)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
andrea.difonzo
2026-11-10 06:00:44 +01:00
parent 82347a58ed
commit 231e8cd136
661 changed files with 4924 additions and 64817 deletions

View File

@@ -1,8 +0,0 @@
---
source: app-server/tests/suite/v2/thread_resume_account_tests.rs
expression: "serde_json::to_string_pretty(&error.error)?"
---
{
"code": -32600,
"message": "This thread was created with a different ChatGPT account or workspace. Sign in with the original account to resume it."
}

View File

@@ -0,0 +1,211 @@
---
source: app-server/tests/suite/v2/thread_sample.rs
assertion_line: 359
expression: "context_snapshot::format_request_history_snapshot(\"A parent uses high effort with custom instructions, client tools, permission tools, and priority service. A medium-effort sample, prediction fork, and subsequent parent turn preserve the same request context and high request-effort baseline.\",\n&requests, &ContextSnapshotOptions::default().include_request_settings(),)"
---
Scenario: A parent uses high effort with custom instructions, client tools, permission tools, and priority service. A medium-effort sample, prediction fork, and subsequent parent turn preserve the same request context and high request-effort baseline.
## Window 1
Settings:
include: ["reasoning.encrypted_content"]
model: "gpt-5.4"
parallel_tool_calls: false
prompt_cache_key: "<PROMPT_CACHE_KEY 1>"
reasoning: {"context":"all_turns","effort":"high","summary":"auto"}
service_tier: "priority"
store: false
stream: true
tool_choice: "auto"
-- request 1 (turn) --
00:additional_tools/developer (3; hash=bf13940dee826ebd):
- namespace/functions; hash=028af59ad835936d
- function/exec_command
- function/write_stdin
- function/request_user_input
- function/request_permissions
- function/view_image
- function/get_goal
- function/create_goal
- function/update_goal
- function/parent_tool
- namespace/multi_agent_v1: Tools for spawning and managing sub-agents.; hash=c826e5b07fd2820f
- function/close_agent
- function/resume_agent
- function/send_input
- function/spawn_agent
- function/wait_agent
- namespace/web: Tools in the web namespace.; hash=0037b1ed8d50fab5
- function/run
01:message/developer:
Retain these base instructions.
02:message/developer[4]:
[01] Retain this system policy context.
[02] <skills_instructions>
## Skills
A skill is a set of local instructions to follow that is stored in a `SKILL.md` file. Below is the list ...ed into an absolute path using the skill roots table. [hash=ca27c3957f42502b]
### Skill roots
- `r0` = `<SKILLS_ROOT>`
- `r1` = `<SKILLS_ROOT>/.system`
### Available skills
- imagegen: Generate or edit raster images when the task benefits from AI-created bitmap visuals such as...ctly in HTML/CSS/canvas. (file: r1/imagegen/SKILL.md) [hash=dcccaed407aafb03]
- openai-docs: API first-timers, Codex/Work Q&A. If the user already has an OpenAI API integration, skip...upplied text or data. (file: r1/openai-docs/SKILL.md) [hash=8ba7f79795ddc1cb]
- skill-creator: Create or update a Codex skill with appropriately scoped instructions and any needed supporting resources. (file: r1/skill-creator/SKILL.md)
- skill-installer: Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo pat...g private repos). (file: r1/skill-installer/SKILL.md) [hash=80e87da510d34d88]
- app-store-screenshots: App Store and Google Play screenshot creation with exact platform specs. Covers...ore listing (file: r0/app-store-screenshots/SKILL.md) [hash=3f178aa58b5c4f8e]
- assistant-ui: Overview and router for assistant-ui, the React library for building AI chat interfaces ...d by those siblings. (file: r0/assistant-ui/SKILL.md) [hash=61291772e6f2139c]
- find-skills: Helps users discover and install agent skills when they ask questions like "how do I do X...an installable skill. (file: r0/find-skills/SKILL.md) [hash=48b9e99d9200af8d]
- remotion-best-practices: Best practices for Remotion - Video creation in React (file: r0/remotion-best-practices/SKILL.md)
</skills_instructions>
[03] <permissions instructions>
Filesystem sandboxing defines which files can be read or written. `sandbox_mode` is `read-only`: The san... permits reading files. Network access is restricted. [hash=be7da4425f89053c]
Approval policy is currently never. Do not provide the `sandbox_permissions` for any reason, commands will be rejected.
</permissions instructions>
[04] <collaboration_mode>Keep the parent's planning instructions.</collaboration_mode>
03:message/user:
<environment_context>
<cwd><CWD></cwd>
<shell><HOST_SHELL></shell>
<current_date><CURRENT_DATE></current_date>
<timezone><HOST_TIMEZONE></timezone>
<filesystem><workspace_roots><root><CWD></root></workspace_roots><permission_profile type="managed"><f...ntry></file_system></permission_profile></filesystem> [hash=e8c1de60307d0a3d]
</environment_context>
04:message/user:
Initial turn
05:configuration_update:reasoning={"effort":"high"}
-- request 2 (turn) --
06:reasoning:summary=Check the release.:encrypted=true
07:message/assistant:
Done
08:message/user:
Continue identically
09:configuration_update:reasoning={"effort":"medium"}
## Window 2 (after request 2: input repeated)
Settings: same as window 1
-- request 3 (turn) --
00:additional_tools/developer (3; hash=bf13940dee826ebd):
- namespace/functions; hash=028af59ad835936d
- function/exec_command
- function/write_stdin
- function/request_user_input
- function/request_permissions
- function/view_image
- function/get_goal
- function/create_goal
- function/update_goal
- function/parent_tool
- namespace/multi_agent_v1: Tools for spawning and managing sub-agents.; hash=c826e5b07fd2820f
- function/close_agent
- function/resume_agent
- function/send_input
- function/spawn_agent
- function/wait_agent
- namespace/web: Tools in the web namespace.; hash=0037b1ed8d50fab5
- function/run
01:message/developer:
Retain these base instructions.
02:message/developer[4]:
[01] Retain this system policy context.
[02] <skills_instructions>
## Skills
A skill is a set of local instructions to follow that is stored in a `SKILL.md` file. Below is the list ...ed into an absolute path using the skill roots table. [hash=ca27c3957f42502b]
### Skill roots
- `r0` = `<SKILLS_ROOT>`
- `r1` = `<SKILLS_ROOT>/.system`
### Available skills
- imagegen: Generate or edit raster images when the task benefits from AI-created bitmap visuals such as...ctly in HTML/CSS/canvas. (file: r1/imagegen/SKILL.md) [hash=dcccaed407aafb03]
- openai-docs: API first-timers, Codex/Work Q&A. If the user already has an OpenAI API integration, skip...upplied text or data. (file: r1/openai-docs/SKILL.md) [hash=8ba7f79795ddc1cb]
- skill-creator: Create or update a Codex skill with appropriately scoped instructions and any needed supporting resources. (file: r1/skill-creator/SKILL.md)
- skill-installer: Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo pat...g private repos). (file: r1/skill-installer/SKILL.md) [hash=80e87da510d34d88]
- app-store-screenshots: App Store and Google Play screenshot creation with exact platform specs. Covers...ore listing (file: r0/app-store-screenshots/SKILL.md) [hash=3f178aa58b5c4f8e]
- assistant-ui: Overview and router for assistant-ui, the React library for building AI chat interfaces ...d by those siblings. (file: r0/assistant-ui/SKILL.md) [hash=61291772e6f2139c]
- find-skills: Helps users discover and install agent skills when they ask questions like "how do I do X...an installable skill. (file: r0/find-skills/SKILL.md) [hash=48b9e99d9200af8d]
- remotion-best-practices: Best practices for Remotion - Video creation in React (file: r0/remotion-best-practices/SKILL.md)
</skills_instructions>
[03] <permissions instructions>
Filesystem sandboxing defines which files can be read or written. `sandbox_mode` is `read-only`: The san... permits reading files. Network access is restricted. [hash=be7da4425f89053c]
Approval policy is currently never. Do not provide the `sandbox_permissions` for any reason, commands will be rejected.
</permissions instructions>
[04] <collaboration_mode>Keep the parent's planning instructions.</collaboration_mode>
03:message/user:
<environment_context>
<cwd><CWD></cwd>
<shell><HOST_SHELL></shell>
<current_date><CURRENT_DATE></current_date>
<timezone><HOST_TIMEZONE></timezone>
<filesystem><workspace_roots><root><CWD></root></workspace_roots><permission_profile type="managed"><f...ntry></file_system></permission_profile></filesystem> [hash=e8c1de60307d0a3d]
</environment_context>
04:message/user:
Initial turn
05:configuration_update:reasoning={"effort":"high"}
06:reasoning:summary=Check the release.:encrypted=true
07:message/assistant:
Done
08:message/user:
Continue identically
09:configuration_update:reasoning={"effort":"medium"}
## Window 3 (after request 3: input repeated)
Settings: same as window 1
-- request 4 (turn) --
00:additional_tools/developer (3; hash=bf13940dee826ebd):
- namespace/functions; hash=028af59ad835936d
- function/exec_command
- function/write_stdin
- function/request_user_input
- function/request_permissions
- function/view_image
- function/get_goal
- function/create_goal
- function/update_goal
- function/parent_tool
- namespace/multi_agent_v1: Tools for spawning and managing sub-agents.; hash=c826e5b07fd2820f
- function/close_agent
- function/resume_agent
- function/send_input
- function/spawn_agent
- function/wait_agent
- namespace/web: Tools in the web namespace.; hash=0037b1ed8d50fab5
- function/run
01:message/developer:
Retain these base instructions.
02:message/developer[4]:
[01] Retain this system policy context.
[02] <skills_instructions>
## Skills
A skill is a set of local instructions to follow that is stored in a `SKILL.md` file. Below is the list ...ed into an absolute path using the skill roots table. [hash=ca27c3957f42502b]
### Skill roots
- `r0` = `<SKILLS_ROOT>`
- `r1` = `<SKILLS_ROOT>/.system`
### Available skills
- imagegen: Generate or edit raster images when the task benefits from AI-created bitmap visuals such as...ctly in HTML/CSS/canvas. (file: r1/imagegen/SKILL.md) [hash=dcccaed407aafb03]
- openai-docs: API first-timers, Codex/Work Q&A. If the user already has an OpenAI API integration, skip...upplied text or data. (file: r1/openai-docs/SKILL.md) [hash=8ba7f79795ddc1cb]
- skill-creator: Create or update a Codex skill with appropriately scoped instructions and any needed supporting resources. (file: r1/skill-creator/SKILL.md)
- skill-installer: Install Codex skills into $CODEX_HOME/skills from a curated list or a GitHub repo pat...g private repos). (file: r1/skill-installer/SKILL.md) [hash=80e87da510d34d88]
- app-store-screenshots: App Store and Google Play screenshot creation with exact platform specs. Covers...ore listing (file: r0/app-store-screenshots/SKILL.md) [hash=3f178aa58b5c4f8e]
- assistant-ui: Overview and router for assistant-ui, the React library for building AI chat interfaces ...d by those siblings. (file: r0/assistant-ui/SKILL.md) [hash=61291772e6f2139c]
- find-skills: Helps users discover and install agent skills when they ask questions like "how do I do X...an installable skill. (file: r0/find-skills/SKILL.md) [hash=48b9e99d9200af8d]
- remotion-best-practices: Best practices for Remotion - Video creation in React (file: r0/remotion-best-practices/SKILL.md)
</skills_instructions>
[03] <permissions instructions>
Filesystem sandboxing defines which files can be read or written. `sandbox_mode` is `read-only`: The san... permits reading files. Network access is restricted. [hash=be7da4425f89053c]
Approval policy is currently never. Do not provide the `sandbox_permissions` for any reason, commands will be rejected.
</permissions instructions>
[04] <collaboration_mode>Keep the parent's planning instructions.</collaboration_mode>
03:message/user:
<environment_context>
<cwd><CWD></cwd>
<shell><HOST_SHELL></shell>
<current_date><CURRENT_DATE></current_date>
<timezone><HOST_TIMEZONE></timezone>
<filesystem><workspace_roots><root><CWD></root></workspace_roots><permission_profile type="managed"><f...ntry></file_system></permission_profile></filesystem> [hash=e8c1de60307d0a3d]
</environment_context>
04:message/user:
Initial turn
05:configuration_update:reasoning={"effort":"high"}
06:reasoning:summary=Check the release.:encrypted=true
07:message/assistant:
Done
08:message/user:
Continue identically
09:configuration_update:reasoning={"effort":"medium"}