fix(editorial): honor functional bring-up model and completion policy
Deploy Canina / deploy (push) Failing after 1m30s
Deploy Canina / deploy (push) Failing after 1m30s
This commit is contained in:
1 parent
860324e3a9
commit
bfeb464bfb
11 files changed
+178
-25
No files matched your search
@@ -14,7 +14,7 @@ import subprocess
|
||||
import tempfile
|
||||
|
||||
PROFILES=('pmo','canina-competitor-worker','canina-seo-worker','canina-content-worker','canina-vet-review-worker','canina-qa-worker')
|
||||
FILES={'bundle.json','installer.py','client.py','runner.py'} | {'payload/editorial-v4/status.json'} | {f'payload/profiles/{p}/skills/canina-editorial-v4/{f}' for p in PROFILES for f in ('SKILL.md','references/policy.md','references/role.json')}
|
||||
FILES={'bundle.json','installer.py','client.py','runner.py','model-policy.json'} | {'payload/editorial-v4/status.json'} | {f'payload/profiles/{p}/skills/canina-editorial-v4/{f}' for p in PROFILES for f in ('SKILL.md','references/policy.md','references/role.json')}
|
||||
|
||||
def safe(path):
|
||||
if not path.is_absolute() or '..' in path.parts: raise ValueError('Canonical path required')
|
||||
@@ -66,6 +66,7 @@ def install(home, payload):
|
||||
installer=importlib.util.module_from_spec(spec);spec.loader.exec_module(installer)
|
||||
installer.execute('install',home)
|
||||
report=installer.execute('verify',home)
|
||||
model_profiles=installer.configure_models(home)
|
||||
# Confirm all six skill discovery paths, without activating any scheduler.
|
||||
for profile in PROFILES:
|
||||
skill=home/f'profiles/{profile}/skills/canina-editorial-v4/SKILL.md'
|
||||
@@ -80,7 +81,7 @@ def install(home, payload):
|
||||
else:
|
||||
value=secrets.token_urlsafe(48);atomic(token,value.encode())
|
||||
atomic(home/'editorial-v4/deployment.json',json.dumps({'commitSha':payload['commitSha']}).encode())
|
||||
return {'files':report['files'],'profiles':list(PROFILES),'credentialSha256':hashlib.sha256(value.encode()).hexdigest()}
|
||||
return {'files':report['files'],'modelProfiles':model_profiles,'profiles':list(PROFILES),'credentialSha256':hashlib.sha256(value.encode()).hexdigest()}
|
||||
|
||||
def add_grant(config,digest):
|
||||
if set(config)!={'grants','workerIds','stageCiIds','artifactBaseUrl'} or not re.fullmatch('[0-9a-f]{64}',digest):raise ValueError('Invalid grants')
|
||||
|
||||
Reference in new issue
Block a user