Repository navigation
Port upstream review fixes onto aidlc/integration - #1
Merged
Merged
Conversation
… bare invocation, and re-announce after rewind
…isconnects still fire swarm_member_end
…sible worker startup as swarm_spawn, forget prompt origins
…generated ambient and overnight prompts, and never fail over a hook-blocked prompt
…s grant and revoke, redact secret MCP env values in review output Ports the upstream review fixes folded into the project trust change (1jehuang#2038).
…ormed project config from blocking trust commands Ports the upstream review fixes for project hooks (1jehuang#2039) and corrects PROJECT_TRUST.md now that all three scopes are live.
… keep the spawn schema project-agnostic
…nd narrow nested tool calls
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.
Port of the upstream review fixes onto
aidlc/integrationaidlc/integrationcarries the ten feature branches that were filed upstream as1jehuang#2032 to 1jehuang#2041. Review (Greptile) and the box gate found real
problems in them, and each fix was made on the upstream
pr/*branch. This PRports every one of those fixes, with its tests, onto the fork's integration
branch as new commits only.
aidlc/integrationis not rewritten.Base:
aidlc/integration(1a562a2). Branch:port/upstream-review-fixes.Fixes
skilltests injcode-base(reload order case)agent_tests/skill_arguments.rs(empty_arguments_replace_old_ones_and_rewind_allows_reannouncing)swarm_member_endswarmtests injcode-app-coreswarm_member_endreport is documented as truncated, and the worker identity limits are written downuser_prompt_submitruns for context-only messages and carries the declared origin (sdk), visible worker startup is markedswarm_spawn, prompt origins are forgotten with the session, ambient and overnight prompts are markedsystem, and a hook-blocked prompt is never failed over to another accountagent_tests/prompt_hook.rs(context-only, declared origin,run_once_capture_as),turn_failover(a_hook_block_keeps_its_own_error_type)#[cfg(unix)])stophook is skipped after provider guardrail stops (refusal, content filter, safety)agent_tests/stop_hook.rs(guardrail case)project_trust_tests.rs(forged worktree pointer, concurrent grant and revoke, linked worktree helper),mcp/trust.rsredaction testjcode trusthooks/project_tests.rs(revoking_or_disabling_takes_effect_while_the_parse_is_cached)comm_session_agent_def_tests.rs(definition_comes_from_the_coordinator_dir_not_the_worker_dir),swarm_model_schematestsswarm_agent_policy_tests.rs(a_definition_edited_after_approval_is_not_applied_from_a_stale_snapshot)batchcalls (the registered session policy is refreshed)swarm_agent_policy_tests.rsdocs/PROJECT_TRUST.mdcorrected: all three scopes are live on this branchDifferences from the upstream branches
The integration branch merges the features, so some code is arranged
differently from the stacked upstream PRs. Where a fix touched that code I
adapted it rather than copying it:
remove_session_envhere does not forget the swarm identity (that happens inremove_session_entry), so only the prompt origin cleanup was added.set_pending_prompt_origin_nameddid not exist on this branch and is added.hook_configured_for("stop", ..)next to the new guardrail check.
src/cli/commands/trust.rshere (src/cli/trust.rsupstream).server::swarm_agent_defsandserver::swarm_agent_policyhere, so the commit's paths were adjusted.here as one new commit built from the diff.
Not ported
Nothing that was fixed upstream is left out. These review findings were not
fixed upstream either, so they are not here:
report-tail items for
swarm_member_*, hooksystemMessagenotices only inthe log, and similar.
to one session can overwrite each other's origin.
user_prompt_submitasperson input.
session_startruns before its identity isregistered, and identities are in memory so a worker revived after a daemon
restart runs hooks without them. Both are documented in
docs/HOOKS.md.Validation
Gated on the build box, with
aidlc/integration(1a562a2) gated the same way as the baseline. The gate is fmt,cargo check, clippy, module files, code size, test size, panic, swallowed-error and wildcard re-export budgets, dependency boundaries and SDK parity, plus the test suites for every area above (hooks,trust,mcp,skill,agent_def,skill_arguments,prompt_hook,stop_hook,swarm,agent_def_tests,turn_failover,client_lifecycle, and thejcodeCLI args tests).cargo fmt.aidlc/integration(the jcode-tui clippy errors and the code size, test size, swallowed-error and similar ratchets).project_trust.rs(2, the baseline's own copy has 3),dot_ok+7 (baseline +9),unwrap_or_default+11 (baseline +12), andclient_lifecycle.rs4000 lines (baseline 3999, one line more for the origin argument).accepted_reload_recovery_continuation_marks_intent_deliveredfails on master too.