Commit Graph

215 Commits

Author SHA1 Message Date
Sycun 3ad176b926 fix(plan-execute): align orchestrator turn budget with max_iterations and preserve partial output on iteration limits 2026-11-30 22:25:46 +08:00
Sycun 72ecf5aeab fix(pi): avoid fragmented PQ TLS ClientHello and add IPv4/TLS1.2/proxy fallbacks 2026-11-30 16:42:19 +08:00
Sycun 7d209533fd fix(pi,assessment): retry TLS handshake ECONNRESET, preserve active workers, and deduplicate inline host:port 2026-11-30 16:11:32 +08:00
Sycun db61cfa342 fix(assessments): prevent zero-intent planning spin and extract unlinked declared targets
- Extract and link declared target hosts/endpoints even when no project is associated, stopping URL extraction at CJK boundaries and recognizing inline host+path pairs
- Stop copying objective into supplementary exclusions when scope is omitted, and normalize legacy identical scopes across UI, decomposition, and worker contracts
- Normalize hostname/URL entries in planner asset_ids to linked asset UUIDs and guide empty-asset cases to use asset_ids: []
- Reject empty initial plans without a clarifying question, align planner/reviewer tool-submission instructions, sync assets before reading ChangeVersion, and stop waiting_progress from spinning every 2 minutes without graph/guidance signals
2026-11-30 15:57:09 +08:00
Sycun e7669f445d fix(pi): isolate pooled worker tail calls, record image read receipts, and fallback polyglots 2026-11-29 23:44:22 +08:00
Sycun 5212870e9c feat(tools): upgrade host file, edit, glob, and grep primitives with image reads and streaming bounds 2026-11-29 22:29:37 +08:00
Sycun f76fcdf407 feat(pi): enable native QuickJS-WASI codemode extension for batched tool orchestration 2026-11-29 22:10:17 +08:00
Sycun b501a91913 fix(pi): preserve skill stats, guard vendor draft fields, and propagate runtime config 2026-11-29 21:54:22 +08:00
Sycun 2f339ac4a9 refactor(skills): unify runtime skill discovery onto native Pi loadSkills
Ordinary sessions now pass skillPaths through the run request instead of
hand-splicing a Go skill index into the system prompt, so both chat and
native workflows share one disclosure path. The metadata sits in the
cacheable prefix ahead of per-run context, and the name-scoped host skill
loader remains the only reader when generic file tools are disabled.
2026-11-29 21:20:41 +08:00
Sycun 5e1922b40c refactor(llm): remove dead client code, unlock Pi native APIs, and route single-shot calls via Pi
Drop the unread openAIClient/auditLLM fields and the zero-call Go streaming
methods so the synchronous probe client is the only remaining HTTP path.
Map the five additional Pi 1.7.0 vendor protocols without leaking
openai-completions compat knobs, and fix generateOnly so a text-only message
is never dropped. Knowledge expansion, workflow drafts, attack chains, FOFA
parsing, assessment Q&A and HITL audit now share one Pi single-shot entry.
2026-11-29 21:11:58 +08:00
Sycun b5f4ab9071 feat(assessment): fuse global security base and deep assessment governance (v1.8.2)
- Add random-nonce CSAI_DATA prompt guard envelope and typed scanner surface ingest (nmap/nuclei/httpx/ffuf) with cross-path execution deduplication
- Add deterministic 3-axis vulnerability fingerprinting and 5-dimension adversarial review shared across record/status/retest/assessment review
- Extend project scope_json with structured allow/deny constraints, scanner noise profiles, and evidence-gated project lessons (off/shadow/inject)
- Bundle offline WSTG/CWE/ATT&CK lookup_security_taxonomy tool and Pi compact skill index + prompt_cache_prefix_split support
- Add deep assessment pre-plan goal decomposition, persistent coverage ledger & acceptance gate, optimistic-concurrency plan notes, and graceful segment wrap-up
- Bump personal version to v1.8.2 and update CHANGELOG.md
2026-11-27 19:21:04 +08:00
Sycun b3a9ed7891 feat(pi): auto-continue truncated model outputs and preserve partial replies 2026-11-26 18:35:27 +08:00
Sycun 6e0a6854fb fix(chat): preserve draft replies when plans are unfinished 2026-11-26 17:22:47 +08:00
Sycun 4fbf6f6d2f fix(pi): warn plan_execute that unfinished todos block the run
The orchestrator prompt and write_todos description never said that
pending/in_progress items block the run with unfinished_plan, so the
model could call exit with stale plan state and lose the deliverable.
State the rule in the markdown prompt, the built-in fallback prompt and
the tool description; clarify the blocked notice and cover the
no-auto-continue behavior with a test.

Ref: AIPentest/CyberStrikeAI#416
2026-11-24 10:24:27 +08:00
Sycun cb1507df6c feat(chat): group conversations and consolidate header actions 2026-11-20 15:14:00 +08:00
Sycun ca5057f8d9 feat(settings): use native image input and stack model settings 2026-11-20 15:12:30 +08:00
Sycun c34bd3a226 fix(pi): report incomplete runs and model stream failures 2026-11-19 16:19:05 +08:00
Sycun 8cbb7e42f8 merge: sync upstream main and gateway store compatibility
Merge AIPentest/CyberStrikeAI main at 664de13e. Adopt explicit store-field omission and its upstream regression tests. Preserve the newer personal Pi, assessment, proxy, vulnerability and UI implementations, including the developer-role compatibility fix.
2026-11-17 22:57:27 +08:00
Sycun 04ec3d11f8 fix(pi): preserve system role for compatible reasoning models 2026-11-17 22:42:13 +08:00
Sycun 5c2402c983 fix(pi): make store omission an explicit channel opt-in 2026-11-14 10:14:24 +08:00
Sycun 6d4a5c7e53 fix(pi): omit optional store field for compatible gateways 2026-11-14 09:59:58 +08:00
Sycun 3097d5f9ff feat(assessments): make exploration continuous with graph memory 2026-11-14 02:29:50 +08:00
Sycun 1ebfac570c feat(assessments): add Pi-native long-running assessment workspace 2026-11-14 01:18:43 +08:00
Sycun 1c0c6b9c91 revert(tasks): restore v1.8.0 batch queue workflow 2026-11-14 00:10:44 +08:00
Sycun e1c4551b64 feat(tasks): replace deep assessments with durable goal tasks 2026-11-13 20:20:05 +08:00
Sycun 6f8e0e3332 test(pi): skip economy comparison when runtime is unavailable 2026-11-13 19:24:44 +08:00
Sycun 012a418b93 test(pi): skip economy comparison when runtime is unavailable 2026-11-13 19:24:35 +08:00
Sycun 81e9093c4f perf(pi): reduce DeepSeek input overhead and auto-detect local context 2026-11-13 15:13:33 +08:00
Sycun ebc8425f38 perf(pi): reduce DeepSeek input overhead with automatic economy profile 2026-11-13 14:24:10 +08:00
Sycun 3646c1f38a fix(pi): honor DeepSeek output budgets and report reasoning usage 2026-11-13 14:06:05 +08:00
Sycun cfe3f82dd4 fix(pi): invalidate deleted sessions and prepare legacy upgrades 2026-11-12 21:19:09 +08:00
Sycun 7c476fe2ac fix(pi): invalidate deleted sessions and prepare legacy upgrades 2026-11-12 21:18:52 +08:00
Sycun cfaa95d7bd refactor(runtime): remove Eino and make Pi the sole agent engine
Delete the Eino model adapters, callbacks, middleware, orchestration,
summarization and single-agent runner together with their dependencies.
Chat, batch tasks, workflow Agent nodes and sub-agents now share the Pi
runtime, and dispatch is a single code path instead of an engine switch.

Configuration migrates eino_middleware/eino_skills to runtime/skills and
drops the retired callback settings while old files still load. Settings,
i18n and docs describe Pi only. Also carry the Pi follow-up fixes: empty
required lists are omitted from tool schemas, historical tool results stay
with their call batch, model proxies work over HTTP/1.1, single-query
retrieval skips query expansion, and finalization docs match Pi lifecycle
events.
2026-11-12 17:55:36 +08:00
Sycun 35508eb614 feat(pi): add the Pi agent runtime with native workflow and retrieval engines
Introduce an isolated Node worker that hosts the Pi SDK while Go keeps
business state, permissions, MCP execution, evidence and delivery checks.
The worker is published per source fingerprint, streams events back to Go
and supports tool callbacks, cancellation, session resume and per-model
transport settings.

Agent dispatch, tool search, plan/task tools and migration controls are
wired on top of it: large tool catalogs load through Pi tool_search, the
conversation task board keeps its existing tools, and legacy mode/route
values still resolve. Workflow gains a native DAG with versioned JSON
checkpoints, and knowledge retrieval moves to native documents, splitter,
HTTP embeddings, vector search and reranking.
2026-11-12 17:55:33 +08:00
Sycun ecedd32c97
fix(pi): omit empty required lists in tool schemas (#4)
Prevent a parameterless TaskList schema from rejecting a plain chat request. Add a regression test through the Pi worker and an HTTP fixture.
2026-11-11 17:00:00 +08:00
Sycun 4b4b623524 refactor(pi): remove DSH-Purge prompt integration 2026-11-11 16:43:46 +08:00
Sycun 0dd997ca01 refactor(runtime): remove Eino and make Pi the sole agent engine 2026-11-11 12:45:32 +08:00
Sycun c07b6ac4ac feat(pi): integrate durable assessments, tool discovery and migration controls 2026-11-11 10:06:25 +08:00
Sycun 67683f4266 merge: preserve personal assessment and model profile work in Pi migration 2026-11-11 09:22:23 +08:00
Sycun 43b5ac2da5 feat(runtime): introduce Pi agents and native workflow and retrieval engines 2026-11-11 09:19:14 +08:00
Sycun e4de840086 fix(multiagent): repair interleaved agentic stream indices 2026-11-06 21:26:00 +08:00
Sycun f895a33eb1 merge: integrate local model profiles with personal gateway headers 2026-11-03 10:17:34 +08:00
Sycun 07864b355f feat(assessment): add durable deep assessment workbench independent of chat 2026-11-02 21:17:03 +08:00
Ed1s0nZ 5c5c5e199d fix(openai): preserve provider-specific reasoning disable intent (#366) 2026-10-21 15:43:53 +08:00
Sycun 8b74b33eee fix(ai): harden local context detection and budget previews
- Surface llama.cpp parallel slots via context_slots and a warning instead of treating n_ctx as the per-request window
- Pass max_completion_tokens into detection previews and warn when the output cap is clamped
- Clamp the effective budget to the window and use the assumed local window when clamping output
- Overwrite a stale window on explicit auto-detect so the preview matches the saved value
- Keep the budget-warning test repeatable and document failover/budget semantics
2026-10-21 09:47:03 +08:00
Sycun 0d97169d07 fix(ai): report the configured budget in context clamp warnings
The warning was computed after the runtime config had already been clamped,
so configured and effective values were identical and the clamp warning was lost.
2026-10-21 00:16:30 +08:00
Sycun d7e8a29dfe feat(ai): add local model context profile and runtime window probe
- Probe Ollama, llama.cpp, LM Studio and vLLM runtime context windows, including reverse-proxy subpaths
- Add context_window and context_profile=local: clamp budgets, compaction triggers, tool-output limits and always-visible tools
- Count tool schemas in the soft input budget and apply a 10% token estimate margin for local tokenizers
- Prefer max_tokens for local requests across agent, attack-chain, FOFA, workflow and HITL paths, and honor channel extra_request_fields
- Recognize local context-overflow errors and retry with aggressive compaction
2026-10-21 00:12:57 +08:00
Sycun 7bf9eb8511 Merge main and reconcile project resume with checkpoint index limits 2026-10-16 11:15:11 +08:00
Sycun ac42b925da Merge remote-tracking branch 'origin/main' into codex/project-resume-reuse 2026-10-16 11:11:04 +08:00
Sycun 0fb5484657 Merge upstream main and resolve context memory asset conflicts 2026-10-16 11:02:49 +08:00