Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

People: a missing Gmail credential is reported as `failed`, not `skipped`, so the hourly job exits 1 forever

Open DolphusCY opened this issue 1 month ago • 1 comments

What: LIFEOS/PEOPLE/tick.ts rule 2 says a source with no key configured reports skipped. Gmail with no mailbox credential throws "Google credentials unresolved — found no mailbox credentials …" and is recorded failed, so the hourly People job exits 1 forever on installs that don't use Google OAuth.

Fix (applied locally, tick then reports "all sources ok", exit 0): before syncGmail, return { status: "skipped", note: "no Google mailbox credentials configured" } when GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE is unset and listMailboxCreds() is empty.

Related, also People: under launchd the Apple source is always blocked, because macOS gives Contacts access to the program a job starts (bun), and bun can never be granted. What worked here: a tiny signed app wrapping ContactsCli, scheduled as its own launchd job with the app's executable as the main program, writing the audit JSON to a file that apple.ts reads while fresh.


LifeOS 8.761.0, isolated install (CLAUDE_CONFIG_DIR + separate HOME), macOS, Bun 1.3.9. Found during an audit of a test install; evidence and a generated architecture map available on request.

DolphusCY avatar Oct 30 '26 18:10 DolphusCY

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @DolphusCY. The Gmail half is fixed: with no mailbox credential the source records skipped instead of failed, so the hourly job no longer exits 1 on installs that do not use Google. An ambiguous mailbox set still fails. The Apple-under-launchd wrapper you describe is not part of this change. This lands in the next release.

danielmiessler avatar Nov 06 '26 13:11 danielmiessler