Files
boc/EOS/vertical-slice-ssh-v2.mjs
T
Bernt 05ed037fe8 pilot.landvex.com: HTTPS + Full Stack Verified
- DNS: pilot.landvex.com -> 16.170.83.169
- TLS: Let's Encrypt certificate (expires 2026-09-30)
- Nginx: reverse proxy with SSL termination
- API: https://pilot.landvex.com/api/v1/missions
- UI: https://pilot.landvex.com/
- Upload: POST /api/v1/missions/import (multipart/form-data)

Verified:
 https://pilot.landvex.com/health
 https://pilot.landvex.com/version
 https://pilot.landvex.com/api/v1/missions (list)
 https://pilot.landvex.com/api/v1/missions/:id (get)
 POST /api/v1/missions/import (video upload)
 UI loads with title 'LandveX Intelligence Lab'

Next: Pilot 001 — Break the system!
2026-07-02 17:34:19 +00:00

45 lines
1.5 KiB
JavaScript

#!/usr/bin/env node
// ═══════════════════════════════════════════════════════════════════════════
// Vertical Slice: SSH till produktion blockeras (S-001) v2
// Med Policy Registry och Runtime Trace v2
// ═══════════════════════════════════════════════════════════════════════════
import { AgentRuntimeV3 } from './agent-runtime-v3.mjs';
/**
* EOS Policy för SSH med Policy Registry-integration
*/
function checkSSHPolicy(task) {
const isSSH = task.action === 'ssh' ||
task.description?.toLowerCase().includes('ssh');
const isProduction = task.target === 'production' ||
task.description?.toLowerCase().includes('produktion');
if (isSSH && isProduction) {
return {
passed: false,
policyId: 'POL-SEC-001',
rule: 'no-ssh-prod',
reason: 'SSH till produktion är förbjudet enligt EOS Policy POL-SEC-001',
severity: 'CRITICAL',
action: 'STOP',
evidence: {
action: task.action,
target: task.target
}
};
}
return { passed: true };
}
class AgentRuntimeSSHSliceV2 extends AgentRuntimeV3 {
constructor(task) {
super(task);
this.policies = [checkSSHPolicy];
}
}
export { AgentRuntimeSSHSliceV2, checkSSHPolicy };