-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathARCHITECTURE.yml
More file actions
359 lines (321 loc) · 13.6 KB
/
Copy pathARCHITECTURE.yml
File metadata and controls
359 lines (321 loc) · 13.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
# CFSE Architecture Manifest
# ====================
# Machine-readable specification of the CFSE framework structure.
# Designed for LLM consumption - provides explicit artifact relationships,
# file locations, and cross-reference patterns.
#
# Version: 1.0.0
# Last Updated: 2026-01-26
cfse:
name: "Concept Flow Scenarios Explorations"
version: "1.0.0"
tagline: >
A formal methodology for security epistemology: replacing intuition with structure,
and claims with evidence.
description: >
A formal methodology for security epistemology—a disciplined approach to
*knowing* whether a system is secure, not guessing or hoping. CFSE builds
a world model through concepts, interactions, and flows; expresses security
properties as formal invariants with temporal logic (ALWAYS, EVENTUALLY,
LEADS_TO); and validates claims through systematic exploration backed by
structured Trace evidence.
normative_language:
rule: "RFC 2119 + RFC 8174 keywords are normative only when they appear in ALL CAPS."
keywords:
- "MUST"
- "MUST NOT"
- "SHOULD"
- "SHOULD NOT"
- "MAY"
references:
- "RFC 2119"
- "RFC 8174"
# ==========================================================================
# CORE WORKFLOW
# ==========================================================================
# The CFSE process follows a linear pipeline where each artifact type
# feeds into the next. Understanding this flow is essential.
workflow:
phases:
- id: foundation
name: "World Model Foundation"
description: "Establish the conceptual map of the system"
artifacts: [concepts]
- id: relationships
name: "Relationship Discovery"
description: "Map how concepts connect and interact"
artifacts: [interactions]
methodology: "CIA (Concept Interaction Analysis)"
- id: sequences
name: "Sequence Documentation"
description: "Document legitimate multi-step user journeys"
artifacts: [flows]
- id: hypothesis
name: "Security Hypothesis"
description: "Generate testable vulnerability theories"
artifacts: [scenarios]
uses: [generators]
- id: experimentation
name: "Experimental Validation"
description: "Execute concrete tests with BASE and ATT variants"
artifacts: [explorations]
methodology: "Delta Analysis"
- id: documentation
name: "Finding Documentation"
description: "Document confirmed vulnerabilities"
artifacts: [findings]
- id: remediation
name: "Patch & Learning"
description: "Fix, verify, and extract reusable patterns"
artifacts: [patches]
methodology: "4V Cycle (Verify, Validate, Vaccinate, Valuate)"
# ==========================================================================
# DIRECTORY STRUCTURE (v1.0.0)
# ==========================================================================
# The new structure uses spec/ (singular) as the normative source of truth.
directory_structure:
spec:
description: "Normative specification - source of truth"
classification: "normative"
organization: "Structured by concern (foundations, grammar, artifacts, semantics)"
contents:
foundations:
description: "Core framework concepts and definitions"
path: "spec/foundations/"
files:
- artifact-system.md
- conformance.md
- extensions.md
grammar:
description: "Syntax rules for IDs, references, and formal logic"
path: "spec/grammar/"
files:
- 01-id-syntax.md
- 02-reference-syntax.md
- 03-formal-logic.md
- 04-field-types.md
schemas:
- schemas/grammar.schema.yaml
artifacts:
description: "Artifact type definitions with YAML schemas"
path: "spec/artifacts/"
primary:
concept:
path: "spec/artifacts/primary/concept/"
files: [concept.md, concept.schema.yaml]
prefix: "C"
interaction:
path: "spec/artifacts/primary/interaction/"
files: [interaction.md, interaction.schema.yaml]
prefix: "I"
flow:
path: "spec/artifacts/primary/flow/"
files: [flow.md, flow.schema.yaml]
prefix: "F"
scenario:
path: "spec/artifacts/primary/scenario/"
files: [scenario.md, scenario.schema.yaml]
prefix: "S"
exploration:
path: "spec/artifacts/primary/exploration/"
files: [exploration.md, exploration.schema.yaml]
prefix: "E"
finding:
path: "spec/artifacts/primary/finding/"
files: [finding.md, finding.schema.yaml]
prefix: "FD"
supporting:
predicate:
path: "spec/artifacts/supporting/predicate/"
files: [predicate.md, predicate.schema.yaml]
prefix: "P"
invariant:
path: "spec/artifacts/supporting/invariant/"
files: [invariant.md, invariant.schema.yaml]
prefix: "INV"
generator:
path: "spec/artifacts/supporting/generator/"
files: [generator.md, generator.schema.yaml]
prefix: "GEN"
patch:
path: "spec/artifacts/supporting/patch/"
files: [patch.md, patch.schema.yaml]
prefix: "PATCH"
semantics:
description: "Behavioral rules and interpretation guidance"
path: "spec/semantics/"
files:
- 01-invariant-states.md
- 02-exploration-verdicts.md
- 03-artifact-lifecycle.md
- 04-traceability.md
- 05-delta-interpretation.md
root_files:
- spec/README.md
- spec/glossary.md
- spec/changelog.md
extensions:
description: "Optional extensions (opt-in; may be published separately)"
classification: "informative"
path: "extensions/"
files:
- README.md
guides:
description: "Background and reading guides"
classification: "informative"
path: "guides/"
contents:
foundations:
description: "High-level introduction and world model"
path: "guides/foundations/"
files:
- introduction.md
- world-model.md
rfcs:
description: "RFC / proposal process and templates"
classification: "informative"
path: "rfcs/"
files:
- README.md
- PROPOSALS.md
# ==========================================================================
# ARTIFACT PREFIXES
# ==========================================================================
artifact_prefixes:
C: concept
I: interaction
F: flow
S: scenario
E: exploration
FD: finding
P: predicate
INV: invariant
GEN: generator
PATCH: patch
# ==========================================================================
# ID PATTERNS
# ==========================================================================
# Consistent naming enables grep-based discovery and backlink analysis.
id_patterns:
concepts: "C-<SYSTEM>-<NAME>"
interactions: "I-<SYSTEM>-<VERB>-<NOUN>-###"
flows: "F-<SYSTEM>-<NAME>"
scenarios: "S-<SYSTEM>-<THEME>-###"
explorations: "E-<SYSTEM>-<THEME>-###-##"
findings: "FD-<SYSTEM>-<CAT>-###"
invariants: "INV-<SYSTEM>-<NAME>"
predicates: "P-<SYSTEM>-<NAME>"
generators: "GEN-<STRATEGY>-###"
patches: "PATCH-<SYSTEM>-###"
# ==========================================================================
# CROSS-REFERENCE SYNTAX
# ==========================================================================
# How artifacts link to each other in markdown documents.
reference_syntax:
inline_id: "`INV-AUTH-REQUIRED`"
cross_link: "[[I-USER-LOGIN-001]]"
file_link: "[Concept Specification](spec/artifacts/primary/concept/concept.md)"
contexts:
concept_invariants: "List INV- IDs only, never inline logic"
interaction_pre: "INV- IDs that must hold BEFORE the operation"
interaction_post: "INV- IDs that hold AFTER the operation"
flow_step_pre: "INV- IDs required before this step"
flow_step_post: "INV- IDs guaranteed after this step"
scenario_targeted: "INV- IDs under test (hypothesis)"
exploration_observations: "[[INV-]], [[I-]], [[S-]] with ENFORCED/VIOLATED status"
finding_violated: "INV- IDs confirmed violated"
# ==========================================================================
# CLASSIFICATION KEY
# ==========================================================================
classification_key:
normative: "Authoritative definitions - source of truth"
informative: "Guidance and examples - non-binding"
derivative: "Generated from normative sources"
sdk: "Integration tooling for tool-assisted automation (including AI)"
# ==========================================================================
# NAVIGATION QUICK REFERENCE
# ==========================================================================
navigation:
quick_start: "guides/foundations/introduction.md"
full_workflow: "spec/foundations/artifact-system.md"
specification_index: "spec/README.md"
artifact_index: "spec/foundations/artifact-system.md"
id_syntax: "spec/grammar/01-id-syntax.md"
glossary: "spec/glossary.md"
llm_navigation:
understand_cfse: "guides/foundations/introduction.md"
learn_world_model: "guides/foundations/world-model.md"
create_concept: "spec/artifacts/primary/concept/concept.md"
create_interaction: "spec/artifacts/primary/interaction/interaction.md"
create_flow: "spec/artifacts/primary/flow/flow.md"
create_scenario: "spec/artifacts/primary/scenario/scenario.md"
create_exploration: "spec/artifacts/primary/exploration/exploration.md"
create_finding: "spec/artifacts/primary/finding/finding.md"
define_invariants: "spec/artifacts/supporting/invariant_library/invariant_library.md"
understand_formal_logic: "spec/grammar/03-formal-logic.md"
generate_scenarios: "spec/artifacts/supporting/generator/generator.md"
complete_workflow: "spec/foundations/artifact-system.md"
# ==========================================================================
# COMMON PATTERNS & ANTI-PATTERNS
# ==========================================================================
patterns:
good:
- pattern: "Single source of truth for invariants"
description: "All invariants defined in central library, referenced by ID elsewhere"
- pattern: "Atomic interactions"
description: "Each interaction is a single operation; multi-step = flow"
- pattern: "Hypothesis before testing"
description: "Create scenario (hypothesis) before exploration (test)"
- pattern: "Delta Analysis isolation"
description: "BASE and ATT differ by exactly one variable"
- pattern: "Evidence-based findings"
description: "Every finding cites exploration evidence"
anti_patterns:
- pattern: "Inline invariant logic"
description: "Writing logic directly in concept/interaction docs instead of referencing INV- IDs"
fix: "Extract to invariant library, reference by ID"
- pattern: "Multi-step interactions"
description: "Documenting a sequence as a single interaction"
fix: "Split into flow with multiple interaction steps"
- pattern: "Untested scenarios"
description: "Scenarios without corresponding explorations"
fix: "Create exploration for each scenario before claiming findings"
- pattern: "Findings without evidence"
description: "Claiming vulnerabilities without exploration data"
fix: "Conduct exploration, document observations, then create finding"
- pattern: "Concept-as-role confusion"
description: "Creating concepts for user roles instead of system entities"
fix: "Roles are attributes or states of the User concept"
# ==========================================================================
# MIGRATION NOTES
# ==========================================================================
migration:
from_version: "pre-1.0"
to_version: "1.0.0"
date: "2026-01-25"
changes:
- "Consolidated numbered directories (1-framework, 2-concepts, etc.) into spec/"
- "Introduced foundations/, grammar/, artifacts/, semantics/ structure"
- "Added YAML schemas for all artifact types"
- "Separated normative spec from informative materials (published separately)"
- "Created machine-readable ARCHITECTURE.yml manifest"
# ==========================================================================
# VERSION HISTORY
# ==========================================================================
version_history:
- version: "1.0.0"
date: "2026-01-25"
changes:
- "First public release of CFSE specification"
- "New spec/ directory with organized subdirectories"
- "YAML schemas for all artifacts"
- "Separated normative spec from informative materials (published separately)"
- "Updated ARCHITECTURE.yml for v1.0.0"
- version: "0.1.0"
date: "2025-11-15"
changes:
- "Initial ARCHITECTURE.yml creation"
- "Documented all artifact types with specs and templates"
- "Added LLM navigation quick reference"
- "Defined cross-reference syntax"
- "Added patterns and anti-patterns"