Skip to content

Lane F ratchet coverage: include AI server cognition shims #1403

@joelteply

Description

@joelteply

Problem\n\n#1401 added the persona TS cognition ratchet for six watched directories under . During #1402 validation, ==> Refreshing baseline at /Users/joelteply/Development/cambrian/continuum/scripts/ratchet/persona-ts-baseline.txt

==> Baseline written: 34 files, 8583 LOC across 6 watched dirs. produced no meaningful baseline change after deleting ~115 lines from .\n\nThat means the current ratchet does not mechanically lock deletion gains in the AI server shim surface. The code is moving in the right direction, but the ratchet coverage is narrower than the AIRC discussion assumed.\n\n## Required outcome\n\nExpand Lane F ratchet coverage or add a sibling ratchet so runtime cognition shims under cannot grow after Rust migration.\n\n## Constraints\n\n- Do not block generated/type-only files unnecessarily.\n- Do not reintroduce TypeScript cognition logic.\n- Keep runtime cognition Rust-owned; TS may remain as thin IPC transport only where still required.\n- Add tests proving growth in or new verb-shaped AI server TS fails.\n\n## Evidence\n\n- #1401 baseline: 8583 LOC across six watched dirs.\n- #1402 deletion: shim + dead prompt builder deletion, but baseline refresh only changed timestamp/order and was reverted.\n\n## Validation target\n\n- PASS clean_baseline_passes
PASS loc_growth_in_existing_file_fails
PASS new_unallowed_ts_file_fails
PASS new_allowlisted_generated_passes
PASS new_types_file_passes
PASS deletion_after_refresh_passes
PASS missing_baseline_returns_2
PASS refresh_writes_baseline_idempotently

================================
Pass: 8 Fail: 0
================================ or successor test covers the AI server shim path.\n- ratchet: OK — persona TS cognition stayed at or below baseline (8583 LOC across 6 dirs). fails when AI server cognition TS grows without an explicit allowlist entry.\n

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions