@aiwg/flue 2026.11.1 → 2026.11.3
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.
- package/package.json +9 -1
- package/skills/add-template/SKILL.md +4 -4
- package/skills/address-issues/SKILL.md +25 -19
- package/skills/address-issues/references/milestone.md +208 -0
- package/skills/address-issues/scripts/milestone-plan.mjs +109 -0
- package/skills/aiwg-delivery-pr/SKILL.md +6 -0
- package/skills/aiwg-issue/SKILL.md +44 -7
- package/skills/aiwg-pr/SKILL.md +9 -3
- package/skills/approval-workflow/SKILL.md +1 -1
- package/skills/architecture-evolution/SKILL.md +3 -3
- package/skills/audience-synthesis/SKILL.md +1 -1
- package/skills/brand-compliance/SKILL.md +1 -1
- package/skills/checkpoint/SKILL.md +31 -3
- package/skills/competitive-intel/SKILL.md +2 -2
- package/skills/config-validator/SKILL.md +2 -2
- package/skills/decision-support/SKILL.md +2 -2
- package/skills/deploy-gen/SKILL.md +3 -3
- package/skills/devkit-create-framework/SKILL.md +1 -1
- package/skills/exposure-analysis/SKILL.md +144 -0
- package/skills/exposure-analysis/SKILL.md.d.ts +3 -0
- package/skills/exposure-analysis/scripts/analyze.mjs +133 -0
- package/skills/exposure-analysis/scripts/firewall.mjs +113 -0
- package/skills/flow-architecture-evolution/SKILL.md +9 -9
- package/skills/flow-change-control/SKILL.md +10 -10
- package/skills/flow-compliance-validation/SKILL.md +6 -6
- package/skills/flow-concept-to-inception/SKILL.md +3 -3
- package/skills/flow-cross-team-sync/SKILL.md +6 -6
- package/skills/flow-deploy-to-production/SKILL.md +10 -10
- package/skills/flow-discovery-track/SKILL.md +12 -12
- package/skills/flow-elaboration-to-construction/SKILL.md +5 -5
- package/skills/flow-hypercare-monitoring/SKILL.md +4 -4
- package/skills/flow-inception-to-elaboration/SKILL.md +4 -4
- package/skills/flow-incident-response/SKILL.md +4 -4
- package/skills/flow-iteration-dual-track/SKILL.md +2 -2
- package/skills/flow-knowledge-transfer/SKILL.md +8 -8
- package/skills/flow-performance-optimization/SKILL.md +5 -5
- package/skills/flow-requirements-evolution/SKILL.md +3 -3
- package/skills/flow-retrospective-cycle/SKILL.md +4 -4
- package/skills/flow-risk-management-cycle/SKILL.md +3 -3
- package/skills/flow-team-onboarding/SKILL.md +5 -5
- package/skills/forensics-profile/SKILL.md +1 -1
- package/skills/forensics-quickref/SKILL.md +17 -0
- package/skills/forensics-report/SKILL.md +1 -1
- package/skills/forensics-timeline/SKILL.md +1 -1
- package/skills/forensics-triage/SKILL.md +1 -1
- package/skills/hook-regenerate/SKILL.md +2 -2
- package/skills/host-hardening/SKILL.md +150 -0
- package/skills/host-hardening/SKILL.md.d.ts +3 -0
- package/skills/host-hardening/scripts/bindings.mjs +48 -0
- package/skills/host-hardening/scripts/check.mjs +71 -0
- package/skills/incident-triage/SKILL.md +2 -2
- package/skills/intake-wizard/SKILL.md +1 -1
- package/skills/issue-create/SKILL.md +13 -13
- package/skills/issue-create/references/provider-writes.md +27 -0
- package/skills/issue-update/SKILL.md +4 -0
- package/skills/qa-protocol/SKILL.md +2 -2
- package/skills/regression-report/SKILL.md +5 -5
- package/skills/research-document/SKILL.md +1 -1
- package/skills/review-synthesis/SKILL.md +1 -1
- package/skills/sdlc-quickref/SKILL.md +7 -0
- package/skills/sdlc-reports/SKILL.md +4 -4
- package/skills/security-engineering-quickref/SKILL.md +20 -0
- package/skills/soul-create/SKILL.md +1 -1
- package/skills/test-coverage/SKILL.md +1 -1
- package/skills/traceability-check/SKILL.md +1 -1
- package/specialists.js +1 -1
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
---
|
|
2
|
+
namespace: aiwg
|
|
3
|
+
name: host-hardening
|
|
4
|
+
platforms: [flue]
|
|
5
|
+
description: Read-only system hardening baseline and plan-first host hardening recommendations for SSH, Docker bind addresses, firewall persistence, datastores, exporters and audit retention.
|
|
6
|
+
triggers:
|
|
7
|
+
- "system hardening"
|
|
8
|
+
- "host hardening baseline"
|
|
9
|
+
- "plan host remediation"
|
|
10
|
+
- "check compose port bindings"
|
|
11
|
+
tools: Read, Bash, Write
|
|
12
|
+
requires:
|
|
13
|
+
- sanitized host baseline and operator-defined service health checks
|
|
14
|
+
ensures:
|
|
15
|
+
- baseline report with diff-style recommendations, backup plan, access gates and re-verification checklist
|
|
16
|
+
invariants:
|
|
17
|
+
- never changes host firewall rules or services, even with an apply request
|
|
18
|
+
- never collects secrets, SSH key material or datastore passwords
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
# Host Hardening
|
|
22
|
+
|
|
23
|
+
## Purpose
|
|
24
|
+
|
|
25
|
+
Review a Linux host after exposure reconstruction or as a recurring baseline.
|
|
26
|
+
Extend `security-assessment` with concrete host checks, using existing
|
|
27
|
+
`sys-host-audit` inventory and `exposure-analysis` findings. Recommendations
|
|
28
|
+
are plan-first and read-only under `ops-safety`: this skill never applies a
|
|
29
|
+
firewall, SSH, datastore or service change. `--apply` is rejected.
|
|
30
|
+
|
|
31
|
+
## Triggers
|
|
32
|
+
|
|
33
|
+
- "system hardening"
|
|
34
|
+
- "host hardening baseline"
|
|
35
|
+
- "lockout-safe SSH remediation plan"
|
|
36
|
+
- "compose ports without bind address"
|
|
37
|
+
|
|
38
|
+
## Behavior
|
|
39
|
+
|
|
40
|
+
1. Identify the operator-authorized host, timestamp, role and service owners.
|
|
41
|
+
Resolve report destination with `aiwg artifacts path --json --check-write`.
|
|
42
|
+
Apply `ops-information-governance` to collected metadata before emission.
|
|
43
|
+
Reuse sanitized inventory and exposure reports. Missing or restricted data
|
|
44
|
+
means UNKNOWN, never PASS. Do not read auth/token files, authorized_keys,
|
|
45
|
+
datastore passwords or environment values; operators provide safe boolean
|
|
46
|
+
assessments for sensitive controls.
|
|
47
|
+
2. Assess the baseline below, recording evidence references and exceptions.
|
|
48
|
+
Confirm effective sshd settings in relevant Match contexts, including
|
|
49
|
+
included files; checking one config line cannot establish effective policy.
|
|
50
|
+
3. Prepare a reviewable diff-style recommendation per failed control. Map
|
|
51
|
+
stale/over-broad firewall rule removal candidates to exact rule identifiers,
|
|
52
|
+
listeners, container publishing and named service owners. Specify public,
|
|
53
|
+
private or VPN binds for proposed Compose changes. Do not assume a standby
|
|
54
|
+
rule is disposable because the listener is currently absent.
|
|
55
|
+
4. Include dated backup requirements, pre-change SHA-256, verified restore
|
|
56
|
+
procedure and rollback deadline for every affected file/ruleset. Backups
|
|
57
|
+
stay in operator-controlled restricted storage, not in reports. The helper
|
|
58
|
+
produces backup instructions only; it never creates host backups.
|
|
59
|
+
5. Gate any separately performed SSH change on verified key-based access
|
|
60
|
+
(second session with intended account) AND verified console break-glass
|
|
61
|
+
access. A key file existing is insufficient. Require explicit operator
|
|
62
|
+
authorization for exact changes, `sshd -t` and effective Match review,
|
|
63
|
+
an open recovery session and timed rollback before password/root restriction.
|
|
64
|
+
Network, boot and authentication changes have at least HIGH blast radius.
|
|
65
|
+
6. Hand the plan to the operator for a separate authorized operational change.
|
|
66
|
+
Even explicit apply authorization does not make this read-only skill a
|
|
67
|
+
mutation tool. Do not run reload/restart, firewall writes or datastore DDL.
|
|
68
|
+
7. After the operator reports application, obtain fresh captures. Re-run
|
|
69
|
+
exposure analysis, SSH checks and the baseline. Re-verify listeners,
|
|
70
|
+
IPv4/IPv6 firewall, Docker forwarding/binds, a new key-based session and
|
|
71
|
+
every named health check (queue ready, monitoring targets still up, CDN
|
|
72
|
+
origin HTTP/HTTPS). Record failures and recommend rollback; never claim
|
|
73
|
+
verification from the pre-change snapshot. Missing results remain UNKNOWN.
|
|
74
|
+
|
|
75
|
+
## Baseline
|
|
76
|
+
|
|
77
|
+
| Area | Checks and safe metadata fields under `baseline` |
|
|
78
|
+
|---|---|
|
|
79
|
+
| SSH | `ssh.passwordAuthentication: no`, `permitRootLogin: no`, `maxAuthTries <= 3`, `caTrustReviewed`, `authorizedKeysFromRestricted` (from= review) |
|
|
80
|
+
| Firewall | `firewall.defaultDeny4`, `defaultDeny6`, `persistent` across reboot; compare runtime/persistent rules and default policy |
|
|
81
|
+
| Docker | `docker.userGuard`, `afterVpn` (readiness + startup/restart dependency), `liveRestore`, `explicitBinds` |
|
|
82
|
+
| Datastores | `datastores.authAcl`, `redisDangerousCommandsRestricted`, `postgresConnectionLogging`, `appRolesNotSuperuser` |
|
|
83
|
+
| Exporters | `exporters.privateBind`, `fixedTargets` (no caller-chosen multi-target scrapes) |
|
|
84
|
+
| Audit | `audit.rulesLoaded`, `retentionReviewed` (auditd rules, journal/rotation capacity and preservation) |
|
|
85
|
+
|
|
86
|
+
Boolean controls require `true` for PASS. Use `null`/omission for unknown,
|
|
87
|
+
not an assumed value; mark non-applicable controls with a documented operator
|
|
88
|
+
exception in the report. The helper leaves omitted controls UNKNOWN. Redis ACL
|
|
89
|
+
restrictions should deny dangerous commands for application users; do not
|
|
90
|
+
blindly rename commands or lock out maintenance/replication. Review SSH CA
|
|
91
|
+
principals and role privileges without exposing key or credential values.
|
|
92
|
+
|
|
93
|
+
## Offline helper and static check
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
node "$AIWG_ROOT/agentic/code/frameworks/security-engineering/skills/host-hardening/scripts/check.mjs" --snapshot baseline.json --compose compose.yaml
|
|
97
|
+
node "$AIWG_ROOT/agentic/code/frameworks/security-engineering/skills/host-hardening/scripts/check.mjs" --snapshot baseline.json --docker-run reviewed-commands.txt
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Snapshot requires `host`, `capturedAt`, optional `baseline` and `healthChecks`
|
|
101
|
+
(array of safe named checks). Compose parsing uses the existing YAML dependency.
|
|
102
|
+
Short and long syntax require explicit literal `host_ip`/bind addresses;
|
|
103
|
+
wildcards receive a separate review finding. Render interpolation and merged
|
|
104
|
+
Compose files through an operator-approved process before static checking;
|
|
105
|
+
never execute shell substitutions from files. `expose:` alone does not publish
|
|
106
|
+
host ports. Host networking and publish-all require explicit listener review.
|
|
107
|
+
The docker-run checker covers literal `-p`, `--publish`, `-P`; shell-generated,
|
|
108
|
+
multiline or computed commands require manual review.
|
|
109
|
+
|
|
110
|
+
## Examples
|
|
111
|
+
|
|
112
|
+
Input: `PasswordAuthentication yes`, `PermitRootLogin yes`, six auth tries.
|
|
113
|
+
Output: failed SSH controls with `-PasswordAuthentication yes` /
|
|
114
|
+
`+PasswordAuthentication no`, dated operator-backup requirements, key and
|
|
115
|
+
console gates, explicit authorization and fresh-capture rechecks. Nothing is
|
|
116
|
+
changed. `--apply` fails with the read-only boundary explanation.
|
|
117
|
+
|
|
118
|
+
Input: Compose `ports: ["6379:6379"]` or long syntax without `host_ip`.
|
|
119
|
+
Output: `missing-bind`. `"10.8.0.2:6379:6379"` names the VPN bind;
|
|
120
|
+
`"[::1]:6379:6379"` names IPv6 loopback. `0.0.0.0` and `::` require public
|
|
121
|
+
service justification. An explicit address alone does not establish safety.
|
|
122
|
+
|
|
123
|
+
## Output and recurring checks
|
|
124
|
+
|
|
125
|
+
Write the sanitized report beneath resolved
|
|
126
|
+
`.aiwg/security-engineering/reviews/`. The helper emits JSON to stdout with
|
|
127
|
+
checks, findings, plan and `summary: {status, passed, failed, unknown}`.
|
|
128
|
+
Exit codes: 0 PASS, 2 FAIL, 3 UNKNOWN, 1 invalid input or prohibited apply.
|
|
129
|
+
Use existing operator scheduling for post-deploy and monthly checks; emit
|
|
130
|
+
`host, capturedAt, status, failed, unknown, report reference` to the operations
|
|
131
|
+
log and alert on nonzero status. This skill installs no schedules or services.
|
|
132
|
+
|
|
133
|
+
## Tool selection and limits
|
|
134
|
+
|
|
135
|
+
Suggested default: existing `ss`, Docker metadata and native firewall read
|
|
136
|
+
commands, with offline helper for reproducible narrow checks. Use nftables or
|
|
137
|
+
firewalld's native views when those own the host; review hook order manually
|
|
138
|
+
when the exposure helper reports unsupported semantics. Existing benchmark
|
|
139
|
+
reports may supply baseline evidence, with their scope and capture time.
|
|
140
|
+
For newer backend versions evaluate read-only behavior, both address families,
|
|
141
|
+
Docker integration and lockout recovery against sanitized fixtures before
|
|
142
|
+
trusting their results. No package vulnerability scanner is added here.
|
|
143
|
+
|
|
144
|
+
## References
|
|
145
|
+
|
|
146
|
+
- ../../rules/published-port-binding.md
|
|
147
|
+
- ../../../ops-complete/rules/ops-safety.md
|
|
148
|
+
- ../../../forensics-complete/skills/exposure-analysis/SKILL.md
|
|
149
|
+
- ../dfir-readiness/SKILL.md
|
|
150
|
+
- ../../docs/network-control-review.md
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Check Compose and docker run publishes without executing or rewriting them.
|
|
2
|
+
import yaml from 'js-yaml';
|
|
3
|
+
import { isIP } from 'node:net';
|
|
4
|
+
|
|
5
|
+
function bindOf(value) {
|
|
6
|
+
if (typeof value === 'object' && value !== null) return value.host_ip;
|
|
7
|
+
const text = String(value).replace(/\/(tcp|udp|sctp)$/, '');
|
|
8
|
+
const ipv6 = text.match(/^\[([^\]]+)\]:[^:]+:[^:]+$/);
|
|
9
|
+
if (ipv6) return ipv6[1];
|
|
10
|
+
const parts = text.split(':');
|
|
11
|
+
return parts.length === 3 ? parts[0] : undefined;
|
|
12
|
+
}
|
|
13
|
+
function finding(value, location) {
|
|
14
|
+
const address = bindOf(value);
|
|
15
|
+
if (!address || !isIP(address)) return { code: 'missing-bind', location,
|
|
16
|
+
detail: 'Explicit literal bind address required; unresolved variables require rendered Compose review' };
|
|
17
|
+
if (['0.0.0.0', '::'].includes(address)) return { code: 'wildcard-bind', location,
|
|
18
|
+
detail: 'All-interface publish needs documented public-service justification and firewall review' };
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
export function checkCompose(text) {
|
|
22
|
+
const document = yaml.load(text);
|
|
23
|
+
if (!document || typeof document !== 'object' || !document.services) throw new Error('Compose services mapping required');
|
|
24
|
+
const findings = [];
|
|
25
|
+
for (const [name, service] of Object.entries(document.services)) {
|
|
26
|
+
if (!service || typeof service !== 'object') continue;
|
|
27
|
+
if (service.network_mode === 'host') findings.push({ code: 'host-network', location: name, detail: 'Host networking requires listener review; ports do not constrain it' });
|
|
28
|
+
if (service.ports !== undefined && !Array.isArray(service.ports)) throw new Error('Compose ports must be an array');
|
|
29
|
+
for (const [index, port] of (service.ports ?? []).entries()) {
|
|
30
|
+
const issue = finding(port, `services.${name}.ports[${index}]`);
|
|
31
|
+
if (issue) findings.push(issue);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return findings;
|
|
35
|
+
}
|
|
36
|
+
export function checkDockerRun(text) {
|
|
37
|
+
const findings = [];
|
|
38
|
+
for (const [index, line] of text.split('\n').entries()) {
|
|
39
|
+
// A bounded lexical check; shell expansion and generated commands require manual review.
|
|
40
|
+
const publishes = line.matchAll(/(?:^|\s)(?:-p\s*|--publish(?:=|\s+))('[^']*'|"[^"]*"|\S+)/g);
|
|
41
|
+
for (const match of publishes) {
|
|
42
|
+
const issue = finding(match[1].replace(/^['"]|['"]$/g, ''), `line ${index + 1}`);
|
|
43
|
+
if (issue) findings.push(issue);
|
|
44
|
+
}
|
|
45
|
+
if (/(?:^|\s)(?:-P|--publish-all)(?:\s|$)/.test(line)) findings.push({ code: 'missing-bind', location: `line ${index + 1}`, detail: 'Publish-all has no explicit bind address' });
|
|
46
|
+
}
|
|
47
|
+
return findings;
|
|
48
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// Produce a hardening baseline and operator-only remediation plan from safe metadata.
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
|
+
import { checkCompose, checkDockerRun } from './bindings.mjs';
|
|
4
|
+
|
|
5
|
+
const controls = [
|
|
6
|
+
['ssh.passwordAuthentication', 'no', 'Disable password authentication after access gates', '/etc/ssh/sshd_config'],
|
|
7
|
+
['ssh.permitRootLogin', 'no', 'Disable root login after access gates', '/etc/ssh/sshd_config'],
|
|
8
|
+
['ssh.maxAuthTries', 3, 'Limit MaxAuthTries to at most 3', '/etc/ssh/sshd_config'],
|
|
9
|
+
['ssh.caTrustReviewed', true, 'Review TrustedUserCAKeys and principals without collecting key material', '/etc/ssh/sshd_config'],
|
|
10
|
+
['ssh.authorizedKeysFromRestricted', true, 'Constrain authorized_keys with from=; operator supplies boolean only', 'authorized_keys (operator-owned)'],
|
|
11
|
+
['firewall.defaultDeny4', true, 'Default-deny IPv4 inbound', 'IPv4 firewall rules'],
|
|
12
|
+
['firewall.defaultDeny6', true, 'Default-deny IPv6 inbound', 'IPv6 firewall rules'],
|
|
13
|
+
['firewall.persistent', true, 'Verify persisted rules and boot loading', 'firewall persistence configuration'],
|
|
14
|
+
['docker.userGuard', true, 'Review ordered DOCKER-USER ingress guard', 'Docker firewall rules'],
|
|
15
|
+
['docker.afterVpn', true, 'Order Docker after VPN readiness, including restart behavior', 'Docker service drop-in'],
|
|
16
|
+
['docker.liveRestore', true, 'Enable Docker live-restore where supported', '/etc/docker/daemon.json'],
|
|
17
|
+
['docker.explicitBinds', true, 'Specify private/VPN bind addresses in rendered Compose and docker run', 'compose.yaml'],
|
|
18
|
+
['datastores.authAcl', true, 'Require datastore authentication and least-privilege ACLs', 'datastore configuration'],
|
|
19
|
+
['datastores.redisDangerousCommandsRestricted', true, 'Deny dangerous Redis commands through ACLs; review version-specific alternatives', 'Redis ACL configuration'],
|
|
20
|
+
['datastores.postgresConnectionLogging', true, 'Enable PostgreSQL connection logging', 'PostgreSQL configuration'],
|
|
21
|
+
['datastores.appRolesNotSuperuser', true, 'Remove superuser from application roles after dependency review', 'PostgreSQL role definitions'],
|
|
22
|
+
['exporters.privateBind', true, 'Bind exporters to private/VPN interfaces', 'exporter configuration'],
|
|
23
|
+
['exporters.fixedTargets', true, 'Disable caller-chosen multi-target exporter scrapes', 'exporter configuration'],
|
|
24
|
+
['audit.rulesLoaded', true, 'Review auditd rules against sensitive file and authentication events', 'auditd rules'],
|
|
25
|
+
['audit.retentionReviewed', true, 'Review audit/log retention capacity and remote preservation', 'auditd and journal retention configuration'],
|
|
26
|
+
];
|
|
27
|
+
const valueAt = (data, path) => path.split('.').reduce((value, part) => value?.[part], data);
|
|
28
|
+
try {
|
|
29
|
+
const args = process.argv.slice(2);
|
|
30
|
+
if (args.some(arg => ['--apply', '--authorized'].includes(arg))) throw new Error('read-only skill: operator must execute separately reviewed changes; apply is unavailable');
|
|
31
|
+
const options = {};
|
|
32
|
+
for (let i = 0; i < args.length; i += 2) {
|
|
33
|
+
if (!['--snapshot', '--compose', '--docker-run'].includes(args[i]) || !args[i + 1]) throw new Error('Usage: check.mjs --snapshot safe.json [--compose compose.yaml] [--docker-run commands.txt]');
|
|
34
|
+
options[args[i]] = args[i + 1];
|
|
35
|
+
}
|
|
36
|
+
if (!options['--snapshot']) throw new Error('--snapshot is required');
|
|
37
|
+
const data = JSON.parse(readFileSync(options['--snapshot'], 'utf8'));
|
|
38
|
+
if (!data.host || !Number.isFinite(Date.parse(data.capturedAt))) throw new Error('host and ISO capturedAt required');
|
|
39
|
+
const checks = controls.map(([id, expected, recommendation, file]) => {
|
|
40
|
+
const actual = valueAt(data.baseline, id);
|
|
41
|
+
const known = typeof actual === typeof expected;
|
|
42
|
+
const pass = id === 'ssh.maxAuthTries' ? Number.isInteger(actual) && actual > 0 && actual <= expected : actual === expected;
|
|
43
|
+
return { id, status: !known ? 'UNKNOWN' : pass ? 'PASS' : 'FAIL', recommendation, file };
|
|
44
|
+
});
|
|
45
|
+
const findings = [];
|
|
46
|
+
if (options['--compose']) findings.push(...checkCompose(readFileSync(options['--compose'], 'utf8')).map(finding => ({ ...finding, file: options['--compose'] })));
|
|
47
|
+
if (options['--docker-run']) findings.push(...checkDockerRun(readFileSync(options['--docker-run'], 'utf8')).map(finding => ({ ...finding, file: options['--docker-run'] })));
|
|
48
|
+
const changes = checks.filter(check => check.status === 'FAIL');
|
|
49
|
+
const diff = changes.map(check => {
|
|
50
|
+
const names = { 'ssh.passwordAuthentication': 'PasswordAuthentication', 'ssh.permitRootLogin': 'PermitRootLogin', 'ssh.maxAuthTries': 'MaxAuthTries' };
|
|
51
|
+
const name = names[check.id];
|
|
52
|
+
return name ? `--- ${check.file}\n-${name} ${valueAt(data.baseline, check.id)}\n+${name} ${controls.find(control => control[0] === check.id)[1]}`
|
|
53
|
+
: `--- ${check.file}\n- control ${check.id}: failed\n+ recommendation: ${check.recommendation}`;
|
|
54
|
+
}).concat(findings.map(finding => `--- ${finding.file} (${finding.location})\n- ${finding.code}: current publish requires review\n+ use operator-reviewed private/VPN bind; retain required service reachability`)).join('\n');
|
|
55
|
+
const datedSuffix = new Date(data.capturedAt).toISOString().replace('.000', '').replaceAll(':', '-');
|
|
56
|
+
const backups = [...new Set([...changes.map(check => check.file), ...findings.map(finding => finding.file)])].map(file => ({ action: 'operator-backup', file, datedSuffix,
|
|
57
|
+
verify: 'Record SHA-256 before change, restrict access, verify restore procedure; never copy secrets into the report' }));
|
|
58
|
+
const failed = changes.length + findings.length;
|
|
59
|
+
const unknown = checks.filter(check => check.status === 'UNKNOWN').length;
|
|
60
|
+
const report = { host: data.host, capturedAt: data.capturedAt, mode: 'read-only', checks, findings,
|
|
61
|
+
plan: { backups, diff, ruleReview: 'Review exposure-analysis stale and over-broad rules; map each removal to owner and named service before preparing exact diffs',
|
|
62
|
+
gates: ['explicit operator authorization', 'verified key-based access', 'verified console break-glass access'],
|
|
63
|
+
safety: ['HIGH blast radius for network/auth changes', 'Test sshd effective Match contexts and syntax before reload',
|
|
64
|
+
'Keep current SSH session and timed rollback; validate second key session before retiring old access',
|
|
65
|
+
'Operator takes dated backups before any separately authorized application; this skill never applies'],
|
|
66
|
+
reverify: ['listeners', 'IPv4 firewall', 'IPv6 firewall', 'Docker forwarding and binds', 'new key-based SSH session', ...(data.healthChecks ?? [])],
|
|
67
|
+
execution: 'Operator applies outside this read-only skill, then supplies fresh captures and named health results for a new report; no apply is performed or claimed' },
|
|
68
|
+
summary: { status: failed ? 'FAIL' : unknown ? 'UNKNOWN' : 'PASS', passed: checks.filter(check => check.status === 'PASS').length, failed, unknown } };
|
|
69
|
+
process.stdout.write(`${JSON.stringify(report, null, 2)}\n`);
|
|
70
|
+
process.exitCode = failed ? 2 : unknown ? 3 : 0;
|
|
71
|
+
} catch (error) { process.stderr.write(`${error.message}\n`); process.exitCode = 1; }
|
|
@@ -539,7 +539,7 @@ escalation:
|
|
|
539
539
|
|
|
540
540
|
## References
|
|
541
541
|
|
|
542
|
-
- Incident response template: templates/
|
|
543
|
-
- Post-incident review template: templates/
|
|
542
|
+
- Incident response template: agentic/code/frameworks/sdlc-complete/templates/test/defect-card.md
|
|
543
|
+
- Post-incident review template: agentic/code/frameworks/sdlc-complete/templates/management/sprint-retrospective-template.md
|
|
544
544
|
- On-call schedule: .aiwg/team/on-call.yaml
|
|
545
545
|
- Runbooks: .aiwg/deployment/runbooks/
|
|
@@ -1784,4 +1784,4 @@ Rules:
|
|
|
1784
1784
|
|
|
1785
1785
|
- Intake templates: `agentic/code/frameworks/sdlc-complete/templates/.aiwg/intake/`
|
|
1786
1786
|
- Flow orchestration: `commands/flow-concept-to-inception.md`
|
|
1787
|
-
- Profile definitions: `templates
|
|
1787
|
+
- Profile definitions: `agentic/code/frameworks/sdlc-complete/templates/intake/solution-profile-template.md`
|
|
@@ -17,20 +17,20 @@ commandHint:
|
|
|
17
17
|
modelTier: economy
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
<!-- AIWG-SKILL-CALLOUT -->
|
|
21
|
-
> **Skill access pattern (post-kernel-pivot, 2026.5+)**
|
|
22
|
-
>
|
|
23
|
-
> Skill names referenced in this document are AIWG skills, **not slash commands**. Most are not kernel-listed and cannot be invoked as `/skill-name` by the platform. Reach them via:
|
|
24
|
-
>
|
|
25
|
-
> ```bash
|
|
26
|
-
> aiwg discover "<capability>"
|
|
27
|
-
> aiwg show skill <name> --body
|
|
28
|
-
> ```
|
|
29
|
-
>
|
|
30
|
-
> Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
31
|
-
|
|
32
20
|
# Issue Create
|
|
33
21
|
|
|
22
|
+
Load referenced skills via `aiwg discover "<capability>"` then `aiwg show skill <name> --body`; follow the [skill-discovery rule](../../../addons/aiwg-utils/rules/skill-discovery.md).
|
|
23
|
+
|
|
24
|
+
## Output template
|
|
25
|
+
|
|
26
|
+
Use the required template for the issue kind and fill every required section; mark non-applicable fields with a reason.
|
|
27
|
+
The composer warns on stderr without blocking; select `--template <kind|path>` (default: `bug-report`).
|
|
28
|
+
|
|
29
|
+
- Bug: @$AIWG_ROOT/agentic/code/addons/aiwg-utils/templates/issues/bug-report.md
|
|
30
|
+
- Feature: @$AIWG_ROOT/agentic/code/addons/aiwg-utils/templates/issues/feature-request.md
|
|
31
|
+
- Tester findings: @$AIWG_ROOT/agentic/code/addons/aiwg-utils/templates/issues/tester-report.md
|
|
32
|
+
- Imported report: @$AIWG_ROOT/agentic/code/addons/aiwg-utils/templates/issues/imported-report.md
|
|
33
|
+
|
|
34
34
|
## Semantic Label Contract (#1789)
|
|
35
35
|
|
|
36
36
|
Resolve the target workspace member first and check its `issue-comment`
|
|
@@ -160,7 +160,7 @@ Create a local issue titled "Local task" with the body "Quick reminder"
|
|
|
160
160
|
4. **`CLAUDE.md` "Issueing Configuration" block** — fallback for projects pre-dating either.
|
|
161
161
|
5. **`local`** — default if nothing is configured.
|
|
162
162
|
|
|
163
|
-
**Resolving from a workspace member** (the preferred path):
|
|
163
|
+
**Resolving from a workspace member** (the preferred path; see [mapped control workspaces](references/provider-writes.md#mapped-control-workspaces) for `repository-routing.yaml` / `workTracker` routing without local initialization):
|
|
164
164
|
|
|
165
165
|
```ts
|
|
166
166
|
import { authorizeWorkspaceOperation } from 'aiwg/config/workspace';
|
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Provider-specific issue writes
|
|
2
2
|
|
|
3
|
+
## Mapped control workspaces
|
|
4
|
+
|
|
5
|
+
For a mapped `/srv/*-workspace`, resolve `config/repository-routing.yaml`
|
|
6
|
+
`workTracker` to the target member in the access manifest. Authorize `read` for
|
|
7
|
+
duplicate searches and `issue-comment` for issue writes, then load the member's
|
|
8
|
+
`.aiwg/aiwg.config`. Use its `remotes.issue_tracker`, `remotes.issue_provider`,
|
|
9
|
+
and `remotes.tracker_actor` (including `login`, `credential`, and `forbid_actors`).
|
|
10
|
+
The control workspace config and a default forge login cannot replace them.
|
|
11
|
+
|
|
12
|
+
Query and file directly on the member's tracker through its tracker tools;
|
|
13
|
+
do not initialize local issues in the control workspace to enable filing.
|
|
14
|
+
For native `aiwg issues create`, use the authorized member directory as cwd;
|
|
15
|
+
the CLI does not consume `repository-routing.yaml`. Preserve the composition
|
|
16
|
+
and HITL gates in the parent skill before every write.
|
|
17
|
+
|
|
18
|
+
`aiwg issues list` supports local storage only. A configured external tracker
|
|
19
|
+
requires its tracker tools for duplicate searches; `--provider local` explicitly
|
|
20
|
+
selects initialized local storage. Treat a failed query as a blocker, never as
|
|
21
|
+
"no matching issues". A local-only project must run `aiwg issues init --prefix
|
|
22
|
+
<PROJECT>` before listing or creating local issues.
|
|
23
|
+
|
|
24
|
+
On HTTP 401, use a token belonging to the member's `tracker_actor.login`.
|
|
25
|
+
Save it using `aiwg auth secret set <name> --value-stdin`, then configure
|
|
26
|
+
`remotes.tracker_actor.credential` as `{"store":"<name>"}` (or an env reference
|
|
27
|
+
whose variable is supplied). Refresh the configured source when already set.
|
|
28
|
+
Verify `/user` matches the configured actor; never fall back to another login.
|
|
29
|
+
|
|
3
30
|
### Step 6: Create Issue (Provider-Specific)
|
|
4
31
|
|
|
5
32
|
#### Gitea
|
|
@@ -27,6 +27,10 @@ commandHint:
|
|
|
27
27
|
|
|
28
28
|
# Issue Update
|
|
29
29
|
|
|
30
|
+
## Output template
|
|
31
|
+
|
|
32
|
+
For comments, the matching template is required; fill every required section before posting (mark non-applicable fields with a reason): progress/status — @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/templates/issue-comments/progress-update.md; blocker — @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/templates/issue-comments/blocker-found.md; feedback request — @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/templates/issue-comments/feedback-needed.md; task completion — @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/templates/issue-comments/task-completed.md.
|
|
33
|
+
|
|
30
34
|
## Semantic Label Contract (#1789)
|
|
31
35
|
|
|
32
36
|
Resolve label mutations through `.aiwg/aiwg.config` `issues.labels` for the
|
|
@@ -487,7 +487,7 @@ agents:
|
|
|
487
487
|
qa_config:
|
|
488
488
|
channel_specs: .aiwg/marketing/config/channel-specs.yaml
|
|
489
489
|
brand_rules: .aiwg/marketing/brand/
|
|
490
|
-
qa_templates: templates/
|
|
490
|
+
qa_templates: templates/design-operations/design-qa-checklist-template.md
|
|
491
491
|
```
|
|
492
492
|
|
|
493
493
|
### Severity Levels
|
|
@@ -521,4 +521,4 @@ severity:
|
|
|
521
521
|
|
|
522
522
|
- Channel specifications: .aiwg/marketing/config/channel-specs.yaml
|
|
523
523
|
- Brand guidelines: .aiwg/marketing/brand/
|
|
524
|
-
- QA templates: templates/
|
|
524
|
+
- QA templates: templates/design-operations/design-qa-checklist-template.md
|
|
@@ -273,7 +273,7 @@ quarterly_report:
|
|
|
273
273
|
**Impact**: Password reset broken for ~40% of user base (Gmail users)
|
|
274
274
|
|
|
275
275
|
**Files Changed**:
|
|
276
|
-
- templates/email/password-reset.html (+5/-3)
|
|
276
|
+
- <project-root>/templates/email/password-reset.html (+5/-3)
|
|
277
277
|
|
|
278
278
|
**Fix**: HTML entity encoding for special characters
|
|
279
279
|
|
|
@@ -685,15 +685,15 @@ agents:
|
|
|
685
685
|
```yaml
|
|
686
686
|
report_templates:
|
|
687
687
|
incident:
|
|
688
|
-
template: templates/regression
|
|
688
|
+
template: agentic/code/frameworks/sdlc-complete/templates/test/regression-report.md
|
|
689
689
|
sections: [summary, timeline, root_cause, impact, prevention]
|
|
690
690
|
|
|
691
691
|
sprint:
|
|
692
|
-
template: templates/regression
|
|
692
|
+
template: agentic/code/frameworks/sdlc-complete/templates/test/regression-report.md
|
|
693
693
|
sections: [summary, inventory, metrics, recommendations]
|
|
694
694
|
|
|
695
695
|
quarterly:
|
|
696
|
-
template: templates/regression
|
|
696
|
+
template: agentic/code/frameworks/sdlc-complete/templates/test/regression-report.md
|
|
697
697
|
sections: [executive, trends, strategic, investments]
|
|
698
698
|
```
|
|
699
699
|
|
|
@@ -723,6 +723,6 @@ aggregation_config:
|
|
|
723
723
|
## References
|
|
724
724
|
|
|
725
725
|
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/schemas/test/regression-report-schema.yaml
|
|
726
|
-
-
|
|
726
|
+
- @agentic/code/frameworks/sdlc-complete/templates/test/regression-report.md
|
|
727
727
|
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/agents/technical-writer.md
|
|
728
728
|
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/agents/metrics-analyst.md
|
|
@@ -178,6 +178,6 @@ Avoids:
|
|
|
178
178
|
|
|
179
179
|
- @$AIWG_ROOT/agentic/code/frameworks/research-complete/agents/documentation-agent.md - Documentation Agent
|
|
180
180
|
- @$AIWG_ROOT/src/research/services/documentation-service.ts - Documentation implementation
|
|
181
|
-
- @$AIWG_ROOT/agentic/code/frameworks/research-complete/templates/
|
|
181
|
+
- @$AIWG_ROOT/agentic/code/frameworks/research-complete/templates/reference-canonical.md - Finding template
|
|
182
182
|
- @$AIWG_ROOT/agentic/code/addons/voice-framework/voices/technical-authority.md - Voice profile
|
|
183
183
|
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/rules/citation-policy.md - Citation requirements
|
|
@@ -524,6 +524,6 @@ output_config:
|
|
|
524
524
|
|
|
525
525
|
## References
|
|
526
526
|
|
|
527
|
-
- Review templates: templates/governance/
|
|
527
|
+
- Review templates: templates/governance/content-audit-template.md
|
|
528
528
|
- Conflict resolution guide: docs/conflict-resolution.md
|
|
529
529
|
- Escalation procedures: docs/escalation-process.md
|
|
@@ -72,7 +72,14 @@ aiwg discover "concept to inception" # → flow-concept-to-inception
|
|
|
72
72
|
|
|
73
73
|
### Continuous workflows
|
|
74
74
|
|
|
75
|
+
For a milestone of bounded issues, load `address-issues` and follow
|
|
76
|
+
`--milestone <name> --dispatch workers [--dry-run]`. This is the first route for
|
|
77
|
+
"get the engineering track going"; Delivery Track is for a full iteration.
|
|
78
|
+
|
|
75
79
|
```bash
|
|
80
|
+
aiwg discover "work through this milestone with workers" # → address-issues (first; milestone mode)
|
|
81
|
+
aiwg discover "work this milestone" # → address-issues (milestone mode)
|
|
82
|
+
aiwg discover "get the engineering track going" # → address-issues (milestone mode)
|
|
76
83
|
aiwg discover "risk management cycle" # → flow-risk-management-cycle (score 0.93)
|
|
77
84
|
aiwg discover "execute test strategy" # → flow-test-strategy-execution
|
|
78
85
|
aiwg discover "performance optimization cycle" # → flow-performance-optimization
|
|
@@ -526,10 +526,10 @@ agents:
|
|
|
526
526
|
|
|
527
527
|
```yaml
|
|
528
528
|
templates:
|
|
529
|
-
iteration: templates/management/iteration-
|
|
530
|
-
phase: templates/management/
|
|
531
|
-
executive: templates/management/
|
|
532
|
-
dashboard: templates/management/
|
|
529
|
+
iteration: agentic/code/frameworks/sdlc-complete/templates/management/iteration-assessment-template.md
|
|
530
|
+
phase: agentic/code/frameworks/sdlc-complete/templates/management/status-assessment-template.md
|
|
531
|
+
executive: agentic/code/frameworks/sdlc-complete/templates/management/status-assessment-template.md
|
|
532
|
+
dashboard: agentic/code/frameworks/sdlc-complete/templates/management/measurement-plan-template.md
|
|
533
533
|
```
|
|
534
534
|
|
|
535
535
|
### Metric Sources
|
|
@@ -50,6 +50,8 @@ This is **not** a vulnerability scanner or pen-test framework. It is a thinking-
|
|
|
50
50
|
| **Physical threats** | Threats STRIDE and OWASP Top 10 don't cover |
|
|
51
51
|
| **DFIR readiness** | Preparing evidence handling, custody expectations, and handoff to forensics-complete |
|
|
52
52
|
|
|
53
|
+
| **Host hardening** | Read-only host baseline, lockout-safe remediation plans and static published-port binds |
|
|
54
|
+
|
|
53
55
|
## Curated discovery phrases
|
|
54
56
|
|
|
55
57
|
### Cryptographic primitives
|
|
@@ -125,6 +127,23 @@ aiwg discover "incident response evidence" # → dfir-readiness or forensics
|
|
|
125
127
|
aiwg discover "chain of custody readiness" # → dfir-readiness
|
|
126
128
|
```
|
|
127
129
|
|
|
130
|
+
### Host hardening and firewall exposure
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
aiwg discover "system hardening" # → host-hardening
|
|
134
|
+
aiwg discover "firewall analysis" # → forensics exposure-analysis
|
|
135
|
+
aiwg discover "docker published ports" # → exposure-analysis / published-port-binding
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
`host-hardening` reviews SSH key/console access, persistent default-deny,
|
|
139
|
+
Docker/VPN ordering, datastore ACLs, exporter targets and audit retention.
|
|
140
|
+
It produces dated backup requirements, diff-style plans and named health
|
|
141
|
+
rechecks; it never applies host changes, even with an apply request. The static
|
|
142
|
+
checker flags missing Compose/docker run bind addresses. `published-port-binding`
|
|
143
|
+
governs repository changes. For post-deploy/monthly checks, consume fresh
|
|
144
|
+
sanitized captures and alert on FAIL or UNKNOWN summaries through existing
|
|
145
|
+
operator scheduling. `exposure-analysis` owns actual firewall reconstruction.
|
|
146
|
+
|
|
128
147
|
## Anti-patterns each skill rejects
|
|
129
148
|
|
|
130
149
|
| Skill | Anti-patterns it identifies |
|
|
@@ -166,6 +185,7 @@ This framework ships 4 applied-cryptography rules into the rules index:
|
|
|
166
185
|
- `no-key-reuse-across-purposes`
|
|
167
186
|
- `no-adhoc-kdf`
|
|
168
187
|
- `crypto-flag-verification`
|
|
188
|
+
- `published-port-binding` — explicit Docker publish binds and exposure review
|
|
169
189
|
|
|
170
190
|
These deploy via the standard rules-index pipeline.
|
|
171
191
|
|
|
@@ -122,7 +122,7 @@ Output: SOUL.md with:
|
|
|
122
122
|
User: "Create a soul from our technical-authority voice profile"
|
|
123
123
|
|
|
124
124
|
Process:
|
|
125
|
-
1. Read voice-framework/voices/templates/technical-authority.yaml
|
|
125
|
+
1. Read agentic/code/addons/voice-framework/voices/templates/technical-authority.yaml
|
|
126
126
|
2. Extract tone dimensions, vocabulary, perspective
|
|
127
127
|
3. Expand into full identity (voice → who generates that voice)
|
|
128
128
|
4. Generate complementary sections (worldview, opinions, boundaries)
|
|
@@ -479,4 +479,4 @@ priority_factors:
|
|
|
479
479
|
|
|
480
480
|
- Test strategy: .aiwg/testing/test-strategy.md
|
|
481
481
|
- Traceability matrix: .aiwg/reports/traceability-matrix.csv
|
|
482
|
-
- Coverage templates: templates/test/
|
|
482
|
+
- Coverage templates: agentic/code/frameworks/sdlc-complete/templates/test/test-evaluation-summary-template.md
|
|
@@ -418,7 +418,7 @@ traceability:
|
|
|
418
418
|
## References
|
|
419
419
|
|
|
420
420
|
- Requirements artifacts: .aiwg/requirements/
|
|
421
|
-
- Traceability template: templates/management/traceability-matrix-template.
|
|
421
|
+
- Traceability template: agentic/code/frameworks/sdlc-complete/templates/management/traceability-matrix-template.csv
|
|
422
422
|
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/rules/artifact-discovery.md — Agent protocol for index usage
|
|
423
423
|
- @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/skills/artifact-lookup/SKILL.md — Artifact search skill
|
|
424
424
|
- @$AIWG_ROOT/src/artifacts/cli.ts — CLI implementation
|