ChatTask 0.1.0__tar.gz → 0.1.2__tar.gz
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.
- {chattask-0.1.0/src/ChatTask.egg-info → chattask-0.1.2}/PKG-INFO +1 -1
- {chattask-0.1.0 → chattask-0.1.2/src/ChatTask.egg-info}/PKG-INFO +1 -1
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/__init__.py +1 -1
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/package_plan.py +11 -6
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/package_service.py +2 -2
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/package_validation.py +1 -1
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/web_static/app.js +1 -1
- {chattask-0.1.0 → chattask-0.1.2}/tests/test_version.py +1 -1
- {chattask-0.1.0 → chattask-0.1.2}/LICENSE +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/README.md +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/pyproject.toml +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/setup.cfg +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/ChatTask.egg-info/SOURCES.txt +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/ChatTask.egg-info/dependency_links.txt +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/ChatTask.egg-info/entry_points.txt +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/ChatTask.egg-info/requires.txt +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/ChatTask.egg-info/top_level.txt +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/agent_tasks.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/auth.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/broker.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/cli.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/codex_tasks.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/config.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/executor.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/package_publication.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/package_template.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/release.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/service.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/settings.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/source.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/tool_client.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/web.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/web_static/index.html +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/web_static/style.css +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/src/chattask/workflow.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/tests/test_cli.py +0 -0
- {chattask-0.1.0 → chattask-0.1.2}/tests/test_docs_deployment.py +0 -0
|
@@ -187,6 +187,16 @@ def _workflow_contract(files):
|
|
|
187
187
|
candidates.append((name,label))
|
|
188
188
|
if len(candidates)!=1:raise ValueError('exactly one standard PyPI publish action required')
|
|
189
189
|
|
|
190
|
+
def trusted_checks(value):
|
|
191
|
+
required=('tools','tests','build','metadata','target')
|
|
192
|
+
if not isinstance(value,dict) or not set(required)<=set(value):
|
|
193
|
+
raise ValueError('validation receipts incomplete')
|
|
194
|
+
result={key:value[key] for key in required}
|
|
195
|
+
for item in result.values():
|
|
196
|
+
if not isinstance(item,dict) or set(item)!={'status','evidence'} or item['status']!='passed' or not isinstance(item['evidence'],str) or not 8<=len(item['evidence'])<=2000:
|
|
197
|
+
raise ValueError('validation check not passed')
|
|
198
|
+
return result
|
|
199
|
+
|
|
190
200
|
def _verify_plan(archive_bytes,spec):
|
|
191
201
|
if not isinstance(archive_bytes,bytes) or len(archive_bytes)>20*1024*1024:
|
|
192
202
|
raise ValueError('preparation archive too large')
|
|
@@ -259,12 +269,7 @@ def _verify_plan(archive_bytes,spec):
|
|
|
259
269
|
data=_bytes(item,5*1024*1024)
|
|
260
270
|
_distribution(filename,data,spec,source_bytes['main'])
|
|
261
271
|
artifact_digests[filename]=item['sha256']
|
|
262
|
-
checks=plan['validation']
|
|
263
|
-
if not isinstance(checks,dict) or set(checks)!=set(('tools','tests','build','metadata','target')):
|
|
264
|
-
raise ValueError('validation receipts incomplete')
|
|
265
|
-
for item in checks.values():
|
|
266
|
-
if not isinstance(item,dict) or set(item)!={'status','evidence'} or item['status']!='passed' or not isinstance(item['evidence'],str) or not 8<=len(item['evidence'])<=2000:
|
|
267
|
-
raise ValueError('validation check not passed')
|
|
272
|
+
checks=trusted_checks(plan['validation'])
|
|
268
273
|
result={'plan_sha256':hashlib.sha256(raw).hexdigest(),'archive_sha256':hashlib.sha256(archive_bytes).hexdigest(),
|
|
269
274
|
'source_manifests':digests,'artifact_digests':artifact_digests,'validation':checks,
|
|
270
275
|
'policy':policy(spec,sources=digests,artifact_digests=artifact_digests)}
|
|
@@ -6,7 +6,7 @@ import re
|
|
|
6
6
|
import uuid
|
|
7
7
|
from .workflow import now
|
|
8
8
|
from .package_template import REVISION, REQUEST_ID, validate_spec, fingerprint, prepare_instructions, publish_instructions, policy
|
|
9
|
-
from .package_plan import verify_plan
|
|
9
|
+
from .package_plan import verify_plan, trusted_checks
|
|
10
10
|
|
|
11
11
|
DRAFT_ID = re.compile(r'[a-f0-9]{32}\Z')
|
|
12
12
|
def _digest(value):
|
|
@@ -70,7 +70,7 @@ class PackageService:
|
|
|
70
70
|
if len(att_bytes)!=att['size'] or hashlib.sha256(att_bytes).hexdigest()!=att['sha256']:
|
|
71
71
|
raise ValueError('trusted validation receipt digest mismatch')
|
|
72
72
|
evidence=json.loads(att_bytes)
|
|
73
|
-
if evidence.get('plan_sha256')!=preview['plan_sha256'] or evidence.get('checks')!=preview['validation']:
|
|
73
|
+
if evidence.get('plan_sha256')!=preview['plan_sha256'] or trusted_checks(evidence.get('checks'))!=preview['validation']:
|
|
74
74
|
raise ValueError('trusted validation does not bind the plan')
|
|
75
75
|
if set(evidence.get('branches',{}))!=set(preview['source_manifests']):
|
|
76
76
|
raise ValueError('trusted validation branch mismatch')
|
|
@@ -116,7 +116,7 @@ for branch,entry in plan['sources'].items():
|
|
|
116
116
|
raise SystemExit('distribution metadata mismatch')
|
|
117
117
|
receipts[branch]={'tests_sha256':test_hash,'build_sha256':build_hash,'wheel_sdist':sorted(x.name for x in dist)}
|
|
118
118
|
if branch=='main':plan['placeholder_artifacts']=rebuilt_registration_artifacts(dest/'dist')
|
|
119
|
-
validation=
|
|
119
|
+
validation={} # Only controller-executed facts are authoritative; discard model annotations.
|
|
120
120
|
validation['tools']={'status':'passed','evidence':'Read-only scoped tool catalog and probe completed in Sandbox'}
|
|
121
121
|
validation['target']={'status':'passed','evidence':target_evidence}
|
|
122
122
|
validation['tests']={'status':'passed','evidence':'Executed tests in Sandbox: '+json.dumps(receipts,sort_keys=True)}
|
|
@@ -555,7 +555,7 @@ function packageFields() {
|
|
|
555
555
|
return spec;
|
|
556
556
|
}
|
|
557
557
|
function packageDirty() {
|
|
558
|
-
return !!packageDraft &&
|
|
558
|
+
return !!packageDraft && Object.entries(packageFields()).some(([key,value]) => value !== packageDraft.spec[key]);
|
|
559
559
|
}
|
|
560
560
|
function packageControls() {
|
|
561
561
|
const hasDraft = !!packageDraft;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|