mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-19 22:54:36 +01:00
/sync-gbrain reports failed pushes and imports instead of OK, and one bad queued path no longer blocks artifacts sync (#4455)
/sync-gbrain now says when an artifacts push failed or memory pages failed to import, instead of printing OK and "pushed", and one malformed queued path (from a skill started where the project slug was empty) no longer stops artifacts sync for every project. Why: people trusted those rows and lost track of unsynced work; fixes #4445, #4418 and #4417. Nothing to do after upgrading: a stuck `projects//timeline.jsonl` record is dropped and reported on the next sync. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/red-team#2 reader=red-team Review-Finding: p1/specialist-batched#1 reader=testing Review-Finding: p1/specialist-batched#2 reader=testing Review-Finding: p1/specialist-batched#3 reader=testing
This commit is contained in:
1 parent
88da124dbc
commit
bc64f5e210
11 files changed
+451
-58
No files matched your search
+13
-3
@@ -352,6 +352,16 @@ still run. State is persisted to `~/.gstack/.gbrain-sync-state.json` via
|
||||
tmp-file + atomic rename. Concurrent runs are blocked by a lock file at
|
||||
`~/.gstack/.sync-gbrain.lock` (5-min stale-takeover).
|
||||
|
||||
Report each stage row as printed, never better than it is:
|
||||
- **memory**: `OK` only when no page failed. `WARN` means some pages failed and
|
||||
`ERR` means pages failed and none imported; give the failed count and the
|
||||
first cause from the row, and say failed pages retry next run.
|
||||
- **brain-sync**: say artifacts were pushed only when the row says
|
||||
`curated artifacts pushed`. `nothing new to push` means this run had nothing
|
||||
to send; `artifacts not pushed (<status>: ...)` means the push failed, was
|
||||
blocked or stopped, and the commits and queue are kept for the next run.
|
||||
Point the user at `gstack-brain-sync --status` for the cause.
|
||||
|
||||
---
|
||||
|
||||
## Step 3: Code-index health check
|
||||
@@ -679,9 +689,9 @@ transient or machine-local failure. Agents must not treat unknown as ready.
|
||||
## Status reporting
|
||||
|
||||
End with a Completion Status (per the preamble protocol):
|
||||
- **DONE** — all stages green, CLAUDE.md guidance block present, verdict GREEN.
|
||||
- **DONE_WITH_CONCERNS** — sync ran but at least one stage failed or capability
|
||||
read was unverified. List which and preserve retry guidance.
|
||||
- **DONE** — all stages `OK`, CLAUDE.md guidance block present, verdict GREEN.
|
||||
- **DONE_WITH_CONCERNS** — sync ran but at least one stage is `WARN` or `ERR`, or
|
||||
the capability read was unverified. List which and preserve retry guidance.
|
||||
- **BLOCKED** — could not acquire lock, gbrain not on PATH, or per-repo policy
|
||||
is deny. State the blocker.
|
||||
- **NEEDS_CONTEXT** — /setup-gbrain has not been run, or `gbrain doctor` shows
|
||||
|
||||
@@ -280,6 +280,16 @@ still run. State is persisted to `~/.gstack/.gbrain-sync-state.json` via
|
||||
tmp-file + atomic rename. Concurrent runs are blocked by a lock file at
|
||||
`~/.gstack/.sync-gbrain.lock` (5-min stale-takeover).
|
||||
|
||||
Report each stage row as printed, never better than it is:
|
||||
- **memory**: `OK` only when no page failed. `WARN` means some pages failed and
|
||||
`ERR` means pages failed and none imported; give the failed count and the
|
||||
first cause from the row, and say failed pages retry next run.
|
||||
- **brain-sync**: say artifacts were pushed only when the row says
|
||||
`curated artifacts pushed`. `nothing new to push` means this run had nothing
|
||||
to send; `artifacts not pushed (<status>: ...)` means the push failed, was
|
||||
blocked or stopped, and the commits and queue are kept for the next run.
|
||||
Point the user at `gstack-brain-sync --status` for the cause.
|
||||
|
||||
---
|
||||
|
||||
## Step 3: Code-index health check
|
||||
@@ -607,9 +617,9 @@ transient or machine-local failure. Agents must not treat unknown as ready.
|
||||
## Status reporting
|
||||
|
||||
End with a Completion Status (per the preamble protocol):
|
||||
- **DONE** — all stages green, CLAUDE.md guidance block present, verdict GREEN.
|
||||
- **DONE_WITH_CONCERNS** — sync ran but at least one stage failed or capability
|
||||
read was unverified. List which and preserve retry guidance.
|
||||
- **DONE** — all stages `OK`, CLAUDE.md guidance block present, verdict GREEN.
|
||||
- **DONE_WITH_CONCERNS** — sync ran but at least one stage is `WARN` or `ERR`, or
|
||||
the capability read was unverified. List which and preserve retry guidance.
|
||||
- **BLOCKED** — could not acquire lock, gbrain not on PATH, or per-repo policy
|
||||
is deny. State the blocker.
|
||||
- **NEEDS_CONTEXT** — /setup-gbrain has not been run, or `gbrain doctor` shows
|
||||
|
||||
Reference in new issue
Block a user