Skip to content

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

Merged
Patel230 merged 7 commits into
mainfrom
feat/sight-cleanup
Jul 25, 2026
Merged

feat: ecosystem architecture enhancements (Graph, Loop, Context, Harness)#30
Patel230 merged 7 commits into
mainfrom
feat/sight-cleanup

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 7 commits July 23, 2026 20:14
Previously, filepath.Match errors were silently discarded with matched, _ :=.
Malformed glob patterns (e.g. [invalid) would silently fail to match instead
of being skipped gracefully. Now errors cause the pattern to be skipped via
continue, preventing silent misbehavior.
…f + SARIF

- Remove fmt.Printf debug line from internal/graph/graph.go (Build) and
  internal/hook/hook.go (Execute) — libraries must not write to stdout.
  Also drop the now-unused time import in graph.go.
- Consolidate duplicate validateGitRef: export ValidateGitRef from
  internal/context (the canonical location) and replace the identical copy
  in incremental.go with a call to it (aliased as sightcontext to avoid
  colliding with the standard context package).
- Delete the dead FormatSARIF function and its 11 supporting outputSarif*
  structs from internal/output/output.go — GenerateSARIF in sarif.go is the
  canonical implementation (covered by sarif_test.go); FormatSARIF had no
  callers anywhere in the codebase.
- Add TestValidateGitRef_ValidRefs and TestValidateGitRef_RejectsInvalid
  covering valid refs (branches, tags, SHAs, HEAD, tilde-notation) and the
  rejection paths (empty, dash-start, shell metachars, whitespace).

All sight package tests pass; build is clean.

Co-Authored-By: Grok <[email protected]>
- Add qualitygraph/ package with quality analysis
- Update README and docs
- Add QualityGraph implementation
- Support tracking code quality metrics and relationships
- Add issue ranking and threshold tracking
@Patel230
Patel230 merged commit 82aba0f into main Jul 25, 2026
12 checks passed
@Patel230
Patel230 deleted the feat/sight-cleanup branch July 25, 2026 16:13
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