pwn 0.5.618 → 0.5.621
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.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/README.md +14 -6
- data/bin/pwn_gqrx_scanner +25 -5
- data/documentation/Agent-Tool-Registry.md +4 -4
- data/documentation/Cron.md +13 -0
- data/documentation/Diagrams.md +6 -2
- data/documentation/Extrospection.md +96 -11
- data/documentation/Home.md +5 -4
- data/documentation/How-PWN-Works.md +7 -4
- data/documentation/Mistakes.md +97 -0
- data/documentation/Persistence.md +4 -1
- data/documentation/SDR.md +23 -5
- data/documentation/Skills-Memory-Learning.md +16 -5
- data/documentation/Transparent-Browser.md +18 -1
- data/documentation/diagrams/agent-tool-registry.svg +103 -100
- data/documentation/diagrams/ai-integration-tool-calling.svg +24 -24
- data/documentation/diagrams/aws-cloud-security.svg +25 -25
- data/documentation/diagrams/burp-vs-zap-preference.svg +12 -12
- data/documentation/diagrams/code-scanning-sast.svg +25 -25
- data/documentation/diagrams/cron-scheduling.svg +23 -23
- data/documentation/diagrams/dot/agent-tool-registry.dot +3 -3
- data/documentation/diagrams/dot/extrospection-world-awareness.dot +33 -10
- data/documentation/diagrams/dot/memory-skills-detailed.dot +16 -5
- data/documentation/diagrams/dot/mistakes-negative-feedback.dot +93 -0
- data/documentation/diagrams/dot/overall-pwn-architecture.dot +7 -5
- data/documentation/diagrams/dot/persistence-filesystem.dot +4 -2
- data/documentation/diagrams/dot/pwn-ai-feedback-learning-loop.dot +25 -7
- data/documentation/diagrams/dot/sdr-radio-flow.dot +13 -11
- data/documentation/diagrams/driver-framework.svg +13 -13
- data/documentation/diagrams/extrospection-world-awareness.svg +241 -93
- data/documentation/diagrams/fuzzing-workflow.svg +24 -24
- data/documentation/diagrams/hardware-hacking.svg +18 -18
- data/documentation/diagrams/history-to-drivers.svg +18 -18
- data/documentation/diagrams/memory-skills-detailed.svg +169 -97
- data/documentation/diagrams/mistakes-negative-feedback.svg +266 -0
- data/documentation/diagrams/network-infra-testing.svg +27 -27
- data/documentation/diagrams/overall-pwn-architecture.svg +184 -173
- data/documentation/diagrams/penetration-testing-workflow.svg +30 -30
- data/documentation/diagrams/persistence-filesystem.svg +111 -87
- data/documentation/diagrams/plugin-ecosystem.svg +35 -35
- data/documentation/diagrams/pwn-ai-feedback-learning-loop.svg +263 -149
- data/documentation/diagrams/pwn-repl-prototyping.svg +20 -20
- data/documentation/diagrams/reporting-pipeline.svg +18 -18
- data/documentation/diagrams/reverse-engineering-flow.svg +21 -21
- data/documentation/diagrams/sdr-radio-flow.svg +76 -56
- data/documentation/diagrams/sessions-cron-automation.svg +18 -18
- data/documentation/diagrams/swarm-multi-agent.svg +39 -39
- data/documentation/diagrams/web-application-testing.svg +26 -26
- data/documentation/diagrams/zero-day-research-flow.svg +25 -25
- data/documentation/pwn-ai-Agent.md +28 -15
- data/lib/pwn/ai/agent/extrospection.rb +494 -6
- data/lib/pwn/ai/agent/learning.rb +67 -7
- data/lib/pwn/ai/agent/loop.rb +72 -6
- data/lib/pwn/ai/agent/mistakes.rb +369 -0
- data/lib/pwn/ai/agent/prompt_builder.rb +10 -1
- data/lib/pwn/ai/agent/tools/extrospection.rb +88 -3
- data/lib/pwn/ai/agent/tools/mistakes.rb +132 -0
- data/lib/pwn/ai/agent.rb +1 -0
- data/lib/pwn/plugins/jira_data_center.rb +2 -2
- data/lib/pwn/sdr/decoder/adsb.rb +82 -0
- data/lib/pwn/sdr/decoder/apt.rb +136 -0
- data/lib/pwn/sdr/decoder/base.rb +258 -171
- data/lib/pwn/sdr/decoder/bluetooth.rb +71 -0
- data/lib/pwn/sdr/decoder/dect.rb +70 -0
- data/lib/pwn/sdr/decoder/dsp.rb +396 -0
- data/lib/pwn/sdr/decoder/flex.rb +177 -210
- data/lib/pwn/sdr/decoder/gps.rb +74 -0
- data/lib/pwn/sdr/decoder/gsm.rb +31 -62
- data/lib/pwn/sdr/decoder/iridium.rb +66 -0
- data/lib/pwn/sdr/decoder/lora.rb +80 -0
- data/lib/pwn/sdr/decoder/lte.rb +67 -0
- data/lib/pwn/sdr/decoder/morse.rb +138 -0
- data/lib/pwn/sdr/decoder/p25.rb +74 -0
- data/lib/pwn/sdr/decoder/pager.rb +61 -0
- data/lib/pwn/sdr/decoder/pocsag.rb +176 -54
- data/lib/pwn/sdr/decoder/rfid.rb +79 -0
- data/lib/pwn/sdr/decoder/rtl433.rb +86 -0
- data/lib/pwn/sdr/decoder/rtty.rb +139 -0
- data/lib/pwn/sdr/decoder/wifi.rb +77 -0
- data/lib/pwn/sdr/decoder/zigbee.rb +74 -0
- data/lib/pwn/sdr/decoder.rb +75 -7
- data/lib/pwn/sdr/frequency_allocation.rb +82 -41
- data/lib/pwn/sdr/gqrx.rb +186 -95
- data/lib/pwn/version.rb +1 -1
- data/spec/lib/pwn/ai/agent/mistakes_spec.rb +36 -0
- data/spec/lib/pwn/ai/agent/tools/mistakes_spec.rb +12 -0
- data/spec/lib/pwn/sdr/decoder/adsb_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/apt_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/bluetooth_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/dect_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/dsp_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/gps_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/iridium_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/lora_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/lte_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/morse_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/p25_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/pager_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/rfid_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/rtl433_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/rtty_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/wifi_spec.rb +15 -0
- data/spec/lib/pwn/sdr/decoder/zigbee_spec.rb +15 -0
- data/third_party/pwn_rdoc.jsonl +115 -5
- metadata +46 -6
- data/README.md.bak +0 -200
|
@@ -9,75 +9,75 @@
|
|
|
9
9
|
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(43.2 348.08)">
|
|
10
10
|
<title>PWN_Cron</title>
|
|
11
11
|
<polygon fill="#0f172a" stroke="none" points="-43.2,43.2 -43.2,-348.08 1204.45,-348.08 1204.45,43.2 -43.2,43.2"/>
|
|
12
|
-
<text xml:space="preserve" text-anchor="start" x="372.5" y="-282.88" font-family="sans-Serif" font-weight="bold" font-size="20.00" fill="#e2e8f0">PWN::Cron — Scheduled Autonomous Jobs</text>
|
|
13
|
-
<text xml:space="preserve" text-anchor="start" x="452" y="-271.43" font-family="sans-Serif" font-size="11.00" fill="#94a3b8">prompt · ruby · script → jobs.yml → crontab → pwn-ai</text>
|
|
12
|
+
<text xml:space="preserve" text-anchor="start" x="372.5" y="-282.88" font-family="Helvetica,sans-Serif" font-weight="bold" font-size="20.00" fill="#e2e8f0">PWN::Cron — Scheduled Autonomous Jobs</text>
|
|
13
|
+
<text xml:space="preserve" text-anchor="start" x="452" y="-271.43" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#94a3b8">prompt · ruby · script → jobs.yml → crontab → pwn-ai</text>
|
|
14
14
|
<g id="clust1" class="cluster">
|
|
15
15
|
<title>cluster_kinds</title>
|
|
16
16
|
<path fill="#022c22" stroke="#047857" stroke-width="2" d="M775.75,-30.88C775.75,-30.88 930,-30.88 930,-30.88 936,-30.88 942,-36.88 942,-42.88 942,-42.88 942,-245.88 942,-245.88 942,-251.88 936,-257.88 930,-257.88 930,-257.88 775.75,-257.88 775.75,-257.88 769.75,-257.88 763.75,-251.88 763.75,-245.88 763.75,-245.88 763.75,-42.88 763.75,-42.88 763.75,-36.88 769.75,-30.88 775.75,-30.88"/>
|
|
17
|
-
<text xml:space="preserve" text-anchor="middle" x="852.88" y="-234.88" font-family="sans-Serif" font-size="20.00" fill="#a7f3d0">Job Kinds</text>
|
|
17
|
+
<text xml:space="preserve" text-anchor="middle" x="852.88" y="-234.88" font-family="Helvetica,sans-Serif" font-size="20.00" fill="#a7f3d0">Job Kinds</text>
|
|
18
18
|
</g>
|
|
19
19
|
<!-- Create -->
|
|
20
20
|
<g id="node1" class="node">
|
|
21
21
|
<title>Create</title>
|
|
22
22
|
<path fill="#7dd3fc" stroke="#334155" stroke-width="1.4" d="M102.25,-152.13C102.25,-152.13 12,-152.13 12,-152.13 6,-152.13 0,-146.13 0,-140.13 0,-140.13 0,-115.63 0,-115.63 0,-109.63 6,-103.63 12,-103.63 12,-103.63 102.25,-103.63 102.25,-103.63 108.25,-103.63 114.25,-109.63 114.25,-115.63 114.25,-115.63 114.25,-140.13 114.25,-140.13 114.25,-146.13 108.25,-152.13 102.25,-152.13"/>
|
|
23
|
-
<text xml:space="preserve" text-anchor="middle" x="57.12" y="-137.68" font-family="sans-Serif" font-size="11.00" fill="#0f172a">cron_create</text>
|
|
24
|
-
<text xml:space="preserve" text-anchor="middle" x="57.12" y="-124.18" font-family="sans-Serif" font-size="11.00" fill="#0f172a">name · schedule</text>
|
|
25
|
-
<text xml:space="preserve" text-anchor="middle" x="57.12" y="-110.68" font-family="sans-Serif" font-size="11.00" fill="#0f172a">prompt | ruby | script</text>
|
|
23
|
+
<text xml:space="preserve" text-anchor="middle" x="57.12" y="-137.68" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#0f172a">cron_create</text>
|
|
24
|
+
<text xml:space="preserve" text-anchor="middle" x="57.12" y="-124.18" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#0f172a">name · schedule</text>
|
|
25
|
+
<text xml:space="preserve" text-anchor="middle" x="57.12" y="-110.68" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#0f172a">prompt | ruby | script</text>
|
|
26
26
|
</g>
|
|
27
27
|
<!-- Jobs -->
|
|
28
28
|
<g id="node2" class="node">
|
|
29
29
|
<title>Jobs</title>
|
|
30
30
|
<path fill="#fcd34d" stroke="#334155" stroke-width="1.4" d="M355.88,-184.6C355.88,-186.41 330.1,-187.88 298.38,-187.88 266.65,-187.88 240.88,-186.41 240.88,-184.6 240.88,-184.6 240.88,-155.15 240.88,-155.15 240.88,-153.34 266.65,-151.88 298.38,-151.88 330.1,-151.88 355.88,-153.34 355.88,-155.15 355.88,-155.15 355.88,-184.6 355.88,-184.6"/>
|
|
31
31
|
<path fill="none" stroke="#334155" stroke-width="1.4" d="M355.88,-184.6C355.88,-182.8 330.1,-181.33 298.38,-181.33 266.65,-181.33 240.88,-182.8 240.88,-184.6"/>
|
|
32
|
-
<text xml:space="preserve" text-anchor="middle" x="298.38" y="-166.18" font-family="sans-Serif" font-size="11.00" fill="#0f172a">~/.pwn/cron/jobs.yml</text>
|
|
32
|
+
<text xml:space="preserve" text-anchor="middle" x="298.38" y="-166.18" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#0f172a">~/.pwn/cron/jobs.yml</text>
|
|
33
33
|
</g>
|
|
34
34
|
<!-- Create->Jobs -->
|
|
35
35
|
<g id="edge1" class="edge">
|
|
36
36
|
<title>Create->Jobs</title>
|
|
37
37
|
<path fill="none" stroke="#38bdf8" stroke-width="1.3" d="M114.82,-137.83C149.58,-143.93 194.24,-151.77 230.69,-158.17"/>
|
|
38
38
|
<polygon fill="#38bdf8" stroke="#38bdf8" stroke-width="1.3" points="229.95,-160.88 238.32,-159.51 230.92,-155.37 229.95,-160.88"/>
|
|
39
|
-
<text xml:space="preserve" text-anchor="middle" x="177" y="-153.34" font-family="sans-Serif" font-size="9.00" fill="#cbd5e1">write</text>
|
|
39
|
+
<text xml:space="preserve" text-anchor="middle" x="177" y="-153.34" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#cbd5e1">write</text>
|
|
40
40
|
</g>
|
|
41
41
|
<!-- Crontab -->
|
|
42
42
|
<g id="node3" class="node">
|
|
43
43
|
<title>Crontab</title>
|
|
44
44
|
<path fill="#fda4af" stroke="#334155" stroke-width="1.4" d="M345,-109.88C345,-109.88 251.75,-109.88 251.75,-109.88 245.75,-109.88 239.75,-103.88 239.75,-97.88 239.75,-97.88 239.75,-85.88 239.75,-85.88 239.75,-79.88 245.75,-73.88 251.75,-73.88 251.75,-73.88 345,-73.88 345,-73.88 351,-73.88 357,-79.88 357,-85.88 357,-85.88 357,-97.88 357,-97.88 357,-103.88 351,-109.88 345,-109.88"/>
|
|
45
|
-
<text xml:space="preserve" text-anchor="middle" x="298.38" y="-94.93" font-family="sans-Serif" font-size="11.00" fill="#0f172a">system crontab</text>
|
|
46
|
-
<text xml:space="preserve" text-anchor="middle" x="298.38" y="-81.43" font-family="sans-Serif" font-size="11.00" fill="#0f172a">(install_crontab: true)</text>
|
|
45
|
+
<text xml:space="preserve" text-anchor="middle" x="298.38" y="-94.93" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#0f172a">system crontab</text>
|
|
46
|
+
<text xml:space="preserve" text-anchor="middle" x="298.38" y="-81.43" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#0f172a">(install_crontab: true)</text>
|
|
47
47
|
</g>
|
|
48
48
|
<!-- Create->Crontab -->
|
|
49
49
|
<g id="edge2" class="edge">
|
|
50
50
|
<title>Create->Crontab</title>
|
|
51
51
|
<path fill="none" stroke="#fb7185" stroke-width="1.3" d="M114.83,-112.81C129.83,-109.26 146.08,-105.81 161.25,-103.38 183.28,-99.85 207.51,-97.36 229.34,-95.62"/>
|
|
52
52
|
<polygon fill="#fb7185" stroke="#fb7185" stroke-width="1.3" points="229.46,-98.42 237.22,-95.03 229.03,-92.84 229.46,-98.42"/>
|
|
53
|
-
<text xml:space="preserve" text-anchor="middle" x="177" y="-105.33" font-family="sans-Serif" font-size="9.00" fill="#cbd5e1">append</text>
|
|
53
|
+
<text xml:space="preserve" text-anchor="middle" x="177" y="-105.33" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#cbd5e1">append</text>
|
|
54
54
|
</g>
|
|
55
55
|
<!-- Runner -->
|
|
56
56
|
<g id="node4" class="node">
|
|
57
57
|
<title>Runner</title>
|
|
58
58
|
<path fill="#c4b5fd" stroke="#334155" stroke-width="1.4" d="M611,-146.88C611,-146.88 528.25,-146.88 528.25,-146.88 522.25,-146.88 516.25,-140.88 516.25,-134.88 516.25,-134.88 516.25,-122.88 516.25,-122.88 516.25,-116.88 522.25,-110.88 528.25,-110.88 528.25,-110.88 611,-110.88 611,-110.88 617,-110.88 623,-116.88 623,-122.88 623,-122.88 623,-134.88 623,-134.88 623,-140.88 617,-146.88 611,-146.88"/>
|
|
59
|
-
<text xml:space="preserve" text-anchor="middle" x="569.62" y="-125.18" font-family="sans-Serif" font-size="11.00" fill="#0f172a">PWN::Cron.run(id)</text>
|
|
59
|
+
<text xml:space="preserve" text-anchor="middle" x="569.62" y="-125.18" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#0f172a">PWN::Cron.run(id)</text>
|
|
60
60
|
</g>
|
|
61
61
|
<!-- Jobs->Runner -->
|
|
62
62
|
<g id="edge4" class="edge">
|
|
63
63
|
<title>Jobs->Runner</title>
|
|
64
64
|
<path fill="none" stroke="#f59e0b" stroke-width="1.3" d="M356.48,-161.18C400.34,-154.5 460.86,-145.29 506.04,-138.41"/>
|
|
65
65
|
<polygon fill="#f59e0b" stroke="#f59e0b" stroke-width="1.3" points="506.29,-141.2 513.78,-137.23 505.45,-135.67 506.29,-141.2"/>
|
|
66
|
-
<text xml:space="preserve" text-anchor="middle" x="436.62" y="-155" font-family="sans-Serif" font-size="9.00" fill="#cbd5e1">load job</text>
|
|
66
|
+
<text xml:space="preserve" text-anchor="middle" x="436.62" y="-155" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#cbd5e1">load job</text>
|
|
67
67
|
</g>
|
|
68
68
|
<!-- Crontab->Runner -->
|
|
69
69
|
<g id="edge3" class="edge">
|
|
70
70
|
<title>Crontab->Runner</title>
|
|
71
71
|
<path fill="none" stroke="#fb7185" stroke-width="2" d="M357.47,-99.86C400.88,-105.83 460.2,-113.98 504.92,-120.12"/>
|
|
72
72
|
<polygon fill="#fb7185" stroke="#fb7185" stroke-width="2" points="504.36,-122.87 512.66,-121.19 505.12,-117.32 504.36,-122.87"/>
|
|
73
|
-
<text xml:space="preserve" text-anchor="middle" x="436.62" y="-116.73" font-family="sans-Serif" font-size="9.00" fill="#cbd5e1">fire on schedule</text>
|
|
73
|
+
<text xml:space="preserve" text-anchor="middle" x="436.62" y="-116.73" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#cbd5e1">fire on schedule</text>
|
|
74
74
|
</g>
|
|
75
75
|
<!-- Prompt -->
|
|
76
76
|
<g id="node5" class="node">
|
|
77
77
|
<title>Prompt</title>
|
|
78
78
|
<path fill="#6ee7b7" stroke="#334155" stroke-width="1.4" d="M894.62,-218.88C894.62,-218.88 811.12,-218.88 811.12,-218.88 805.12,-218.88 799.12,-212.88 799.12,-206.88 799.12,-206.88 799.12,-194.88 799.12,-194.88 799.12,-188.88 805.12,-182.88 811.12,-182.88 811.12,-182.88 894.62,-182.88 894.62,-182.88 900.62,-182.88 906.62,-188.88 906.62,-194.88 906.62,-194.88 906.62,-206.88 906.62,-206.88 906.62,-212.88 900.62,-218.88 894.62,-218.88"/>
|
|
79
|
-
<text xml:space="preserve" text-anchor="middle" x="852.88" y="-203.93" font-family="sans-Serif" font-size="11.00" fill="#0f172a">:prompt</text>
|
|
80
|
-
<text xml:space="preserve" text-anchor="middle" x="852.88" y="-190.43" font-family="sans-Serif" font-size="11.00" fill="#0f172a">→ pwn-ai one-shot</text>
|
|
79
|
+
<text xml:space="preserve" text-anchor="middle" x="852.88" y="-203.93" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#0f172a">:prompt</text>
|
|
80
|
+
<text xml:space="preserve" text-anchor="middle" x="852.88" y="-190.43" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#0f172a">→ pwn-ai one-shot</text>
|
|
81
81
|
</g>
|
|
82
82
|
<!-- Runner->Prompt -->
|
|
83
83
|
<g id="edge5" class="edge">
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
<g id="node6" class="node">
|
|
90
90
|
<title>Ruby</title>
|
|
91
91
|
<path fill="#6ee7b7" stroke="#334155" stroke-width="1.4" d="M922,-146.88C922,-146.88 783.75,-146.88 783.75,-146.88 777.75,-146.88 771.75,-140.88 771.75,-134.88 771.75,-134.88 771.75,-122.88 771.75,-122.88 771.75,-116.88 777.75,-110.88 783.75,-110.88 783.75,-110.88 922,-110.88 922,-110.88 928,-110.88 934,-116.88 934,-122.88 934,-122.88 934,-134.88 934,-134.88 934,-140.88 928,-146.88 922,-146.88"/>
|
|
92
|
-
<text xml:space="preserve" text-anchor="middle" x="852.88" y="-131.93" font-family="sans-Serif" font-size="11.00" fill="#0f172a">:ruby</text>
|
|
93
|
-
<text xml:space="preserve" text-anchor="middle" x="852.88" y="-118.43" font-family="sans-Serif" font-size="11.00" fill="#0f172a">→ TOPLEVEL_BINDING.eval</text>
|
|
92
|
+
<text xml:space="preserve" text-anchor="middle" x="852.88" y="-131.93" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#0f172a">:ruby</text>
|
|
93
|
+
<text xml:space="preserve" text-anchor="middle" x="852.88" y="-118.43" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#0f172a">→ TOPLEVEL_BINDING.eval</text>
|
|
94
94
|
</g>
|
|
95
95
|
<!-- Runner->Ruby -->
|
|
96
96
|
<g id="edge6" class="edge">
|
|
@@ -102,8 +102,8 @@
|
|
|
102
102
|
<g id="node7" class="node">
|
|
103
103
|
<title>Script</title>
|
|
104
104
|
<path fill="#6ee7b7" stroke="#334155" stroke-width="1.4" d="M896.12,-74.88C896.12,-74.88 809.62,-74.88 809.62,-74.88 803.62,-74.88 797.62,-68.88 797.62,-62.88 797.62,-62.88 797.62,-50.88 797.62,-50.88 797.62,-44.88 803.62,-38.88 809.62,-38.88 809.62,-38.88 896.12,-38.88 896.12,-38.88 902.12,-38.88 908.12,-44.88 908.12,-50.88 908.12,-50.88 908.12,-62.88 908.12,-62.88 908.12,-68.88 902.12,-74.88 896.12,-74.88"/>
|
|
105
|
-
<text xml:space="preserve" text-anchor="middle" x="852.88" y="-59.93" font-family="sans-Serif" font-size="11.00" fill="#0f172a">:script</text>
|
|
106
|
-
<text xml:space="preserve" text-anchor="middle" x="852.88" y="-46.43" font-family="sans-Serif" font-size="11.00" fill="#0f172a">→ exec external file</text>
|
|
105
|
+
<text xml:space="preserve" text-anchor="middle" x="852.88" y="-59.93" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#0f172a">:script</text>
|
|
106
|
+
<text xml:space="preserve" text-anchor="middle" x="852.88" y="-46.43" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#0f172a">→ exec external file</text>
|
|
107
107
|
</g>
|
|
108
108
|
<!-- Runner->Script -->
|
|
109
109
|
<g id="edge7" class="edge">
|
|
@@ -116,8 +116,8 @@
|
|
|
116
116
|
<title>Log</title>
|
|
117
117
|
<path fill="#fcd34d" stroke="#334155" stroke-width="1.4" d="M1161.25,-148.56C1161.25,-150.98 1131.61,-152.94 1095.12,-152.94 1058.64,-152.94 1029,-150.98 1029,-148.56 1029,-148.56 1029,-109.19 1029,-109.19 1029,-106.78 1058.64,-104.81 1095.12,-104.81 1131.61,-104.81 1161.25,-106.78 1161.25,-109.19 1161.25,-109.19 1161.25,-148.56 1161.25,-148.56"/>
|
|
118
118
|
<path fill="none" stroke="#334155" stroke-width="1.4" d="M1161.25,-148.56C1161.25,-146.15 1131.61,-144.19 1095.12,-144.19 1058.64,-144.19 1029,-146.15 1029,-148.56"/>
|
|
119
|
-
<text xml:space="preserve" text-anchor="middle" x="1095.12" y="-131.93" font-family="sans-Serif" font-size="11.00" fill="#0f172a">~/.pwn/cron/log/<id>.log</text>
|
|
120
|
-
<text xml:space="preserve" text-anchor="middle" x="1095.12" y="-118.43" font-family="sans-Serif" font-size="11.00" fill="#0f172a">last_run · last_status</text>
|
|
119
|
+
<text xml:space="preserve" text-anchor="middle" x="1095.12" y="-131.93" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#0f172a">~/.pwn/cron/log/<id>.log</text>
|
|
120
|
+
<text xml:space="preserve" text-anchor="middle" x="1095.12" y="-118.43" font-family="Helvetica,sans-Serif" font-size="11.00" fill="#0f172a">last_run · last_status</text>
|
|
121
121
|
</g>
|
|
122
122
|
<!-- Prompt->Log -->
|
|
123
123
|
<g id="edge8" class="edge">
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
<title>Log->Jobs</title>
|
|
143
143
|
<path fill="none" stroke="#fbbf24" stroke-width="1.3" stroke-dasharray="5,2" d="M1069.63,-104.26C1041.6,-78 992.95,-38 942,-21.88 759.1,36 698.93,-34.31 516.25,-92.88 461.31,-110.49 399.34,-132.73 355.76,-148.78"/>
|
|
144
144
|
<polygon fill="#fbbf24" stroke="#fbbf24" stroke-width="1.3" points="354.85,-146.13 348.32,-151.53 356.79,-151.38 354.85,-146.13"/>
|
|
145
|
-
<text xml:space="preserve" text-anchor="middle" x="697.38" y="-35.59" font-family="sans-Serif" font-size="9.00" fill="#cbd5e1">update status</text>
|
|
145
|
+
<text xml:space="preserve" text-anchor="middle" x="697.38" y="-35.59" font-family="Helvetica,sans-Serif" font-size="9.00" fill="#cbd5e1">update status</text>
|
|
146
146
|
</g>
|
|
147
147
|
</g>
|
|
148
148
|
</svg>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
digraph "PWN_Agent_Tool_Registry" {
|
|
2
2
|
graph [
|
|
3
|
-
label=<<B>PWN::AI::Agent::Registry — Toolsets exposed to the LLM</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">10 toolsets ·
|
|
3
|
+
label=<<B>PWN::AI::Agent::Registry — Toolsets exposed to the LLM</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">10 toolsets · 54 callable tools · lib/pwn/ai/agent/tools/*</FONT>>,
|
|
4
4
|
labelloc=t, fontsize=20, fontname="Helvetica",
|
|
5
5
|
rankdir=LR, splines=spline, nodesep=0.35, ranksep=1.4,
|
|
6
6
|
bgcolor="#0f172a", fontcolor="#e2e8f0", pad=0.6, newrank=true
|
|
@@ -35,9 +35,9 @@ digraph "PWN_Agent_Tool_Registry" {
|
|
|
35
35
|
t_mem [label="memory_remember\nrecall · forget · clear"];
|
|
36
36
|
t_skill [label="skill_list · view\ncreate · add_reference · delete"];
|
|
37
37
|
t_sess [label="sessions_list · view\ncurrent · delete · stats"];
|
|
38
|
-
t_learn [label="learning_note_outcome\nreflect · distill_skill\nconsolidate · outcomes · reset"];
|
|
38
|
+
t_learn [label="learning_note_outcome\nreflect · distill_skill\nconsolidate · outcomes · reset\nmistakes_list · record\nmistakes_resolve · reset"];
|
|
39
39
|
t_metric [label="metrics_summary\nmetrics_reset"];
|
|
40
|
-
t_extro [label="extro_snapshot · drift\nobserve · intel · correlate\nobservations · stats · reset"];
|
|
40
|
+
t_extro [label="extro_snapshot · drift\nobserve · intel · correlate\nwatch · verify (browser)\nobservations · stats · reset"];
|
|
41
41
|
t_cron [label="cron_list · create · run\nenable · disable · remove"];
|
|
42
42
|
t_swarm [label="agent_list · spawn · ask\ndebate · broadcast\nswarm_bus · swarm_list"];
|
|
43
43
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
digraph "PWN_Extrospection" {
|
|
2
2
|
graph [
|
|
3
|
-
label=<<B>PWN::AI::Agent::Extrospection — World Awareness</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">snapshot · drift · observe · intel · correlate</FONT>>,
|
|
3
|
+
label=<<B>PWN::AI::Agent::Extrospection — World Awareness</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">snapshot · drift · observe · intel · watch · verify · correlate — host · net · toolchain · repo · env · rf · web</FONT>>,
|
|
4
4
|
labelloc=t, fontsize=20, fontname="Helvetica",
|
|
5
5
|
rankdir=LR, splines=spline, nodesep=0.5, ranksep=1.3,
|
|
6
6
|
bgcolor="#0f172a", fontcolor="#e2e8f0", pad=0.6, newrank=true
|
|
@@ -14,42 +14,65 @@ digraph "PWN_Extrospection" {
|
|
|
14
14
|
subgraph cluster_world {
|
|
15
15
|
label="Outside World"; fontcolor="#fecaca"; style="rounded,dashed";
|
|
16
16
|
color="#b91c1c"; bgcolor="#450a0a";
|
|
17
|
-
Host [label="host\nuname · distro · arch",
|
|
17
|
+
Host [label="host\nuname · distro · arch", fillcolor="#fda4af"];
|
|
18
18
|
Net [label="net\ninterfaces · listening ports", fillcolor="#fda4af"];
|
|
19
19
|
Tool [label="toolchain\nnmap · burp · msf · git", fillcolor="#fda4af"];
|
|
20
|
-
Repo [label="repo\nHEAD · dirty ·
|
|
20
|
+
Repo [label="repo · env\nHEAD · dirty · ruby/gem", fillcolor="#fda4af"];
|
|
21
|
+
RFhw [label="rf 📡\nrtl-sdr · hackrf · flipper\ngqrx sock · serial devs", fillcolor="#fda4af"];
|
|
22
|
+
Web [label="web 🌐\nanchors · targets\nrendered DOM · TLS cert", fillcolor="#fda4af"];
|
|
21
23
|
Feeds [label="intel feeds\nNVD · CIRCL · Exploit-DB", fillcolor="#fda4af"];
|
|
22
24
|
}
|
|
23
|
-
{rank=same; Host; Net; Tool; Repo; Feeds}
|
|
25
|
+
{rank=same; Host; Net; Tool; Repo; RFhw; Web; Feeds}
|
|
26
|
+
|
|
27
|
+
/* col 0.5 ─ transport */
|
|
28
|
+
TB [label="PWN::Plugins::\nTransparentBrowser\n:headless (→ :rest fallback)",
|
|
29
|
+
fillcolor="#7dd3fc", penwidth=2];
|
|
24
30
|
|
|
25
31
|
/* col 1 ─ engine */
|
|
26
32
|
subgraph cluster_eng {
|
|
27
33
|
label="Extrospection Engine"; fontcolor="#fde68a"; style=rounded;
|
|
28
34
|
color="#a16207"; bgcolor="#422006"; penwidth=2;
|
|
29
|
-
Snap [label="extro_snapshot\
|
|
35
|
+
Snap [label="extro_snapshot\nprobe_host/net/toolchain\nprobe_repo/env/rf/web", fillcolor="#fcd34d"];
|
|
30
36
|
Drift [label="extro_drift\ndelta vs baseline", fillcolor="#fcd34d"];
|
|
31
|
-
Obs [label="extro_observe\
|
|
37
|
+
Obs [label="extro_observe\nrecon · vuln · intel\ntarget · network · env · rf · web", fillcolor="#fcd34d"];
|
|
32
38
|
Intel [label="extro_intel\nCVE / exploit lookup", fillcolor="#fcd34d"];
|
|
33
|
-
|
|
39
|
+
Watch [label="extro_watch\nrender → DOM SHA-256\nscreenshot · TLS fp", fillcolor="#fcd34d"];
|
|
40
|
+
Verify[label="extro_verify\n:cve · :version · :doc · :generic\n→ :confirmed | :refuted | :unknown", fillcolor="#fcd34d", penwidth=2];
|
|
41
|
+
Corr [label="extro_correlate\njoin with Learning\n+ Mistakes + Memory", fillcolor="#fcd34d", penwidth=2];
|
|
34
42
|
}
|
|
35
|
-
{rank=same; Snap; Drift; Obs; Intel; Corr}
|
|
43
|
+
{rank=same; Snap; Drift; Obs; Intel; Watch; Verify; Corr}
|
|
36
44
|
|
|
37
|
-
/* col 2 ─ store + prompt */
|
|
45
|
+
/* col 2 ─ store + prompt + feedback sinks */
|
|
38
46
|
Store [label="~/.pwn/\nextrospection.json", shape=cylinder, fillcolor="#fcd34d"];
|
|
47
|
+
Shots [label="~/.pwn/extrospection/\nweb/*.png", shape=cylinder, fillcolor="#fcd34d"];
|
|
39
48
|
Prompt [label="EXTROSPECTION\nblock in system prompt", fillcolor="#c4b5fd"];
|
|
40
|
-
|
|
49
|
+
Mist [label="Mistakes.record\n(tool:'assumption')\n→ KNOWN MISTAKES", fillcolor="#fca5a5", penwidth=2];
|
|
50
|
+
Mem [label="PWN::Memory :fact\n[UNVERIFIED yyyy-mm-dd]\n(revalidate_memory)", fillcolor="#c4b5fd"];
|
|
51
|
+
{rank=same; Store; Shots; Prompt; Mist; Mem}
|
|
41
52
|
|
|
42
53
|
Host -> Snap [color="#fb7185"];
|
|
43
54
|
Net -> Snap [color="#fb7185"];
|
|
44
55
|
Tool -> Drift [color="#fb7185"];
|
|
45
56
|
Repo -> Drift [color="#fb7185"];
|
|
57
|
+
RFhw -> Obs [label="probe_rf", color="#fb7185"];
|
|
46
58
|
Feeds -> Intel [color="#fb7185"];
|
|
47
59
|
|
|
60
|
+
Web -> TB [color="#fb7185"];
|
|
61
|
+
TB -> Snap [label="probe_web\n(opt-in)", color="#38bdf8"];
|
|
62
|
+
TB -> Watch [label="goto · text\nscreenshot", color="#38bdf8"];
|
|
63
|
+
TB -> Verify[label="render\ncanonical source", color="#38bdf8", penwidth=2];
|
|
64
|
+
|
|
48
65
|
Snap -> Store [color="#f59e0b"];
|
|
49
66
|
Drift -> Store [color="#f59e0b"];
|
|
50
67
|
Obs -> Store [color="#f59e0b"];
|
|
51
68
|
Intel -> Store [label="record:true", color="#f59e0b"];
|
|
69
|
+
Watch -> Store [label="category::web", color="#f59e0b"];
|
|
70
|
+
Watch -> Shots [color="#f59e0b"];
|
|
71
|
+
Verify-> Mist [label=":refuted", color="#fb7185", penwidth=2];
|
|
72
|
+
Verify-> Store [label=":confirmed\n:intel obs (ttl 30d)", color="#f59e0b"];
|
|
73
|
+
Verify-> Mem [label="revalidate_memory\nmark stale :fact", color="#a78bfa", style=dashed];
|
|
52
74
|
Corr -> Prompt[label="findings", color="#a78bfa", penwidth=2];
|
|
53
75
|
Store -> Prompt[label="inject", style=dashed, color="#fbbf24"];
|
|
54
76
|
Store -> Corr [style=dashed, color="#fbbf24", constraint=false];
|
|
77
|
+
Mem -> Corr [label="rule (f)\nstale :fact", style=dashed, color="#a78bfa", constraint=false];
|
|
55
78
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
digraph "PWN_MemorySkills" {
|
|
2
2
|
graph [
|
|
3
|
-
label=<<B>Persistent Knowledge — Memory · Skills · Sessions</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">everything under ~/.pwn/ that shapes future prompts</FONT>>,
|
|
3
|
+
label=<<B>Persistent Knowledge — Memory · Skills · Learning · Mistakes · Sessions</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">everything under ~/.pwn/ that shapes future prompts</FONT>>,
|
|
4
4
|
labelloc=t, fontsize=20, fontname="Helvetica",
|
|
5
5
|
rankdir=TB, splines=spline, nodesep=0.55, ranksep=0.95,
|
|
6
6
|
bgcolor="#0f172a", fontcolor="#e2e8f0", pad=0.6, newrank=true
|
|
@@ -17,8 +17,9 @@ digraph "PWN_MemorySkills" {
|
|
|
17
17
|
Skc [label="skill_create\nskill_add_reference", fillcolor="#6ee7b7"];
|
|
18
18
|
Note [label="learning_note_outcome\nlearning_reflect", fillcolor="#6ee7b7"];
|
|
19
19
|
Dist [label="learning_distill_skill\n(session → skill)", fillcolor="#6ee7b7"];
|
|
20
|
+
Mrec [label="mistakes_record\nmistakes_resolve", fillcolor="#6ee7b7"];
|
|
20
21
|
}
|
|
21
|
-
{rank=same; Rem; Skc; Note; Dist}
|
|
22
|
+
{rank=same; Rem; Skc; Note; Dist; Mrec}
|
|
22
23
|
|
|
23
24
|
subgraph cluster_files {
|
|
24
25
|
label="~/.pwn/"; fontcolor="#fde68a"; style=rounded;
|
|
@@ -27,8 +28,9 @@ digraph "PWN_MemorySkills" {
|
|
|
27
28
|
Fskl [label="skills/*.md\nYAML front-matter refs", shape=cylinder, fillcolor="#fcd34d"];
|
|
28
29
|
Flrn [label="learning.jsonl\noutcome log", shape=cylinder, fillcolor="#fcd34d"];
|
|
29
30
|
Fses [label="sessions/*.jsonl\ntranscripts", shape=cylinder, fillcolor="#fcd34d"];
|
|
31
|
+
Fmis [label="mistakes.json\nsig → count · fix · regressed", shape=cylinder, fillcolor="#fcd34d"];
|
|
30
32
|
}
|
|
31
|
-
{rank=same; Fmem; Fskl; Flrn; Fses}
|
|
33
|
+
{rank=same; Fmem; Fskl; Flrn; Fses; Fmis}
|
|
32
34
|
|
|
33
35
|
subgraph cluster_read {
|
|
34
36
|
label="Read-Side / Injection"; fontcolor="#ddd6fe"; style=rounded;
|
|
@@ -37,24 +39,33 @@ digraph "PWN_MemorySkills" {
|
|
|
37
39
|
Skv [label="skill_list · view", fillcolor="#c4b5fd"];
|
|
38
40
|
Out [label="learning_outcomes\nlearning_stats", fillcolor="#c4b5fd"];
|
|
39
41
|
Sesv [label="sessions_view\nsessions_current", fillcolor="#c4b5fd"];
|
|
42
|
+
Mlst [label="mistakes_list\ncorrection_hint", fillcolor="#c4b5fd"];
|
|
40
43
|
}
|
|
41
|
-
{rank=same; Rec; Skv; Out; Sesv}
|
|
44
|
+
{rank=same; Rec; Skv; Out; Sesv; Mlst}
|
|
42
45
|
|
|
43
|
-
Prompt [label="PromptBuilder\nMEMORY + SKILLS + LEARNING
|
|
46
|
+
Prompt [label="PromptBuilder\nMEMORY + SKILLS + LEARNING\n+ KNOWN MISTAKES / KNOWN FIXES", fillcolor="#7dd3fc", penwidth=2];
|
|
44
47
|
|
|
45
48
|
Rem -> Fmem [color="#f59e0b"];
|
|
46
49
|
Skc -> Fskl [color="#f59e0b"];
|
|
47
50
|
Note -> Flrn [color="#f59e0b"];
|
|
48
51
|
Dist -> Fskl [color="#f59e0b"];
|
|
49
52
|
Dist -> Fses [dir=back, style=dashed, color="#fbbf24", label="mine"];
|
|
53
|
+
Mrec -> Fmis [color="#f59e0b"];
|
|
54
|
+
Mrec -> Fmem [label="resolve→lesson", style=dashed, color="#fbbf24"];
|
|
50
55
|
|
|
51
56
|
Fmem -> Rec [color="#a78bfa"];
|
|
52
57
|
Fskl -> Skv [color="#a78bfa"];
|
|
53
58
|
Flrn -> Out [color="#a78bfa"];
|
|
54
59
|
Fses -> Sesv [color="#a78bfa"];
|
|
60
|
+
Fmis -> Mlst [color="#a78bfa"];
|
|
55
61
|
|
|
56
62
|
Rec -> Prompt [color="#38bdf8"];
|
|
57
63
|
Skv -> Prompt [color="#38bdf8"];
|
|
58
64
|
Out -> Prompt [color="#38bdf8"];
|
|
59
65
|
Sesv -> Prompt [color="#38bdf8"];
|
|
66
|
+
Mlst -> Prompt [label="do NOT repeat", color="#fb7185", penwidth=2];
|
|
67
|
+
|
|
68
|
+
ReVal [label="Extrospection.verify\nrevalidate_memory (cron)\nbrowser-backed GC", fillcolor="#fcd34d"];
|
|
69
|
+
ReVal -> Fmem [label="[UNVERIFIED yyyy-mm-dd]\nprefix stale :fact", color="#fb7185", style=dashed, penwidth=2];
|
|
70
|
+
Fmem -> ReVal [label=":fact w/ CVE|ver|URL", style=dashed, color="#94a3b8", constraint=false];
|
|
60
71
|
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
digraph "PWN_Mistakes_Negative_Feedback" {
|
|
2
|
+
graph [
|
|
3
|
+
label=<<B>PWN::AI::Agent::Mistakes — Negative-Feedback Loop</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">learn from mistakes · do NOT repeat them · cross-session · self-correcting</FONT>>,
|
|
4
|
+
labelloc=t, fontsize=20, fontname="Helvetica",
|
|
5
|
+
rankdir=TB, splines=spline, nodesep=0.6, ranksep=1.0,
|
|
6
|
+
bgcolor="#0f172a", fontcolor="#e2e8f0", pad=0.6, newrank=true, compound=true
|
|
7
|
+
];
|
|
8
|
+
node [fontname="Helvetica", fontsize=11, style="filled,rounded",
|
|
9
|
+
shape=box, penwidth=1.4, color="#334155", fontcolor="#0f172a"];
|
|
10
|
+
edge [fontname="Helvetica", fontsize=9, color="#94a3b8",
|
|
11
|
+
fontcolor="#cbd5e1", penwidth=1.3, arrowsize=0.8];
|
|
12
|
+
|
|
13
|
+
/* L0 ─ ingest sources */
|
|
14
|
+
subgraph cluster_in {
|
|
15
|
+
label="Four ingest paths"; fontcolor="#fecaca"; style="rounded,dashed";
|
|
16
|
+
color="#b91c1c"; bgcolor="#450a0a";
|
|
17
|
+
ToolFail [label=":tool\nDispatch → success:false", fillcolor="#fda4af"];
|
|
18
|
+
LoopFail [label=":loop\niteration budget exhausted", fillcolor="#fda4af"];
|
|
19
|
+
UserCorr [label=":user_correction\n\"no that's wrong\" / \"still broken\"", fillcolor="#fda4af"];
|
|
20
|
+
ModelRec [label=":model\nmistakes_record(tool, error)", fillcolor="#fda4af"];
|
|
21
|
+
}
|
|
22
|
+
{rank=same; ToolFail; LoopFail; UserCorr; ModelRec}
|
|
23
|
+
|
|
24
|
+
/* L1 ─ fingerprint */
|
|
25
|
+
subgraph cluster_fp {
|
|
26
|
+
label="Fingerprint (stable across sessions)"; fontcolor="#a7f3d0"; style=rounded;
|
|
27
|
+
color="#047857"; bgcolor="#022c22"; penwidth=2;
|
|
28
|
+
Norm [label="normalize_error()\nstrip paths · :LINE · 0xADDR\nport N · TIMESTAMP · UUID · pid", fillcolor="#6ee7b7"];
|
|
29
|
+
Sig [label="signature = sha12(tool + norm)\ncount++ (cross-session)", fillcolor="#6ee7b7", penwidth=2];
|
|
30
|
+
}
|
|
31
|
+
{rank=same; Norm; Sig}
|
|
32
|
+
|
|
33
|
+
/* L2 ─ ledger */
|
|
34
|
+
Store [label="~/.pwn/mistakes.json\n{sig → tool·error·count·fix\n resolved·regressed·sessions}",
|
|
35
|
+
shape=cylinder, fillcolor="#fcd34d", penwidth=2];
|
|
36
|
+
|
|
37
|
+
/* L3 ─ reactions */
|
|
38
|
+
subgraph cluster_react {
|
|
39
|
+
label="Reactions inside Loop.run"; fontcolor="#ddd6fe"; style=rounded;
|
|
40
|
+
color="#6d28d9"; bgcolor="#2e1065"; penwidth=2;
|
|
41
|
+
Guard [label="guard_repeated_failure\nmax(turn, PERSISTENT count) ≥ 3\n→ trips on 1st recurrence\nin a new session", fillcolor="#c4b5fd"];
|
|
42
|
+
Hint [label="correction_hint\nappend to failed result:\n\"seen N×, sig=…, KNOWN FIX: …\"\n→ self-correct NEXT iter", fillcolor="#c4b5fd"];
|
|
43
|
+
Regr [label="[REGRESSED]\nresolved sig recurs\n→ reopen + tag", fillcolor="#c4b5fd"];
|
|
44
|
+
}
|
|
45
|
+
{rank=same; Guard; Hint; Regr}
|
|
46
|
+
|
|
47
|
+
/* L4 ─ outputs */
|
|
48
|
+
subgraph cluster_out {
|
|
49
|
+
label="Injected into every future prompt"; fontcolor="#fde68a"; style=rounded;
|
|
50
|
+
color="#a16207"; bgcolor="#422006"; penwidth=2;
|
|
51
|
+
KMist [label="KNOWN MISTAKES\n✗ [sig] tool ×N [REPEATING]…", fillcolor="#fcd34d"];
|
|
52
|
+
KFix [label="KNOWN FIXES\n✓ [sig] tool — FIX: …", fillcolor="#fcd34d"];
|
|
53
|
+
Mem [label="PWN::Memory :lesson\n\"AVOID X — FIX: Y\"", fillcolor="#fcd34d"];
|
|
54
|
+
}
|
|
55
|
+
{rank=same; KMist; KFix; Mem}
|
|
56
|
+
|
|
57
|
+
Prompt [label="PromptBuilder\nsystem prompt", fillcolor="#7dd3fc", penwidth=2];
|
|
58
|
+
|
|
59
|
+
/* L0 → L1 */
|
|
60
|
+
ToolFail -> Norm [label="record()", color="#fb7185"];
|
|
61
|
+
LoopFail -> Norm [color="#fb7185"];
|
|
62
|
+
UserCorr -> Sig [label="+ flip_last_outcome", color="#fb7185"];
|
|
63
|
+
ModelRec -> Sig [color="#fb7185"];
|
|
64
|
+
Norm -> Sig [color="#34d399"];
|
|
65
|
+
|
|
66
|
+
/* L1 → L2 */
|
|
67
|
+
Sig -> Store [label="persist", color="#f59e0b", penwidth=2];
|
|
68
|
+
|
|
69
|
+
/* L2 → L3 */
|
|
70
|
+
Store -> Guard [label="count", color="#a78bfa"];
|
|
71
|
+
Store -> Hint [label="fix?", color="#a78bfa"];
|
|
72
|
+
Store -> Regr [label="resolved∧recur", color="#a78bfa"];
|
|
73
|
+
|
|
74
|
+
/* L3 → L4 */
|
|
75
|
+
Guard -> KMist [color="#f59e0b"];
|
|
76
|
+
Hint -> KFix [style=invis];
|
|
77
|
+
Regr -> KMist [color="#f59e0b"];
|
|
78
|
+
|
|
79
|
+
/* resolve path */
|
|
80
|
+
Resolve [label="mistakes_resolve\n(signature, fix)", fillcolor="#6ee7b7", penwidth=2];
|
|
81
|
+
{rank=same; Store; Resolve}
|
|
82
|
+
Resolve -> Store [label="resolved:true\nfix:…", color="#34d399", penwidth=2];
|
|
83
|
+
Resolve -> KFix [color="#f59e0b"];
|
|
84
|
+
Resolve -> Mem [label="promote", color="#f59e0b"];
|
|
85
|
+
|
|
86
|
+
/* L4 → prompt (feedback, dashed) */
|
|
87
|
+
KMist -> Prompt [label="do NOT repeat", style=dashed, color="#fb7185", constraint=false, penwidth=2];
|
|
88
|
+
KFix -> Prompt [label="do THIS instead", style=dashed, color="#fbbf24", constraint=false, penwidth=2];
|
|
89
|
+
Mem -> Prompt [label="MEMORY block", style=dashed, color="#fbbf24", constraint=false];
|
|
90
|
+
KMist -> Prompt [style=invis];
|
|
91
|
+
KFix -> Prompt [style=invis];
|
|
92
|
+
Mem -> Prompt [style=invis];
|
|
93
|
+
}
|
|
@@ -37,9 +37,9 @@ digraph "PWN_Overall_Architecture" {
|
|
|
37
37
|
label="PWN::AI::Agent"; fontcolor="#ddd6fe";
|
|
38
38
|
style=rounded; color="#6d28d9"; bgcolor="#2e1065"; penwidth=2;
|
|
39
39
|
Loop [label="Loop\nplan → dispatch → observe", fillcolor="#c4b5fd"];
|
|
40
|
-
Registry [label="Registry\n10 toolsets ·
|
|
40
|
+
Registry [label="Registry\n10 toolsets · 54 tools", fillcolor="#c4b5fd"];
|
|
41
41
|
Swarm [label="Swarm\npersonas · debate · bus", fillcolor="#c4b5fd"];
|
|
42
|
-
Prompt [label="PromptBuilder\nMEMORY · SKILLS · EXTRO",fillcolor="#c4b5fd"];
|
|
42
|
+
Prompt [label="PromptBuilder\nMEMORY · SKILLS\nMISTAKES · EXTRO",fillcolor="#c4b5fd"];
|
|
43
43
|
}
|
|
44
44
|
{rank=same; Loop; Registry; Swarm; Prompt}
|
|
45
45
|
|
|
@@ -51,7 +51,7 @@ digraph "PWN_Overall_Architecture" {
|
|
|
51
51
|
SAST [label="SAST\n48 rules", fillcolor="#6ee7b7"];
|
|
52
52
|
WWW [label="WWW\n21 site drivers", fillcolor="#6ee7b7"];
|
|
53
53
|
AWS [label="AWS\n90 services", fillcolor="#6ee7b7"];
|
|
54
|
-
SDR [label="SDR\nGQRX · Flipper · RFID", fillcolor="#6ee7b7"];
|
|
54
|
+
SDR [label="SDR\nGQRX · Flipper · RFID\nDecoder::* (20)", fillcolor="#6ee7b7"];
|
|
55
55
|
Chain [label="Blockchain\nBTC · ETH", fillcolor="#6ee7b7"];
|
|
56
56
|
Bounty [label="Bounty\nlifecycle replay", fillcolor="#6ee7b7"];
|
|
57
57
|
Reports [label="Reports\nHTML · JSON", fillcolor="#6ee7b7"];
|
|
@@ -66,12 +66,13 @@ digraph "PWN_Overall_Architecture" {
|
|
|
66
66
|
Skills [label="skills/*.md", shape=cylinder, fillcolor="#fcd34d"];
|
|
67
67
|
Learn [label="learning.jsonl", shape=cylinder, fillcolor="#fcd34d"];
|
|
68
68
|
Metrics [label="metrics.json", shape=cylinder, fillcolor="#fcd34d"];
|
|
69
|
-
|
|
69
|
+
MistF [label="mistakes.json", shape=cylinder, fillcolor="#fcd34d"];
|
|
70
|
+
Extro [label="extrospection.json\n+ rf + web snapshot", shape=cylinder, fillcolor="#fcd34d"];
|
|
70
71
|
Sessions [label="sessions/*.jsonl", shape=cylinder, fillcolor="#fcd34d"];
|
|
71
72
|
SwarmB [label="swarm/*/bus.jsonl", shape=cylinder, fillcolor="#fcd34d"];
|
|
72
73
|
CronF [label="cron/jobs.yml", shape=cylinder, fillcolor="#fcd34d"];
|
|
73
74
|
}
|
|
74
|
-
{rank=same; Memory; Skills; Learn; Metrics; Extro; Sessions; SwarmB; CronF}
|
|
75
|
+
{rank=same; Memory; Skills; Learn; Metrics; MistF; Extro; Sessions; SwarmB; CronF}
|
|
75
76
|
|
|
76
77
|
/* ── L0 → L1 ── */
|
|
77
78
|
User -> REPL [color="#38bdf8"];
|
|
@@ -102,6 +103,7 @@ digraph "PWN_Overall_Architecture" {
|
|
|
102
103
|
SAST -> Skills [color="#f59e0b"];
|
|
103
104
|
WWW -> Learn [color="#f59e0b"];
|
|
104
105
|
AWS -> Metrics [color="#f59e0b"];
|
|
106
|
+
SDR -> MistF [style=invis];
|
|
105
107
|
SDR -> Extro [color="#f59e0b"];
|
|
106
108
|
Chain -> Sessions [color="#f59e0b"];
|
|
107
109
|
Bounty -> SwarmB [color="#f59e0b"];
|
|
@@ -16,14 +16,16 @@ digraph "PWN_Persistence" {
|
|
|
16
16
|
mem [label="memory.json\nfacts · prefs · lessons · env"];
|
|
17
17
|
skl [label="skills/*.md\nreusable procedures + refs"];
|
|
18
18
|
lrn [label="learning.jsonl\ntask outcomes"];
|
|
19
|
+
mis [label="mistakes.json\nfailure fingerprints · fixes\n[REPEATING] · [REGRESSED]"];
|
|
19
20
|
met [label="metrics.json\nper-tool telemetry"];
|
|
20
|
-
ext [label="extrospection.json\nhost snapshot + observations"];
|
|
21
|
+
ext [label="extrospection.json\nhost snapshot + rf + web\n+ observations"];
|
|
22
|
+
ews [label="extrospection/web/*.png\nheadless screenshots"];
|
|
21
23
|
ses [label="sessions/*.jsonl\ntranscripts"];
|
|
22
24
|
crn [label="cron/jobs.yml\nscheduled jobs + logs"];
|
|
23
25
|
agt [label="agents.yml\npersona registry"];
|
|
24
26
|
swm [label="swarm/<id>/bus.jsonl\nmulti-agent chat"];
|
|
25
27
|
hist [label="~/.pwn_history\nREPL history"];
|
|
26
28
|
|
|
27
|
-
Root->cfg; Root->mem; Root->skl; Root->lrn; Root->met; Root->ext;
|
|
29
|
+
Root->cfg; Root->mem; Root->skl; Root->lrn; Root->mis; Root->met; Root->ext;
|
|
28
30
|
Root->ses; Root->crn; Root->agt; Root->swm; Root->hist;
|
|
29
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
digraph "PWN_AI_Feedback_Learning_Loop" {
|
|
2
2
|
graph [
|
|
3
|
-
label=<<B>pwn-ai — Closed Self-Improvement Loop</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">Introspection (self) ⟷ Extrospection (world)</FONT>>,
|
|
3
|
+
label=<<B>pwn-ai — Closed Self-Improvement Loop</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">Introspection (self) ⟷ Extrospection (world) · Mistakes (negative feedback)</FONT>>,
|
|
4
4
|
labelloc=t, fontsize=20, fontname="Helvetica",
|
|
5
5
|
rankdir=TB, splines=spline, nodesep=0.6, ranksep=1.0,
|
|
6
6
|
bgcolor="#0f172a", fontcolor="#e2e8f0", pad=0.6, newrank=true, compound=true
|
|
@@ -13,7 +13,7 @@ digraph "PWN_AI_Feedback_Learning_Loop" {
|
|
|
13
13
|
/* L0 ─ actors */
|
|
14
14
|
User [label="👤 Researcher", fillcolor="#7dd3fc"];
|
|
15
15
|
LLM [label="🤖 LLM Provider", fillcolor="#c4b5fd"];
|
|
16
|
-
World [label="🌍 Host · Net · Repo\nToolchain · Intel
|
|
16
|
+
World [label="🌍 Host · Net · Repo\nToolchain · RF · Web · Intel", fillcolor="#fda4af"];
|
|
17
17
|
{rank=same; User; LLM; World}
|
|
18
18
|
|
|
19
19
|
/* L1 ─ agent core */
|
|
@@ -26,20 +26,22 @@ digraph "PWN_AI_Feedback_Learning_Loop" {
|
|
|
26
26
|
}
|
|
27
27
|
{rank=same; Prompt; Dispatch; Result}
|
|
28
28
|
|
|
29
|
-
/* L2 ─
|
|
29
|
+
/* L2 ─ triple engines */
|
|
30
30
|
subgraph cluster_intro {
|
|
31
31
|
label="INTROSPECTION (self)"; fontcolor="#a7f3d0";
|
|
32
32
|
style=rounded; color="#047857"; bgcolor="#022c22"; penwidth=2;
|
|
33
33
|
Metrics [label="Metrics\nper-tool success · avg ms", fillcolor="#6ee7b7"];
|
|
34
34
|
Learning [label="Learning\nnote_outcome · reflect\nconsolidate · distill_skill", fillcolor="#6ee7b7"];
|
|
35
|
+
Mistakes [label="Mistakes\nrecord · resolve\nguard · correction_hint\n[REPEATING] · [REGRESSED]", fillcolor="#6ee7b7", penwidth=2];
|
|
35
36
|
}
|
|
36
37
|
subgraph cluster_extro {
|
|
37
38
|
label="EXTROSPECTION (world)"; fontcolor="#fde68a";
|
|
38
39
|
style=rounded; color="#a16207"; bgcolor="#422006"; penwidth=2;
|
|
39
|
-
Snapshot [label="snapshot · drift\nhost/net/toolchain/
|
|
40
|
-
Observe [label="observe · intel\nrecon
|
|
40
|
+
Snapshot [label="snapshot · drift\nhost/net/toolchain\nrepo/env/rf/web", fillcolor="#fcd34d"];
|
|
41
|
+
Observe [label="observe · intel · watch\nrecon · CVE · web DOM", fillcolor="#fcd34d"];
|
|
42
|
+
Verify [label="verify (browser)\nfact-check own claims\nrevalidate_memory", fillcolor="#fcd34d", penwidth=2];
|
|
41
43
|
}
|
|
42
|
-
{rank=same; Metrics; Learning; Snapshot; Observe}
|
|
44
|
+
{rank=same; Metrics; Learning; Mistakes; Snapshot; Observe; Verify}
|
|
43
45
|
|
|
44
46
|
/* L3 ─ correlate */
|
|
45
47
|
Correlate [label="extro_correlate()\n\"I did it wrong\" vs \"the world changed\"",
|
|
@@ -51,11 +53,12 @@ digraph "PWN_AI_Feedback_Learning_Loop" {
|
|
|
51
53
|
style="rounded,dashed"; color="#334155"; bgcolor="#1e293b";
|
|
52
54
|
Fmet [label="metrics.json", shape=cylinder, fillcolor="#fcd34d"];
|
|
53
55
|
Flrn [label="learning.jsonl", shape=cylinder, fillcolor="#fcd34d"];
|
|
56
|
+
Fmis [label="mistakes.json", shape=cylinder, fillcolor="#fcd34d"];
|
|
54
57
|
Fmem [label="memory.json", shape=cylinder, fillcolor="#fcd34d"];
|
|
55
58
|
Fskl [label="skills/*.md", shape=cylinder, fillcolor="#fcd34d"];
|
|
56
59
|
Fext [label="extrospection.json", shape=cylinder, fillcolor="#fcd34d"];
|
|
57
60
|
}
|
|
58
|
-
{rank=same; Fmet; Flrn; Fmem; Fskl; Fext}
|
|
61
|
+
{rank=same; Fmet; Flrn; Fmis; Fmem; Fskl; Fext}
|
|
59
62
|
|
|
60
63
|
/* L0 → L1 */
|
|
61
64
|
User -> Prompt [label="task", color="#38bdf8", penwidth=2];
|
|
@@ -69,29 +72,44 @@ digraph "PWN_AI_Feedback_Learning_Loop" {
|
|
|
69
72
|
/* L1 → L2 */
|
|
70
73
|
Dispatch -> Metrics [label="record()", color="#34d399"];
|
|
71
74
|
Result -> Learning [label="auto_reflect", color="#34d399"];
|
|
75
|
+
Dispatch -> Mistakes [label="on failure\nrecord()", color="#fb7185", penwidth=2];
|
|
76
|
+
User -> Mistakes [label="\"that's wrong\"\ncheck_user_correction", color="#fb7185",
|
|
77
|
+
style=dashed, constraint=false];
|
|
72
78
|
Dispatch -> Snapshot [label="probe", color="#f59e0b"];
|
|
73
79
|
Result -> Observe [label="auto_extrospect", color="#f59e0b"];
|
|
74
80
|
World -> Snapshot [color="#fb7185", constraint=false];
|
|
75
81
|
World -> Observe [color="#fb7185", constraint=false];
|
|
82
|
+
World -> Verify [label="TransparentBrowser\n:headless", color="#38bdf8", constraint=false, penwidth=2];
|
|
76
83
|
|
|
77
84
|
/* L2 → L3 */
|
|
78
85
|
Metrics -> Correlate [color="#34d399"];
|
|
79
86
|
Learning -> Correlate [color="#34d399"];
|
|
87
|
+
Mistakes -> Correlate [color="#34d399"];
|
|
80
88
|
Snapshot -> Correlate [color="#f59e0b"];
|
|
81
89
|
Observe -> Correlate [color="#f59e0b"];
|
|
90
|
+
Verify -> Correlate [color="#f59e0b"];
|
|
82
91
|
|
|
83
92
|
/* L3 → L4 */
|
|
84
93
|
Correlate -> Fmet [style=invis];
|
|
85
94
|
Metrics -> Fmet [color="#94a3b8"];
|
|
86
95
|
Learning -> Flrn [color="#94a3b8"];
|
|
96
|
+
Mistakes -> Fmis [color="#94a3b8"];
|
|
97
|
+
Mistakes -> Fmem [label="resolve→lesson", color="#94a3b8"];
|
|
87
98
|
Learning -> Fmem [label="lesson", color="#94a3b8"];
|
|
88
99
|
Learning -> Fskl [label="skill", color="#94a3b8"];
|
|
89
100
|
Observe -> Fext [color="#94a3b8"];
|
|
101
|
+
Verify -> Fmis [label=":refuted →\nassumption mistake", color="#fb7185", penwidth=2];
|
|
102
|
+
Verify -> Fmem [label="mark stale\n[UNVERIFIED]", color="#a78bfa", style=dashed];
|
|
103
|
+
Verify -> Fext [label=":confirmed\n:intel obs", color="#94a3b8"];
|
|
90
104
|
|
|
91
105
|
/* feedback (dashed, non-constraining) */
|
|
92
106
|
Fmem -> Prompt [label="MEMORY block", style=dashed, color="#fbbf24", constraint=false];
|
|
93
107
|
Fskl -> Prompt [label="SKILLS block", style=dashed, color="#fbbf24", constraint=false];
|
|
108
|
+
Fmis -> Prompt [label="KNOWN MISTAKES\n+ KNOWN FIXES", style=dashed, color="#fb7185",
|
|
109
|
+
constraint=false, penwidth=2];
|
|
94
110
|
Fext -> Prompt [label="EXTRO block", style=dashed, color="#fbbf24", constraint=false];
|
|
111
|
+
Mistakes -> Dispatch [label="correction_hint\n(inline, next iter)", style=dashed,
|
|
112
|
+
color="#fb7185", constraint=false, penwidth=2];
|
|
95
113
|
Correlate -> Prompt [label="findings → next run", style=dashed, color="#fb7185",
|
|
96
114
|
constraint=false, penwidth=2];
|
|
97
115
|
Result -> User [label="answer", color="#38bdf8", constraint=false, penwidth=2];
|