Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/investigate-security.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ protocols:
- guardrails/operational-constraints
- guardrails/adversarial-falsification
- analysis/security-vulnerability
- reasoning/exhaustive-path-tracing # optional — apply selectively to parser/decoder functions
- reasoning/exhaustive-path-tracing
taxonomies:
- stack-lifetime-hazards
format: investigation-report
Expand Down
7 changes: 4 additions & 3 deletions tests/validate-graph-integrity.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ def _parse_template_frontmatter(text: str) -> dict[str, object] | None:
if indent > 0:
# Still collect multi-line list items at indent 2
if current_list_field and stripped.startswith("- "):
result[current_list_field].append(
stripped[2:].strip().strip("'\"")
)
val = stripped[2:].strip().strip("'\"")
# Strip inline YAML comments only when `#` follows whitespace
val = re.split(r"\s+#", val, maxsplit=1)[0].strip().strip("'\"")
result[current_list_field].append(val)
elif stripped and current_list_field and not stripped.startswith("#"):
current_list_field = None
continue
Expand Down
5 changes: 4 additions & 1 deletion tests/validate-manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ def parse_yaml_frontmatter(text: str) -> dict[str, object] | None:
continue
if in_protocols:
if stripped.startswith("- "):
protocols.append(stripped[2:].strip().strip("'\""))
val = stripped[2:].strip().strip("'\"")
# Strip inline YAML comments only when '#' is preceded by whitespace.
val = re.split(r"\s+#", val, maxsplit=1)[0].strip().strip("'\"")
protocols.append(val)
else:
in_protocols = False
return {"protocols": protocols}
Expand Down
Loading