Skip to content

feat: ecosystem architecture enhancements (Graph, Loop, Context, Harness)#40

Merged
Patel230 merged 5 commits into
mainfrom
feat/yaad-cleanup-tests
Jul 25, 2026
Merged

feat: ecosystem architecture enhancements (Graph, Loop, Context, Harness)#40
Patel230 merged 5 commits into
mainfrom
feat/yaad-cleanup-tests

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

This PR introduces cross-ecosystem architectural enhancements encompassing Graph Engineering, Loop Engineering, Context Management, and Prompt Frameworks.

What's Included

  • Graph Engineering: StateGraph implementations, A2A protocol support, and Cypher-like DSLs.
  • Loop Engineering: Async exponential backoff and retry handlers with strict context timeout support.
  • Context Engineering: Token budget optimizers prioritizing recent messages and system prompts.
  • Harness Engineering: Test harness wrappers for injecting mocks and running result validations.
  • Prompt Engineering: Secure text templating engines for LLM prompts.

All changes include appropriate edge-case handling for timeouts, cancellations, and state immutability.

Patel230 and others added 5 commits July 23, 2026 20:14
The examples README referenced a non-existent 'yaad' binary (go install,
yaad init, yaad setup, yaad list, yaad search, yaad graph). Yaad is a Go
library, not a standalone binary. Rewrite to show hawk integration, MCP tool
usage, Go library embedding, and the yaad-tui demo.
yaad depends on ServeHTTPWithShutdown and other APIs added after
v0.1.4. The replace directive is required for monorepo development
until v0.2.0 is tagged.
…ests

- Delete dead engine/git_learn.go, engine/ingest.go, engine/spaced_repetition.go
  (864 lines) — none of their exported types were referenced outside the
  files. The classifyContent helper used by engine/context_pack.go was
  moved into that file with its regex vars (renamed to avoid stutter).
- Remove duplicate `if entry.CreatedAt.IsZero()` block in spatial_memory.go
  (lines 87-91 were identical).
- Replace silent `_ = err` ignores in engine/proactive.go with slog.Warn
  calls (GetNeighbors, GetEdgesFrom, CountEdgesBatch) so operational issues
  are observable without breaking the best-effort prediction flow.
- Add tests: engine/cache_test.go (QueryCache Get/Put, Invalidate, TTL,
  eviction, Stats/Clear, CacheKey), engine/ratelimit_test.go (burst,
  refill, Remaining, maxBurst cap), engine/temporal_filter_test.go
  (matchesTemporal After/Before/Range, FilterByTime).

All yaad package tests pass; build is clean.

Co-Authored-By: Grok <noreply@xai.com>
- Add portablegraph/ package with portable graph implementation
- Update ARCHITECTURE.md, README, go.mod
- Update README
- Add PortableGraph implementation
- Support generic JSON serialization
- Add conversion to portable GraphSpec
@Patel230
Patel230 merged commit 6f033e0 into main Jul 25, 2026
4 of 8 checks passed
@Patel230
Patel230 deleted the feat/yaad-cleanup-tests branch July 25, 2026 10:14
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