Skip to content

Commit c5cb8e0

Browse files
committed
Refactor ask_self scaffold and remove JS originals
1 parent e497411 commit c5cb8e0

16 files changed

Lines changed: 1465 additions & 1029 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ npm-debug.log*
9797
yarn-debug.log*
9898
yarn-error.log*
9999
package-lock.json
100+
__pycache__/
101+
*.pyc
102+
.pytest_cache/
100103

101104
# Composer (if PHP dependencies added)
102105
vendor/

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ All notable changes to this project will be documented in this file.
1010

1111
- N+1 loop detection (`find_meta_in_loop_line`) now uses brace-depth tracking to verify `get_*_meta` calls are lexically inside a loop body, not just within 80 lines of a loop keyword. Eliminates false positives from sequential meta calls after loop closure
1212

13+
- Renamed the Python self-ask scaffold directory from `ask-self` to `ask_self` and refactored ingest/query scripts to use a repo-specific harness config. The scaffold can now swap corpus rules, repo labels, DB naming, PR defaults, and tenancy env vars without changing core code
14+
- Replaced the self-ask prompts file with a user-editable `ask_self_system_instructions.json` convention and added layered synthesis instructions for Gemini Pro. Final answers can now return structured question assessment plus a suggested better question when the original ask is too vague, broad, or underspecified
15+
- Added `ask_self/README.md` as a maintainer-oriented architectural overview for spinning the scaffold into its own repo. The harness now auto-loads credentials from a gitignored `temp/ask-self-rag.env` path by default so runtime secrets stay out of committed files
16+
1317
- Tightened `limit-multiplier-from-count` JSON pattern to require `count(...) * <number>` instead of matching any `count()` call. Eliminates false positives from display/comparison uses of `count()`
1418

1519
- `rest-no-pagination` now skips non-GET endpoints (POST, PUT, DELETE, PATCH) via new `skip_if_context_matches` scripted runner feature. Reduces false positives on action/mutation endpoints where pagination is inapplicable

ask-self-orig/helpers.js

Lines changed: 0 additions & 120 deletions
This file was deleted.

ask-self-orig/index.js

Lines changed: 0 additions & 171 deletions
This file was deleted.

0 commit comments

Comments
 (0)