Repository navigation
feat(twin): Digital Twin Agent — clones workflow patterns, drafts in user voice (#745) - #861
Merged
AmitoVrito merged 2 commits intoJul 29, 2026
Conversation
Collaborator
|
Merged, thanks Dhruv. I tightened the delegation gate so never_send_auto actually blocks a send (it was advisory before), moved the style.md IO off the event loop, and added the coroutine assertions. You're co-author on that commit. Solid feature. |
This was referenced Jul 29, 2026
ayushbhatt1224
pushed a commit
to ayushbhatt1224/SynapseKit
that referenced
this pull request
Aug 12, 2026
…seKit#745) # Conflicts: # src/synapsekit/__init__.py
ayushbhatt1224
pushed a commit
to ayushbhatt1224/SynapseKit
that referenced
this pull request
Aug 12, 2026
AST checker that fails CI on any blocking file/subprocess/sleep/network call directly inside an async def (offload via asyncio.to_thread / run_in_executor). Skips nested sync helpers and awaited calls; supports a # allow-blocking escape hatch. Guards the async-first invariant that let blocking IO slip past review in SynapseKit#860/SynapseKit#861/SynapseKit#862.
ayushbhatt1224
pushed a commit
to ayushbhatt1224/SynapseKit
that referenced
this pull request
Aug 12, 2026
Formatting drift from the SynapseKit#860/SynapseKit#861 async fixes broke `ruff format --check`. Co-authored-by: Dhruv Garg <[email protected]>
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.
Summary
Implements the
DigitalTwinagent system as requested in #745.Key Components Added:
StyleProfile: Versioned, human-editablestyle.mdfile storing learned patterns (tone, structure, vocabulary, review style).VoiceMatcher: Evaluates candidate draft match against reference samples using composite scoring (n-gram overlap, vocabulary match, structure match) with optional LLM judge.DelegationPolicy: Channel-level approval gates (draft,draft_with_approval,never_send_auto) andDraftResultwith explicit provenance and attribution (drafted by twin vN).DigitalTwinAgent: Facade orchestrating profile management, voice matching, delegation policies, and drafting of commit messages, PR descriptions, and reviews.Verification:
tests/twin/test_twin.py(9 tests covering all components end-to-end).mypy) passed with zero errors across all 5 source files.ruff check/ruff format) passed cleanly.Closes #745