Skip to content

Merge/ret2 into main - #3

Merged
PureStream108 merged 10 commits into
mainfrom
merge/ret2-into-main
Aug 31, 2026
Merged

PureStream108 merged 10 commits into
mainfrom
merge/ret2-into-main

Conversation

@PureStream108

Copy link
Copy Markdown
Owner

No description provided.

Add a read-only GZCTF adapter (challenges, attachments, submissions)
with unit tests and the fetch/check helper scripts.
- Ret2ShellClient: JWT login with PoW captcha, 10-per-5min submit
  limiter, async judge polling, dynamic instance lifecycle.
- ret2shell MCP (instance_start/status/renew/stop, challenge_status)
  with wsrx tunnel management for ws-proxied challenge ports; wsrx is
  installed in the app image and IPC_R2S_* env vars are wired through
  docker-compose.
- FieldMapping/ChallengeMappingSpec gain platform=http_json|ret2shell
  and game_id; credentials are read from IPC_R2S_* env vars only.
- The MCP is registered for members only when credentials are present.
- conftest honors an explicit @pytest.mark.postgres outside the
  DB-backed module list so mixed unit/integration modules can mark
  single tests.
…ownloads

Phase 1 downloads every attachment to a staging directory while NO
database connection is open; phase 2 then performs only fast local
writes inside the transaction. Holding the write transaction across
network downloads starved the UI polling loop during large imports.

The challenge statement (connection commands, flag format) now rides
in the origin fact so the member context's challenge_description picks
it up, and the import endpoint dispatches to the ret2shell adapter when
mapping.platform selects it.
…ervation

- An intent that stalls 3 times in a row is now deferred for 180s so
  the scheduler dispatches a concrete alternate branch instead of
  burning slots on the same stuck line; progress on done/concluded/flag
  resets the counter.
- The scheduler tick's error handler degrades to stderr when the
  DB-backed logger itself is the failure, so a locked/unreachable
  database can no longer kill the loop silently.
- Reserve the largest surviving proj_NNNN workspace id on startup so a
  fresh database never reissues an id whose artifacts still exist.
- project_log_filename degrades to the plain project id when the
  database is unavailable instead of raising through logging paths.
- create_fact deduplicates restated source findings by their stable
  (path, line, commit) key, plus exact whitespace-normalized matches.
- ipc_task_sandbox_exec no longer passes project_id twice through the
  MCP bridge, which failed with 'too many values to unpack'.
…enge context

- kimi-for-coding / kimi-k* are recognized as always-reasoning models;
  forced-reasoning models get a 16384-token decision budget because
  4096 was observed fully consumed by hidden reasoning, leaving an
  empty finish_reason=length response.
- Provider errors now include the gateway's response body (truncated
  to 500 chars) — a bare 'HTTP 400' was undiagnosable from logs.
- Explicitly selected Chat Completions on a non-native gateway no
  longer assumes strict JSON Schema support from the model name alone;
  it falls back to the broadly supported JSON Object mode.
- Member context gains challenge_description (the original statement
  with connection commands and flag format) and external_id, plus a
  rejected-flag blacklist surfaced from experience memory so a member
  never resubmits flags the platform already rejected.
…rst ordering

- LocalSandbox on Windows prefers Git Bash (IPC_LOCAL_BASH, git
  install, ProgramFiles) and rewrites bare D:\ style paths to /d/ so
  POSIX member commands behave like the Docker backend; forced UTF-8 IO.
- Default limits raised to 12 CPU / 8 concurrent tasks.
- The project list sorts running projects first, completed last,
  newest id first within a group.
- Ignore the local .ipc-agent runtime directory.
Remove functions and methods with zero references in production and
tests: edge_store.claim_next_intent, ipc.verify_flag_and_wp,
Database.run_transaction, ContainerPool.stop_member,
TaskSlotLimiter.active_count/reset, IPCLogger.clear_all/write_jsonl,
Lifecycle.can_transition, the unused Category alias, Memory.keywords,
and MCPClient.streamable_http/describe (no caller ever builds a
URL-target client, so the streamable-http branch, the str target type
and the headers parameter go with it).

Config's _name_members/_check_unique were audit candidates but are
live pydantic validators and stay.
- Repository layout gains backend/platform (HTTP JSON / GZCTF /
  ret2shell clients).
- MCP list documents the conditional ret2shell instance-control MCP.
- Contributors: credit the ret2 branch committer for the competition
  platform integration and stability fixes.
Replace the plain-text git identity with springbot2025's avatar entry,
and adjust the browser requirement wording.
@PureStream108
PureStream108 merged commit 4f25d20 into main Aug 31, 2026
1 check passed
@PureStream108
PureStream108 deleted the merge/ret2-into-main branch October 20, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant