Repository navigation
Merge/ret2 into main - #3
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.