Luigit
repositories / termux-janitor

termux-janitor

Interactive cleanup assistant for Termux: transparent, safe, confirmed disk reclamation.

owned by admin

spec/model/limits.zon

Raw
.{
    .{
        .id = "raw_path_bytes",
        .category = .scan,
        .label = "Raw path bytes",
        .value = .{ .scalar = .{ .value = 4096, .unit = .bytes } },
    },
    .{
        .id = "raw_component_bytes",
        .category = .scan,
        .label = "Raw component bytes",
        .value = .{ .scalar = .{ .value = 255, .unit = .bytes } },
    },
    .{
        .id = "symlink_target_bytes",
        .category = .scan,
        .label = "Symlink target bytes",
        .value = .{ .scalar = .{ .value = 4096, .unit = .bytes } },
    },
    .{
        .id = "traversal_depth",
        .category = .scan,
        .label = "Traversal depth",
        .value = .{ .scalar = .{ .value = 256, .unit = .components } },
    },
    .{
        .id = "configured_scan_roots",
        .category = .scan,
        .label = "Configured scan roots",
        .value = .{ .scalar = .{ .value = 64, .unit = .count } },
    },
    .{
        .id = "workspace_roots",
        .category = .scan,
        .label = "Workspace roots",
        .value = .{ .scalar = .{ .value = 32, .unit = .count } },
    },
    .{
        .id = "document_roots",
        .category = .scan,
        .label = "Document roots",
        .value = .{ .scalar = .{ .value = 32, .unit = .count } },
    },
    .{
        .id = "exclusions",
        .category = .scan,
        .label = "Exclusions",
        .value = .{ .scalar = .{ .value = 256, .unit = .count } },
    },
    .{
        .id = "manual_only_rules",
        .category = .scan,
        .label = "Additional manual-only rules",
        .value = .{ .scalar = .{ .value = 256, .unit = .count } },
    },
    .{
        .id = "filesystem_identity_domains",
        .category = .scan,
        .label = "Filesystem identity domains",
        .value = .{ .scalar = .{ .value = 128, .unit = .count } },
    },
    .{
        .id = "retained_findings",
        .category = .scan,
        .label = "Retained findings",
        .value = .{ .scalar = .{ .value = 32768, .unit = .count } },
    },
    .{
        .id = "retained_package_records",
        .category = .scan,
        .label = "Retained package records",
        .value = .{ .scalar = .{ .value = 16384, .unit = .count } },
    },
    .{
        .id = "retained_warnings",
        .category = .scan,
        .label = "Retained warnings",
        .value = .{ .scalar = .{ .value = 4096, .unit = .count } },
    },
    .{
        .id = "hard_link_identity_records",
        .category = .scan,
        .label = "Hard-link identity records",
        .value = .{ .scalar = .{ .value = 65536, .unit = .count } },
    },
    .{
        .id = "plan_actions",
        .category = .scan,
        .label = "Plan actions",
        .value = .{ .scalar = .{ .value = 8192, .unit = .count } },
    },
    .{
        .id = "manifest_entries_per_action",
        .category = .scan,
        .label = "Manifest entries per action",
        .value = .{ .scalar = .{ .value = 32768, .unit = .count } },
    },
    .{
        .id = "manifest_entries_per_plan",
        .category = .scan,
        .label = "Manifest entries across a plan",
        .value = .{ .scalar = .{ .value = 131072, .unit = .count } },
    },
    .{
        .id = "expected_effects_per_plan",
        .category = .scan,
        .label = "Expected effects across a plan",
        .value = .{ .scalar = .{ .value = 65536, .unit = .count } },
    },
    .{
        .id = "child_process_groups",
        .category = .process,
        .label = "Concurrent child process groups",
        .value = .{ .scalar = .{ .value = 16, .unit = .count } },
    },
    .{
        .id = "arguments_per_invocation",
        .category = .process,
        .label = "Arguments per invocation",
        .value = .{ .scalar = .{ .value = 4096, .unit = .count } },
    },
    .{
        .id = "argument_vector_bytes",
        .category = .process,
        .label = "Bytes across one argument vector",
        .value = .{ .scalar = .{ .value = 262144, .unit = .bytes } },
    },
    .{
        .id = "captured_stdout_bytes",
        .category = .process,
        .label = "Captured stdout per child",
        .value = .{ .scalar = .{ .value = 1048576, .unit = .bytes } },
    },
    .{
        .id = "captured_stderr_bytes",
        .category = .process,
        .label = "Captured stderr per child",
        .value = .{ .scalar = .{ .value = 1048576, .unit = .bytes } },
    },
    .{
        .id = "normalized_diagnostics_bytes",
        .category = .process,
        .label = "Normalized diagnostics per action",
        .value = .{ .scalar = .{ .value = 65536, .unit = .bytes } },
    },
    .{
        .id = "test_process_timeout",
        .category = .process,
        .label = "Test child process timeout",
        .value = .{ .scalar = .{ .value = 30, .unit = .seconds } },
    },
    .{
        .id = "discovery_timeout",
        .category = .process,
        .label = "Discovery operation timeout",
        .value = .{ .scalar = .{ .value = 30, .unit = .seconds } },
    },
    .{
        .id = "planning_timeout",
        .category = .process,
        .label = "Planning operation timeout",
        .value = .{ .scalar = .{ .value = 120, .unit = .seconds } },
    },
    .{
        .id = "mutation_timeout",
        .category = .process,
        .label = "Mutation operation timeout",
        .value = .{ .scalar = .{ .value = 30, .unit = .minutes } },
    },
    .{
        .id = "interrupt_grace_period",
        .category = .process,
        .label = "Interrupt grace period",
        .value = .{ .scalar = .{ .value = 2, .unit = .seconds } },
    },
    .{
        .id = "termination_grace_period",
        .category = .process,
        .label = "Termination grace period",
        .value = .{ .scalar = .{ .value = 2, .unit = .seconds } },
    },
    .{
        .id = "kill_and_reap_period",
        .category = .process,
        .label = "Kill-and-reap period",
        .value = .{ .scalar = .{ .value = 5, .unit = .seconds } },
    },
    .{
        .id = "fixed_workers",
        .category = .queue,
        .label = "Fixed workers",
        .value = .{ .scalar = .{ .value = 4, .unit = .count } },
    },
    .{
        .id = "pending_worker_jobs",
        .category = .queue,
        .label = "Pending worker jobs",
        .value = .{ .scalar = .{ .value = 1024, .unit = .count } },
    },
    .{
        .id = "worker_completions",
        .category = .queue,
        .label = "Worker completions",
        .value = .{ .scalar = .{ .value = 1024, .unit = .count } },
    },
    .{
        .id = "ui_events",
        .category = .queue,
        .label = "UI events",
        .value = .{ .scalar = .{ .value = 2048, .unit = .count } },
    },
    .{
        .id = "input_bytes_per_turn",
        .category = .queue,
        .label = "Input bytes decoded per turn",
        .value = .{ .scalar = .{ .value = 4096, .unit = .bytes } },
    },
    .{
        .id = "events_per_turn",
        .category = .queue,
        .label = "Events applied per turn",
        .value = .{ .scalar = .{ .value = 256, .unit = .count } },
    },
    .{
        .id = "cells_per_turn",
        .category = .queue,
        .label = "Cells compared per turn",
        .value = .{ .scalar = .{ .value = 32768, .unit = .cells } },
    },
    .{
        .id = "terminal_bytes_per_turn",
        .category = .queue,
        .label = "Terminal bytes offered per turn",
        .value = .{ .scalar = .{ .value = 65536, .unit = .bytes } },
    },
    .{
        .id = "terminal_writes_per_turn",
        .category = .queue,
        .label = "Terminal writes attempted per turn",
        .value = .{ .scalar = .{ .value = 16, .unit = .count } },
    },
    .{
        .id = "worker_cancellation_interval",
        .category = .queue,
        .label = "CPU work between worker cancellation checks",
        .value = .{ .alternative = .{ .items = 4096, .milliseconds = 10 } },
    },
    .{
        .id = "ui_work_per_turn",
        .category = .queue,
        .label = "UI application work per turn",
        .value = .{ .scalar = .{ .value = 8, .unit = .milliseconds } },
    },
    .{
        .id = "input_acknowledgement",
        .category = .queue,
        .label = "Input-state acknowledgement",
        .value = .{ .scalar = .{ .value = 50, .unit = .milliseconds } },
    },
    .{
        .id = "terminal_input_buffer_bytes",
        .category = .terminal,
        .label = "Input buffer",
        .value = .{ .scalar = .{ .value = 4096, .unit = .bytes } },
    },
    .{
        .id = "escape_sequence_bytes",
        .category = .terminal,
        .label = "One escape sequence",
        .value = .{ .scalar = .{ .value = 64, .unit = .bytes } },
    },
    .{
        .id = "escape_ambiguity_timeout",
        .category = .terminal,
        .label = "Escape ambiguity timeout",
        .value = .{ .scalar = .{ .value = 30, .unit = .milliseconds } },
    },
    .{
        .id = "cell_grid_dimensions",
        .category = .terminal,
        .label = "Initialized cell grid",
        .value = .{ .dimensions = .{ .columns = 256, .rows = 128 } },
    },
    .{
        .id = "pending_terminal_output_bytes",
        .category = .terminal,
        .label = "Pending terminal output",
        .value = .{ .scalar = .{ .value = 1048576, .unit = .bytes } },
    },
    .{
        .id = "terminal_restoration_attempts",
        .category = .terminal,
        .label = "Terminal restoration attempts",
        .value = .{ .scalar = .{ .value = 4, .unit = .count } },
    },
    .{
        .id = "terminal_restoration_interval",
        .category = .terminal,
        .label = "Total restoration interval",
        .value = .{ .scalar = .{ .value = 100, .unit = .milliseconds } },
    },
    .{
        .id = "log_payload_bytes",
        .category = .logging,
        .label = "One framed log payload",
        .value = .{ .scalar = .{ .value = 16777216, .unit = .bytes } },
    },
    .{
        .id = "diagnostic_argument_bytes",
        .category = .logging,
        .label = "One argument echoed by a startup diagnostic",
        .value = .{ .scalar = .{ .value = 64, .unit = .bytes } },
    },
    .{
        .id = "escaped_log_value_bytes",
        .category = .logging,
        .label = "One escaped path or argument",
        .value = .{ .scalar = .{ .value = 16384, .unit = .bytes } },
    },
    .{
        .id = "log_write_attempts",
        .category = .logging,
        .label = "Log write attempts per frame",
        .value = .{ .scalar = .{ .value = 4096, .unit = .count } },
    },
    .{
        .id = "log_eintr_retries",
        .category = .logging,
        .label = "EINTR retries per write or flush",
        .value = .{ .scalar = .{ .value = 64, .unit = .count } },
    },
    .{
        .id = "audit_events_per_action",
        .category = .logging,
        .label = "Audit events reserved per admitted action",
        .value = .{ .scalar = .{ .value = 2, .unit = .count } },
    },
}