Skip to content

feat: Squad-inspired persistent state, routing reference, and formal parallel execution protocol#10

Draft
Copilot wants to merge 1 commit into
mainfrom
copilot/explore-autonomous-ai-agent-ideas
Draft

feat: Squad-inspired persistent state, routing reference, and formal parallel execution protocol#10
Copilot wants to merge 1 commit into
mainfrom
copilot/explore-autonomous-ai-agent-ideas

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 5, 2026

Studied bradygaster/squad for applicable patterns. Key gaps identified: no persistent team knowledge store, and the parallel execution model in the orchestrator is implicit (3-line hint) rather than structured.

.nowdev/ Persistent State Directory

Analogous to Squad's .squad/ directory. Five markdown files committed to the repo so team knowledge survives sessions and travels with contributors:

File Purpose
team.md Full agent roster with file paths and status
routing.md Request-type → agent mapping + ServiceNow artifact dependency table
decisions.md Architecture decision log; append-only
wisdom.md Distilled ServiceNow patterns and anti-patterns
now.md Current sprint focus

Parallel Execution Protocol

The orchestrator's parallel section was vague. The new protocol in NowDev-AI.agent.md formalizes fan-out/fan-in with explicit steps:

  1. Build dependency graph before delegation
  2. Announce the plan to the user ("I will run X and Y in parallel, then Z after both complete")
  3. Fan-out: call agent tool multiple times in a single response for independent artifacts
  4. Fan-in: collect all results before proceeding to review or the next wave

Includes a concrete ServiceNow dependency table (e.g., Script Include → Business Rule referencing it = sequential; multiple Script Includes = parallel) so the orchestrator has deterministic rules rather than guessing.

AGENT-PATTERNS.md gets a new Canonical: Parallel Execution Protocol section with the dependency table, anti-patterns (false sequencing, missing fan-in), and a fan-out diagram.

.gitattributes Merge Drivers

.nowdev/decisions.md merge=union
.nowdev/wisdom.md    merge=union
.nowdev/now.md       merge=union

Append-only state files use union merge so concurrent contributors never conflict.

Not Implemented (Low Feasibility)

  • Ralph-style autonomous monitor — requires GitHub automation infrastructure not present here
  • Sprint ceremonies — NowDev AI is per-session, not per-sprint; not applicable

Copilot AI changed the title [WIP] Research autonomous AI agent for ServiceNow development feat: Squad-inspired persistent state, routing reference, and formal parallel execution protocol Apr 5, 2026
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.

2 participants