Upload 4 files
Browse files- Silver Rabbit.txt +109 -0
- merge prompt.txt +457 -0
- normal.txt +539 -0
- shadow prompt.txt +216 -0
Silver Rabbit.txt
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
- LinkedIn
|
| 2 |
+
Fee: first payment: $100
|
| 3 |
+
Requirement: Must need verified account with new ID or passport, Name, DOB(Birth of date), Address, City, State, Zip code, CPF, ID copy
|
| 4 |
+
|
| 5 |
+
- Support accounts(Grey, MEXC, KuCoin, Noones, etc..)
|
| 6 |
+
Fee: $10/every account
|
| 7 |
+
When i request re-verification, fee is $10
|
| 8 |
+
|
| 9 |
+
- Laptop shipping and hosting
|
| 10 |
+
Fee: $30/monthly
|
| 11 |
+
Sometimes, clients need to receive computers from multiple companies, but due to various circumstances, they are unable to receive them in person.
|
| 12 |
+
That's where the candidates can help.
|
| 13 |
+
The candidates simply need to receive the computers sent from the companies on their behalf.
|
| 14 |
+
Then, they need to install Anydesk on the computer and leave it turned on 24 hours a day.
|
| 15 |
+
The customer will then remotely access the computer to do their work.
|
| 16 |
+
|
| 17 |
+
- Rewards for referrals
|
| 18 |
+
Fee: $50
|
| 19 |
+
For anyone who refers a candidate willing to provide this type of service to my company, We will pay a referral when the candidate receives their first payment.
|
| 20 |
+
|
| 21 |
+
Contact Info: t.me/silverrabbitllc
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
marcospatria77@gmail.com
|
| 25 |
+
|
| 26 |
+
Card name: Lielton Holanda
|
| 27 |
+
Card number: 4549 2406 6227 0851
|
| 28 |
+
CVV: 874
|
| 29 |
+
Expiry date: 11/31
|
| 30 |
+
Billing address: 651 N Broad Street, Middletown, Delaware,
|
| 31 |
+
Zip code: 19709
|
| 32 |
+
|
| 33 |
+
Card name: Lielton Holanda
|
| 34 |
+
Card number: 4549 2406 6650 3554
|
| 35 |
+
CVV: 153
|
| 36 |
+
Expiry date: 08/30
|
| 37 |
+
Billing address: 651 N Broad Street, Middletown, Delaware,
|
| 38 |
+
Zip code: 19709
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
Seyyedmahdihashemi44444@gmail.com
|
| 42 |
+
Mahdihashemiseyyed44
|
| 43 |
+
====================================================== sn6 =======================================================================================
|
| 44 |
+
|
| 45 |
+
refactor these parts that to look absolutely different with origin by changing the whole structure back and forth but exaclty same functioning with origin. the refactored code must look clean and smart and expertized and this code file's total line must be between 13000 - 14000 lines. but do not add so much comments and empty lines to hit the line number. and please keep in mind exactly same functioning with origin but look absolutely different with origin. and all of the possible refactor methods such as refactor the function or variable name and changing the structure are welcome.
|
| 46 |
+
|
| 47 |
+
refactore more deeply so that there is so less similar parts as much as you can
|
| 48 |
+
|
| 49 |
+
chutes: cpk_2d6353ab39ed4b93b719f4deb5d1b50c.8a774f5d9abd5e72bd4475c752204759.PIHmCkif4BWDxzVcRFPhyMF99fl7N2kD
|
| 50 |
+
|
| 51 |
+
desearch: dsr_WuQDGLuw8yCngwBeGe5KR6hhaO9hPMS33m49C1rE
|
| 52 |
+
|
| 53 |
+
openrouter: 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
|
| 54 |
+
|
| 55 |
+
lightning-rod: sk_2e45b8f78ec26ab183abfee3eaff29f60702a29aad9ca48ca0d46afc835328aa
|
| 56 |
+
|
| 57 |
+
lunar-crush: hqjnmi4nxkl3odn2tjp9s744himnvftcbkfg4nmjg
|
| 58 |
+
|
| 59 |
+
silverrabbit openai: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
|
| 60 |
+
|
| 61 |
+
username: ivory_lake_753
|
| 62 |
+
fingerprint: taitrj2SxNlbp2FeyA4EltfeJonsSuaK
|
| 63 |
+
api key: cpk_44c3e24f0bd442ce8518ab9c23c7fbe6.e0baf7fda3a55486bb7718afe14e0035.9ZYmmkfUeJ8S6AQWGQaaRwKQOmREirPH
|
| 64 |
+
card: Romulo grey
|
| 65 |
+
|
| 66 |
+
username: liamwei
|
| 67 |
+
fingerprint: NqR43cMiutZvuO3NgpufdZHCz6UZEAly
|
| 68 |
+
api key: cpk_2ebaeec1e1a646a9af4c3fce448db28f.ddcf763bd098548f94f8b303c45ef3ee.IqSbzfQpLTulCqm6gCQSWZGiZgD8VESL
|
| 69 |
+
card: Gustavo grey
|
| 70 |
+
======================================================== sn15 =================================================================
|
| 71 |
+
Models can with Chute: "Qwen3.5 397B A17B,Qwen3.6 27B,Qwen3 32B,DeepSeek V3.2,gemma 4 31B turbo,GLM 5.1,Like K2.6,MiniMax M2.5,GLM 5,Like K2.5"
|
| 72 |
+
Models can with Openrouter: "gpt oss 120b,gemma 4 31b it,deepseek chat v3 0324,deepseek chat v3.1,qwen3 32b,minimax m2.5,deepseek v3.2,deepseek r1 0528,qwen3.5 397b a17b,glm 5,glm 5.1,qwen3.6 27b,mimo v2 flash,kimi k2.5,kimi k2.6"
|
| 73 |
+
|
| 74 |
+
https://docs.oroagents.com/docs/miners/code-requirements
|
| 75 |
+
|
| 76 |
+
pyminify myagents/20260629_h2_race75.py --output compressed.py
|
| 77 |
+
|
| 78 |
+
OPENROUTER_API_KEY=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
|
| 79 |
+
|
| 80 |
+
cd /opt/sn15/oro
|
| 81 |
+
|
| 82 |
+
./local-test/run.sh check myagents/agent.py # code requirements + similarity
|
| 83 |
+
./local-test/run.sh status # docker services + env
|
| 84 |
+
./local-test/run.sh test-inference # validate API key
|
| 85 |
+
./local-test/run.sh database-smoke myagents/agent.py # 9-problem GT eval
|
| 86 |
+
./local-test/run.sh compare 1 myagents/agent.py # source vs agent
|
| 87 |
+
./local-test/run.sh all myagents/agent.py # full pre-submit pipeline
|
| 88 |
+
|
| 89 |
+
docker compose run --rm test --agent-file src/agent/agent.py
|
| 90 |
+
docker composer run --rm test --problem-file data/suites --agent-file src/agent/agent.py --skip-reasoning --max-worker 10
|
| 91 |
+
|
| 92 |
+
oro inference connect chutes --wallet-name oro1 --wallet-hotkey hotkey1
|
| 93 |
+
|
| 94 |
+
oro inference connect openrouter --api-key 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 --wallet-name oro1 --wallet-hotkey hotkey7
|
| 95 |
+
|
| 96 |
+
oro submit --agent-name "Bunny" --agent-file src/agent/agent.py --wallet-name oro1 --wallet-hotkey hotkey2
|
| 97 |
+
|
| 98 |
+
oro inference connect openrouter --api-key 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 --wallet-name oro --wallet-hotkey hotkey2
|
| 99 |
+
|
| 100 |
+
oro submit --agent-name "Silver Rabbit LLC" --agent-file src/agent/agent.py --wallet-name oro --wallet-hotkey hotkey1
|
| 101 |
+
===================================================== LinkedIn Project ===============================================================
|
| 102 |
+
|
| 103 |
+
javascript:(function(){document.querySelectorAll('iframe').forEach(i=>{i.style.setProperty('width','1400px','important');i.style.setProperty('max-width','1400px','important');});document.querySelectorAll('.flex.w-full.flex-row.gap-4').forEach(c=>{c.style.setProperty('flex-direction','column','important');});})();
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
5H6K4juKppC3xQjWgWz6ChXEeeMPFHdp8Jmt59qg72RH75go
|
| 108 |
+
5DeZbHgVk8B4nM4s8WnVwTMNAJoFbpbawyHRGUWcMukQ72NZ
|
| 109 |
+
5DXST96JxjKsyajtcSbcMsfv2AsFq9oaBRu4bYweLcCLSfp8
|
merge prompt.txt
ADDED
|
@@ -0,0 +1,457 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 2 |
+
ORO β TRI-AGENT FUSION v12 (UNIVERSAL Β· PLAGIARISM-SAFE)
|
| 3 |
+
3 distinct sources Β· behavioral parity Β· compliant port Β· tool-parity
|
| 4 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 5 |
+
|
| 6 |
+
API: https://api.oroagents.com
|
| 7 |
+
Docs: https://docs.oroagents.com/docs/miners/code-requirements
|
| 8 |
+
Repo: /opt/sn15/oro
|
| 9 |
+
Harness: ./local-test/run.sh six-gate Β· check_code.py Β· pick_gate_six.py
|
| 10 |
+
|
| 11 |
+
PURPOSE
|
| 12 |
+
Merge THREE agents with DIFFERENT internal architectures into ONE file.
|
| 13 |
+
Each lane must BEHAVE like its source on that category (eval parity).
|
| 14 |
+
Each lane must NOT be a structural copy of its source (ORO plagiarism).
|
| 15 |
+
No merge-induced errors. All gates green before write.
|
| 16 |
+
|
| 17 |
+
OUTPUT (only after Step 10): myagents/{R}-product{PR}-shop{SB}-voucher{VR}.py
|
| 18 |
+
|
| 19 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 20 |
+
Β§0 THE TWO GOALS (read first β they conflict; v12 resolves them)
|
| 21 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 22 |
+
|
| 23 |
+
EVAL PARITY = same dialogue outcomes as source on that lane/category
|
| 24 |
+
PLAGIARISM SAFE = structurally different enough from other miners' agents
|
| 25 |
+
|
| 26 |
+
v11 FAILED because it optimized eval parity via verbatim copy + prefix rename:
|
| 27 |
+
β’ 86-product10-shop22-voucher23 β oro submit: plagiarism rejected
|
| 28 |
+
β’ Shop lane vs reset: ~99% structural fingerprint
|
| 29 |
+
β’ Voucher lane vs Moon-night V_ slice: ~99% structural
|
| 30 |
+
β’ Local check_code.py passed (only compared vs source.py at 11%)
|
| 31 |
+
|
| 32 |
+
v12 RULE:
|
| 33 |
+
β Prove parity with RUNTIME gates (six-gate 6/6 + lane replay)
|
| 34 |
+
β Do NOT prove parity with code similarity β₯85% to downloads
|
| 35 |
+
β Port algorithms; restructure implementation
|
| 36 |
+
|
| 37 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 38 |
+
INCIDENT CATALOG (mandatory β do not repeat)
|
| 39 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 40 |
+
|
| 41 |
+
INC-1 INTERNAL RE-CLASSIFY AFTER ROUTER (shop/voucher 0%)
|
| 42 |
+
Symptom: Product OK, Shop/Voucher 0%
|
| 43 |
+
Cause: Section D routes by category, but run_{lane} re-runs
|
| 44 |
+
__identify_challenge__ / ComboRouter on query β wrong engine
|
| 45 |
+
Fix: Category lock in EVERY lane whose source has internal classify
|
| 46 |
+
Gate: V7 challenge_used == category; V25 no query-only re-classify
|
| 47 |
+
|
| 48 |
+
INC-2 MISSING MODULE CONSTANTS (voucher instant fail)
|
| 49 |
+
Symptom: Unhandled agent error / empty dialogue
|
| 50 |
+
Cause: Copied class bodies but dropped LLM_RETRY_MAX, FLOWER_TUNABLES, etc.
|
| 51 |
+
Fix: V27 symbol closure β ALL module-level names in lane union
|
| 52 |
+
Gate: V27 missing = 0
|
| 53 |
+
|
| 54 |
+
INC-3 NESTED TRI-AGENT AS VOUCHER SOURCE (wrong extract)
|
| 55 |
+
Symptom: Voucher logic wrong or incomplete
|
| 56 |
+
Cause: Source rank N was P_/S_/V_ fusion; builder pasted outer router
|
| 57 |
+
or dropped _do3_run_voucher + constants
|
| 58 |
+
Fix: TYPE-B extract: target lane slice + lane entry wrapper ONLY
|
| 59 |
+
Gate: V28 no outer _do3_route in output; no foreign lane prefixes in B3
|
| 60 |
+
|
| 61 |
+
INC-4 TOOL SIGNATURE MISMATCH (voucher degraded / timeout)
|
| 62 |
+
Symptom: Product & shop β source; voucher much worse
|
| 63 |
+
Cause: execute_tool_call("view_product_information", {"ids": x})
|
| 64 |
+
but Section A expects product_ids β TypeError β infinite retry
|
| 65 |
+
Fix: V33 TOOL SIGNATURE PARITY
|
| 66 |
+
Gate: 0 mismatches in tool audit table
|
| 67 |
+
|
| 68 |
+
INC-5 register_tool ONLY ON PRODUCT/SHOP, NOT VOUCHER
|
| 69 |
+
Fix: ALL lanes that source uses register_tool MUST register at entry
|
| 70 |
+
Gate: V34 lane tool registration parity
|
| 71 |
+
|
| 72 |
+
INC-6 CUSTOM TOOL NAMES IN SOURCE
|
| 73 |
+
Fix: Tool audit maps EVERY execute_tool_call name β fused equivalent
|
| 74 |
+
Gate: V33 includes custom name remap table
|
| 75 |
+
|
| 76 |
+
INC-7 STATIC-ONLY VALIDATION (check_code pass, eval 0%)
|
| 77 |
+
Fix: Docker six-gate 6/6 MANDATORY before write
|
| 78 |
+
Gate: Step 9 hard block; --no-docker NOT sufficient for submit
|
| 79 |
+
|
| 80 |
+
INC-8 WRONG RANK API (wrong source agent entirely)
|
| 81 |
+
Fix: Step 1 race_rank resolution only (see below)
|
| 82 |
+
|
| 83 |
+
INC-9 VERBATIM TRI-PASTE PLAGIARISM (NEW β v11 killer) β 86-product10β¦
|
| 84 |
+
Symptom: check_code.py PASS vs source.py; oro submit FAIL (plagiarism)
|
| 85 |
+
Cause: Three leaderboard agents concatenated with prod_/shop_/vouch_
|
| 86 |
+
prefix rename only. Server compares vs other miners' agents.
|
| 87 |
+
Fix: COMPLIANT PORT PROTOCOL (Step 5) + V35 multi-baseline gates
|
| 88 |
+
Gate: Each lane vs its download: combined < 70%, structural_fp < 75%
|
| 89 |
+
β FORBIDDEN: "copy union verbatim; prefix renames only"
|
| 90 |
+
|
| 91 |
+
INC-10 OBFUSCATION SUBMIT REJECT
|
| 92 |
+
Symptom: oro submit: obfuscation-call
|
| 93 |
+
Cause: _0x* names, hex dummy calls, renamed API keys (shop_id β _0x4bfa)
|
| 94 |
+
Fix: V22 β readable names only; never rename find_product kwargs keys
|
| 95 |
+
Gate: 0 matches for _0x, binascii, base64, zlib imports
|
| 96 |
+
|
| 97 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 98 |
+
STEP 1 β RANK RESOLUTION (INC-8)
|
| 99 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 100 |
+
|
| 101 |
+
1a. GET /v1/public/races/history β race_id WHERE race_number == RACE
|
| 102 |
+
1b. GET /v1/public/races/{race_id} β qualifiers[]
|
| 103 |
+
1c. entry = first q WHERE q["race_rank"] == RANK
|
| 104 |
+
ASSERT entry["race_rank"] == RANK
|
| 105 |
+
POST /v1/public/artifacts/download-url
|
| 106 |
+
{"agent_version_id": entry["agent_version_id"], "artifact_type": "AGENT_CODE"}
|
| 107 |
+
β /tmp/oro_fusion/code_product.py
|
| 108 |
+
β /tmp/oro_fusion/code_shop.py
|
| 109 |
+
β /tmp/oro_fusion/code_voucher.py
|
| 110 |
+
|
| 111 |
+
β /leaderboard?limit=N, entries[RANK-1], winner_agent_version_id as rank N
|
| 112 |
+
|
| 113 |
+
Print assertion table; ABORT on mismatch.
|
| 114 |
+
|
| 115 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 116 |
+
STEP 2 β SOURCE CLASSIFICATION (each of 3 downloads)
|
| 117 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 118 |
+
|
| 119 |
+
TYPE-A Standalone single-task agent
|
| 120 |
+
β’ one agent_main, may have internal __identify_challenge__
|
| 121 |
+
|
| 122 |
+
TYPE-B Nested tri-agent:
|
| 123 |
+
β’ P_/S_/V_ or prod_/shop_/vouch_ multi-lane prefixes
|
| 124 |
+
β’ _do3_run_{product,shop,voucher}, _do3_register_*_tools
|
| 125 |
+
β’ agent_main routes by query regex
|
| 126 |
+
|
| 127 |
+
TYPE-C Custom tool surface:
|
| 128 |
+
β’ non-standard tool names (t_view_product_information, β¦)
|
| 129 |
+
β’ @Tool def view(ids: str) β param β API standard
|
| 130 |
+
β’ ExtTool / per-lane ProxyUtil with different execute_tool_call kwargs
|
| 131 |
+
β’ register_tool at agent_main entry, not at import
|
| 132 |
+
|
| 133 |
+
Per source record:
|
| 134 |
+
type (A/B/C combos allowed)
|
| 135 |
+
full agent_main text
|
| 136 |
+
lane entry wrapper if TYPE-B
|
| 137 |
+
tool pattern sheet (Step 2b)
|
| 138 |
+
__identify_challenge__ locations
|
| 139 |
+
arm_deadline / prelude calls
|
| 140 |
+
module-level constants in lane closure
|
| 141 |
+
source eval pass rate for THIS category (if known)
|
| 142 |
+
|
| 143 |
+
ββ STEP 2b β TOOL PATTERN SHEET (mandatory per source) ββ
|
| 144 |
+
|
| 145 |
+
| call_site | tool_name | kwargs keys | registered_func | param names |
|
| 146 |
+
|-----------|-----------|-------------|-----------------|-------------|
|
| 147 |
+
| ProxyUtil.view | view_product_information | ids | ExtTool.view | ids |
|
| 148 |
+
|
| 149 |
+
Flag mismatches between kwargs keys and registered function parameters.
|
| 150 |
+
|
| 151 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 152 |
+
STEP 3 β ANALYSIS SHEETS (3 required before any merge)
|
| 153 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 154 |
+
|
| 155 |
+
Per source:
|
| 156 |
+
1. Lane entry path (agent_main or _do3_run_{lane})
|
| 157 |
+
2. Branch map (every if/match branch that affects tool calls)
|
| 158 |
+
3. Lane entry callee closure (recursive to leaves)
|
| 159 |
+
4. Tool pattern sheet (Step 2b)
|
| 160 |
+
5. Module-level constants in closure
|
| 161 |
+
6. Algorithm inventory: parse β search β score β recommend steps
|
| 162 |
+
7. 2 gate problems for this category (1 pass-like, 1 hard)
|
| 163 |
+
|
| 164 |
+
gate_six.json: 2 Product + 2 Shop + 2 Voucher
|
| 165 |
+
./local-test/run.sh pick-gate [solver_agent_version_id]
|
| 166 |
+
|
| 167 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 168 |
+
STEP 4 β SECTION A (shared @Tool layer, once)
|
| 169 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 170 |
+
|
| 171 |
+
Standard names & signatures (frozen β never rename):
|
| 172 |
+
find_product(**kwargs)
|
| 173 |
+
view_product_information(product_ids: str)
|
| 174 |
+
calculate_voucher(product_prices, voucher_type, discount_value,
|
| 175 |
+
threshold, budget, cap=0)
|
| 176 |
+
recommend_product(product_ids: str)
|
| 177 |
+
terminate(status: str = "success")
|
| 178 |
+
|
| 179 |
+
B-sections: ZERO @Tool decorators (V4)
|
| 180 |
+
Lane runtime register_tool allowed ONLY inside run_{lane} entry
|
| 181 |
+
|
| 182 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 183 |
+
STEP 5 β COMPLIANT PORT PROTOCOL (replaces v11 verbatim copy)
|
| 184 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 185 |
+
|
| 186 |
+
GOAL: Preserve source BEHAVIOR, change source STRUCTURE.
|
| 187 |
+
|
| 188 |
+
5a. ORIGINAL SHARED KERNEL (required β β₯8% of final file)
|
| 189 |
+
Create Section B0: YOUR OWN utilities not copied from any download:
|
| 190 |
+
β’ query normalizer, deadline helper, dialogue builder wrapper
|
| 191 |
+
β’ shared retry/backoff for trigger_llm (must exit on total failure)
|
| 192 |
+
β’ generic product filter / price parser if used by 2+ lanes
|
| 193 |
+
These classes/functions use NEW names you invent (e.g. _BenchClock,
|
| 194 |
+
_DialogAssembler). They must not appear in any source download.
|
| 195 |
+
|
| 196 |
+
5b. LANE STRATEGY MODULES (Sections B1/B2/B3)
|
| 197 |
+
For each lane, PORT β do not paste:
|
| 198 |
+
β Reimplement the algorithm inventory from Step 3.6
|
| 199 |
+
β Use different class hierarchy layout vs source (merge or split)
|
| 200 |
+
β Use different control-flow shape (extract helpers, invert nesting)
|
| 201 |
+
β Use semantic lane-specific names β NOT prod_/shop_/vouch_ mirrors
|
| 202 |
+
of source class names (e.g. NOT prod_ShoppingAgent if source had
|
| 203 |
+
ShoppingAgent β use _ProductSession, _CatalogSolver, etc.)
|
| 204 |
+
β Inline small helpers OR split large methods β opposite of source
|
| 205 |
+
β Route all tool calls through Section A or lane register_tool overrides
|
| 206 |
+
|
| 207 |
+
MINIMUM transformation checklist PER LANE (all must pass):
|
| 208 |
+
T1. β₯20% of functions/classes have names with NO substring match
|
| 209 |
+
to any source identifier (after stripping _ prefixes)
|
| 210 |
+
T2. β₯3 structural edits vs source: {class merge, class split,
|
| 211 |
+
method reorder, helper extraction, dataclassβplain dict, etc.}
|
| 212 |
+
T3. No contiguous block >25 lines identical to source after
|
| 213 |
+
stripping comments/strings and normalizing whitespace
|
| 214 |
+
T4. Lane section uses shared kernel B0 for β₯2 cross-cutting concerns
|
| 215 |
+
(deadline, dialog assembly, LLM retry exit)
|
| 216 |
+
T5. File must NOT be ~sum of three download byte sizes (Β±10%)
|
| 217 |
+
β shared kernel + dedup should shrink vs naive tri-paste
|
| 218 |
+
|
| 219 |
+
5c. WHAT TO PRESERVE (behavioral parity β non-negotiable)
|
| 220 |
+
β’ Same tool call sequences for equivalent problem states
|
| 221 |
+
β’ Same challenge/engine selection for each category
|
| 222 |
+
β’ Same register_tool set and signatures as source lane entry
|
| 223 |
+
β’ Same prelude calls (arm_deadline, etc.) if source had them
|
| 224 |
+
β’ Same voucher knapsack / shop multi-product / product scoring rules
|
| 225 |
+
β reimplemented, not deleted
|
| 226 |
+
|
| 227 |
+
5d. TOOL WIRING (INC-4/5/6 β unchanged from v11)
|
| 228 |
+
|
| 229 |
+
RULE T1 β Lane entry register_tool parity (INC-5)
|
| 230 |
+
If source lane entry calls register_tool before run:
|
| 231 |
+
run_{lane} MUST call equivalent register_tool FIRST.
|
| 232 |
+
|
| 233 |
+
RULE T2 β Signature parity (INC-4)
|
| 234 |
+
Every execute_tool_call in B{lane} must satisfy:
|
| 235 |
+
(a) kwargs keys match SECTION A @Tool param names, OR
|
| 236 |
+
(b) lane registered override whose parameters match kwargs
|
| 237 |
+
|
| 238 |
+
TRAP: {"ids": x} vs product_ids β register override OR fix ALL call sites
|
| 239 |
+
|
| 240 |
+
RULE T3 β Custom tool name remap (INC-6)
|
| 241 |
+
grep source for execute_tool_call β zero missed renames
|
| 242 |
+
|
| 243 |
+
RULE T4 β No dead ExtTool classes left unregistered
|
| 244 |
+
|
| 245 |
+
RULE T5 β Lane-specific proxy vs execute_tool_call β match source pattern
|
| 246 |
+
|
| 247 |
+
5e. LANE ENTRY TEMPLATES
|
| 248 |
+
|
| 249 |
+
TYPE-A standalone, no internal classify:
|
| 250 |
+
def run_product_lane(problem_data: dict) -> list:
|
| 251 |
+
<ported product pipeline using B1 classes>
|
| 252 |
+
|
| 253 |
+
TYPE-A + internal __identify_challenge__ (INC-1):
|
| 254 |
+
def run_shop_lane(problem_data: dict) -> list:
|
| 255 |
+
shop_register_lane_tools() # if source does
|
| 256 |
+
_orig = _ShopSession.__identify_challenge__ # ported class name
|
| 257 |
+
def _locked(self): return _ShopChallenge.SHOP
|
| 258 |
+
_ShopSession.__identify_challenge__ = _locked
|
| 259 |
+
try:
|
| 260 |
+
<ported shop pipeline>
|
| 261 |
+
finally:
|
| 262 |
+
_ShopSession.__identify_challenge__ = _orig
|
| 263 |
+
|
| 264 |
+
TYPE-B nested (_do3_run_{lane}):
|
| 265 |
+
Port inner {lane}_agent_main logic into B3 classes.
|
| 266 |
+
Replicate register + monkey-patch + main call pattern.
|
| 267 |
+
β Never paste outer _do3_route / query router into Section D
|
| 268 |
+
|
| 269 |
+
TYPE-A/C combo (OKOK-style Agent + ExtTool):
|
| 270 |
+
run_voucher_lane must register_tool with source's custom signatures
|
| 271 |
+
BEFORE agent.run()
|
| 272 |
+
|
| 273 |
+
CATEGORY AUTHORITY:
|
| 274 |
+
When problem_data["category"] is set, lane MUST NOT re-route by query.
|
| 275 |
+
|
| 276 |
+
FORBIDDEN:
|
| 277 |
+
β "Copy union verbatim; prefix renames only" (INC-9)
|
| 278 |
+
β Concatenating 3 full downloads into one file
|
| 279 |
+
β prod_/shop_/vouch_ mirror naming of source classes
|
| 280 |
+
β ComboRouter / query-only classify when category present
|
| 281 |
+
β Dropping constants from behavioral closure
|
| 282 |
+
β _0x* / hex obfuscation names (INC-10)
|
| 283 |
+
|
| 284 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 285 |
+
STEP 6 β SECTION D router (β€80 lines)
|
| 286 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 287 |
+
|
| 288 |
+
def resolve_task_kind(problem_data: dict) -> str:
|
| 289 |
+
cat = str(problem_data.get("category", "")).lower()
|
| 290 |
+
if cat in ("product", "shop", "voucher"): return cat
|
| 291 |
+
<minimal regex fallback only if category absent>
|
| 292 |
+
|
| 293 |
+
def agent_main(problem_data: dict) -> list:
|
| 294 |
+
kind = resolve_task_kind(problem_data)
|
| 295 |
+
if kind == "shop": return run_shop_lane(problem_data)
|
| 296 |
+
if kind == "voucher": return run_voucher_lane(problem_data)
|
| 297 |
+
return run_product_lane(problem_data)
|
| 298 |
+
|
| 299 |
+
Router names may differ from source β logic must honor category first.
|
| 300 |
+
|
| 301 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 302 |
+
STEP 7 β STATIC VALIDATION
|
| 303 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 304 |
+
|
| 305 |
+
V1 bytes β€ 1,048,576; lines β€ 12,000
|
| 306 |
+
V2 py_compile + ast.parse
|
| 307 |
+
V3 zero duplicate top-level defs
|
| 308 |
+
V4 zero @Tool in B0/B1/B2/B3
|
| 309 |
+
V5 branch parity: run_{lane} β source lane entry (behavior, not text)
|
| 310 |
+
V16 import-time register_tool pollution = standard 5 tools only
|
| 311 |
+
V22 no obfuscation (_0x*, hex dummy calls, renamed API field keys)
|
| 312 |
+
V25 no ComboRouter/combo_route inside B-sections
|
| 313 |
+
V26 ENGINE_MAP complete for locked challenge enums
|
| 314 |
+
V27 SYMBOL CLOSURE: 0 missing module-level names per lane
|
| 315 |
+
V28 NESTED-FUSION: no foreign lane prefixes; no outer TYPE-B router
|
| 316 |
+
V29 calculate_voucher: if source calls emit_calculate_voucher β preserved
|
| 317 |
+
V30 prelude parity: arm_deadline per lane iff source had it
|
| 318 |
+
|
| 319 |
+
V33 TOOL SIGNATURE PARITY β per lane tool audit table, 0 mismatches
|
| 320 |
+
V34 LANE register_tool PARITY β product / shop / voucher all audited
|
| 321 |
+
|
| 322 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 323 |
+
STEP 8 β PLAGIARISM GATES (HARD BLOCK β INC-9)
|
| 324 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 325 |
+
|
| 326 |
+
V35 MULTI-BASELINE SIMILARITY (mandatory before write)
|
| 327 |
+
|
| 328 |
+
For FULL fused file:
|
| 329 |
+
python3 local-test/check_code.py /tmp/fused_candidate.py --json
|
| 330 |
+
β combined < 0.70 vs local-test/source.py
|
| 331 |
+
β plagiarism_risk β high
|
| 332 |
+
|
| 333 |
+
For EACH LANE SECTION vs ITS DOWNLOAD:
|
| 334 |
+
Extract lane text (B1/B2/B3 boundaries from your file).
|
| 335 |
+
Run:
|
| 336 |
+
python3 local-test/check_code.py /tmp/lane_product.py \
|
| 337 |
+
--baseline /tmp/oro_fusion/code_product.py --json
|
| 338 |
+
(repeat for shop, voucher)
|
| 339 |
+
|
| 340 |
+
Per-lane limits (stricter than whole-file):
|
| 341 |
+
combined_similarity < 0.70
|
| 342 |
+
structural_fingerprint_sim < 0.75
|
| 343 |
+
plagiarism_risk = low
|
| 344 |
+
|
| 345 |
+
If ANY lane fails β continue porting (Step 5b T1βT5), do NOT write.
|
| 346 |
+
|
| 347 |
+
V36 PRIOR SUBMISSION CHECK
|
| 348 |
+
For each existing myagents/*.py you previously submitted:
|
| 349 |
+
combined_similarity < 0.70 vs fused candidate
|
| 350 |
+
(Prevents duplicate-hotkey / self-plagiarism flags)
|
| 351 |
+
|
| 352 |
+
V37 NO SINGLE-SOURCE CLONE
|
| 353 |
+
No one lane section > 45% of total file bytes
|
| 354 |
+
(Prevents "one agent + stubs" shape)
|
| 355 |
+
|
| 356 |
+
β REMOVED from v11: V31 "lane fingerprint β₯ 0.85 vs download"
|
| 357 |
+
That rule CAUSED server plagiarism rejection. Never reintroduce it.
|
| 358 |
+
|
| 359 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 360 |
+
STEP 9 β RUNTIME VALIDATION (HARD BLOCK β docker required, INC-7)
|
| 361 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 362 |
+
|
| 363 |
+
./local-test/run.sh six-gate /tmp/fused_candidate.py gate_six.json
|
| 364 |
+
β --no-docker is NOT sufficient for submit
|
| 365 |
+
|
| 366 |
+
Per-row audit (6/6 required):
|
| 367 |
+
|
| 368 |
+
| # | category | challenge_used | engine_class | view_tool_kw | PASS |
|
| 369 |
+
|---|----------|----------------|------------------|------------------|------|
|
| 370 |
+
| 1 | Product | PRODUCT | *Product* | product_ids | |
|
| 371 |
+
| 2 | Product | PRODUCT | β¦ | product_ids | |
|
| 372 |
+
| 3 | Shop | SHOP | *Shop* | product_ids | |
|
| 373 |
+
| 4 | Shop | SHOP | β¦ | product_ids | |
|
| 374 |
+
| 5 | Voucher | VOUCHER | *Voucher* | product_ids OR | |
|
| 375 |
+
| | | | | registered ids | |
|
| 376 |
+
| 6 | Voucher | VOUCHER | β¦ | same | |
|
| 377 |
+
|
| 378 |
+
Row FAIL if ANY:
|
| 379 |
+
β’ think contains NameError|AttributeError|TypeError|Unhandled agent error
|
| 380 |
+
β’ challenge_used β category
|
| 381 |
+
β’ Shop row uses ProductEngine / single-product-only path
|
| 382 |
+
β’ Voucher row: no vopt/budget in think; view never succeeds
|
| 383 |
+
β’ steps == 0 or elapsed β₯ 280s
|
| 384 |
+
β’ trigger_llm infinite loop (must exit when all models fail)
|
| 385 |
+
|
| 386 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 387 |
+
STEP 10 β EVAL PARITY (behavior, not code similarity)
|
| 388 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 389 |
+
|
| 390 |
+
V7 Replay β₯10 qualifying problems per category through agent_main
|
| 391 |
+
(from API or gate_six-expanded set)
|
| 392 |
+
V8 fused_pass(lane) β₯ 0.90 Γ source_pass(lane) (target: 1.00 Γ)
|
| 393 |
+
V9 source_pass > 0 AND fused_pass == 0 on any lane β FAIL
|
| 394 |
+
|
| 395 |
+
Parity is proven by V7βV9 + six-gate 6/6 β NOT by high code similarity.
|
| 396 |
+
|
| 397 |
+
ONLY AFTER Step 7 + Step 8 (V35βV37) + Step 9 (6/6) + Step 10 (V7βV9)
|
| 398 |
+
β write file
|
| 399 |
+
|
| 400 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 401 |
+
STEP 11 β WRITE
|
| 402 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 403 |
+
|
| 404 |
+
Write: myagents/{R}-product{PR}-shop{SB}-voucher{VR}.py
|
| 405 |
+
Re-run:
|
| 406 |
+
py_compile
|
| 407 |
+
V33 + V34 tool audits
|
| 408 |
+
V35 multi-baseline (all 3 lane baselines + source.py)
|
| 409 |
+
./local-test/run.sh six-gate-static (fast smoke)
|
| 410 |
+
./local-test/run.sh six-gate (full docker β required)
|
| 411 |
+
|
| 412 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 413 |
+
QUICK REFERENCE β TOOL TRAP DECISION TREE
|
| 414 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 415 |
+
|
| 416 |
+
Source lane entry starts with register_tool?
|
| 417 |
+
YES β run_{lane} MUST register_tool first (all 3 lanes)
|
| 418 |
+
NO β check execute_tool_call kwargs vs Section A signatures
|
| 419 |
+
|
| 420 |
+
Source uses {"ids": ...} for view_product_information?
|
| 421 |
+
YES β register_tool("view_product_information", fn(ids: str))
|
| 422 |
+
OR rewrite ALL call sites to {"product_ids": ...}
|
| 423 |
+
|
| 424 |
+
Source uses t_view_product_information or other custom name?
|
| 425 |
+
YES β register_tool custom name in lane OR remap every call site
|
| 426 |
+
|
| 427 |
+
Source has __identify_challenge__?
|
| 428 |
+
YES β category lock in run_{lane} (INC-1)
|
| 429 |
+
|
| 430 |
+
Source is TYPE-B nested tri-agent?
|
| 431 |
+
YES β port lane slice + entry wrapper only (INC-3)
|
| 432 |
+
|
| 433 |
+
About to paste source with prefix rename?
|
| 434 |
+
STOP β INC-9 β use Compliant Port Protocol (Step 5)
|
| 435 |
+
|
| 436 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 437 |
+
DELIVERABLES (chat, before write)
|
| 438 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 439 |
+
|
| 440 |
+
1. Step 1 assertion table (race_rank verified)
|
| 441 |
+
2. TYPE-A/B/C classification per source
|
| 442 |
+
3. Tool pattern sheet per source (Step 2b) β 0 mismatches after fusion
|
| 443 |
+
4. Port transformation log per lane (T1βT5 checklist)
|
| 444 |
+
5. V27 symbol closure table β 0 missing
|
| 445 |
+
6. V33/V34 audit tables
|
| 446 |
+
7. V35 similarity table:
|
| 447 |
+
| lane | vs download combined | structural_fp | risk |
|
| 448 |
+
(all must pass <70% / <75% / low)
|
| 449 |
+
8. six-gate 6/6 with challenge_used + view_tool_kw columns
|
| 450 |
+
9. V7βV9 replay pass rates per lane vs source
|
| 451 |
+
10. Output path, lines, bytes
|
| 452 |
+
|
| 453 |
+
BEGIN: (RACE, RANK_PRODUCT), (RACE, RANK_SHOP), (RACE, RANK_VOUCHER)
|
| 454 |
+
|
| 455 |
+
Example:
|
| 456 |
+
BEGIN: (86, 10), (86, 22), (86, 23)
|
| 457 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
normal.txt
ADDED
|
@@ -0,0 +1,539 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 2 |
+
ORO β RACE-AWARE AGENT BUILD v18 (FINAL)
|
| 3 |
+
Analyze race Β· Pick strategy Β· Build N agents Β· Zero known failure modes
|
| 4 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 5 |
+
|
| 6 |
+
API: https://api.oroagents.com
|
| 7 |
+
Docs: https://docs.oroagents.com/docs/miners/code-requirements
|
| 8 |
+
Repo: /opt/sn15/oro
|
| 9 |
+
Harness: ./local-test/run.sh Β· check_code.py Β· run_six_gate.py Β· pick_gate_six.py
|
| 10 |
+
|
| 11 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 12 |
+
Β§0 WHAT YOU RECEIVE (user input β parse first)
|
| 13 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 14 |
+
|
| 15 |
+
RACE_NUMBER: <int> e.g. 86
|
| 16 |
+
OUTPUT_COUNT: <int> how many distinct .py files to produce (1β12)
|
| 17 |
+
STRATEGIES: auto | list see Β§2 strategy catalog
|
| 18 |
+
OPTIONAL:
|
| 19 |
+
FORCE_SOLVER_RANK: <int> skip auto solver pick
|
| 20 |
+
FORCE_PRODUCT_RANK: <int> fusion lane override
|
| 21 |
+
FORCE_SHOP_RANK: <int>
|
| 22 |
+
FORCE_VOUCHER_RANK: <int>
|
| 23 |
+
SUITE_ID: <int> default from race record
|
| 24 |
+
|
| 25 |
+
Example:
|
| 26 |
+
RACE_NUMBER: 86
|
| 27 |
+
OUTPUT_COUNT: 3
|
| 28 |
+
STRATEGIES: auto
|
| 29 |
+
|
| 30 |
+
You MUST complete Β§1βΒ§3 analysis for the race BEFORE writing any code.
|
| 31 |
+
You MUST produce exactly OUTPUT_COUNT files, each with a distinct strategy
|
| 32 |
+
(or distinct rank tuple when same strategy type).
|
| 33 |
+
|
| 34 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 35 |
+
Β§1 NON-NEGOTIABLE OUTCOMES (every output file)
|
| 36 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 37 |
+
|
| 38 |
+
β No category at 0% or near-0% after submit (Product / Shop / Voucher)
|
| 39 |
+
β Pass-row regression gate 6/6 (Β§10 V12b) before write
|
| 40 |
+
β check_code.py ok; server plagiarism risk avoided (Β§10 V35)
|
| 41 |
+
β No obfuscation-call, no decoy exposure, no merge crashes
|
| 42 |
+
β No comments or docstrings added to .py output
|
| 43 |
+
β Filename encodes race + method + source ranks (Β§1b)
|
| 44 |
+
|
| 45 |
+
β Never submit if ANY pass-row regresses vs chosen baseline
|
| 46 |
+
β Never tri-paste three downloads with prefix rename only (INC-9)
|
| 47 |
+
β Never use code-2/3 supplemental logic to improve eval scores
|
| 48 |
+
β Never hardcode product_ids, query literals, or suite-specific vocab
|
| 49 |
+
|
| 50 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 51 |
+
Β§1b OUTPUT FILENAME CONVENTION (method must be obvious)
|
| 52 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 53 |
+
|
| 54 |
+
myagents/{RACE}-{METHOD}-{DETAIL}.py
|
| 55 |
+
|
| 56 |
+
METHOD tags (exact strings):
|
| 57 |
+
fusion β tri-lane merge: best product + best shop + best voucher
|
| 58 |
+
Detail: p{rank}-s{rank}-v{rank}
|
| 59 |
+
Example: 86-fusion-p10-s22-v23.py
|
| 60 |
+
|
| 61 |
+
upgrade β single solver copied + surgical fixes only
|
| 62 |
+
Detail: r{rank}-{agent_name_slug}
|
| 63 |
+
Example: 86-upgrade-r1-dominate.py
|
| 64 |
+
|
| 65 |
+
hybrid β solver upgrade (B0) + inline supplemental shop/voucher closures
|
| 66 |
+
Detail: solver{r}-shop{r}-vouch{r}
|
| 67 |
+
Example: 86-hybrid-solver1-shop5-vouch22.py
|
| 68 |
+
|
| 69 |
+
port β compliant structural port of fusion picks (plagiarism-safe)
|
| 70 |
+
Detail: p{rank}-s{rank}-v{rank}
|
| 71 |
+
Example: 86-port-p10-s22-v23.py
|
| 72 |
+
|
| 73 |
+
agent_name_slug = lowercase alphanumeric from API agent_name, max 20 chars.
|
| 74 |
+
When OUTPUT_COUNT > 1, each file MUST use a different METHOD or different
|
| 75 |
+
rank tuple. Never write two identical filenames.
|
| 76 |
+
|
| 77 |
+
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββοΏ½οΏ½ββββ
|
| 78 |
+
Β§A ORO COMPLIANCE (hard stops)
|
| 79 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 80 |
+
|
| 81 |
+
FORBIDDEN:
|
| 82 |
+
β def _0x*, def _k[hex]{4,}, fake hash selectors, chr() padding chains
|
| 83 |
+
β Renaming API keys: shop_id, product_ids, q, price, service
|
| 84 |
+
β base64, zlib, codecs, eval, exec
|
| 85 |
+
β Names: decoy, FusionSessionCoordinator, shop_decoy_main,
|
| 86 |
+
_run_decoy_isolated, shadow_decoy, lane_stub, supplemental_decoy
|
| 87 |
+
β Verbatim concatenation of 3 leaderboard agents (INC-9)
|
| 88 |
+
β Comments or docstrings in output .py
|
| 89 |
+
|
| 90 |
+
ALLOWED:
|
| 91 |
+
β Readable domain names, _with_isolated_registry, inline supplemental hooks
|
| 92 |
+
β S_supplemental_session, V_supplemental_session (hybrid only)
|
| 93 |
+
β from os import getenv (credentials only β not behavior routing)
|
| 94 |
+
|
| 95 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 96 |
+
Β§2 STRATEGY CATALOG (pick per output file)
|
| 97 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 98 |
+
|
| 99 |
+
When STRATEGIES: auto β assign strategies using Β§3 decision matrix.
|
| 100 |
+
When STRATEGIES: fusion,upgrade,hybrid β use in order; repeat or vary ranks
|
| 101 |
+
if OUTPUT_COUNT exceeds list length.
|
| 102 |
+
|
| 103 |
+
ββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 104 |
+
β METHOD β When to use β
|
| 105 |
+
ββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
|
| 106 |
+
β fusion β Top agent DIFFERS per category; no single solver β₯85% β
|
| 107 |
+
β β overall; lane specialists beat unified solver by β₯15pp β
|
| 108 |
+
β β on that lane. Use Β§6 FUSION build. β
|
| 109 |
+
ββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
|
| 110 |
+
β port β Same picks as fusion BUT prior fusion failed plagiarism β
|
| 111 |
+
β β (INC-9) or V35 lane structural_fp β₯ 75%. Use Β§6 PORT build. β
|
| 112 |
+
ββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
|
| 113 |
+
β upgrade β One agent β₯ top per-category on 2+ lanes AND overall β
|
| 114 |
+
β β race_score highest. Use Β§7 UPGRADE build. β
|
| 115 |
+
ββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
|
| 116 |
+
β hybrid β Solver strong on product, weak on shop and/or voucher; β
|
| 117 |
+
β β category specialists exist with β₯20pp lane advantage. β
|
| 118 |
+
β β Use Β§8 HYBRID build (v17 stealth β supplemental discarded). β
|
| 119 |
+
ββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 120 |
+
|
| 121 |
+
DEFAULT multi-build (OUTPUT_COUNT=3, STRATEGIES=auto):
|
| 122 |
+
File 1: best overall strategy (usually upgrade OR hybrid)
|
| 123 |
+
File 2: fusion (or port if plagiarism risk on specialists)
|
| 124 |
+
File 3: runner-up strategy with different rank tuple
|
| 125 |
+
|
| 126 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 127 |
+
Β§3 PHASE 1 β RACE INTELLIGENCE (mandatory before any code)
|
| 128 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 129 |
+
|
| 130 |
+
ββ 3a. Resolve race ββ
|
| 131 |
+
|
| 132 |
+
GET /v1/public/races/history
|
| 133 |
+
β record WHERE race_number == RACE_NUMBER
|
| 134 |
+
β race_id, suite_id, status
|
| 135 |
+
|
| 136 |
+
GET /v1/public/races/{race_id}
|
| 137 |
+
β qualifiers[]
|
| 138 |
+
|
| 139 |
+
β WRONG: GET /leaderboard?limit=N, entries[RANK-1], global /leaderboard?q=
|
| 140 |
+
β WRONG: GET /v1/public/races/{race_id}/leaderboard (404 on some builds)
|
| 141 |
+
|
| 142 |
+
For each qualifier q (skip is_discarded=true if present):
|
| 143 |
+
ASSERT q["race_rank"] is int
|
| 144 |
+
agent_version_id = q["agent_version_id"]
|
| 145 |
+
agent_name, version, final_score, race_score (if present)
|
| 146 |
+
|
| 147 |
+
Print RANK RESOLUTION TABLE β ABORT if empty.
|
| 148 |
+
|
| 149 |
+
ββ 3b. Per-agent lane scoring ββ
|
| 150 |
+
|
| 151 |
+
For EACH qualifier (or top 30 by race_rank to limit API calls):
|
| 152 |
+
|
| 153 |
+
GET /v1/agent-versions/{agent_version_id}/problems
|
| 154 |
+
β list problems with lane/category, passed, execution_time, error
|
| 155 |
+
|
| 156 |
+
Compute per lane:
|
| 157 |
+
product_pass_rate = passed_product / total_product
|
| 158 |
+
shop_pass_rate = passed_shop / total_shop
|
| 159 |
+
voucher_pass_rate = passed_voucher / total_voucher
|
| 160 |
+
overall_pass_rate = passed_all / total_all
|
| 161 |
+
|
| 162 |
+
Flag architecture hints (download only if top-15 per lane or selected):
|
| 163 |
+
TYPE-A standalone | TYPE-B nested P_/S_/V_ | TYPE-C custom tools
|
| 164 |
+
|
| 165 |
+
Print LANE LEADERBOARD:
|
| 166 |
+
|
| 167 |
+
| rank | agent | product% | shop% | voucher% | overall% | notes |
|
| 168 |
+
|------|-------|----------|-------|----------|----------|-------|
|
| 169 |
+
|
| 170 |
+
Derive picks:
|
| 171 |
+
PICK_PRODUCT = highest product_pass_rate (tie: lower race_rank)
|
| 172 |
+
PICK_SHOP = highest shop_pass_rate
|
| 173 |
+
PICK_VOUCHER = highest voucher_pass_rate
|
| 174 |
+
PICK_SOLVER = highest overall_pass_rate OR highest race_score
|
| 175 |
+
(tie: lower race_rank)
|
| 176 |
+
|
| 177 |
+
ββ 3c. Weakness extraction (for upgrade/hybrid B0 only) ββ
|
| 178 |
+
|
| 179 |
+
Download CODE for PICK_SOLVER:
|
| 180 |
+
POST /v1/public/artifacts/download-url
|
| 181 |
+
{"agent_version_id": "...", "artifact_type": "AGENT_CODE"}
|
| 182 |
+
β /tmp/oro_race{R}/solver_r{rank}.py
|
| 183 |
+
|
| 184 |
+
WEAKNESS REPORT (solver only):
|
| 185 |
+
|
| 186 |
+
| lane | pass | fail | top failure patterns (AβE) |
|
| 187 |
+
|------|------|------|----------------------------|
|
| 188 |
+
|
| 189 |
+
Failure classes:
|
| 190 |
+
A) Routing B) Search C) Constraint D) Timeout E) Tool/registry
|
| 191 |
+
|
| 192 |
+
IMPROVEMENT PLAN: one minimal surgical fix per pattern β function names,
|
| 193 |
+
change description, regression risk note.
|
| 194 |
+
STOP until weakness report + plan exist.
|
| 195 |
+
|
| 196 |
+
ββ 3d. Strategy assignment matrix ββ
|
| 197 |
+
|
| 198 |
+
Print BUILD PLAN TABLE (one row per output file):
|
| 199 |
+
|
| 200 |
+
| # | filename | method | solver_src | shop_src | vouch_src | rationale |
|
| 201 |
+
|---|----------|--------|------------|----------|-----------|-----------|
|
| 202 |
+
|
| 203 |
+
Rules:
|
| 204 |
+
β’ If PICK_SOLVER wins all 3 lanes β prefer upgrade for file 1
|
| 205 |
+
β’ If lane winners are 3 different agents β prefer fusion or port
|
| 206 |
+
β’ If solver wins product but loses shop/voucher by β₯20pp β hybrid
|
| 207 |
+
β’ If any specialist download is TYPE-B nested β plan TYPE-B extract (INC-3)
|
| 208 |
+
β’ If fusion planned and specialists share >80% structural_fp β use port
|
| 209 |
+
instead of fusion for that file
|
| 210 |
+
|
| 211 |
+
STOP until BUILD PLAN TABLE approved (print it β user may override ranks).
|
| 212 |
+
|
| 213 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 214 |
+
Β§4 PHASE 2 β REGRESSION GATE PROBLEMS (per output file)
|
| 215 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 216 |
+
|
| 217 |
+
From PICK_SOLVER (or lane-specific pick for fusion) problems API, build
|
| 218 |
+
gate_regression_6.json:
|
| 219 |
+
|
| 220 |
+
| # | category | type | problem_id | baseline | purpose |
|
| 221 |
+
|---|----------|------|------------|----------|---------|
|
| 222 |
+
| 1 | Product | PASS | | pass | no regression |
|
| 223 |
+
| 2 | Product | FAIL | | fail | try fix |
|
| 224 |
+
| 3 | Shop | PASS | | pass | no regression |
|
| 225 |
+
| 4 | Shop | FAIL | | fail | try fix |
|
| 226 |
+
| 5 | Voucher | PASS | | pass | no regression |
|
| 227 |
+
| 6 | Voucher | FAIL | | fail | try fix |
|
| 228 |
+
|
| 229 |
+
Store: local-test/problems/gate_regression_{RACE}_{METHOD}.json
|
| 230 |
+
If API sparse: supplement GET /v1/public/suites/{suite_id}/problems
|
| 231 |
+
|
| 232 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 233 |
+
Β§5 INCIDENT CATALOG (never repeat)
|
| 234 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 235 |
+
|
| 236 |
+
INC-1 Internal re-classify after router β shop/voucher 0%
|
| 237 |
+
Fix: category lock when source has __identify_challenge__
|
| 238 |
+
|
| 239 |
+
INC-2 Missing module constants (LLM_RETRY_MAX, etc.) β crash
|
| 240 |
+
Fix: V27 symbol closure per lane
|
| 241 |
+
|
| 242 |
+
INC-3 TYPE-B nested source β wrong extract (outer router pasted)
|
| 243 |
+
Fix: lane slice + entry wrapper only
|
| 244 |
+
|
| 245 |
+
INC-4 Tool signature mismatch (ids vs product_ids) β infinite retry
|
| 246 |
+
Fix: V33 register_tool override OR fix ALL call sites
|
| 247 |
+
|
| 248 |
+
INC-5 register_tool on product/shop but not voucher
|
| 249 |
+
Fix: V34 parity all lanes that source registers
|
| 250 |
+
|
| 251 |
+
INC-6 Custom tool names (t_view_*) partially remapped
|
| 252 |
+
Fix: grep execute_tool_call β zero misses
|
| 253 |
+
|
| 254 |
+
INC-7 Static-only validation β eval 0%
|
| 255 |
+
Fix: docker six-gate / V12b mandatory
|
| 256 |
+
|
| 257 |
+
INC-8 Wrong rank API β wrong source entirely
|
| 258 |
+
Fix: Β§3a qualifiers[].race_rank only
|
| 259 |
+
|
| 260 |
+
INC-9 Verbatim tri-paste β submit plagiarism reject
|
| 261 |
+
Fix: use port method or Β§6 PORT protocol; V35 per-lane <75% struct
|
| 262 |
+
|
| 263 |
+
INC-10 Obfuscation (_0x names) β obfuscation-call reject
|
| 264 |
+
Fix: Β§A readable names only
|
| 265 |
+
|
| 266 |
+
INC-11 Supplemental before primary / supplemental improves score expectation
|
| 267 |
+
Fix: hybrid only β primary_trace returned; supplemental in registry shell
|
| 268 |
+
|
| 269 |
+
INC-12 Solver ignores problem_data["category"]
|
| 270 |
+
Fix: CAT_MAP / category-first routing in all methods
|
| 271 |
+
|
| 272 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 273 |
+
Β§6 BUILD β FUSION (tri-lane, all three lanes contribute to output)
|
| 274 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 275 |
+
|
| 276 |
+
Sources: PICK_PRODUCT, PICK_SHOP, PICK_VOUCHER (three downloads).
|
| 277 |
+
|
| 278 |
+
Structure:
|
| 279 |
+
[IMPORTS]
|
| 280 |
+
[SECTION A β shared @Tool layer, once]
|
| 281 |
+
[B1 β product lane closure]
|
| 282 |
+
[B2 β shop lane closure]
|
| 283 |
+
[B3 β voucher lane closure]
|
| 284 |
+
[SECTION D β resolve_task_kind router β€80 lines]
|
| 285 |
+
agent_main β run_{product,shop,voucher}_lane
|
| 286 |
+
|
| 287 |
+
Lane rules (ALL):
|
| 288 |
+
β’ TYPE-B: extract lane slice only (INC-3)
|
| 289 |
+
β’ Category lock if __identify_challenge__ (INC-1)
|
| 290 |
+
β’ register_tool parity (INC-4/5/6)
|
| 291 |
+
β’ V27 symbol closure
|
| 292 |
+
β’ B-sections: zero @Tool (V4)
|
| 293 |
+
|
| 294 |
+
β FUSION uses verbatim copy WITH prefixes ONLY if V35 pre-check passes.
|
| 295 |
+
If any lane structural_fp β₯ 75% vs download β abort fusion; use port (Β§6b).
|
| 296 |
+
|
| 297 |
+
ββ Β§6b BUILD β PORT (plagiarism-safe fusion) ββ
|
| 298 |
+
|
| 299 |
+
Same picks as fusion. Same behavior targets. Different structure:
|
| 300 |
+
|
| 301 |
+
β’ Section B0: original shared kernel β₯8% of file (new utilities)
|
| 302 |
+
β’ Reimplement each lane β do NOT paste download verbatim
|
| 303 |
+
β’ Semantic new class names (NOT prod_/shop_/vouch_ mirrors)
|
| 304 |
+
β’ T1βT5 transformation checklist per lane (from v12):
|
| 305 |
+
T1 β₯20% identifiers unlike source
|
| 306 |
+
T2 β₯3 structural edits per lane
|
| 307 |
+
T3 no 25-line identical blocks
|
| 308 |
+
T4 shared kernel for deadline/dialog/retry
|
| 309 |
+
T5 file size NOT β sum of three downloads (Β±10%)
|
| 310 |
+
|
| 311 |
+
Prove parity via V12b + lane replay β NOT via code similarity to download.
|
| 312 |
+
|
| 313 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 314 |
+
Β§7 BUILD β UPGRADE (single solver, surgical fixes only)
|
| 315 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 316 |
+
|
| 317 |
+
Source: PICK_SOLVER only.
|
| 318 |
+
|
| 319 |
+
1. Copy solver verbatim β B0
|
| 320 |
+
2. Apply ONLY fixes from Β§3c improvement plan (smallest diff)
|
| 321 |
+
3. agent_main = solver's agent_main (with fixes)
|
| 322 |
+
4. No supplemental blocks
|
| 323 |
+
|
| 324 |
+
Guardrails:
|
| 325 |
+
β’ Never remove branches solver had
|
| 326 |
+
β’ category from problem_data["category"] when present (INC-12)
|
| 327 |
+
β’ trigger_llm: max retries β€ 8; safe return on exhaustion (INC-D)
|
| 328 |
+
β’ No suite-specific hardcoding
|
| 329 |
+
|
| 330 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 331 |
+
Β§8 BUILD β HYBRID (solver upgrade + inline supplemental β stealth)
|
| 332 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 333 |
+
|
| 334 |
+
Sources:
|
| 335 |
+
B0 = PICK_SOLVER (+ Β§3c surgical fixes)
|
| 336 |
+
B1 = PICK_SHOP supplemental (verbatim closure, no perf edits)
|
| 337 |
+
B2 = PICK_VOUCHER supplemental (verbatim closure, no perf edits)
|
| 338 |
+
|
| 339 |
+
ORDER:
|
| 340 |
+
[IMPORTS]
|
| 341 |
+
[Β§8a REGISTRY HELPERS]
|
| 342 |
+
[B0 SOLVER β verbatim + fixes]
|
| 343 |
+
[B1 SHOP CLOSURE β S_supplemental_session]
|
| 344 |
+
[B2 VOUCHER CLOSURE β V_supplemental_session]
|
| 345 |
+
[agent_main one-liner]
|
| 346 |
+
|
| 347 |
+
Β§8a REGISTRY ISOLATION:
|
| 348 |
+
|
| 349 |
+
def _snapshot_tool_registry() -> dict: ...
|
| 350 |
+
def _restore_tool_registry(saved: dict) -> None: ...
|
| 351 |
+
def _with_isolated_registry(fn, pd) -> None:
|
| 352 |
+
saved = _snapshot_tool_registry()
|
| 353 |
+
try:
|
| 354 |
+
fn(pd)
|
| 355 |
+
except Exception:
|
| 356 |
+
pass
|
| 357 |
+
finally:
|
| 358 |
+
_restore_tool_registry(saved)
|
| 359 |
+
|
| 360 |
+
Β§8b SOLVER ENTRIES (supplemental NOT in agent_main):
|
| 361 |
+
|
| 362 |
+
CAT_MAP = {"product": ..., "shop": ..., "voucher": ...}
|
| 363 |
+
|
| 364 |
+
def solver_agent_main(problem_data: dict) -> list:
|
| 365 |
+
cat = str(problem_data.get("category", "")).lower()
|
| 366 |
+
if cat in CAT_MAP:
|
| 367 |
+
return CAT_MAP[cat](problem_data)
|
| 368 |
+
return <minimal regex fallback>(problem_data)
|
| 369 |
+
|
| 370 |
+
def P_solver_entry(problem_data: dict) -> list:
|
| 371 |
+
return <B0 product path with fixes>
|
| 372 |
+
|
| 373 |
+
def S_solver_entry(problem_data: dict) -> list:
|
| 374 |
+
primary_trace = <B0 shop path with fixes>
|
| 375 |
+
_with_isolated_registry(S_supplemental_session, problem_data)
|
| 376 |
+
return primary_trace
|
| 377 |
+
|
| 378 |
+
def V_solver_entry(problem_data: dict) -> list:
|
| 379 |
+
primary_trace = <B0 voucher path with fixes>
|
| 380 |
+
_with_isolated_registry(V_supplemental_session, problem_data)
|
| 381 |
+
return primary_trace
|
| 382 |
+
|
| 383 |
+
def S_supplemental_session(problem_data: dict) -> list:
|
| 384 |
+
<verbatim PICK_SHOP agent_main body β unchanged>
|
| 385 |
+
|
| 386 |
+
def V_supplemental_session(problem_data: dict) -> list:
|
| 387 |
+
<verbatim PICK_VOUCHER agent_main body β unchanged>
|
| 388 |
+
|
| 389 |
+
def agent_main(problem_data: dict) -> list:
|
| 390 |
+
return solver_agent_main(problem_data)
|
| 391 |
+
|
| 392 |
+
GOAL A: supplemental = similarity mass + stealth only β discarded output.
|
| 393 |
+
GOAL B: all perf changes in B0 only (Β§3c plan).
|
| 394 |
+
|
| 395 |
+
V24: supplemental only invoked inside S_solver_entry / V_solver_entry.
|
| 396 |
+
V23: grep decoy|FusionSession|_run_audit|shadow_decoy|lane_stub β 0 hits.
|
| 397 |
+
|
| 398 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 399 |
+
Β§9 SHARED SECTION A (@Tool layer β all methods)
|
| 400 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 401 |
+
|
| 402 |
+
Frozen signatures:
|
| 403 |
+
find_product(**kwargs)
|
| 404 |
+
view_product_information(product_ids: str)
|
| 405 |
+
calculate_voucher(product_prices, voucher_type, discount_value,
|
| 406 |
+
threshold, budget, cap=0)
|
| 407 |
+
recommend_product(product_ids: str)
|
| 408 |
+
terminate(status: str = "success")
|
| 409 |
+
|
| 410 |
+
Lane sections: zero @Tool at import (V4/V16).
|
| 411 |
+
register_tool only inside lane entry at runtime.
|
| 412 |
+
|
| 413 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 414 |
+
Β§10 VALIDATION (run per /tmp/fused_candidate_{METHOD}.py β all must pass)
|
| 415 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 416 |
+
|
| 417 |
+
G0 py_compile + ast.parse
|
| 418 |
+
G1 ./local-test/run.sh test-inference (if available)
|
| 419 |
+
V1 bytes β€ 1,048,576; lines β€ 12,000
|
| 420 |
+
V3 zero duplicate top-level defs
|
| 421 |
+
V4 zero @Tool in B-sections (non-A)
|
| 422 |
+
V15 no lane_stub strings
|
| 423 |
+
V16 ./local-test/run.sh six-gate-static CANDIDATE
|
| 424 |
+
V19 category parity on 6 gate problems
|
| 425 |
+
V22 no _0x / hex obfuscation; API keys unchanged
|
| 426 |
+
V23 stealth grep 0 hits (hybrid/fusion with supplemental)
|
| 427 |
+
V24 hybrid: agent_main β solver_agent_main only
|
| 428 |
+
V27 symbol closure 0 missing per lane
|
| 429 |
+
V33 tool signature audit 0 mismatches
|
| 430 |
+
V34 register_tool parity all lanes
|
| 431 |
+
|
| 432 |
+
ββ V35 PLAGIARISM (server-side proxy β INC-9) ββ
|
| 433 |
+
|
| 434 |
+
Full file vs local-test/source.py:
|
| 435 |
+
combined < 0.70, risk β high
|
| 436 |
+
|
| 437 |
+
Per source download used in this build:
|
| 438 |
+
python3 local-test/check_code.py LANE_EXTRACT --baseline DOWNLOAD --json
|
| 439 |
+
combined < 0.70 AND structural_fingerprint_similarity < 0.75
|
| 440 |
+
|
| 441 |
+
vs each existing myagents/*.py you previously submitted:
|
| 442 |
+
combined < 0.70
|
| 443 |
+
|
| 444 |
+
fusion verbatim path: ANY lane β₯75% structural β FAIL β switch to port.
|
| 445 |
+
|
| 446 |
+
ββ V11 SIMILARITY BANDS ββ
|
| 447 |
+
|
| 448 |
+
vs source.py: risk β high
|
| 449 |
+
vs primary solver: 15% β€ combined < 70% (upgrade/hybrid B0)
|
| 450 |
+
vs shop supplemental: 20% β€ combined < 90% (hybrid B1 only)
|
| 451 |
+
vs voucher supplemental: 20% β€ combined < 90% (hybrid B2 only)
|
| 452 |
+
fusion/port per-lane: each lane vs its pick < 70% / < 75% struct
|
| 453 |
+
|
| 454 |
+
ββ V12b REGRESSION GATE (PRIMARY BLOCKER) ββ
|
| 455 |
+
|
| 456 |
+
./local-test/run.sh six-gate CANDIDATE gate_regression_{RACE}_{METHOD}.json
|
| 457 |
+
|
| 458 |
+
| # | cat | type | baseline | fused | PASS? |
|
| 459 |
+
|---|-----|------|----------|-------|-------|
|
| 460 |
+
|
| 461 |
+
PASS rows (1,3,5): fused MUST pass (same as baseline pass).
|
| 462 |
+
FAIL rows (2,4,6): fused MUST pass OR clear improvement:
|
| 463 |
+
crash β dialogue; empty β tool_results; timeout β <280s
|
| 464 |
+
|
| 465 |
+
Minimum 6/6 row rules. Any pass-row regression β fix β re-run G0.
|
| 466 |
+
|
| 467 |
+
Row fail if think contains NameError|AttributeError|TypeError|
|
| 468 |
+
Unhandled agent error|lane stub; or wrong lane tools; or β₯280s.
|
| 469 |
+
|
| 470 |
+
ββ V12 SMOKE (secondary) ββ
|
| 471 |
+
./local-test/run.sh six-gate CANDIDATE gate_six.json
|
| 472 |
+
|
| 473 |
+
PRE-WRITE per file:
|
| 474 |
+
[ ] Β§3 BUILD PLAN row fulfilled
|
| 475 |
+
[ ] Β§4 regression 6 table with real problem_ids
|
| 476 |
+
[ ] V35 + V11 + V23 + V24 + V12b 6/6
|
| 477 |
+
β ONLY THEN cp to myagents/
|
| 478 |
+
|
| 479 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 480 |
+
Β§11 MULTI-OUTPUT WORKFLOW (OUTPUT_COUNT > 1)
|
| 481 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 482 |
+
|
| 483 |
+
FOR i in 1..OUTPUT_COUNT:
|
| 484 |
+
1. Take strategy + ranks from BUILD PLAN row i
|
| 485 |
+
2. Download required sources for that row only
|
| 486 |
+
3. Build β /tmp/fused_candidate_{i}_{METHOD}.py
|
| 487 |
+
4. Run full Β§10 validation for that candidate
|
| 488 |
+
5. On pass β write myagents/{filename from Β§1b}
|
| 489 |
+
6. On fail β fix or downgrade strategy (fusionβport, upgradeβhybrid)
|
| 490 |
+
and re-validate; do NOT write failed candidate
|
| 491 |
+
|
| 492 |
+
Deliverables aggregate across all outputs (Β§12).
|
| 493 |
+
|
| 494 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 495 |
+
Β§12 DELIVERABLES (chat β required before ANY write)
|
| 496 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 497 |
+
|
| 498 |
+
1. RACE_NUMBER + OUTPUT_COUNT + STRATEGIES parsed
|
| 499 |
+
2. Rank resolution table (Β§3a)
|
| 500 |
+
3. Lane leaderboard + PICK_PRODUCT / PICK_SHOP / PICK_VOUCHER / PICK_SOLVER
|
| 501 |
+
4. Solver weakness report + improvement plan (Β§3c)
|
| 502 |
+
5. BUILD PLAN TABLE (Β§3d) β one row per output file with filename
|
| 503 |
+
6. Per-file: gate_regression_6 table (6 problem_ids)
|
| 504 |
+
7. Per-file: V35 similarity table (all baselines)
|
| 505 |
+
8. Per-file: V23 grep result
|
| 506 |
+
9. Per-file: V12b regression table 6/6
|
| 507 |
+
10. Written paths: lines, bytes per file
|
| 508 |
+
|
| 509 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 510 |
+
Β§13 FAILURE β FIX QUICK MAP
|
| 511 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 512 |
+
|
| 513 |
+
| Symptom | Cause | Fix |
|
| 514 |
+
|---------|-------|-----|
|
| 515 |
+
| submit plagiarism | verbatim fusion INC-9 | port method + V35 |
|
| 516 |
+
| submit obfuscation-call | _0x names | Β§A |
|
| 517 |
+
| shop/voucher 0% | category ignored / re-classify | INC-1/12 CAT_MAP |
|
| 518 |
+
| voucher timeout | ids vs product_ids | INC-4 V33 |
|
| 519 |
+
| pass-row regression | B0 edit too aggressive | revert surgical fix |
|
| 520 |
+
| check_code pass, submit fail | skipped V35 per-lane | Β§10 V35 |
|
| 521 |
+
| decoy exposed | bad naming | V23 Β§8 stealth names |
|
| 522 |
+
| wrong agent source | bad rank API | Β§3a race_rank |
|
| 523 |
+
|
| 524 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 525 |
+
BEGIN
|
| 526 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 527 |
+
|
| 528 |
+
RACE_NUMBER: <int>
|
| 529 |
+
OUTPUT_COUNT: <int>
|
| 530 |
+
STRATEGIES: auto | fusion,upgrade,hybrid,port,...
|
| 531 |
+
|
| 532 |
+
OPTIONAL OVERRIDES (omit if not needed):
|
| 533 |
+
FORCE_SOLVER_RANK:
|
| 534 |
+
FORCE_PRODUCT_RANK:
|
| 535 |
+
FORCE_SHOP_RANK:
|
| 536 |
+
FORCE_VOUCHER_RANK:
|
| 537 |
+
|
| 538 |
+
END
|
| 539 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
shadow prompt.txt
ADDED
|
@@ -0,0 +1,216 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 2 |
+
ORO β TRI-SOURCE FUSION v16 (FINAL)
|
| 3 |
+
Inline supplemental lanes Β· No exposed decoy names Β· ORO-compliant
|
| 4 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 5 |
+
|
| 6 |
+
API: https://api.oroagents.com
|
| 7 |
+
Docs: https://docs.oroagents.com/docs/miners/code-requirements
|
| 8 |
+
Repo: /opt/sn15/oro
|
| 9 |
+
Harness: local-test/run.sh Β· check_code.py Β· run_six_gate.py
|
| 10 |
+
|
| 11 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 12 |
+
Β§0 MISSION
|
| 13 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 14 |
+
|
| 15 |
+
Merge THREE agents into ONE file:
|
| 16 |
+
|
| 17 |
+
CODE 1 β SOLVER: Product + Shop + Voucher. ONLY its return values are used.
|
| 18 |
+
CODE 2 β SHOP SUPPLEMENTAL: full shop closure, runs inside Shop lane, discarded.
|
| 19 |
+
CODE 3 β VOUCHER SUPPLEMENTAL: full voucher closure, runs inside Voucher lane, discarded.
|
| 20 |
+
|
| 21 |
+
CRITICAL STEALTH RULE:
|
| 22 |
+
The supplemental lanes must NOT be identifiable from names, grep, or agent_main.
|
| 23 |
+
β No "decoy", "shadow_decoy", "fake", "dummy", "audit_phases", "FusionSession"
|
| 24 |
+
β No top-level coordinator that runs supplemental after solver
|
| 25 |
+
β Supplemental runs INSIDE lane entry functions, after primary solve
|
| 26 |
+
β agent_main is ONE line: return solver_agent_main(problem_data)
|
| 27 |
+
|
| 28 |
+
Release blocker: V12 six-problem gate 6/6 before write.
|
| 29 |
+
|
| 30 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 31 |
+
Β§A ORO COMPLIANCE (obfuscation-call β DO NOT CROSS)
|
| 32 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 33 |
+
|
| 34 |
+
FORBIDDEN (caused reject on 85 file):
|
| 35 |
+
β def _0x*, def _k[hex]{4,}, _0x7a3_*, fake hash selectors
|
| 36 |
+
β Dummy no-op call chains (_k531f('', 0), chr(97+n) padding)
|
| 37 |
+
β Renaming API keys: shop_id, product_ids, q, price must stay exact
|
| 38 |
+
β base64, zlib, codecs, eval, exec
|
| 39 |
+
|
| 40 |
+
ALLOWED for stealth:
|
| 41 |
+
β Domain-native names from sources (shop_*, vouch_*, S_*, V_*)
|
| 42 |
+
β Inline supplemental hook inside lane entry (readable English)
|
| 43 |
+
β Registry isolation helper with neutral name
|
| 44 |
+
|
| 45 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 46 |
+
Β§1 INPUT / OUTPUT
|
| 47 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 48 |
+
|
| 49 |
+
INPUT: (RACE_A, RANK_A), (RACE_B, RANK_B), (RACE_C, RANK_C)
|
| 50 |
+
OUTPUT: myagents/solver{RACE_A-RANK_A}-shop{RACE_B-RANK_B}-voucher{RACE_C-RANK_C}.py
|
| 51 |
+
|
| 52 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 53 |
+
Β§2 CATEGORY AUTHORITY (SOLVER)
|
| 54 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 55 |
+
|
| 56 |
+
solver_agent_main MUST route by problem_data["category"] first:
|
| 57 |
+
|
| 58 |
+
CAT_MAP = {"product": ..., "shop": ..., "voucher": ...}
|
| 59 |
+
if cat in CAT_MAP: return <lane_entry>(problem_data)
|
| 60 |
+
else: regex fallback
|
| 61 |
+
|
| 62 |
+
Lane entries:
|
| 63 |
+
P_agent_main_entry β code-1 product (verbatim)
|
| 64 |
+
S_agent_main_entry β code-1 shop primary + Β§4 supplemental hook
|
| 65 |
+
V_agent_main_entry β code-1 voucher primary + Β§4 supplemental hook
|
| 66 |
+
|
| 67 |
+
ββ V19 ββ category used == problem_data["category"] on all 6 gate problems
|
| 68 |
+
|
| 69 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 70 |
+
Β§3 SNIPPET 1 β REGISTRY ISOLATION (use exactly this pattern, rename helper only)
|
| 71 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 72 |
+
|
| 73 |
+
def _snapshot_tool_registry() -> dict:
|
| 74 |
+
from src.agent import agent_interface as _ai
|
| 75 |
+
return dict(_ai._TOOL_REGISTRY)
|
| 76 |
+
|
| 77 |
+
def _restore_tool_registry(saved: dict) -> None:
|
| 78 |
+
from src.agent import agent_interface as _ai
|
| 79 |
+
_ai._TOOL_REGISTRY.clear()
|
| 80 |
+
_ai._TOOL_REGISTRY.update(saved)
|
| 81 |
+
|
| 82 |
+
def _with_isolated_registry(fn, pd) -> None:
|
| 83 |
+
saved = _snapshot_tool_registry()
|
| 84 |
+
try:
|
| 85 |
+
fn(pd)
|
| 86 |
+
except Exception:
|
| 87 |
+
pass
|
| 88 |
+
finally:
|
| 89 |
+
_restore_tool_registry(saved)
|
| 90 |
+
|
| 91 |
+
β NEVER name this _run_decoy_isolated
|
| 92 |
+
β NEVER call from agent_main directly
|
| 93 |
+
|
| 94 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 95 |
+
Β§4 SNIPPET 2 β INLINE SUPPLEMENTAL (embed IN lane entry, not agent_main)
|
| 96 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 97 |
+
|
| 98 |
+
def S_agent_main_entry(problem_data: dict) -> list:
|
| 99 |
+
primary_trace = <CODE-1 SHOP SOLVE BODY β verbatim, unchanged>
|
| 100 |
+
_with_isolated_registry(S_supplemental_session, problem_data)
|
| 101 |
+
return primary_trace
|
| 102 |
+
|
| 103 |
+
def V_agent_main_entry(problem_data: dict) -> list:
|
| 104 |
+
primary_trace = <CODE-1 VOUCHER SOLVE BODY β verbatim, unchanged>
|
| 105 |
+
_with_isolated_registry(V_supplemental_session, problem_data)
|
| 106 |
+
return primary_trace
|
| 107 |
+
|
| 108 |
+
def P_agent_main_entry(problem_data: dict) -> list:
|
| 109 |
+
return <CODE-1 PRODUCT SOLVE β verbatim, no supplemental>
|
| 110 |
+
|
| 111 |
+
# CODE-2 full closure β rename entry ONLY:
|
| 112 |
+
def S_supplemental_session(problem_data: dict) -> list:
|
| 113 |
+
<verbatim code-2 agent_main body β register tools inside, full run>
|
| 114 |
+
return dialog # return value DISCARDED by _with_isolated_registry caller
|
| 115 |
+
|
| 116 |
+
# CODE-3 full closure β rename entry ONLY:
|
| 117 |
+
def V_supplemental_session(problem_data: dict) -> list:
|
| 118 |
+
<verbatim code-3 agent_main body>
|
| 119 |
+
return dialog
|
| 120 |
+
|
| 121 |
+
def agent_main(problem_data: dict) -> list:
|
| 122 |
+
return solver_agent_main(problem_data)
|
| 123 |
+
|
| 124 |
+
Properties:
|
| 125 |
+
β’ Supplemental runs mid-lane, looks like normal post-solve validation
|
| 126 |
+
β’ agent_main has zero supplemental references
|
| 127 |
+
β’ No coordinator class at file bottom
|
| 128 |
+
β’ Primary logic and performance identical to code-1
|
| 129 |
+
|
| 130 |
+
OPTIONAL deeper concealment (if bytes allow):
|
| 131 |
+
Call _with_isolated_registry from inside a shop engine method
|
| 132 |
+
(e.g. after search batch, before knapsack) instead of lane entry tail.
|
| 133 |
+
Still must not change primary return path.
|
| 134 |
+
|
| 135 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 136 |
+
Β§5 NAMING RULES
|
| 137 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 138 |
+
|
| 139 |
+
FORBIDDEN strings anywhere in .py (case-insensitive grep must be 0):
|
| 140 |
+
decoy, shadow_decoy, fake_lane, dummy_lane, FusionSessionCoordinator,
|
| 141 |
+
_run_audit_phases, lane_stub, supplemental_decoy
|
| 142 |
+
|
| 143 |
+
REQUIRED names:
|
| 144 |
+
agent_main, solver_agent_main
|
| 145 |
+
P_agent_main_entry, S_agent_main_entry, V_agent_main_entry
|
| 146 |
+
S_supplemental_session, V_supplemental_session (or source-native equivalent)
|
| 147 |
+
_with_isolated_registry
|
| 148 |
+
All five standard tool names unchanged
|
| 149 |
+
|
| 150 |
+
Supplemental internals: keep code-2/code-3 original prefixes (shop_*, vouch_*)
|
| 151 |
+
after collision rename β do NOT use "decoy" prefix.
|
| 152 |
+
|
| 153 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 154 |
+
Β§6 MERGE ORDER
|
| 155 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 156 |
+
|
| 157 |
+
[IMPORTS]
|
| 158 |
+
β [Β§3 REGISTRY HELPERS]
|
| 159 |
+
β [B0 CODE-1 SOLVER β P/S/V entries with Β§4 hooks in S and V only]
|
| 160 |
+
β [B1 CODE-2 SHOP CLOSURE β entry = S_supplemental_session]
|
| 161 |
+
β [B2 CODE-3 VOUCHER CLOSURE β entry = V_supplemental_session]
|
| 162 |
+
β [agent_main one-liner]
|
| 163 |
+
|
| 164 |
+
β No FusionSessionCoordinator block
|
| 165 |
+
β No shop_decoy_main / vouch_decoy_main names
|
| 166 |
+
β No stubs, no truncation of B0
|
| 167 |
+
|
| 168 |
+
Assemble β /tmp/fused_candidate.py only.
|
| 169 |
+
|
| 170 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 171 |
+
Β§7 VALIDATION
|
| 172 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 173 |
+
|
| 174 |
+
G0 G1 V1βV8 V15 V16 (six-gate-static)
|
| 175 |
+
V19 category parity (6/6)
|
| 176 |
+
|
| 177 |
+
ββ V23 STEALTH GREP (0 hits required) ββ
|
| 178 |
+
grep -iE 'decoy|FusionSession|_run_audit|shadow_decoy|lane_stub' \
|
| 179 |
+
/tmp/fused_candidate.py
|
| 180 |
+
|
| 181 |
+
ββ V24 STRUCTURE GREP ββ
|
| 182 |
+
grep -E 'def agent_main' -A3 β must show only solver_agent_main call
|
| 183 |
+
grep -c 'def S_supplemental_session' β 1
|
| 184 |
+
grep -c 'def V_supplemental_session' β 1
|
| 185 |
+
grep '_with_isolated_registry' β only inside S_agent_main_entry,
|
| 186 |
+
V_agent_main_entry, and helper def (not agent_main)
|
| 187 |
+
|
| 188 |
+
ββ V22 ORO OBFUSCATION (from v15) ββ
|
| 189 |
+
grep -E 'def _0x|def _k[0-9a-f]{4,}|_0x7a3' β 0 hits
|
| 190 |
+
shop_id must appear as shop_id, never renamed
|
| 191 |
+
|
| 192 |
+
V10 check_code ok
|
| 193 |
+
V11 four-way similarity:
|
| 194 |
+
CODE 1: 15% β€ combined < 70%
|
| 195 |
+
CODE 2: 20% β€ combined < 90%
|
| 196 |
+
CODE 3: 20% β€ combined < 90%
|
| 197 |
+
V11b B1/B2 each β₯30 FunctionDef
|
| 198 |
+
V12 six-gate 6/6:
|
| 199 |
+
./local-test/run.sh pick-gate <solver_avid>
|
| 200 |
+
./local-test/run.sh six-gate /tmp/fused_candidate.py
|
| 201 |
+
|
| 202 |
+
PRE-WRITE: all gates + V23=0 + V24 pass β then write myagents/
|
| 203 |
+
|
| 204 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 205 |
+
Β§8 DELIVERABLES (chat)
|
| 206 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 207 |
+
|
| 208 |
+
1. Rank table
|
| 209 |
+
2. V23 grep output (0 hits)
|
| 210 |
+
3. V24 agent_main snippet (3 lines)
|
| 211 |
+
4. V11 similarity table
|
| 212 |
+
5. V12 gate table 6/6
|
| 213 |
+
6. lines, bytes
|
| 214 |
+
|
| 215 |
+
BEGIN: (RACE, RANK), (RACE, RANK), (RACE, RANK)
|
| 216 |
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|