projecta-rrr 1.21.6 → 1.21.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +61 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,67 @@ All notable changes to RRR will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
6
|
|
|
7
|
+
## [1.21.8] - 2026-04-18
|
|
8
|
+
|
|
9
|
+
**End-to-end verified on a second repo. Multiple worker bootstrap fixes.**
|
|
10
|
+
|
|
11
|
+
Dogfood adoption of `PA-Ai-Team/aeo-free-aduit` surfaced and fixed a
|
|
12
|
+
multi-step first-time-index bootstrap bug in the worker. Result:
|
|
13
|
+
155 chunks ingested in 17 seconds, HNSW index built, `semantic_search`
|
|
14
|
+
live. Verifies the full onboarding path works for any new repo.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- **Worker now bootstraps first-time repos.** Before: worker's
|
|
19
|
+
`recordJobStart` tried to INSERT into `ingestion_jobs` using a
|
|
20
|
+
`pending:{slug}` placeholder repo_id that didn't exist in `repos`,
|
|
21
|
+
hitting the FK constraint. Fix: added a bootstrap step at top of the
|
|
22
|
+
processor that detects `pending:` prefix and — BEFORE any DB write —
|
|
23
|
+
clones, computes real root_sha, upserts the `repos` row, and rewrites
|
|
24
|
+
local `repoId` to the real value. All downstream DB operations then
|
|
25
|
+
satisfy FK + RLS + NOT NULL constraints.
|
|
26
|
+
|
|
27
|
+
- **Owner/repo parsed from gitUrl.** Tool was setting
|
|
28
|
+
`owner = slug = repo = <slug>` which broke GH App token mint. Now
|
|
29
|
+
parses `github.com/{owner}/{repo}(.git)?` via regex and passes correct
|
|
30
|
+
owner + repo to `cloneRepo`.
|
|
31
|
+
|
|
32
|
+
- **GH App auth path preferred when installation_id present.** When
|
|
33
|
+
`installation_id` is supplied, tool now passes `gitUrl: null` so
|
|
34
|
+
`cloneRepo` takes the token-mint branch (private-repo-safe). When
|
|
35
|
+
installation_id is absent, passes `gitUrl` through for the public-repo
|
|
36
|
+
direct-URL branch. Worker bootstrap mirrors the same conditional.
|
|
37
|
+
|
|
38
|
+
- **`repos.git_url` NOT NULL respected.** When bootstrap forced
|
|
39
|
+
`gitUrl = null` for the clone (GH App path), it no longer tried to
|
|
40
|
+
pass null into `repos.git_url`. Reconstructs
|
|
41
|
+
`https://github.com/{owner}/{repo}.git` from parsed owner/repo.
|
|
42
|
+
|
|
43
|
+
### Dogfood timing reference
|
|
44
|
+
|
|
45
|
+
| Stage | aeo-free-aduit (155 chunks) | projecta-rrr (10,047 chunks) |
|
|
46
|
+
|-------|----------------------------|------------------------------|
|
|
47
|
+
| Clone | 0.8s | 4.6s |
|
|
48
|
+
| Chunk | 0.3s | 2.3s |
|
|
49
|
+
| Embed | 13s (2 batches) | 4 min (115 batches) |
|
|
50
|
+
| COPY + HNSW | 0.8s | 10s |
|
|
51
|
+
| **Total** | **17s** | **~5 min** |
|
|
52
|
+
| Voyage cost | ~$0.028 | ~$1.70 |
|
|
53
|
+
|
|
54
|
+
## [1.21.7] - 2026-04-18
|
|
55
|
+
|
|
56
|
+
### Fixed
|
|
57
|
+
|
|
58
|
+
- **`index_repo` FK violation on ingestion_jobs.repo_id.** v1.21.6 fixed
|
|
59
|
+
the NOT NULL by using `pending:{slug}` placeholder, but the column also
|
|
60
|
+
has a FOREIGN KEY to `repos.repo_id`. First-time indexes don't yet have
|
|
61
|
+
a repos row, so the FK fails. Fix: remove the up-front INSERT entirely.
|
|
62
|
+
The worker (75-05 processor) inserts the ingestion_jobs row itself
|
|
63
|
+
AFTER cloning and computing repo_id, which satisfies both NOT NULL
|
|
64
|
+
and FK. Job-status observability is via BullMQ + worker-written rows.
|
|
65
|
+
- Verified end-to-end: `tools/call index_repo` → `{job_id, repo_id: ""}`
|
|
66
|
+
→ worker clones → ingest completes.
|
|
67
|
+
|
|
7
68
|
## [1.21.6] - 2026-04-18
|
|
8
69
|
|
|
9
70
|
### Fixed
|
package/package.json
CHANGED