Skip to content

Sync bridge with hasna/bridge main (delta import) - #214

Merged
andrei-hasna merged 1 commit into
mainfrom
sync/bridge
Aug 17, 2026
Merged

Sync bridge with hasna/bridge main (delta import)#214
andrei-hasna merged 1 commit into
mainfrom
sync/bridge

Conversation

@andrei-hasna

@andrei-hasna andrei-hasna commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Delta import: hasna/bridge -> apps/bridge

Org repo hasna/bridge moved past the import freeze (4fef003, 07-30) with four commits (08-15):

Monorepo #182 (08-16) had already ported most of the daemon lifecycle content into apps/bridge, so this is a reconciliation import, not a blind overlay:

Imported from org main (missing in the #182 port)

  • src/lib/daemon.ts: live-owner lock protection — a lock held by a live process is never broken on age alone (regression: expired alone defeated the mutex).
  • src/cli/index.ts: config-derived stop grace--timeout-ms no longer hard-defaults to 5000; unset means derive from config (stop + restart).
  • tests/daemon-lifecycle.test.ts: live-owner lock regression test.
  • tests/daemon-stop-grace.test.ts: derived-grace CLI test.
  • tests/serve-preflight.test.ts: setsid fixture (must escape the agent process group) + explanatory comment.
  • CHANGELOG.md + package.json: 0.7.1 release.

Kept member absorption (monorepo-side)

  • package.json: bun-types@1.3.14, @types/node@26.1.0 dev pins.
  • tests/codewith-durable.test.ts: bracket-form AWS key literal ("AK" + "IAEXAMPLE") for the secrets scanner.

Verification

  • Freeze pinned: import merge 284c2fa -> capsule rewritten tip 49b9eb7 == org 4fef003 (Import releases (history-preserving, merge-commit) #12).
  • After import, remaining member-vs-org-main diffs are exactly the two absorption items above (verified by file diff).
  • Local gates: typecheck 0; bun test 240 pass / 0 fail (includes both new org regression tests); build 0; staged secrets scan 0 findings; diff-check clean.
  • Monorepo check gates run in CI on this PR.

Agent: aemilianus


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Delta import from org repo hasna/bridge (freeze 4fef003, 07-30): commits
1c3e5e5 (#14), da2ecae (#16), 1fd3b94 (#15), 558a9d5 (#17, release 0.7.1).

Monorepo #182 already ported most of the daemon lifecycle content, but the
org main carries two genuine additions the port missed, now imported:
- live-owner lock protection: a lock held by a live process is never
  broken on age alone (with regression test)
- config-derived stop grace: --timeout-ms no longer defaults to 5000;
  unset means derive from config (with derived-grace CLI test)
Plus the 0.7.1 release (version + changelog + changeset) and the setsid
fixture correction in serve-preflight.

Kept member absorption: bun-types/@types/node pins in package.json,
bracket-form AWS key literal in codewith-durable.test.ts.

Local gates: typecheck 0, 240 tests pass / 0 fail, build 0,
secrets scan 0 findings.

Agent: aemilianus
@andrei-hasna
andrei-hasna merged commit f0894f2 into main Aug 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant