taskcarry 0.3.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. taskcarry/__init__.py +3 -0
  2. taskcarry/__main__.py +4 -0
  3. taskcarry/adapter_contracts.py +166 -0
  4. taskcarry/agy_turns.py +282 -0
  5. taskcarry/api.py +111 -0
  6. taskcarry/board.py +313 -0
  7. taskcarry/board_assets/board.css +1087 -0
  8. taskcarry/board_assets/board.js +1187 -0
  9. taskcarry/board_assets/browse.js +214 -0
  10. taskcarry/board_assets/index.html +43 -0
  11. taskcarry/board_assets/taskcarry-icon.ico +0 -0
  12. taskcarry/board_assets/taskcarry-mark.svg +28 -0
  13. taskcarry/board_data.py +466 -0
  14. taskcarry/chat_joins.py +157 -0
  15. taskcarry/cli.py +119 -0
  16. taskcarry/codex_capture.py +184 -0
  17. taskcarry/codex_host.py +293 -0
  18. taskcarry/collaboration_exchange.py +316 -0
  19. taskcarry/connection.py +159 -0
  20. taskcarry/continuity.py +300 -0
  21. taskcarry/contracts.py +165 -0
  22. taskcarry/conversation_capture.py +669 -0
  23. taskcarry/core.py +896 -0
  24. taskcarry/cycle_contracts.py +73 -0
  25. taskcarry/discovery.py +434 -0
  26. taskcarry/discovery_contracts.py +52 -0
  27. taskcarry/exchange_contracts.py +67 -0
  28. taskcarry/exchange_endpoint.py +377 -0
  29. taskcarry/exchange_packets.py +142 -0
  30. taskcarry/experience_contracts.py +129 -0
  31. taskcarry/experience_exchange.py +214 -0
  32. taskcarry/experience_notes.py +433 -0
  33. taskcarry/experience_storage.py +125 -0
  34. taskcarry/experience_tools.py +26 -0
  35. taskcarry/feishu/__init__.py +1 -0
  36. taskcarry/feishu/display.py +122 -0
  37. taskcarry/feishu/project_watch.py +145 -0
  38. taskcarry/feishu/review_sets.py +80 -0
  39. taskcarry/feishu/sender.py +42 -0
  40. taskcarry/feishu/subscription.py +193 -0
  41. taskcarry/feishu/windows_agent.py +287 -0
  42. taskcarry/feishu/windows_secret.py +34 -0
  43. taskcarry/gitops.py +170 -0
  44. taskcarry/governance.py +88 -0
  45. taskcarry/governance_cycle.py +775 -0
  46. taskcarry/identification.py +82 -0
  47. taskcarry/integration.py +663 -0
  48. taskcarry/maintenance.py +118 -0
  49. taskcarry/mcp.py +183 -0
  50. taskcarry/member_join.py +184 -0
  51. taskcarry/member_routing.py +145 -0
  52. taskcarry/onboarding.py +272 -0
  53. taskcarry/onboarding_complete.py +252 -0
  54. taskcarry/path_batches.py +19 -0
  55. taskcarry/preservation.py +257 -0
  56. taskcarry/project_collaboration.py +453 -0
  57. taskcarry/project_history.py +166 -0
  58. taskcarry/project_identity.py +51 -0
  59. taskcarry/project_recovery.py +824 -0
  60. taskcarry/recovery_contracts.py +25 -0
  61. taskcarry/recovery_files.py +153 -0
  62. taskcarry/recovery_git.py +234 -0
  63. taskcarry/remote_capture.py +89 -0
  64. taskcarry/remote_transfer.py +356 -0
  65. taskcarry/role_connection.py +215 -0
  66. taskcarry/setup.py +597 -0
  67. taskcarry/shared_workbench.py +480 -0
  68. taskcarry/skill_data/taskcarry-experience-recovery/SKILL.md +37 -0
  69. taskcarry/skill_data/taskcarry-governance-reconcile/SKILL.md +47 -0
  70. taskcarry/skill_data/taskcarry-governance-reconcile/references/daily-governance.md +72 -0
  71. taskcarry/skill_data/taskcarry-project-setup/SKILL.md +48 -0
  72. taskcarry/skill_data/taskcarry-project-setup/references/onboarding.md +198 -0
  73. taskcarry/skill_data/taskcarry-task-delivery/SKILL.md +32 -0
  74. taskcarry/skill_data/taskcarry-task-delivery/references/conditional-experience.md +93 -0
  75. taskcarry/skill_data/taskcarry-task-delivery/references/worker-channel.md +41 -0
  76. taskcarry/source_review_set.py +80 -0
  77. taskcarry/state_format.py +47 -0
  78. taskcarry/store.py +472 -0
  79. taskcarry/task_context.py +141 -0
  80. taskcarry/text_handback.py +98 -0
  81. taskcarry/transfer_contracts.py +18 -0
  82. taskcarry/updates.py +351 -0
  83. taskcarry/workbench.py +625 -0
  84. taskcarry/workbench_contracts.py +32 -0
  85. taskcarry/workbuddy_capture.py +451 -0
  86. taskcarry/workbuddy_setup.py +212 -0
  87. taskcarry/worker_channel.py +859 -0
  88. taskcarry/worker_contracts.py +190 -0
  89. taskcarry/worker_storage.py +60 -0
  90. taskcarry/worker_tools.py +111 -0
  91. taskcarry-0.3.2.dist-info/METADATA +203 -0
  92. taskcarry-0.3.2.dist-info/RECORD +105 -0
  93. taskcarry-0.3.2.dist-info/WHEEL +5 -0
  94. taskcarry-0.3.2.dist-info/entry_points.txt +5 -0
  95. taskcarry-0.3.2.dist-info/licenses/LICENSE +21 -0
  96. taskcarry-0.3.2.dist-info/licenses/LICENSE_SCOPE.md +31 -0
  97. taskcarry-0.3.2.dist-info/top_level.txt +2 -0
  98. taskcarry_https/__init__.py +1 -0
  99. taskcarry_https/consent.py +207 -0
  100. taskcarry_https/reader.py +132 -0
  101. taskcarry_https/review.py +116 -0
  102. taskcarry_https/server.py +163 -0
  103. taskcarry_https/team.py +335 -0
  104. taskcarry_https/team_host.py +109 -0
  105. taskcarry_https/web_host.py +82 -0
@@ -0,0 +1,190 @@
1
+ """Versioned record shapes for the governor/worker channel (M1).
2
+
3
+ These validators do not grant access, write state, or register public tools.
4
+ Trusted caller binding, scope checks, transactions and source acquisition must
5
+ be supplied by the shared engine before the records can be used operationally.
6
+ """
7
+ from __future__ import annotations
8
+
9
+ from copy import deepcopy
10
+ import json
11
+ from pathlib import PurePosixPath, PureWindowsPath
12
+ import re
13
+
14
+ from .contracts import schema, string, validate
15
+ from .store import GovernanceError
16
+
17
+ CONTRACT_VERSION = 1
18
+ MAX_RECORD_BYTES = 8 * 1024
19
+ DEFAULT_RESPONSE_BYTES = 16 * 1024
20
+ COLLECTIONS = {
21
+ 'binding': 'worker_bindings', 'source': 'worker_sources',
22
+ 'handback': 'worker_handbacks', 'disposition': 'worker_dispositions',
23
+ 'read_receipt': 'worker_reads',
24
+ }
25
+ ROLES = ('governor', 'worker', 'reader')
26
+ WRITE_ACTIONS = ('progress', 'checkpoint', 'handback', 'read_receipt', 'experience_note', 'experience_feedback')
27
+ REVISION = {'type': 'integer', 'minimum': 1}
28
+ IDENTITY = string()
29
+ STRINGS = {'type': 'array', 'items': IDENTITY, 'maxItems': 64, 'uniqueItems': True}
30
+ REF = schema({'reference_id': IDENTITY, 'revision': REVISION, 'content_sha256': string()},
31
+ ['reference_id', 'revision', 'content_sha256'])
32
+ REFS = {'type': 'array', 'items': REF, 'minItems': 1, 'maxItems': 64}
33
+ BASE = {'contract_version': {'type': 'integer', 'enum': [CONTRACT_VERSION]},
34
+ 'project_id': IDENTITY, 'revision': REVISION}
35
+
36
+
37
+ def record(properties, required):
38
+ return schema({**BASE, **properties}, [*BASE, *required])
39
+
40
+
41
+ RECORD_SCHEMAS = {
42
+ 'binding': record({
43
+ 'binding_id': IDENTITY, 'role': string(enum=list(ROLES)), 'display_name': string(),
44
+ 'state': string(enum=['active', 'revoked']),
45
+ 'read_project_shared': {'type': 'boolean'}, 'share_project': {'type': 'boolean'},
46
+ 'read_references': REFS,
47
+ 'overview_roles': {'type': 'array', 'minItems': 1, 'maxItems': 24, 'items': schema({
48
+ 'role': IDENTITY, 'responsibility': string(), 'task_id': IDENTITY, 'external': {'type': 'boolean'}},
49
+ ['role', 'responsibility'])},
50
+ 'assignments': {'type': 'array', 'maxItems': 64, 'items': schema({
51
+ 'task_id': IDENTITY, 'workspace_id': IDENTITY,
52
+ 'write_actions': {'type': 'array', 'items': string(enum=list(WRITE_ACTIONS)),
53
+ 'maxItems': len(WRITE_ACTIONS), 'uniqueItems': True}},
54
+ ['task_id', 'workspace_id', 'write_actions'])}},
55
+ ['binding_id', 'role', 'state', 'read_project_shared', 'share_project', 'assignments']),
56
+ 'source': record({
57
+ 'reference_id': IDENTITY, 'owner_binding_id': IDENTITY, 'task_id': IDENTITY, 'display_title': string(),
58
+ 'visibility': string(enum=['self', 'project']), 'state': string(enum=['active', 'revoked']),
59
+ 'content_sha256': string(), 'size': {'type': 'integer', 'minimum': 0},
60
+ 'media_type': string(enum=['text/markdown', 'text/plain', 'application/json',
61
+ 'application/octet-stream', 'image/png', 'image/jpeg',
62
+ 'image/webp', 'image/svg+xml', 'application/pdf']),
63
+ 'origin': schema({'kind': string(enum=['artifact', 'git']), 'artifact_id': IDENTITY,
64
+ 'artifact_revision': REVISION, 'commit': string(), 'path': string()}, ['kind'])},
65
+ ['reference_id', 'owner_binding_id', 'task_id', 'visibility', 'state',
66
+ 'content_sha256', 'size', 'media_type', 'origin']),
67
+ 'handback': record({
68
+ 'handback_id': IDENTITY, 'binding_id': IDENTITY, 'task_id': IDENTITY,
69
+ 'workspace_id': IDENTITY, 'kind': string(enum=['document', 'code']),
70
+ 'state': string(enum=['draft', 'submitted']), 'summary': string(), 'next_step': string(),
71
+ 'basis': schema({'binding_revision': REVISION, 'task_fingerprint': string()},
72
+ ['binding_revision', 'task_fingerprint']),
73
+ 'sources': REFS,
74
+ 'code': schema({'base': string(), 'commit': string(),
75
+ 'paths': {'type': 'array', 'items': string(), 'minItems': 1,
76
+ 'maxItems': 100, 'uniqueItems': True}}, ['base', 'commit', 'paths'])},
77
+ ['handback_id', 'binding_id', 'task_id', 'workspace_id', 'kind', 'state',
78
+ 'summary', 'next_step', 'basis', 'sources']),
79
+ 'disposition': record({
80
+ 'disposition_id': IDENTITY, 'actor_binding_id': IDENTITY,
81
+ 'handback_id': IDENTITY, 'handback_revision': REVISION,
82
+ 'verdict': string(enum=['received', 'needs_revision', 'needs_decision', 'technically_received']),
83
+ 'summary': string(), 'sources': REFS},
84
+ ['disposition_id', 'actor_binding_id', 'handback_id', 'handback_revision',
85
+ 'verdict', 'summary', 'sources']),
86
+ 'read_receipt': record({
87
+ 'receipt_id': IDENTITY, 'binding_id': IDENTITY, 'reference': REF,
88
+ 'phase': string(enum=['acquired', 'read']), 'evidence_refs': STRINGS,
89
+ 'summary': string()}, ['receipt_id', 'binding_id', 'reference', 'phase', 'evidence_refs', 'summary']),
90
+ }
91
+
92
+
93
+ def _relative_path(value):
94
+ if (not value or '\\' in value or '\x00' in value
95
+ or PurePosixPath(value).is_absolute() or PureWindowsPath(value).drive
96
+ or any(part in ('', '.', '..') for part in value.split('/'))):
97
+ raise ValueError('Content paths must be explicit portable relative paths')
98
+ for part in value.split('/'):
99
+ if (part.endswith((' ', '.')) or re.search(r'[\x00-\x1f<>:"|?*]', part)
100
+ or re.fullmatch(r'(?i)(con|prn|aux|nul|com[1-9]|lpt[1-9])(?:\..*)?', part)):
101
+ raise ValueError('Content path contains a nonportable component')
102
+
103
+
104
+ def valid_display_name(value):
105
+ return isinstance(value, str) and bool(value.strip()) and len(value) <= 96 and value.isprintable()
106
+
107
+
108
+ def _walk(value, key=''):
109
+ if isinstance(value, dict):
110
+ for name, child in value.items():
111
+ _walk(child, name)
112
+ elif isinstance(value, list):
113
+ for child in value:
114
+ _walk(child, 'path' if key == 'paths' else '')
115
+ elif isinstance(value, str):
116
+ if not value.strip() or '\x00' in value:
117
+ raise ValueError('Record text must be nonempty and contain no NUL')
118
+ if key in ('display_title', 'display_name') and not valid_display_name(value):
119
+ raise ValueError('Use one short, printable name suitable for a group notification')
120
+ if key.endswith('_id') and not re.fullmatch(r'[A-Za-z0-9][A-Za-z0-9_.-]{0,99}', value):
121
+ raise ValueError('Invalid stable identity')
122
+ if key in ('content_sha256', 'task_fingerprint') and not re.fullmatch('[0-9a-f]{64}', value):
123
+ raise ValueError('Expected an exact lowercase SHA-256 fingerprint')
124
+ if key in ('base', 'commit') and not re.fullmatch(r'(?:[0-9a-f]{40}|[0-9a-f]{64})', value):
125
+ raise ValueError('Expected an exact Git object identity')
126
+ if key == 'path':
127
+ _relative_path(value)
128
+
129
+
130
+ def validate_record(kind, value):
131
+ """Return an independent validated copy, or fail before any caller mutation.
132
+
133
+ Record-shape validation is deliberately not an authorization decision.
134
+ In particular a supplied binding ID or project visibility cannot self-grant.
135
+ """
136
+ try:
137
+ if kind not in RECORD_SCHEMAS:
138
+ raise ValueError('Unsupported worker record kind')
139
+ encoded = json.dumps(value, ensure_ascii=False, allow_nan=False,
140
+ sort_keys=True, separators=(',', ':')).encode('utf-8')
141
+ if len(encoded) > MAX_RECORD_BYTES:
142
+ raise GovernanceError('WORKER_RECORD_TOO_LARGE',
143
+ 'Keep compact metadata in records; reference large bodies separately.')
144
+ validate(value, RECORD_SCHEMAS[kind])
145
+ _walk(value)
146
+ if kind == 'binding':
147
+ pairs = [(a['task_id'], a['workspace_id']) for a in value['assignments']]
148
+ if len(pairs) != len(set(pairs)):
149
+ raise ValueError('A task/workspace assignment cannot be duplicated')
150
+ if value['role'] == 'reader' and (value['share_project'] or
151
+ any(a['write_actions'] for a in value['assignments'])):
152
+ raise ValueError('A reader cannot be assigned state-changing actions')
153
+ if 'read_references' in value:
154
+ if value['read_project_shared']:
155
+ raise ValueError('Select either individual source versions or the project-wide shared directory')
156
+ refs = [(item['reference_id'], item['revision']) for item in value['read_references']]
157
+ if len(refs) != len(set(refs)):
158
+ raise ValueError('Select each exact source version only once')
159
+ if 'overview_roles' in value:
160
+ rows = value['overview_roles']
161
+ if len({r['role'] for r in rows}) != len(rows):
162
+ raise ValueError('Give each overview role a unique label')
163
+ for row in rows:
164
+ if ('task_id' in row) == ('external' in row) or ('external' in row and row['external'] is not True):
165
+ raise ValueError('Select a local task or identify an external workstream')
166
+ if len(row['role'].encode()) > 60 or len(row['responsibility'].encode()) > 240:
167
+ raise ValueError('Use a short project-facing role and responsibility')
168
+ elif kind == 'source':
169
+ origin = value['origin']
170
+ expected = ({'kind', 'artifact_id', 'artifact_revision'} if origin['kind'] == 'artifact'
171
+ else {'kind', 'commit', 'path'})
172
+ if set(origin) != expected:
173
+ raise ValueError('Source origin must describe exactly one artifact or Git version')
174
+ elif kind == 'handback':
175
+ if (value['kind'] == 'code') != ('code' in value):
176
+ raise ValueError('Only code handbacks require the complete Git base/commit/path contract')
177
+ if 'code' in value:
178
+ paths = value['code']['paths']
179
+ if len({p.casefold() for p in paths}) != len(paths):
180
+ raise ValueError('Content paths cannot differ only by case')
181
+ elif kind == 'read_receipt':
182
+ if value['phase'] == 'read' and not value['evidence_refs']:
183
+ raise ValueError('A read report requires actual conversation evidence')
184
+ if kind in ('handback', 'disposition'):
185
+ refs = [source['reference_id'] for source in value['sources']]
186
+ if len(refs) != len(set(refs)):
187
+ raise ValueError('A source may appear only once in a record version')
188
+ except (TypeError, ValueError, RecursionError, UnicodeError) as exc:
189
+ raise GovernanceError('WORKER_CONTRACT_INVALID', str(exc)) from exc
190
+ return deepcopy(value)
@@ -0,0 +1,60 @@
1
+ """Channel indexes independent of the legacy current-record projection.
2
+
3
+ Only explicit mutations install these indexes. Triggers cover legacy compatible
4
+ writers; readers never rebuild state or scan unrelated historical payloads.
5
+ """
6
+ import json
7
+ from .store import GovernanceError
8
+
9
+
10
+ def ready(store):
11
+ with store._connect(readonly=True) as db:
12
+ exists = db.execute("SELECT 1 FROM sqlite_master WHERE name='worker_channel_schema' AND type='table'").fetchone()
13
+ if not exists:
14
+ return False
15
+ row = db.execute('SELECT version FROM worker_channel_schema').fetchone()
16
+ if row != (1,):
17
+ raise GovernanceError('WORKER_SCHEMA_UNSUPPORTED', 'Use a compatible worker channel.')
18
+ return True
19
+
20
+
21
+ def install(store):
22
+ if ready(store):
23
+ return
24
+ with store._connect() as db:
25
+ db.execute('CREATE TABLE worker_channel_schema(version INTEGER NOT NULL)')
26
+ db.execute('INSERT INTO worker_channel_schema VALUES(1)')
27
+ db.execute('CREATE TABLE worker_channel_revision(id INTEGER PRIMARY KEY, revision INTEGER NOT NULL)')
28
+ db.execute('INSERT INTO worker_channel_revision VALUES(1,1)')
29
+ for name, expression in (
30
+ ('task', "json_extract(value,'$.task_id')"),
31
+ ('owner', "json_extract(value,'$.owner_binding_id')"),
32
+ ('binding', "json_extract(value,'$.binding_id')"),
33
+ ('visibility', "json_extract(value,'$.visibility')"),
34
+ ('handback', "json_extract(value,'$.handback_id'),json_extract(value,'$.handback_revision')"),
35
+ ):
36
+ db.execute('CREATE INDEX worker_records_' + name + ' ON records(collection,' + expression + ',key)')
37
+ for op, side in [('INSERT', 'NEW'), ('UPDATE', 'NEW'), ('DELETE', 'OLD')]:
38
+ condition = side + ".collection IN ('tasks','observations','issues','checkpoints','worker_bindings','worker_sources','worker_handbacks','worker_dispositions','worker_reads','worker_reports')"
39
+ if op == 'UPDATE':
40
+ condition += ' AND OLD.value IS NOT NEW.value'
41
+ db.execute('CREATE TRIGGER worker_channel_' + op.lower() + ' AFTER ' + op +
42
+ ' ON records WHEN ' + condition +
43
+ ' BEGIN UPDATE worker_channel_revision SET revision=revision+1 WHERE id=1; END')
44
+
45
+
46
+ def revision(store):
47
+ if not ready(store):
48
+ raise GovernanceError('WORKER_CHANNEL_NOT_READY', 'A governor must explicitly register the channel before use.')
49
+ with store._connect(readonly=True) as db:
50
+ return db.execute('SELECT revision FROM worker_channel_revision WHERE id=1').fetchone()[0]
51
+
52
+
53
+ def select(store, collection, where='1', params=(), after='', limit=5, projection='value'):
54
+ # Callers supply only static SQL fragments; all user values are parameters.
55
+ with store._connect(readonly=True) as db:
56
+ count = db.execute('SELECT count(*) FROM records r WHERE collection=? AND ' + where,
57
+ (collection, *params)).fetchone()[0]
58
+ rows = db.execute('SELECT key,' + projection + ' FROM records r WHERE collection=? AND (' + where +
59
+ ') AND key>? ORDER BY key LIMIT ?', (collection, *params, after, limit + 1)).fetchall()
60
+ return count, [(key, json.loads(value)) for key, value in rows]
@@ -0,0 +1,111 @@
1
+ """Public tool shapes for the project governor/worker channel."""
2
+ def schema(properties=None, required=()):
3
+ return {'type': 'object', 'properties': properties or {}, 'required': list(required), 'additionalProperties': False}
4
+
5
+
6
+ def string(**kwargs):
7
+ return {'type': 'string', **kwargs}
8
+
9
+ MODE = string(enum=['plan', 'execute', 'get'])
10
+ PAGE = {'limit': {'type': 'integer', 'minimum': 1, 'maximum': 20}, 'cursor': string()}
11
+ REV = {'type': 'integer', 'minimum': 0}
12
+ RECORD = {'type': 'object', 'additionalProperties': True}
13
+ PLAN = {'mode': MODE, 'plan_id': string()}
14
+ REF = schema({'reference_id': string(), 'revision': {'type': 'integer', 'minimum': 1},
15
+ 'content_sha256': string()}, ['reference_id', 'revision', 'content_sha256'])
16
+ DISPLAY_TITLE = string(description='Short human-readable artifact title suitable for group notifications.')
17
+ SHARE_FILE = schema({'reference_id': string(), 'task_id': string(), 'workspace_id': string(), 'display_title': DISPLAY_TITLE,
18
+ 'path': string(), 'visibility': string(enum=['self', 'project']), 'expected_revision': REV,
19
+ 'media_type': string(), 'git_commit': string()},
20
+ ['reference_id', 'task_id', 'workspace_id', 'path', 'expected_revision'])
21
+ SCHEMAS = {
22
+ 'source_share_set': schema({**PLAN, **PAGE,
23
+ 'files': {'type': 'array', 'items': SHARE_FILE, 'minItems': 1, 'maxItems': 64}}, ['mode']),
24
+ 'worker_connect': schema({**PLAN, 'binding_id': string(), 'workspace_id': string(),
25
+ 'role': string(enum=['reader', 'worker', 'governor']), 'server_name': string(),
26
+ 'client': string(enum=['codex', 'antigravity', 'fragment'])}, ['mode']),
27
+ 'worker_exchange': schema({**PLAN, 'operation': string(enum=['invite', 'export', 'import']),
28
+ 'invitation_id': string(), 'binding_id': string(), 'expected_revision': REV,
29
+ 'repository': string(), 'remote': string(), 'input_ref': string(), 'packet_path': string(),
30
+ 'output_path': string(), 'references': {'type': 'array', 'items': REF, 'minItems': 1, 'maxItems': 64},
31
+ 'experience_references': {'type': 'array', 'maxItems': 32, 'items': schema({
32
+ 'experience_id': string(), 'revision': {'type': 'integer', 'minimum': 1},
33
+ 'content_sha256': string()}, ['experience_id', 'revision', 'content_sha256'])},
34
+ 'commit': string(), 'revoke': {'type': 'boolean'}}, ['mode']),
35
+ 'worker_binding': schema({**PLAN, 'binding_id': string(), 'expected_revision': REV,
36
+ 'record': RECORD, 'workspaces': {'type': 'array', 'maxItems': 64, 'items': schema({
37
+ 'workspace_id': string(), 'path': string()}, ['workspace_id', 'path'])}}, ['mode']),
38
+ 'worker_brief': schema({**PAGE, 'section': string(enum=['overview', 'tasks', 'role', 'sources',
39
+ 'handbacks', 'dispositions', 'read_reports', 'project_map']), 'task_id': string(), 'pending_only': {'type': 'boolean'},
40
+ 'previous_fingerprint': string()}),
41
+ 'source_share': schema({**PLAN, 'reference_id': string(), 'task_id': string(), 'workspace_id': string(), 'display_title': DISPLAY_TITLE,
42
+ 'path': string(), 'visibility': string(enum=['self', 'project']), 'expected_revision': REV,
43
+ 'media_type': string(), 'git_commit': string(), 'revoke': {'type': 'boolean'}}, ['mode']),
44
+ 'source_read': schema({'reference': REF, 'cursor': string(),
45
+ 'max_bytes': {'type': 'integer', 'minimum': 256, 'maximum': 4096}}, ['reference']),
46
+ 'source_acquire': schema({**PLAN, 'reference': REF, 'task_id': string(), 'workspace_id': string(),
47
+ 'path': string()}, ['mode']),
48
+ 'worker_handback': schema({**PLAN, 'handback_id': string(), 'record': RECORD,
49
+ 'expected_revision': REV}, ['mode']),
50
+ 'worker_submit_text': schema({'mode': string(enum=['plan', 'execute']), 'plan_id': string(),
51
+ 'task_id': string(), 'workspace_id': string(), 'reference_id': string(), 'handback_id': string(),
52
+ 'expected_revision': REV, 'display_title': DISPLAY_TITLE, 'basis': schema({'binding_revision': {'type': 'integer', 'minimum': 1},
53
+ 'task_fingerprint': string()}, ['binding_revision', 'task_fingerprint']), 'text': string()}, ['mode']),
54
+ 'worker_disposition': schema({**PLAN, 'disposition_id': string(), 'record': RECORD,
55
+ 'expected_revision': REV}, ['mode']),
56
+ 'worker_read': schema({**PLAN, 'receipt_id': string(), 'record': RECORD,
57
+ 'expected_revision': REV}, ['mode']),
58
+ 'worker_report': schema({**PLAN, 'report_id': string(), 'task_id': string(), 'workspace_id': string(),
59
+ 'kind': string(enum=['progress', 'checkpoint']), 'summary': string(), 'next_step': string(),
60
+ 'state': string(enum=['active', 'waiting', 'paused']),
61
+ 'paths': {'type': 'array', 'items': string(), 'minItems': 1, 'maxItems': 100, 'uniqueItems': True}}, ['mode']),
62
+ }
63
+ DESCRIPTIONS = {
64
+ 'source_share_set': 'Plan/get/execute an explicitly selected multi-file review set in one atomic publication. Same source ownership, revision and byte checks as source_share. Follow plan pages to review all selected paths. Same artifact revisions keep reference_id; distinct alternatives may use separate identities. Does not finalize, hand back or acknowledge reading.',
65
+ 'worker_connect': 'Governor only: generate member-specific MCP fragments and methods in the assigned folder. Codex and Antigravity can merge a workspace connector and routing rule. Confirm with a native role readback in the actual chat.',
66
+ 'worker_exchange': 'Governor only: plan/execute an invitation pinned to an existing Git input, export selected versioned views, or import an exact reply commit into existing worker contracts. get with an export plan_id checks actual file and central registration after interruption. No fetch/push, checkout, second project database, model read claim or business acceptance. Execute only the returned plan.',
67
+ 'worker_binding': 'Governor only: plan/execute a versioned member binding and trusted workspace mapping. Caller identity comes from server startup, never from these arguments. get reads the current contract.',
68
+ 'worker_brief': 'Read a paginated project directory and own role card, shared source metadata, handbacks, dispositions or read reports. No acknowledgment. Follow next_cursor to complete coverage; pending is separate from scanning.',
69
+ 'source_share': 'Plan/execute publication of one chosen file in an assigned workspace, or revoke an owned source. Keeps immutable bytes and exact revision/hash; no implicit public sharing or task completion.',
70
+ 'source_read': 'Read exact authorized source bytes as bounded UTF-8 pages. Binary sources return metadata; use source_acquire to view a local copy. Not a model read acknowledgment.',
71
+ 'source_acquire': 'Plan/execute materialization of an exact authorized source into your assigned workspace. Preserves conflicting existing files. No arbitrary source paths or URLs.',
72
+ 'worker_handback': 'Plan/execute a scoped versioned handback record. Required: contract_version,project_id,revision,handback_id,binding_id,task_id,workspace_id,kind(document/code),state(draft/submitted),summary,next_step,basis(binding_revision,task_fingerprint),sources(reference_id,revision,content_sha256). Code additionally requires exact base/commit/paths and uses the existing Git submit engine.',
73
+ 'worker_submit_text': 'Plan/execute publication of your own bounded UTF-8 Markdown and submit that exact version for project review in one transaction. Plan with your current task basis, assigned workspace, stable reference and handback IDs, and prior revision (0 for new work). Execute with only the returned plan ID. A retry of the same plan cannot create a second revision. The project governor reviews the submission.',
74
+ 'worker_disposition': 'Governor only: plan/execute disposition of an exact handback revision. Record: contract_version,project_id,revision,disposition_id,actor_binding_id,handback_id,handback_revision,verdict(received/needs_revision/needs_decision/technically_received),summary,sources. Received is not business acceptance.',
75
+ 'worker_read': 'Plan/execute your own acquisition/read report. Record: contract_version,project_id,revision,receipt_id,binding_id,reference,phase(acquired/read),evidence_refs,summary. A read report requires actual conversation evidence; the tool cannot attest model comprehension.',
76
+ 'worker_report': 'Plan/execute own task progress or exact checkpoint. Checkpoints preserve selected Git layers/files, never declare delivery. Does not change other tasks or require a Git repository for plain-file work.',
77
+ }
78
+
79
+ from .experience_tools import SCHEMAS as EXPERIENCE_SCHEMAS, DESCRIPTIONS as EXPERIENCE_DESCRIPTIONS
80
+ SCHEMAS.update(EXPERIENCE_SCHEMAS)
81
+ DESCRIPTIONS.update(EXPERIENCE_DESCRIPTIONS)
82
+
83
+ HISTORY_KINDS = ['decision', 'observation', 'checkpoint', 'source', 'handback', 'disposition', 'stage', 'task']
84
+ SCHEMAS.update({
85
+ 'member_lookup': schema({**PAGE, 'query': string()}, ['query']),
86
+ 'project_history': schema({**PAGE, 'kind': string(enum=HISTORY_KINDS), 'key': string(), 'sha256': string(),
87
+ 'task_id': string(), 'query': string(), 'offset': REV}),
88
+ 'project_overview': schema({**PAGE, 'revision': REV, 'entry_id': string()}),
89
+ 'overview_publish': schema({**PLAN, 'expected_revision': REV,
90
+ 'entries': {'type': 'array', 'items': RECORD, 'maxItems': 128}}, ['mode']),
91
+ 'discussion': schema({**PAGE, 'topic_id': string(), 'revision': REV, 'state': string(enum=['open','resolved','archived']),
92
+ 'task_id': string(), 'participant': string(), 'query': string(), 'since': string(), 'until': string(), 'offset': REV}),
93
+ 'discussion_update': schema({**PLAN, 'expected_revision': REV, 'topic_id': string(), 'task_id': string(),
94
+ 'workspace_id': string(), 'record': RECORD}, ['mode']),
95
+ 'turn_read': schema({**PAGE, 'owner': string(), 'conversation_id': string(), 'turn_id': string(),
96
+ 'revision': REV, 'offset': REV}),
97
+ })
98
+ DESCRIPTIONS.update({
99
+ 'member_lookup': 'Find an active teammate by board label, role code or exact binding ID in the current project. For an ambiguous name choose a returned binding_id. Use it as discussion.participant or turn_read.owner.',
100
+ 'project_history': 'Find authorized project decisions, changes, checkpoints and submissions. Search by task, kind and words. For the exact version pass its kind, key and sha256, then page by offset.',
101
+ 'project_overview': 'Start with the current concise project snapshot. Follow a workline or decision entry and its frozen references for originals. Earlier snapshots accept revision.',
102
+ 'overview_publish': 'Governor: plan then execute a curated snapshot. Each entry has id, kind (workline/milestone/decision), title, summary and optional owner, state, task_id, sources, decision, audience. Identical entries keep their revision.',
103
+ 'discussion': 'Find a discussion by participant, topic, task, date or state. Resolve a role name with member_lookup for the participant filter. Start with the memo; request a topic_id and exact revision for its summary, decision, sources and optional conversation pointer. No transcript is preloaded.',
104
+ 'discussion_update': 'Plan then execute a topic or reply on your assigned task/workspace. Supply topic_id, expected_revision and record with action (open/update/reply/resolve/archive/reopen), summary and title for a new topic. Resolve requires a current decision pointer. Set include_current_turn for an exact link after your enrolled conversation finishes. Optional notify requests a team reminder.',
105
+ 'turn_read': 'Check sharing for your bound chats, or use member_lookup to resolve another role name to its owner binding ID. Pass owner to find their shared chats and conversation_id to list the last 8 shared exchanges without loading text. For an exact question and final reply pass conversation_id, turn_id, revision and optional offset. The local adapter handles consent.',
106
+ })
107
+
108
+ READ_ACTIONS = frozenset({'worker_brief', 'source_read', 'identify', 'doctor', 'context', 'status', 'agenda', 'experience_query',
109
+ 'member_lookup', 'project_history', 'project_overview', 'discussion', 'turn_read'})
110
+ WORKER_ACTIONS = READ_ACTIONS | {'source_share', 'source_share_set', 'source_acquire', 'worker_handback', 'worker_submit_text', 'worker_read', 'worker_report', 'experience_note', 'experience_feedback', 'discussion_update'}
111
+ GOVERNOR_ACTIONS = WORKER_ACTIONS | {'worker_binding', 'worker_disposition', 'worker_exchange', 'worker_connect', 'overview_publish'}
@@ -0,0 +1,203 @@
1
+ Metadata-Version: 2.4
2
+ Name: taskcarry
3
+ Version: 0.3.2
4
+ Summary: Local-first project memory, collaboration and workflow governance for AI tools
5
+ Author: TaskCarry contributors
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/bryan123466/taskcarry
8
+ Project-URL: Documentation, https://github.com/bryan123466/taskcarry/blob/main/START_HERE.md
9
+ Project-URL: Issues, https://github.com/bryan123466/taskcarry/issues
10
+ Project-URL: Releases, https://github.com/bryan123466/taskcarry/releases
11
+ Keywords: ai-agents,project-memory,workspace-coordination,project-governance,workflow-governance,multi-agent-collaboration,human-in-the-loop,mcp,git-worktree,local-first
12
+ Requires-Python: >=3.11
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ License-File: LICENSE_SCOPE.md
16
+ Provides-Extra: https
17
+ Requires-Dist: mcp==1.30.0; extra == "https"
18
+ Dynamic: description
19
+ Dynamic: description-content-type
20
+ Dynamic: license-file
21
+
22
+ # TaskCarry
23
+
24
+ [![TaskCarry MCP server](https://glama.ai/mcp/servers/bryan123466/taskcarry/badges/score.svg)](https://glama.ai/mcp/servers/bryan123466/taskcarry)
25
+
26
+ <!-- mcp-name: io.github.bryan123466/taskcarry -->
27
+
28
+ [English](https://github.com/bryan123466/taskcarry/blob/v0.3.2/README.md) · [简体中文](https://github.com/bryan123466/taskcarry/blob/v0.3.2/README.zh-CN.md) · [繁體中文](https://github.com/bryan123466/taskcarry/blob/v0.3.2/README.zh-TW.md)
29
+
30
+ > **Run multiple AIs on one project — stop playing messenger, zero background token loops.**
31
+
32
+ **A local-first hub for multi-AI projects** — built on the Python standard library, SQLite, and Git. Over MCP, it brings Codex, Antigravity, WorkBuddy, Gemini Web — and standard-MCP apps like Claude Code and Cursor — across chats and machines onto one shared ledger for code, docs, and visuals, with conditional experience and a Local Board. **TaskCarry itself makes zero LLM calls and never auto-wakes idle chats** — your chosen AI apps only spend tokens under their normal rules when you run them.
33
+
34
+ ![One local TaskCarry core on your computer connects local AI chats via stdio MCP, opens a Local Board on 127.0.0.1 (read-only project record + explicit local controls), connects a teammate on another computer via private Tailscale Serve HTTPS MCP (/join), and pairs with an optional zero-token group notifier sending only ID, revision, and hash.](https://raw.githubusercontent.com/bryan123466/taskcarry/v0.3.2/docs/assets/hero-architecture-overview.en.jpg)
35
+
36
+ [Start in 3 Steps](https://github.com/bryan123466/taskcarry/blob/v0.3.2/README.md#start-in-3-steps) · [Local Board (`v0.3.0`)](https://github.com/bryan123466/taskcarry/blob/v0.3.2/README.md#local-board-see-everything-at-a-glance) · [How It Works](https://github.com/bryan123466/taskcarry/blob/v0.3.2/README.md#how-taskcarry-works) · [Operation Manual](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/operation-manual.md)
37
+
38
+ ---
39
+
40
+ ## Why TaskCarry? Three Everyday Pain Points
41
+
42
+ Real projects don't finish in one chat window — and rarely stay inside one AI tool or code-only repo. Once you juggle multiple AIs, mix code with docs and visuals, or work across computers, things break in three familiar ways:
43
+
44
+ ### 1. Juggling multiple AIs turns you into a human clipboard
45
+
46
+ One AI writes code, another edits specs or visuals, a third reviews — while you shuttle context across tabs and still lose track of which version anyone checked. TaskCarry puts code, docs, and visuals in one shared project ledger, anchoring deliverables and reviews to explicit revisions so each AI picks up the latest updates whenever it continues. → [See dual-track collaboration & Local Board](https://github.com/bryan123466/taskcarry/blob/v0.3.2/README.md#1-one-local-project-hub-many-scoped-ai-workers-dual-track-delivery)
47
+
48
+ ![Dual-track story: different AI tools stop relying on manual copy-paste and stay pinned to one exact revision across both code and non-code deliverables.](https://raw.githubusercontent.com/bryan123466/taskcarry/v0.3.2/docs/assets/story-dual-track.en.jpg)
49
+
50
+ ### 2. Longer rule files make AIs ignore you — or follow stale advice
51
+
52
+ Stuffing every past lesson into one giant prompt or rule file bloats context and misleads new tasks once reality changes. TaskCarry saves each lesson with its **source and when it applies**, so AIs check whether conditions still hold before reusing it. → [See the conditional experience ledger](https://github.com/bryan123466/taskcarry/blob/v0.3.2/README.md#2-conditional-project-experience-ledger-not-bloated-chat-memory)
53
+
54
+ ![Experience reuse story: finding an earlier test note with its source and conditions before judging a blank camera feed.](https://raw.githubusercontent.com/bryan123466/taskcarry/v0.3.2/docs/assets/story-experience.en.jpg)
55
+
56
+ ### 3. One compaction, sluggish long chat, or tool switch wipes your momentum
57
+
58
+ Auto-compaction drops key constraints, and once a long chat turns sluggish — or when you open a fresh window, switch AIs, or bring in a teammate on another computer — you're forced to re-explain everything from scratch. With TaskCarry, any fresh chat or second computer picks up right from your saved state. → [3-step fresh-chat handoff](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/updating.md#4-continuing-when-a-chat-compacts-crashes-or-you-switch-ai-apps) · [Join from a second PC](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/getting-started.md#path-b-join-an-existing-team-project-on-another-computer)
59
+
60
+ ![Continuity and cross-machine story: when a chat compacts, you switch AI tools, or a teammate joins from another computer via private HTTPS /join without syncing SQLite, everyone continues the exact same project.](https://raw.githubusercontent.com/bryan123466/taskcarry/v0.3.2/docs/assets/story-continuity-cross-machine.en.jpg)
61
+
62
+ ---
63
+
64
+ <a id="local-board-see-everything-at-a-glance"></a>
65
+
66
+ ## Local Board: See Everything at a Glance (`v0.3.0`)
67
+
68
+ Just say **"Open the local board for this project"** in your Manager Chat to view your whole project in your browser — no extra setup, no cloud account:
69
+
70
+ ![Open the Local Board to see who handed back which revision, what is awaiting review, and what the team shared most recently.](https://raw.githubusercontent.com/bryan123466/taskcarry/v0.3.2/docs/assets/local-board-overview.en.png)
71
+
72
+ - **Who's doing what:** See every AI role, current progress, latest checkpoint, next step, and which newly submitted draft is still waiting for review.
73
+ - **Every deliverable in one place:** Browse the newest shared code, docs, and visuals first, preview text safely in-page, and confirm which revision is current without digging through chat history.
74
+ - **No black-box AI memory:** Inspect the project lessons your AIs rely on anytime (active, paused, or retired) in a dedicated read-only tab — while your AIs check applicability conditions automatically via MCP as you work.
75
+ - **Handy local controls:** Set up, pause, or switch optional Feishu group alerts right inside the page on Windows, flip per-chat sharing toggles, check remote access status, and click to check for new TaskCarry releases whenever you want.
76
+
77
+ > **Read-only project record, explicit local controls:** Opening or refreshing the board never edits tasks, deliverables, or project lessons, never fabricates read receipts, and never wakes up your AI chats; only explicit user-triggered local settings (per-chat sharing toggle, Windows Feishu bot config, and on-demand release checks) write locally.
78
+
79
+ ---
80
+
81
+ ## Start in 3 Steps
82
+
83
+ No need to restart an ongoing project or wire up a complicated multi-agent setup (see **[Getting Started](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/getting-started.md)** for the full walkthrough):
84
+
85
+ 1. **Download and start:** [Download the latest package](https://github.com/bryan123466/taskcarry/blob/v0.3.2/START_HERE.md#download) and unzip it into a fixed folder (shared toolkit). Create a blank folder *(a standalone ledger folder outside your existing code repo)*, start a new chat on that folder in your AI tool, and say: *"I downloaded TaskCarry at `[package path]`. Please follow the instructions inside to get me started."*
86
+ 2. **Connect the AI chats you already use:** After you fully restart your AI app once, paste the short join prompt into any chat you are already working in — even across different AI tools. Every chat stays right where it is.
87
+ 3. **Keep moving anytime:** Say *"Let's continue"* when you return to a chat to pick up the latest version and hand back your work, or say *"Open the local board for this project"* whenever you want the big picture.
88
+
89
+ > **Working across two computers or upgrading from an earlier version?** Full step-by-step instructions (including joining a team from a second computer and host-specific setup tips) are in [Getting Started](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/getting-started.md), the [Operation Manual](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/operation-manual.md), and [Updating](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/updating.md).
90
+
91
+ ---
92
+
93
+ ## How TaskCarry Works
94
+
95
+ Most multi-AI setups break at one of two extremes: either **you** become the full-time human clipboard shuttling context between windows, or an autonomous agent loop burns tokens re-checking unchanged history behind your back.
96
+
97
+ Under the hood, TaskCarry organizes heterogeneous AI tools around one local core with four clean, deterministic mechanisms:
98
+
99
+ ### 1. One Local Project Hub, Many Scoped AI Workers (Dual-Track Delivery)
100
+ - **Lightweight Coordination Without Ceremony:** A single Manager Chat initializes the hub, sets scope, reviews key deliveries when needed, and controls access — inspecting **only incremental changes** (*"Quiet history is not backlog"*). Everyday work happens directly in your existing worker chats.
101
+ - **Full Visibility, Clean Boundaries & Concise Project Briefing (`v0.3.0`):** Specialist AI workers (engineering, strategy, design, review — identically authorized over local `stdio` and cross-machine `HTTPS`) read a concise **2-page Project Briefing** (≤ 8 KiB budget, refreshed only on real changes) covering current goals, active decisions, key milestones, and per-stream pointers, then drill down to exact historical revisions on demand without burning tokens scanning old drafts. Server-side audience filtering ensures internal drafts stay isolated from scoped external views, and nobody rummages through another chat's private WIP.
102
+ - **Cross-AI Discussion Memos & Opt-In Recent-8-Exchange Sharing (`v0.3.0`):** Keep multi-topic discussion memos under stable IDs (`open / resolved / archived`) so you can tell another AI *"Check what I just discussed with [role] about [topic]"* — it reads the memo first and pulls specific exchanges only when needed (`0` raw exchanges loaded by default). On verified tools where you flip the per-chat switch on in your host computer's Local Board (off by default — works for both same-machine AI chats and remote teammates such as WorkBuddy on a second PC), [host-side callbacks / local session sync](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/operation-manual.md#4-project-briefing-discussion-memos--opt-in-turn-sharing-v030) automatically save a **rolling window of the latest 8 completed exchanges** (**user prompt + final visible AI reply pairs only**, excluding tool logs, thought traces, and debug output; `0` extra LLM calls). Turning the switch off immediately stops new capture while previously shared exchanges remain readable, and group alerts stay quiet unless explicitly shared.
103
+ - **Natural Dual-Track Delivery:** Specs, docs, reviews, and visual assets travel through an immutable versioned artifact channel (bytes + revision + `SHA-256`) with **no Git overhead**; code deliverables keep strict isolated Git `base`, `commit`, and changed-path verification.
104
+
105
+ ### 2. Conditional Project Experience Ledger (Not Bloated Chat Memory)
106
+ - Instead of dumping raw transcripts into messy vector stores or stale prompt walls, workers can record structured **conditional lessons** (`experience_notes`) bound to **applicability preconditions, explicit counterexamples, re-evaluation triggers, and source revisions**.
107
+ - When queried, TaskCarry deterministically evaluates supplied context against declared conditions and source/decision revisions, **withholding `suggestion` text by default whenever a lesson is `not_applicable`, `unknown`, or `review_required`** (returning only compact pointers for missing context or counterevidence). Condition values remain caller-supplied, and final semantic judgment stays with the AI host and human reviewer.
108
+
109
+ ### 3. Local `stdio`, Private Cross-Machine `HTTPS MCP`, & Zero-Token Group Alerts
110
+ - **Local `stdio MCP` (Zero Network):** Connect Codex, Antigravity, Claude Code, Cursor, WorkBuddy, and other local MCP hosts on the same machine directly.
111
+ - **Cross-Machine `HTTPS MCP` (Team `/join` via Tailscale Serve):** Put both computers on the same private Tailscale network, open the team entry on Machine A with **Tailscale Serve**, and invite Machine B using the same unified package (`https://…/join`). The sole authoritative ledger stays locally on Machine A while remote teammates read and submit over private HTTPS whenever Machine A is online (no shared disk, no cloud-synced SQLite, and no offline multi-writer merge); member credentials survive invite expiry, and single-member revocation immediately blocks both reads and writes (`membership_inactive`) without affecting teammates or losing prior work.
112
+ - **Optional Zero-Token Group Notifier:** Push lightweight pointer cards (**worker, task, deliverable title/ID, and revision** — merging atomic multi-file shares into one message, **never sending file bodies or secrets**) to a signed group webhook (e.g., Feishu) with **0 LLM calls**. On Windows, configure it directly inside the Local Board (stored locally with per-user Windows DPAPI encryption); when auto-resume on sign-in is enabled, Feishu group alerts keep sending the next time you sign in to Windows.
113
+ - *Optional web AI collaborator:* Need a scoped web AI (such as Gemini Custom Apps) to review or hand back a draft? Open a separate **Tailscale Funnel** web entry (`https://…/mcp`, browser-only on the web side, scoped by role and exact revision) — see the [Operation Manual](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/operation-manual.md).
114
+
115
+ ### 4. Zero-Dependency Local Board (`v0.3.0`)
116
+ - Launch via chat, the Windows GUI launcher installed by the wheel (`Scripts/taskcarry-board.exe`), or CLI (`taskcarry --project "<project-folder>" board --open`, or `taskcarry.cmd` in the Windows portable package) straight from the base Python 3.11+ standard library install — no Node, no CDN, no third-party frontend frameworks, and no optional HTTPS dependencies required.
117
+ - Includes a dedicated **Project Briefing** page alongside **Overview**, **Tasks & people** (with a clean per-chat exchange-sharing toggle beneath each bound member card, off by default), **Shared work**, **Project lessons**, and **Local tools** — while multi-topic **Discussion memos** are queried directly through the MCP collaboration channel. When a role rotates to a fresh chat, retired chats are separated from active sharing toggles so only the active chat appears in the live toggle list.
118
+ - Binds strictly to `127.0.0.1` loopback, reads short SQLite snapshots (`mode=ro`, `query_only`), enforces Host/Origin/CSRF checks on explicit local utility actions (Windows Feishu bot setup/pause/resume/clear and on-demand GitHub Releases checks), and is never exposed as an MCP tool.
119
+
120
+ ---
121
+
122
+ ## How TaskCarry Compares
123
+
124
+ | Existing Tool or Pattern | What It Excels At | What TaskCarry Adds |
125
+ |---|---|---|
126
+ | **Single-Vendor Native Multi-Agent** *(e.g., Codex App, Claude Code Agent Teams)* | Fast parallel coding inside one vendor ecosystem and one repo | Vendor-neutral across **different AI brands**, non-code docs/visuals dual-track delivery, cross-machine `/join`, and **zero runaway token loops**. |
127
+ | **Code-Only Agent Task Ledgers** *(e.g., Beads, MCP Agent Mail)* | Task DAGs, file leases, and repo-shared multi-coder coordination | Unifies **code + non-code deliverables** (no Git required for docs/design), adds **zero-trust cross-machine `/join`** without shared repo/disk, and tracks **version-bound conditional lessons** (withholding unverified suggestions by default). |
128
+ | **Git** | File history, branches, exact diffs | Which task owns a deliverable, which revision was reviewed or received, and non-code artifact tracking. |
129
+ | **`AGENTS.md` & Skills** | Static rules and role prompts | Living project state and condition-bound lessons that flag when preconditions shift. |
130
+ | **Chat summaries & manual copy-paste** | Quick ad-hoc handoffs across 2–3 tabs | Durable versioned pointers, bounded incremental views, explicit receipts, and a Local Board (read-only project record + local controls). |
131
+
132
+ ### At a Glance: Core Capabilities & Architectural Differentiation
133
+
134
+ | Dimension | What TaskCarry Does | How It Differs from Typical Alternatives |
135
+ |---|---|---|
136
+ | **Core Model** | One local SQLite + Git project ledger shared over standard MCP (`stdio` + private `HTTPS`). | Not a cloud SaaS, not a vector-DB memory wrapper, and not locked to one AI vendor. |
137
+ | **Dual-Track Delivery** | Versioned artifact channel (`id + revision + SHA-256`) for docs/specs/images; isolated temporary-index Git commits (`WIP`-safe) for code. | Unifies code and non-code deliverables without forcing designers/PMs into Git or touching unrelated local edits. |
138
+ | **Cross-AI & Cross-Machine** | Connects local AI apps via `stdio`, teammates on other PCs via private `Tailscale Serve /join` (no shared disk), and scoped web AIs via `Tailscale Funnel /mcp`. | Works across heterogeneous brands and physical machines with instant single-member revocation (`membership_inactive`) and zero cloud-synced SQLite corruption risk. |
139
+ | **Concise Briefing & Discussion Continuity (`v0.3.0`)** | 2-page Project Briefing (≤ 8 KiB), role-name teammate lookup, 3-state Discussion Memos, and optional per-chat **recent 8 completed exchanges** sharing (user prompt + final visible reply; off by default, `0` raw exchanges loaded until asked). | Eliminates copy-paste across chats and PCs without preloading raw transcripts or paying an LLM to summarize every turn. |
140
+ | **Conditional Project Experience** | Structured lessons bound to preconditions, exclusions, source revisions, and re-evaluation triggers (plus human/manager promotion gate). | Keeps project lessons traceable to exact source revisions with default suggestion withholding on not_applicable, unknown, or review_required — instead of dumping unverified chat reflections into prompts. |
141
+ | **Cost & Control Guardrails** | Zero third-party Python core dependencies, `127.0.0.1` Local Board (read-only project record + explicit local controls), optional zero-token Feishu webhook cards, and **never auto-wakes idle AI chats**. | TaskCarry itself makes `0` LLM calls and runs no runaway loops (your AI apps still apply normal usage limits when you run them), with strict separation between checkpoint, share, receipt, and human sign-off. |
142
+
143
+ ---
144
+
145
+ ## Verified in Real Multi-AI Workflows
146
+
147
+ TaskCarry is built and stress-tested by using itself across heterogeneous AI tools and machines — strictly separating verified live observations from automated regressions and untested configurations:
148
+
149
+ - **Multi-Host Local & Cross-Machine Collaboration + Recent-8-Exchange Sharing (Verified — per-client scope in matrix below):** Live verification covers **Codex Desktop** (Machine A), **Antigravity Desktop** (Machine A, workspace-scoped `.agents/mcp_config.json`), and **WorkBuddy** (a second physical Windows computer over private `Tailscale Serve` HTTPS `/join`): role-name teammate lookup (`taskcarry_member_lookup`), cross-AI discussion memo round-trip (`open → reply → read back`), bidirectional reading of rolling recent 8 completed exchanges (including long-reply full-text checks), full Antigravity on → pause (no backfill) → resume → off verification, Codex and cross-machine WorkBuddy on/off verification (turning off stops new exchanges while keeping prior ones readable and active sharing/handbacks unaffected), instant single-member revocation (`membership_inactive`), seamless 3-step same-role fresh-chat continuation on the original working folder (verified on Codex without reconfiguring MCP), and signed zero-token Feishu group alerts (`0` LLM calls; atomic batches merged to 1 message; auto-resumes on Windows sign-in when enabled).
150
+ - **Live Conditional Experience Loop (Verified):** Workers natively recording condition-bound lessons, promoting verified rules to project scope, checking applicability preconditions before reuse, logging per-revision feedback, and keeping `unknown` explicit when evidence is missing. Patch regression tests cover default suggestion withholding for `unknown` and `review_required`.
151
+ - **Scoped Web AI Collaboration (Verified):** Verified remote document collaboration and revision handback with Gemini Web Custom Apps over an isolated `Tailscale Funnel /mcp` entry.
152
+ - The 759 distinct regression cases in v0.3.0 cover **deterministic ledger and protocol conformance** (753 passed on Windows and 6 filesystem symlink cases on Ubuntu). The patch adds focused regressions. These are engineering checks, not third-party model task scores. The two package formats were also opened from clean directories, including recovery of checkpoints created by v0.2.0. Reproduce the [five-role simulation](https://github.com/bryan123466/taskcarry/blob/v0.3.2/examples/vision-drone-governance/simulation/README.md). [Release checksums](https://github.com/bryan123466/taskcarry/releases/download/v0.3.1/SHA256SUMS.txt)
153
+
154
+ ### AI Client Support Matrix (`v0.3.0`)
155
+
156
+ | AI Client | Join Project Collaboration<br>*(Briefing, Deliverables, Memos & Reading Shared Exchanges)* | Auto-Share This Chat's Recent 8 Completed Exchanges<br>*(User Prompt + Final Visible Reply)* |
157
+ |---|---|---|
158
+ | **Codex Desktop** | ✅ **Verified** *(local `stdio` MCP: memos, replies, teammate lookup & reading shared exchanges)* | ✅ **Verified** *(user-typed exchanges; on/off verified; cross-thread forwards excluded)* |
159
+ | **Antigravity Desktop** | ✅ **Verified** *(workspace `.agents/mcp_config.json` `stdio`: memos, readback & reading shared exchanges)* | ✅ **Verified** *(on, pause without backfill, resume, off & full-text long replies verified)* |
160
+ | **WorkBuddy (Cross-Machine)** | ✅ **Verified** *(private HTTPS `/join`: deliverable handback, Feishu alerts, revocation & reading shared exchanges; memo read/write not separately live-tested)* | ✅ **Verified** *(controlled via host PC's Local Board toggle; on/off verified)* |
161
+ | **Gemini Web (Custom Apps)** | ✅ **Verified** *(scoped `Tailscale Funnel /mcp` reading & revision handback; memos/exchanges not tested on this scoped role)* | ➖ Not applicable on web *(share via deliverables or memos)* |
162
+ | **Claude Code / Cursor / Other MCP Apps** | 🔌 **Standard MCP compatible** *(not separately live-tested in `v0.3.0`; follow [Getting Started](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/getting-started.md))* | ➖ Auto-capture not included in `v0.3.0` *(use Discussion Memos to share context)* |
163
+
164
+ > *Note:* Turning off automatic exchange sharing only stops saving ordinary chat replies — workers can still share files, submit deliverables, and write or reply to Discussion Memos anytime according to their role.
165
+
166
+ ---
167
+
168
+ ## Under the Hood: Engineering Guardrails Written in Code
169
+
170
+ - **Zero Third-Party Core Runtime Dependencies:** Local core + Local Board run purely on Python 3.11+ standard library and SQLite (`WAL` + `synchronous=FULL`), calling Git only for code workflows. Optional HTTPS/network dependencies install separately and pinned.
171
+ - **Plan-Before-Execute & Crash-Safe Receipts:** High-impact writes (sharing, batch sharing, handbacks, Git adoption, recovery) preview an exact content-hashed plan before executing and reconcile cleanly after interruption.
172
+ - **WIP-Safe Git Pipeline:** `preserve` commits selected paths in an isolated temporary `GIT_INDEX_FILE` without touching unrelated staged or unstaged edits (no `git add -A`, no `git reset --hard`); `reconcile` dry-runs merges in a disposable scratch worktree first.
173
+ - **Never Auto-Wakes Other AI Chats (By Design):** TaskCarry deliberately embeds no paid model API, runs no background agent polling loops, and never injects prompts into idle chats. You control when AI runs and what tokens get spent.
174
+ - **Honest Evidence Boundaries:** Plan previews return `effects_executed: false`; saving a checkpoint is not a delivery; viewing the Local Board or receiving a group alert never fabricates a read receipt; technical `received` keeps `project_complete: null` — final business acceptance always belongs to you.
175
+ - **Split-Brain & Credential Guardrails:** Restored replicas boot in read-only `standby` until explicit single-writer handoff; Local Board binds strictly to `127.0.0.1` with Host/Origin/CSRF checks and DPAPI-encrypted Windows notifier secrets; managed Git invocations strip `GIT_*` env vars and disable hooks; common secret files (`.env`, `.key`, `.pem`, `id_rsa`, `credentials.json`) are excluded by default; team `/join` enforces Tailscale Serve private device identity.
176
+
177
+ ---
178
+
179
+ ## Explicit Boundaries (What TaskCarry Does Not Promise)
180
+
181
+ - **No silent scraping & opt-in-only chat capture:** Off by default — never scrapes private chats or unsaved editor buffers. Only records what you and your AI explicitly save, share, or hand back; on supported clients where you explicitly flip a chat's sharing toggle on in the Local Board, host-side callbacks / local session sync save only subsequent completed exchanges (up to the latest 8 user-prompt + final-visible-reply pairs, excluding tool logs and thought traces, with no backfill; turning it off stops new capture while keeping previously shared exchanges readable).
182
+ - **No model training & transparent AI app usage:** TaskCarry never trains models or bills API tokens; your chosen AI app applies its own usage rules to the authorized context you send it.
183
+ - **No concurrent multi-PC writes to one SQLite file:** Cross-machine collaboration goes through the HTTPS MCP connector or isolated Git branches — never put a live `.taskcarry/state.sqlite3` inside cloud-synced folders for multi-machine concurrent writes.
184
+ - **API boundary ≠ OS sandbox:** TaskCarry enforces role, task, and source permissions on its own MCP/API surface; local filesystem and shell permissions remain governed by your AI app and OS.
185
+
186
+ ---
187
+
188
+ ## Documentation & Contributing
189
+
190
+ | Guide | English | 简体中文 | 繁體中文 |
191
+ |---|---|---|---|
192
+ | Quick Start | [Getting Started](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/getting-started.md) | [快速上手](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/zh-CN/getting-started.md) | [快速上手](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/zh-TW/getting-started.md) |
193
+ | Operation Manual | [Operation Manual](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/operation-manual.md) | [操作手册](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/zh-CN/operation-manual.md) | [操作手冊](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/zh-TW/operation-manual.md) |
194
+ | Updating & Continuation | [Updating](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/updating.md) | [更新与接续](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/zh-CN/updating.md) | [更新與接續](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/zh-TW/updating.md) |
195
+ | Architecture Deep Dive | [Architecture](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/architecture.md) | [架构说明](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/zh-CN/architecture.md) | [架構說明](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/zh-TW/architecture.md) |
196
+ | Remote & Multi-Computer | [Guide](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/remote-and-multicomputer.md) | [跨机与远端说明](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/zh-CN/remote-and-multicomputer.md) | [跨機與遠端說明](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/zh-TW/remote-and-multicomputer.md) |
197
+ | Project Maintenance | [Maintenance](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/en/governance-maintenance.md) | [维护项目](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/zh-CN/governance-maintenance.md) | [維護專案](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/zh-TW/governance-maintenance.md) |
198
+
199
+ [CLI / MCP Reference](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/COMMANDS.md) · [Skills](https://github.com/bryan123466/taskcarry/tree/v0.3.2/skills) · [Release Boundaries](https://github.com/bryan123466/taskcarry/blob/v0.3.2/docs/RELEASE_BOUNDARIES.md) · [Issues](https://github.com/bryan123466/taskcarry/issues) · [Contributing](https://github.com/bryan123466/taskcarry/blob/v0.3.0/CONTRIBUTING.md) · [Security](https://github.com/bryan123466/taskcarry/blob/v0.3.2/SECURITY.md)
200
+
201
+ ## License
202
+
203
+ Public code, docs, templates, and examples are licensed under the [MIT License](https://github.com/bryan123466/taskcarry/blob/v0.3.2/LICENSE). Your project files and records remain yours; bundled third-party runtimes in standalone archives follow their respective upstream licenses (see [LICENSE_SCOPE.md](https://github.com/bryan123466/taskcarry/blob/v0.3.2/LICENSE_SCOPE.md)).