Skip to content

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

fix(router): preserve human-readable Git status losslessly (#4020)

Mansurshakh Japarova42fb2b9a1c4
diff --git a/crates/headroom-core/src/transforms/content_detector.rs b/crates/headroom-core/src/transforms/content_detector.rs
index 6147749c4..1c6cd7c1e 100644
--- a/crates/headroom-core/src/transforms/content_detector.rs
+++ b/crates/headroom-core/src/transforms/content_detector.rs
@@ -9,6 +9,7 @@
//! - **SearchResults**: grep / ripgrep output (`file:line:content`)
//! - **BuildOutput**: Compiler / test / lint logs
//! - **GitDiff**: Unified diff format → `DiffCompressor`
+//! - **Tabular**: lossless route for tables and human-readable Git status
//! - **Html**: Web pages (needs extraction, not compression)
//! - **PlainText**: Generic fallback
//!
@@ -37,6 +38,7 @@ pub enum ContentType {
BuildOutput,
GitDiff,
Html,
+ Tabular,
PlainText,
}
@@ -50,13 +52,14 @@ impl ContentType {
/// extending this array is caught by the length annotation, and the
/// exhaustive `match` in [`ContentType::as_str`] forces the author
/// into this file in the first place.
- pub const ALL: [ContentType; 7] = [
+ pub const ALL: [ContentType; 8] = [
ContentType::JsonArray,
ContentType::SourceCode,
ContentType::SearchResults,
ContentType::BuildOutput,
ContentType::GitDiff,
ContentType::Html,
+ ContentType::Tabular,
ContentType::PlainText,
];
@@ -69,6 +72,7 @@ impl ContentType {
ContentType::BuildOutput => "build",
ContentType::GitDiff => "diff",
ContentType::Html => "html",
+ ContentType::Tabular => "tabular",
ContentType::PlainText => "text",
}
}
@@ -86,6 +90,7 @@ impl ContentType {
ContentType::BuildOutput => "build_output",
ContentType::GitDiff => "git_diff",
ContentType::Html => "html",
+ ContentType::Tabular => "tabular",
ContentType::PlainText => "plain_text",
}
}
@@ -287,6 +292,93 @@ static HTML_STRUCTURAL_TAGS: LazyLock<Regex> = LazyLock::new(|| {
.unwrap()
});
+#[derive(Clone, Copy, PartialEq, Eq)]
+enum GitStatusSection {
+ Staged,
+ Unstaged,
+ Untracked,
+ Unmerged,
+}
+
+fn try_detect_git_status(content: &str) -> Option<DetectionResult> {
+ let mut lines = content.lines();
+ let first = lines.next()?;
+ if !first.starts_with("On branch ")
+ && !first.starts_with("HEAD detached at ")
+ && !first.starts_with("HEAD detached from ")
+ {
+ return None;
+ }
+
+ let mut has_heading = false;
+ let mut has_path = false;
+ let mut section = None;
+ for line in lines {
+ section = match line {
+ "Changes to be committed:" => {
+ has_heading = true;
+ Some(GitStatusSection::Staged)
+ }
+ "Changes not staged for commit:" => {
+ has_heading = true;
+ Some(GitStatusSection::Unstaged)
+ }
+ "Untracked files:" => {
+ has_heading = true;
+ Some(GitStatusSection::Untracked)
+ }
+ "Unmerged paths:" => {
+ has_heading = true;
+ Some(GitStatusSection::Unmerged)
+ }
+ _ => section,
+ };
+
+ if section == Some(GitStatusSection::Untracked)
+ && line
+ .strip_prefix('\t')
+ .is_some_and(|path| !path.trim().is_empty())
+ {
+ has_path = true;
+ } else if matches!(
+ section,
+ Some(
+ GitStatusSection::Staged | GitStatusSection::Unstaged | GitStatusSection::Unmerged
+ )
+ ) {
+ let Some((state, path)) = line.trim_start().split_once(": ") else {
+ continue;
+ };
+ if !path.trim().is_empty()
+ && matches!(
+ state,
+ "new file"
+ | "modified"
+ | "deleted"
+ | "renamed"
+ | "copied"
+ | "typechange"
+ | "both modified"
+ | "both added"
+ | "both deleted"
+ | "added by us"
+ | "deleted by us"
+ | "added by them"
+ | "deleted by them"
+ )
+ {
+ has_path = true;
+ }
+ }
+ }
+
+ (has_heading && has_path).then(|| {
+ let mut metadata = Map::new();
+ metadata.insert("format".into(), Value::String("git_status".into()));
+ DetectionResult::new(ContentType::Tabular, 1.0, metadata)
+ })
+}
+
// ─── Public entry point ────────────────────────────────────────────────
/// Detect the type of `content` for routing. Mirrors Python's
@@ -297,10 +389,11 @@ static HTML_STRUCTURAL_TAGS: LazyLock<Regex> = LazyLock::new(|| {
/// 2. JSON array (highest priority for `SmartCrusher`)
/// 3. Git diff (≥ 0.7 confidence required)
/// 4. HTML (≥ 0.7 confidence required)
-/// 5. Search results (≥ 0.6 confidence required)
-/// 6. Build / log output (≥ 0.5 confidence required)
-/// 7. Source code (≥ 0.5 confidence required)
-/// 8. Fallback to `PlainText` confidence 0.5
+/// 5. Human-readable Git status → `Tabular` (lossless)
+/// 6. Search results (≥ 0.6 confidence required)
+/// 7. Build / log output (≥ 0.5 confidence required)
+/// 8. Source code (≥ 0.5 confidence required)
+/// 9. Fallback to `PlainText` confidence 0.5
pub fn detect_content_type(content: &str) -> DetectionResult {
if content.is_empty() || content.trim().is_empty() {
return DetectionResult::plain_text(0.0);
@@ -319,6 +412,10 @@ pub fn detect_content_type(content: &str) -> DetectionResult {
return r;
}
}
+ if let Some(r) = try_detect_git_status(content) {
+ return r;
+ }
+
if let Some(r) = try_detect_search(content) {
if r.confidence >= 0.6 {
return r;
@@ -680,6 +777,57 @@ mod tests {
assert!(r.confidence >= 0.6);
}
+ #[test]
+ fn git_status_with_staged_unstaged_and_untracked_paths_is_tabular() {
+ let content = "\
+On branch feature/status
+Changes to be committed:
+ (use \"git restore --staged <file>...\" to unstage)
+\tnew file: staged file.txt
+
+Changes not staged for commit:
+ (use \"git add <file>...\" to update what will be committed)
+\tmodified: path with spaces.txt
+
+Untracked files:
+ (use \"git add <file>...\" to include in what will be committed)
+\tuntracked path.txt
+";
+ let result = detect_content_type(content);
+ assert_eq!(result.content_type, ContentType::Tabular);
+ assert_eq!(
+ result.metadata.get("format").and_then(Value::as_str),
+ Some("git_status")
+ );
+ }
+
+ #[test]
+ fn untracked_only_git_status_is_tabular() {
+ let content = "\
+On branch feature/status
+
+Untracked files:
+ (use \"git add <file>...\" to include in what will be committed)
+\tuntracked path with spaces.txt
+\tuntracked α.rs
+";
+ let result = detect_content_type(content);
+ assert_eq!(result.content_type, ContentType::Tabular);
+ assert_eq!(
+ result.metadata.get("format").and_then(Value::as_str),
+ Some("git_status")
+ );
+ }
+
+ #[test]
+ fn ordinary_bullet_list_is_not_git_status() {
+ let prose = "The branch has many changes:\n- modified: item one\n- modified: item two";
+ assert_eq!(
+ detect_content_type(prose).content_type,
+ ContentType::PlainText
+ );
+ }
+
#[test]
fn git_diff_detected() {
let content = "\
diff --git a/crates/headroom-core/src/transforms/live_zone.rs b/crates/headroom-core/src/transforms/live_zone.rs
index ac51519d4..a41fee3d2 100644
--- a/crates/headroom-core/src/transforms/live_zone.rs
+++ b/crates/headroom-core/src/transforms/live_zone.rs
@@ -189,6 +189,9 @@ const THRESHOLD_SOURCE_CODE: usize = 2048;
/// gate fires before dispatch, so sub-threshold prose never reaches the
/// Kompress arm wired below.
const THRESHOLD_PLAIN_TEXT: usize = 5120;
+/// Tabular text has no native compressor; keep it lossless.
+const THRESHOLD_TABULAR: usize = 512;
+
/// HTML blocks have no compressor. 512 was PlainText's pre-PR-B4 value;
/// HTML deliberately keeps it rather than following PlainText to 5120,
/// because `REALIGNMENT/04` pins no HTML threshold — when an HTML
@@ -212,6 +215,7 @@ pub const fn threshold_for(content_type: ContentType) -> usize {
ContentType::SourceCode => THRESHOLD_SOURCE_CODE,
ContentType::PlainText => THRESHOLD_PLAIN_TEXT,
ContentType::Html => THRESHOLD_HTML,
+ ContentType::Tabular => THRESHOLD_TABULAR,
}
}
@@ -1732,6 +1736,12 @@ fn dispatch_compressor(text: &str, content_type: ContentType) -> DispatchResult
// when the model isn't cache-resident, hasn't finished its
// background initialization yet, or the `ml` feature is off —
// no network call and no model build ever happens on this path.
+ // This dispatcher has no tabular compressor; preserve these rows
+ // instead of sending structured output through lossy Kompress.
+ ContentType::Tabular => DispatchResult::NoOp {
+ content_type: content_type.as_str(),
+ },
+
ContentType::PlainText => kompress_or_noop(text, content_type),
// No HTML compressor on the Rust side; pages are handled by
// upstream extractors, not the proxy.
diff --git a/docs/content/docs/how-compression-works.mdx b/docs/content/docs/how-compression-works.mdx
index 9b2fcf820..6bba8b3e4 100644
--- a/docs/content/docs/how-compression-works.mdx
+++ b/docs/content/docs/how-compression-works.mdx
@@ -35,10 +35,15 @@ The router auto-detects content type by analyzing structure and patterns. No man
| Diffs | Unified diff format | DiffCompressor | 60-80% (measured ~70% on a multi-file diff with default `max_context_lines`/`max_hunks_per_file` limits) |
| HTML | Tag structure | HTMLExtractor | 70-90% (module docstring; measured ~81% on a synthetic nav/ads/script-heavy page) |
| Tabular (CSV/TSV/markdown tables) | Delimited rows / table syntax | TabularCompressor | Varies with redundancy -- TabularCompressor bridges to SmartCrusher, so it inherits the same range (measured 26-28% on non-duplicate rows) |
+| Human-readable Git status | Branch/detached-HEAD header plus status sections and entries | Lossless passthrough (Python and Rust) | None: staged, unstaged, and untracked paths must remain intact |
| Structured config (YAML/TOML/INI) | Config syntax | ConfigCompressor | 40-70% (measured ~50% on a commented/blank-line-heavy YAML file) |
| Plain text | Text with no stronger signal | Kompress | workload-dependent |
| Anything else | Fallback chain, then passthrough if no safe saving is found | Kompress / passthrough | varies |
+Human-readable Git status is structured output, not prose: it is preserved byte-for-byte, including section labels and paths containing spaces. The router checks its structure before model classification and before selected external or lossy compressors, so CSV and wildcard plugins cannot trim status entries. This protection does not exclude all `Bash` results; ordinary prose and build logs still follow their normal routes. The recognizer covers the standard English status format (`LC_ALL=C`); localized formats are not covered.
+
+This protection also takes precedence over mixed-content splitting when a recognized status is followed by fenced code or JSON. The combined tool result is preserved rather than splitting status entries into prose sections.
+
## Quick Start
<Tabs groupId="lang" items={['TypeScript', 'Python']}>
diff --git a/headroom/transforms/content_detector.py b/headroom/transforms/content_detector.py
index 45689e84a..a92f104b0 100644
--- a/headroom/transforms/content_detector.py
+++ b/headroom/transforms/content_detector.py
@@ -215,17 +215,23 @@ def detect_content_type(content: str) -> DetectionResult:
if html_result and html_result.confidence >= 0.7:
return html_result
- # 4. Check for search results (file:line: format)
+ # Git's human-readable status is structured state, not prose. Recognize it
+ # before the lossy search/log/plain-text routes.
+ git_status_result = _try_detect_git_status(content)
+ if git_status_result:
+ return git_status_result
+
+ # 5. Check for search results (file:line: format)
search_result = _try_detect_search(content)
if search_result and search_result.confidence >= 0.6:
return search_result
- # 5. Check for build/log output
+ # 6. Check for build/log output
log_result = _try_detect_log(content)
if log_result and log_result.confidence >= 0.5:
return log_result
- # 6. Check for tabular data (CSV/TSV, markdown tables). Runs after
+ # 7. Check for tabular data (CSV/TSV, markdown tables). Runs after
# search/log so colon-delimited search output and freeform logs claim
# their content first; tabular requires a consistent multi-column
# delimiter or a markdown header+separator pair.
@@ -233,28 +239,75 @@ def detect_content_type(content: str) -> DetectionResult:
if tabular_result and tabular_result.confidence >= 0.6:
return tabular_result
- # 7. Check for structured config (YAML/TOML/INI). Runs after tabular so
+ # 8. Check for structured config (YAML/TOML/INI). Runs after tabular so
# delimited data keeps its claim, and before code so config files with
# code-ish lines route to the structure-aware config compressor.
config_result = _try_detect_structured_config(content)
if config_result and config_result.confidence >= 0.6:
return config_result
- # 8. Check for source code
+ # 9. Check for source code
code_result = _try_detect_code(content)
if code_result and code_result.confidence >= 0.5:
return code_result
- # 9. Space-aligned command output (`ls -l`, `ps aux`, `docker ps`). Last,
- # so it only claims content that would otherwise be plain text.
+ # 10. Space-aligned command output is last, only claims what would
+ # otherwise be plain text.
fixed_width_result = _try_detect_fixed_width(content)
if fixed_width_result:
return fixed_width_result
- # 10. Fallback to plain text
+ # 11. Fallback to plain text
return DetectionResult(ContentType.PLAIN_TEXT, 0.5, {})
+_GIT_STATUS_HEADERS = frozenset(
+ {
+ "Changes to be committed:",
+ "Changes not staged for commit:",
+ "Untracked files:",
+ "Unmerged paths:",
+ }
+)
+_GIT_STATUS_ENTRY_RE = re.compile(
+ r"^\s+(?:new file|modified|deleted|renamed|copied|typechange|"
+ r"both modified|both added|both deleted|added by us|deleted by us|"
+ r"added by them|deleted by them):\s+\S"
+)
+
+
+def _try_detect_git_status(content: str) -> DetectionResult | None:
+ """Recognize standard ``git status`` headings and path entries narrowly."""
+ first = content.partition("\n")[0]
+ if not first.startswith(("On branch ", "HEAD detached at ", "HEAD detached from ")):
+ return None
+ lines = content.splitlines()
+
+ has_heading = False
+ has_path = False
+ section: str | None = None
+ for line in lines[1:]:
+ if line in _GIT_STATUS_HEADERS:
+ has_heading = True
+ section = line
+ elif line in {"", "Changes not staged for commit:", "nothing to commit"}:
+ continue
+ elif line.startswith("Your branch ") or line.startswith(" (use "):
+ continue
+ elif section == "Untracked files:" and line.startswith("\t") and line[1:].strip():
+ has_path = True
+ elif section in {
+ "Changes to be committed:",
+ "Changes not staged for commit:",
+ "Unmerged paths:",
+ } and _GIT_STATUS_ENTRY_RE.match(line):
+ has_path = True
+
+ if not (has_heading and has_path):
+ return None
+ return DetectionResult(ContentType.TABULAR, 1.0, {"format": "git_status"})
+
+
_JSON_DECODER = json.JSONDecoder()
# The decoded JSON value must be at least this fraction of the content for a
# WRAPPED payload to still count as JSON: a small structural wrapper (a harness
diff --git a/headroom/transforms/content_router.py b/headroom/transforms/content_router.py
index 8355e5d0c..c8e098ff8 100644
--- a/headroom/transforms/content_router.py
+++ b/headroom/transforms/content_router.py
@@ -80,6 +80,7 @@ from .compressor_registry import (
from .content_detector import (
ContentType,
DetectionResult,
+ _try_detect_git_status,
_try_detect_log,
_try_detect_search,
_try_detect_structured_config,
@@ -1203,6 +1204,12 @@ def _detect_content(content: str) -> DetectionResult:
# the whole result misclassified as HTML/XML (#route-converter corruption).
content = _strip_detection_envelope(content)
+ # Status paths/state are structural ground truth even if Magika assigns
+ # another content type; retain the format metadata on both backends.
+ git_status = _try_detect_git_status(content)
+ if git_status is not None:
+ return git_status
+
backend = _resolve_detect_backend()
if backend == "python":
if not _detect_backend_warned:
@@ -3049,6 +3056,9 @@ class ContentRouter(Transform):
if detection is None:
detection = _detect_content(content)
+ if detection.metadata.get("format") == "git_status":
+ return CompressionStrategy.TABULAR
+
# 1. Check for mixed content
if mixed:
# 2. Verify with the native detector: ``is_mixed_content`` uses
@@ -3829,6 +3839,11 @@ class ContentRouter(Transform):
log]``). Log readers use this to see *how* we got to the
final compressor without parsing decision_reason strings.
"""
+ # Git status is path/state ground truth, not a rectangular CSV table.
+ # Preserve it before embedded-JSON, lossy-after-fold and external stages.
+ if _try_detect_git_status(_strip_detection_envelope(content)) is not None:
+ return content, _estimate_tokens(content), [CompressionStrategy.TABULAR.value]
+
# ── STRUCTURAL (embedded) JSON routing ───────────────────────────────
# Before anything else: if this block is not a single JSON value but
# CONTAINS balanced JSON span(s), route each span through this very
diff --git a/headroom/transforms/tabular_ingest.py b/headroom/transforms/tabular_ingest.py
index 4767090f2..d4188725d 100644
--- a/headroom/transforms/tabular_ingest.py
+++ b/headroom/transforms/tabular_ingest.py
@@ -136,6 +136,10 @@ def parse_tabular(
return None
fmt = detection.metadata.get("format", "csv")
+ if fmt == "git_status":
+ # Status headings and state/path entries are structured control data,
+ # but not a rectangular table; never reinterpret them as CSV rows.
+ return None
if fmt == "markdown":
headers, rows = parse_markdown_table(content)
elif fmt == "fixed_width":
diff --git a/tests/test_router_external_dispatch.py b/tests/test_router_external_dispatch.py
index 89e49eb87..7a5f9c3b0 100644
--- a/tests/test_router_external_dispatch.py
+++ b/tests/test_router_external_dispatch.py
@@ -204,6 +204,52 @@ def test_selected_external_compresses_matching_block_end_to_end(_memory_ccr):
assert comp.calls[0].content_type == "application/json"
[email protected]("mime", ["text/csv", "*/*"])
+def test_selected_external_preserves_untracked_git_status_bytes(_memory_ccr, mime):
+ status = (
+ "On branch feature/status\n\nUntracked files:\n"
+ ' (use "git add <file>..." to include in what will be committed)\n'
+ + "".join(f"\tuntracked path {i:03d} α.txt\n" for i in range(120))
+ )
+ compressor = _RecordingExternal(name="ext_status", content_types=(mime,))
+ router = _router_with_external(compressor, ["ext_status"])
+
+ direct = router.compress(status)
+ messages = [
+ {"role": "user", "content": "List every untracked path."},
+ _tool_msg("status", status),
+ {"role": "user", "content": "Keep the exact path names."},
+ ]
+ tool_result = router.apply(messages, _WordTokenizer(), model_limit=100_000)
+
+ assert direct.compressed == status
+ assert tool_result.messages[1]["content"] == status
+
+
+def test_native_misclassification_keeps_git_status_format(_memory_ccr, monkeypatch):
+ from types import SimpleNamespace
+
+ import headroom._core
+ import headroom._ort
+ from headroom.transforms.content_detector import ContentType
+ from headroom.transforms.content_router import _detect_content
+
+ monkeypatch.setenv("HEADROOM_DETECT_BACKEND", "rust")
+ monkeypatch.setattr("headroom.transforms.content_router._detect_native_unhealthy", False)
+ monkeypatch.setattr(headroom._ort, "rust_ort_runtime_compatible", lambda: True)
+ monkeypatch.setattr(
+ headroom._core,
+ "detect_content_type",
+ lambda _content: SimpleNamespace(content_type="html", confidence=1.0),
+ )
+ status = "On branch feature/status\n\nUntracked files:\n\tnew path α.txt\n"
+
+ detected = _detect_content(status)
+
+ assert detected.content_type is ContentType.TABULAR
+ assert detected.metadata["format"] == "git_status"
+
+
def test_external_dispatch_via_apply_strategy_returns_normal_shape(_memory_ccr):
comp = _RecordingExternal(name="ext_json", content_types=("application/json",))
router = _router_with_external(comp, ["ext_json"])
diff --git a/tests/test_transforms_content_router.py b/tests/test_transforms_content_router.py
index f7e2aee9e..6c37a5a9c 100644
--- a/tests/test_transforms_content_router.py
+++ b/tests/test_transforms_content_router.py
@@ -2009,6 +2009,51 @@ def _block_out(router: ContentRouter, content: str, model_limit: int) -> str:
return result.messages[0]["content"][0]["content"]
+ "suffix",
+ ["", '\n```python\nprint("hello")\n```\n', '\n{"records":[{"name":"extra","value":1}]}\n'],
+ ids=["status", "fenced-code", "json"],
+)
+def test_git_status_output_stays_byte_exact_on_direct_and_tool_routes(
+ monkeypatch: pytest.MonkeyPatch, suffix: str
+) -> None:
+ status = """On branch feature/status
+Changes to be committed:
+ (use "git restore --staged <file>..." to unstage)
+\tnew file: staged path with spaces.txt
+\tmodified: another staged path.txt
+ new file: staged path with several spaces and a longer filename.txt
+ modified: additional staged file.txt
+
+Changes not staged for commit:
+ (use "git add <file>..." to update what will be committed)
+\tmodified: edited path with spaces.txt
+\tdeleted: removed path.txt
+
+Untracked files:
+ (use "git add <file>..." to include in what will be committed)
+\tnew untracked path.txt
+"""
+ status += suffix
+ router = ContentRouter(ContentRouterConfig())
+
+ class LossyProseCompressor:
+ def is_ready(self) -> bool:
+ return True
+
+ def compress(self, content: str, **_kwargs: object) -> SimpleNamespace:
+ compressed = "\n".join(content.splitlines()[::2])
+ return SimpleNamespace(compressed=compressed, compressed_tokens=1)
+
+ monkeypatch.setattr(router, "_get_kompress", lambda: LossyProseCompressor())
+
+ direct = router.compress(status)
+ tool_result = _block_out(router, status, model_limit=100_000)
+
+ assert direct.compressed == status
+ assert tool_result == status
+
+
def test_block_freeze_off_is_byte_identical_flapping_baseline(
monkeypatch: pytest.MonkeyPatch,
) -> None:
diff --git a/tests/test_transforms_tabular.py b/tests/test_transforms_tabular.py
index 377761a5d..bbe0ea044 100644
--- a/tests/test_transforms_tabular.py
+++ b/tests/test_transforms_tabular.py
@@ -174,12 +174,6 @@ def test_detects_fixed_width_command_output(content: str) -> None:
ContentType.PLAIN_TEXT,
id="c_defines",
),
- pytest.param(
- 'On branch main\nChanges not staged for commit:\n (use "git add <file>..." to update what will be committed)\n'
- + "\n".join(f"\tmodified: src/m_{i}.py" for i in range(10)),
- ContentType.PLAIN_TEXT,
- id="git_status",
- ),
pytest.param(
"3aa5012 perf(memory/budget): precompute word sets once\nc81378c fix(grok): preserve xAI model context metadata\nb0c19a2 fix(security): reject unauthenticated public proxy binds\n871bbde fix(proxy): reject Anthropic batch operations on Copilot\na29162b fix(dashboard): separate rolling cache economics by owner",
ContentType.PLAIN_TEXT,
@@ -196,6 +190,20 @@ def test_fixed_width_does_not_claim_non_tables(content: str, expected: ContentTy
assert detect_content_type(content).content_type is expected
+def test_git_status_is_not_a_rectangular_table() -> None:
+ status = (
+ "On branch main\nChanges not staged for commit:\n"
+ ' (use "git add <file>..." to update what will be committed)\n'
+ + "\n".join(f"\tmodified: src/m_{i}.py" for i in range(10))
+ )
+
+ detected = detect_content_type(status)
+
+ assert detected.content_type is ContentType.TABULAR
+ assert detected.metadata["format"] == "git_status"
+ assert parse_tabular(status) is None
+
+
# Detection — edge branches --------------------------------------------------