Repository navigation
Closed
Labels
type:fixBug fix
Description
Small-scope fixes aggregated from adversarial audit
Each item is a 1-15 line change with minimal blast radius. Grouped by module.
Parsers (2 items)
-
chatgpt.py:58— wrapraw_rolewithstr()beforeRole.normalize()[ref fix(parsers): Role.normalize() crashes on non-string role values #469] -
claude_common.py:101— samestr()guard [ref fix(parsers): Role.normalize() crashes on non-string role values #469]
Hashing (1 item)
-
pipeline/ids.py:60-73— addunicodedata.normalize("NFC", ...)to_normalize_for_hash()[ref perf: facade search bypasses FTS5 + startup overhead + sync_bridge thread-per-call #472]
Storage/DB (6 items)
-
fts_lifecycle.py:114-130— fix_ACTION_FTS_TRIGGER_DDLto match actual 6-column schema [ref fix(fts): action-event FTS trigger DDL references wrong columns #467] -
schema_ddl_actions.py:73,78— change FTS triggers fromWHERE event_id = old.event_idtoWHERE rowid = old.rowid[ref fix(fts): action-event FTS triggers use UNINDEXED event_id instead of rowid #484] -
schema_ddl_product_profiles.py:73-74— samerowidfix for session profile FTS triggers -
readiness.py:588-597— usedb_path()instead ofarchive_root / "polylogue.db"[ref fix(storage): connection leaks, readiness DB path, unbounded queries #473] -
ingest_batch.py:435— fix misleading comment ("Always upsert" is wrong when WHERE blocks it) -
conversations_writes.py/ingest_batch.py:169— useCOALESCE(excluded.metadata, conversations.metadata)to preserve tags on content change [ref fix(storage): connection leaks, readiness DB path, unbounded queries #473]
Config/paths (3 items)
-
privacy_config.py:138-140— replace duplicate_xdg_config_home()with import frompolylogue.paths -
config.py:68,75— remove deadfts_enabledfield -
privacy.py:219— fixmax_length or _SAFE_ENUM_MAX_LEN→max_length if max_length is not None else _SAFE_ENUM_MAX_LEN
Logging/output (3 items)
-
logging.py:148— respectPOLYLOGUE_FORCE_PLAINfor structlog colors -
rendering/core_markdown.py:55-57— escape#and###headings, not just## -
rendering/formatting.py:142-159— prefix CSV cells starting with=,+,-,@with'to prevent injection
CLI (5 items)
-
query_verbs.py:76-86— fixopen_verbto concatenate parent + target terms likeshow_verb[ref fix(cli): open_verb fails provider:id routing + UX polish #471] -
query_verbs.py:89-107— fixshow_verbhelp text ("default streaming output" → "full-content output") -
commands/export.py:43— documentprovider:idformat in help text -
query_verbs.py:112-116— routebulk-exportthrough tail-wrapping logic for--tailsupport -
helper_summary.py— add onboarding hint when archive is empty
MCP (3 items)
-
server_support.py:81-94— add upper bound to_clamp_limit(e.g.,min(limit, 1000)) -
server_tools.py:214— useLiteral["provider", "month", "year"]forgroup_by -
conversations_identity.py:15-31— addstrict=Trueflag for destructive operations, require exact ID match for delete
Build/packaging (3 items)
-
flake.nix:57— addh2dependency for httpx[http2] support -
hatch_build.py:61-62— fixfinalize()to not break sdist builds - Replace
typing_extensionsimports with stdlibtyping(Python >=3.11)
Dead code removal (2 items)
- Delete
cli/commands/embed.py(orphaned module, only imported by tests) - Update
tests/unit/cli/test_embed.pyto import fromembed_runtime/embed_statsdirectly
Pricing/products (2 items)
-
pricing.py:194-210— sortPRICINGdict keys by length descending for model name prefix matching -
archive_products.py:429-435— add timezone awareness toprofile_bucket_day()
Minor security hardening (2 items)
-
site/publication_flow.py:215— strip absoluteoutput_dirfrom manifest -
blob_store.py:88,connection.py:89— addos.chmod(0o600)on db and blob files
Documentation (1 item)
-
cli/commands/check.py:31— renamedoctorcommand or addcheck/healthaliases for discoverability
Discovered during adversarial audit 2026-04-26.
Metadata
Metadata
Assignees
Labels
type:fixBug fix
Activity
fix: aggregate small fixes from adversarial audit (waves 1+2)
fix: aggregate small fixes from adversarial audit (waves 1+2) (#489)