Implement M9.7 dev region sessions with durable no-effect intentions
Run a non-blocking TLS 1.3 session server inside evo-server's loop: environment views come from the region's own field/terrain stores with an explicitly empty organism presentation; admitted intentions ride the next synthetic input (content unchanged) and return a durable no-effect outcome from the host's final acknowledgement, or not_committed when dropped. Sessions are bound to their connection, epochs close stale sessions, and connections have bounded output, input rate and deadlines. SessionClient and evo-client --connect consume one single-use grant per Hello (refusals before admission keep it), reset to a fresh baseline on every session, keep stale views visible and report in-flight intentions as unknown after loss. evo-dev-session generates dev credentials, grant bundles and runs a restart probe. The dev deployment gains a drill-time, loopback-only listener with an optional Secret, enforced by the policy check, and tools/ops/session-drill.sh. Protocol v1 gains IntentOutcome and the capacity close reason before any deployment. ADR-0083 records the maintainer-confirmed decisions; M8-dev/stage remains not passed and no cluster change was made. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -235,6 +235,25 @@ for path, doc in objects:
|
||||
for variable in container.get('env', []):
|
||||
if variable.get('name') == 'REGION_INPUTS':
|
||||
check(variable.get('value') == '', f'{path}: synthetic inputs are never enabled in Git')
|
||||
# M9.7 (ADR-0083): dev sessions are a drill-time override as well.
|
||||
if variable.get('name') == 'REGION_SESSION':
|
||||
check(variable.get('value') == '', f'{path}: dev sessions are never enabled in Git')
|
||||
# M9.7 (ADR-0083): the session listener is loopback-only (kubectl port-forward), and its
|
||||
# Secret is optional, 0440 and never exposed through a Service port.
|
||||
for path, doc in objects:
|
||||
if path.startswith('deploy/kubernetes/region/') and doc['kind'] == 'Deployment' and not path.endswith('region-values.yaml'):
|
||||
pod = doc['spec']['template']['spec']
|
||||
script = ' '.join(pod['containers'][0].get('args', []))
|
||||
check('--session-listen 127.0.0.1:' in script and '0.0.0.0:7400' not in script,
|
||||
f'{path}: the session listener binds loopback only')
|
||||
for volume in pod.get('volumes', []):
|
||||
if volume.get('secret', {}).get('secretName') == 'evolution-dev-session':
|
||||
check(volume['secret'].get('optional') is True and volume['secret'].get('defaultMode') == 0o440,
|
||||
f'{path}: the dev session Secret is optional and 0440')
|
||||
if doc['kind'] == 'Service':
|
||||
for port in doc['spec'].get('ports', []):
|
||||
check(port.get('port') != 7400 and port.get('targetPort') not in (7400, 'session'),
|
||||
f'{path}: the dev session port is never exposed by a Service')
|
||||
for env in ('dev', 'stage'):
|
||||
overlay = f'deploy/kubernetes/region/{env}/'
|
||||
images = manifests.get(overlay + 'kustomization.yaml', [{}])[0].get('images', [])
|
||||
|
||||
Reference in New Issue
Block a user