Skip to content

Instantly share code, notes, and snippets.

View arikon's full-sized avatar

Sergey Belov arikon

  • Yandex
  • Tivat, Montenegro
View GitHub Profile
@arikon
arikon / 0001-test-hook-canonicalize-3138-path-expectation.patch
Created July 27, 2026 22:18
oh-my-codex #3323: canonicalize macOS #3138 test path expectation
From 75acaa7d456b5b22a8d8ec01e0be10d65f2e6054 Mon Sep 17 00:00:00 2001
From: Sergey Belov <peimei@ya.ru>
Date: Tue, 28 Jul 2026 00:17:08 +0200
Subject: [PATCH] test(hook): canonicalize #3138 path expectation
---
src/scripts/__tests__/codex-native-hook.test.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/scripts/__tests__/codex-native-hook.test.ts b/src/scripts/__tests__/codex-native-hook.test.ts
@arikon
arikon / 0001-fix-hook-canonicalize-macos-var-paths.patch
Created July 27, 2026 22:12
oh-my-codex #3321: macOS /var path canonicalization patch
From 435e778f4a17bda4a0eee070536a4086261659f0 Mon Sep 17 00:00:00 2001
From: Sergey Belov <peimei@ya.ru>
Date: Tue, 28 Jul 2026 00:12:30 +0200
Subject: [PATCH] fix(hook): canonicalize macOS var paths
---
.../__tests__/codex-native-hook.test.ts | 7 +-
src/scripts/codex-native-hook.ts | 89 +++++++++++++------
src/utils/__tests__/paths.test.ts | 22 +++++
src/utils/paths.ts | 18 ++--
@arikon
arikon / 0001-fix-hooks-require-standalone-bridged-omx-questions-3.patch
Created July 27, 2026 21:13
oh-my-codex #3320: standalone bridged omx question guard regression fix
From 920579f961fea3e9a45c8ecd61b9712e4806b6c7 Mon Sep 17 00:00:00 2001
From: Sergey Belov <peimei@ya.ru>
Date: Mon, 27 Jul 2026 23:12:33 +0200
Subject: [PATCH] fix(hooks): require standalone bridged omx questions (#3320)
A valid return-pane bridge previously authorized compound shell commands that merely contained omx question, allowing writes and state mutations to bypass the planning guard.
Make the shared question classifier fail closed on chaining, redirection, substitutions, wrapper execution, and multiple commands while preserving standalone Bash, node, inherited-pane, quoted-pane, and PowerShell bridge forms.
Tested: npm run build; focused #3320 regression; 16 omx-question regressions; npm run check:no-unused; npm run lint; git diff --check.
@arikon
arikon / omx-native-assignment-dev.patch
Created July 23, 2026 22:23
OMX #3272 native assignment and root orchestration hotfix (dev branch)
diff --git a/docs/native-subagent-assignments.md b/docs/native-subagent-assignments.md
new file mode 100644
index 00000000..cb72befc
--- /dev/null
+++ b/docs/native-subagent-assignments.md
@@ -0,0 +1,84 @@
+# Native subagent assignments
+
+The Codex native hook keeps typed native children read-only unless the active
+root Conductor creates an exact, session-scoped assignment. This transport does
@arikon
arikon / omx-native-assignment-main.patch
Created July 23, 2026 21:51
OMX #3272 native assignment and root transport hotfix (main)
diff --git a/src/leader/__tests__/contract.test.ts b/src/leader/__tests__/contract.test.ts
index 27acb21a..2d9db445 100644
--- a/src/leader/__tests__/contract.test.ts
+++ b/src/leader/__tests__/contract.test.ts
@@ -29,12 +29,36 @@ import {
ROLE_INTENT_SPAWN_TASK_NAME_PREFIX,
ROLE_INTENT_CORRELATION_TOKEN_PATTERN,
canonicalizeOriginCwd,
+ canonicalizeNativeCollaborationToolName,
buildRoleIntentSpawnTaskName,
@arikon
arikon / agent-canvas-runtime-base-path.patch
Created July 14, 2026 17:47
Proof-of-concept runtime base path patch for OpenHands/agent-canvas v1.3.0
diff --git a/__tests__/scripts/static-server.test.ts b/__tests__/scripts/static-server.test.ts
index 4b8e523..7cc85f0 100644
--- a/__tests__/scripts/static-server.test.ts
+++ b/__tests__/scripts/static-server.test.ts
@@ -43,6 +43,16 @@ describe("static-server.mjs", () => {
}
describe("parseArgs", () => {
+ it("parses and normalizes --base-path", () => {
+ expect(parseArgs(["--base-path", "/tasks/demo/"]).basePath).toBe(
@arikon
arikon / run_bench.log
Created March 31, 2023 17:11
Petals benchmark
Mar 30 20:06:18.321 [DEBUG] [urllib3.connectionpool._new_conn:1003] Starting new HTTPS connection (1): huggingface.co:443
Mar 30 20:06:19.001 [DEBUG] [urllib3.connectionpool._make_request:456] https://huggingface.co:443 "HEAD /bigscience/bloom-7b1-petals/resolve/main/config.json HTTP/1.1" 200 0
Mar 30 20:06:19.009 [INFO] Creating model...
Mar 30 20:06:28.285 [DEBUG] [hivemind.utils.mpfuture._initialize_mpfuture_backend:156] Initializing MPFuture backend for pid 1
Mar 30 20:06:28.285 [DEBUG] [asyncio.__init__:54] Using selector: EpollSelector
Mar 30 20:06:28.291 [DEBUG] [hivemind.p2p.p2p_daemon.create:221] Launching ['/opt/conda/lib/python3.10/site-packages/hivemind/hivemind_cli/p2pd', '-autoRelay=1', '-autonat=1', '-b=1', '-connManager=1', '-idleTimeout=30s', '-listen=/unix/tmp/hivemind-p2pd-uzfQ1lmMl1E.sock', '-natPortMap=1', '-relay=1', '-relayHopLimit=0', '-tls=1', '-persistentConnMaxMsgSize=4194304', '-dhtClient=1', '-bootstrapPeers=/ip4/192.168.99.252/tcp/31400/p2p/Qmcyrk8a5wqreqYRjvGQK64NC5eHwEmY8GRFtDJ
@arikon
arikon / request.sh
Created April 25, 2022 06:19
Waves Node API incorrect order
curl -X 'GET' \
'http://nodes.wavesplatform.com/transactions/address/3PJCJYt9Ev7Y7zW28iW9dcY4xzumPwvCqhs/limit/2?after=8PNTWY4JrvrPgXUKBx9gq1DMNM924r7TwFfJdu3NxPGT' \
-H 'accept: application/json'
/**
* This configuration file defines a deployment scenario for use with the "rush deploy" command.
* The scenario files are located under the "common/config/deploy-scenarios" folder.
* For full documentation, please see https://rushjs.io
*/
{
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/deploy-scenario.schema.json",
/**
* Specify the name of the Rush project to be deployed. The name must be a full package name
@arikon
arikon / swagger.json
Created May 18, 2016 13:39
swagger.json
{
"swagger": "2.0",
"basePath": "/api/v1.0",
"info": {
"title": "Sandbox JSON API",
"description": "Описание JSON API для взаимодействия с Sandbox (на данный момент находится в разработке)",
"contact": {
"email": "sandbox@yandex-team.ru"
},
"version": "1.0"