# Capture changes into my fork

You're integrating one or more commits from a sibling GitHub fork into
the CURRENT WORKING DIRECTORY. The CWD should already be a clean git
working tree on a branch you're willing to commit to.

## Source thread: crazydiseases is turning Mike into a UK legal-research desk

The fork now lets the chat assistant pull straight from four UK public-data sources mid-conversation.

| # | SHA | Subject | Fork | Authored |
|---|-----|---------|------|----------|
| 1 | [`2dc360a5`](https://github.com/crazydiseases/mike/commit/2dc360a5662bb62aa94579c8d5fdf2d1522484c8) | Create companieshouse.ts | `crazydiseases/mike` | 2026-06-20 |
| 2 | [`63bdc453`](https://github.com/crazydiseases/mike/commit/63bdc453f551cbaa6b98542fe4d25263d75b1e18) | Create companiesHouseTools.ts | `crazydiseases/mike` | 2026-06-20 |
| 3 | [`a360219c`](https://github.com/crazydiseases/mike/commit/a360219c1734a399f76e8287e036626c0b54fff9) | Update chatTools.ts | `crazydiseases/mike` | 2026-06-20 |
| 4 | [`2d5e90f7`](https://github.com/crazydiseases/mike/commit/2d5e90f77ff824f6dd191aa309ef0ef7416e994d) | Update chatTools.ts | `crazydiseases/mike` | 2026-06-20 |
| 5 | [`8aedd039`](https://github.com/crazydiseases/mike/commit/8aedd03952ababd6bd4d6cdda643e11374db29bc) | Create 120260620_add_companieshouse_provider.sql | `crazydiseases/mike` | 2026-06-20 |
| 6 | [`4c5e3331`](https://github.com/crazydiseases/mike/commit/4c5e3331a314cebf2cd6158624988b9a954463fe) | Create companieshouse.ts | `crazydiseases/mike` | 2026-06-20 |
| 7 | [`ddd484d6`](https://github.com/crazydiseases/mike/commit/ddd484d68071007d7cfd0f0aaf0cfc7bb618c05e) | Delete backend/src/lib/companieshouse.ts | `crazydiseases/mike` | 2026-06-20 |
| 8 | [`e2a9dcdd`](https://github.com/crazydiseases/mike/commit/e2a9dcddb7fda8d0c9d84626d6cdb9f958756aa4) | Create companieshouse.ts | `crazydiseases/mike` | 2026-06-20 |
| 9 | [`7b54f4a6`](https://github.com/crazydiseases/mike/commit/7b54f4a6f7ce289ab531960333881407a5b4f9e7) | Delete backend/src/lib/legalSourcesTools/companieshouse.ts | `crazydiseases/mike` | 2026-06-20 |
| 10 | [`ae544077`](https://github.com/crazydiseases/mike/commit/ae5440771d54e2f40a80fb4b1c9e32e9bd9df977) | Create companieshousetools.ts | `crazydiseases/mike` | 2026-06-20 |
| 11 | [`868accf4`](https://github.com/crazydiseases/mike/commit/868accf453dd4176c1818bf36599059c05221099) | Update companieshousetools.ts | `crazydiseases/mike` | 2026-06-20 |
| 12 | [`cadbeeaa`](https://github.com/crazydiseases/mike/commit/cadbeeaa627a9f7ef4c5db3e7b48255b170112d2) | Update types.ts | `crazydiseases/mike` | 2026-06-20 |
| 13 | [`3b40e9ee`](https://github.com/crazydiseases/mike/commit/3b40e9ee8b8022eb41e1b67bfd1691da9adbbebf) | Delete backend/src/lib/legalSourcesTools/companieshousetools.ts | `crazydiseases/mike` | 2026-06-20 |
| 14 | [`541b338d`](https://github.com/crazydiseases/mike/commit/541b338d4c8aef532a2e3230e97af6650d327233) | Create companiesHouseTools.ts | `crazydiseases/mike` | 2026-06-20 |
| 15 | [`e1b1a3fb`](https://github.com/crazydiseases/mike/commit/e1b1a3fbe863f13b604fe89a28842c701687fc15) | Create legislationGovUk.ts | `crazydiseases/mike` | 2026-06-20 |
| 16 | [`db48eadf`](https://github.com/crazydiseases/mike/commit/db48eadfd701c6be45a471b1cde24ea2a61849ff) | Create legislationGovUkTools.ts | `crazydiseases/mike` | 2026-06-20 |
| 17 | [`cf0e6125`](https://github.com/crazydiseases/mike/commit/cf0e61252b5a8f64e92df6001722220880015f04) | Update legislationGovUk.ts | `crazydiseases/mike` | 2026-06-20 |
| 18 | [`8cec108a`](https://github.com/crazydiseases/mike/commit/8cec108a796071900864c14ae155b437d8e5dec2) | Update chatTools.ts | `crazydiseases/mike` | 2026-06-20 |
| 19 | [`189f30d8`](https://github.com/crazydiseases/mike/commit/189f30d8e3f91f6daf2456b466a568b99dead0c4) | Update chatTools.ts | `crazydiseases/mike` | 2026-06-21 |
| 20 | [`954c7ecd`](https://github.com/crazydiseases/mike/commit/954c7ecdaebd766601ac5a01dddc0fd1f02e515c) | Update legislationGovUk.ts | `crazydiseases/mike` | 2026-06-21 |
| 21 | [`ba7014f1`](https://github.com/crazydiseases/mike/commit/ba7014f177f37022b44262fb95152fe9af3ea19f) | Update chatTools.ts | `crazydiseases/mike` | 2026-06-21 |
| 22 | [`ccc395a9`](https://github.com/crazydiseases/mike/commit/ccc395a9e59423063161a72cb2d2f1f8010fb031) | Create findCaseLawTools.ts | `crazydiseases/mike` | 2026-06-21 |
| 23 | [`1e23d485`](https://github.com/crazydiseases/mike/commit/1e23d485ce8a36c9c7b36f00897cef12f28fd5ff) | Create findCaseLaw.ts | `crazydiseases/mike` | 2026-06-21 |
| 24 | [`bf670927`](https://github.com/crazydiseases/mike/commit/bf67092741bb18a112c3a10fb1234259b82e31d3) | Update chatTools.ts | `crazydiseases/mike` | 2026-06-21 |
| 25 | [`5dcb35da`](https://github.com/crazydiseases/mike/commit/5dcb35da09e760ba005052ebf4263cb20d57eee8) | Update chatTools.ts | `crazydiseases/mike` | 2026-06-21 |
| 26 | [`c231e05f`](https://github.com/crazydiseases/mike/commit/c231e05fcee0976cafbdf37bc1e7a7d30ffa5ba9) | Update chatTools.ts | `crazydiseases/mike` | 2026-06-21 |
| 27 | [`fc475673`](https://github.com/crazydiseases/mike/commit/fc47567305355e6091bf37486a5b8773fef8f375) | Update chatTools.ts | `crazydiseases/mike` | 2026-06-21 |
| 28 | [`a2cf8897`](https://github.com/crazydiseases/mike/commit/a2cf8897a51ab3fa6a484b1b86f1a9749dcc2391) | Update findCaseLaw.ts | `crazydiseases/mike` | 2026-06-21 |
| 29 | [`b3d30ee0`](https://github.com/crazydiseases/mike/commit/b3d30ee0d6d4a015d5595f31cb293e59277f2a2f) | Create planningDataTools.ts | `crazydiseases/mike` | 2026-06-21 |
| 30 | [`8e73da16`](https://github.com/crazydiseases/mike/commit/8e73da168295aa2a185a5d570054150ce03e543c) | Create planningData.ts | `crazydiseases/mike` | 2026-06-21 |
| 31 | [`fbb06221`](https://github.com/crazydiseases/mike/commit/fbb062217c5d18f70eea7d652269ebac53f26951) | Update chatTools.ts | `crazydiseases/mike` | 2026-06-21 |

### Commit URLs (for your tooling)

1. https://github.com/crazydiseases/mike/commit/2dc360a5662bb62aa94579c8d5fdf2d1522484c8
2. https://github.com/crazydiseases/mike/commit/63bdc453f551cbaa6b98542fe4d25263d75b1e18
3. https://github.com/crazydiseases/mike/commit/a360219c1734a399f76e8287e036626c0b54fff9
4. https://github.com/crazydiseases/mike/commit/2d5e90f77ff824f6dd191aa309ef0ef7416e994d
5. https://github.com/crazydiseases/mike/commit/8aedd03952ababd6bd4d6cdda643e11374db29bc
6. https://github.com/crazydiseases/mike/commit/4c5e3331a314cebf2cd6158624988b9a954463fe
7. https://github.com/crazydiseases/mike/commit/ddd484d68071007d7cfd0f0aaf0cfc7bb618c05e
8. https://github.com/crazydiseases/mike/commit/e2a9dcddb7fda8d0c9d84626d6cdb9f958756aa4
9. https://github.com/crazydiseases/mike/commit/7b54f4a6f7ce289ab531960333881407a5b4f9e7
10. https://github.com/crazydiseases/mike/commit/ae5440771d54e2f40a80fb4b1c9e32e9bd9df977
11. https://github.com/crazydiseases/mike/commit/868accf453dd4176c1818bf36599059c05221099
12. https://github.com/crazydiseases/mike/commit/cadbeeaa627a9f7ef4c5db3e7b48255b170112d2
13. https://github.com/crazydiseases/mike/commit/3b40e9ee8b8022eb41e1b67bfd1691da9adbbebf
14. https://github.com/crazydiseases/mike/commit/541b338d4c8aef532a2e3230e97af6650d327233
15. https://github.com/crazydiseases/mike/commit/e1b1a3fbe863f13b604fe89a28842c701687fc15
16. https://github.com/crazydiseases/mike/commit/db48eadfd701c6be45a471b1cde24ea2a61849ff
17. https://github.com/crazydiseases/mike/commit/cf0e61252b5a8f64e92df6001722220880015f04
18. https://github.com/crazydiseases/mike/commit/8cec108a796071900864c14ae155b437d8e5dec2
19. https://github.com/crazydiseases/mike/commit/189f30d8e3f91f6daf2456b466a568b99dead0c4
20. https://github.com/crazydiseases/mike/commit/954c7ecdaebd766601ac5a01dddc0fd1f02e515c
21. https://github.com/crazydiseases/mike/commit/ba7014f177f37022b44262fb95152fe9af3ea19f
22. https://github.com/crazydiseases/mike/commit/ccc395a9e59423063161a72cb2d2f1f8010fb031
23. https://github.com/crazydiseases/mike/commit/1e23d485ce8a36c9c7b36f00897cef12f28fd5ff
24. https://github.com/crazydiseases/mike/commit/bf67092741bb18a112c3a10fb1234259b82e31d3
25. https://github.com/crazydiseases/mike/commit/5dcb35da09e760ba005052ebf4263cb20d57eee8
26. https://github.com/crazydiseases/mike/commit/c231e05fcee0976cafbdf37bc1e7a7d30ffa5ba9
27. https://github.com/crazydiseases/mike/commit/fc47567305355e6091bf37486a5b8773fef8f375
28. https://github.com/crazydiseases/mike/commit/a2cf8897a51ab3fa6a484b1b86f1a9749dcc2391
29. https://github.com/crazydiseases/mike/commit/b3d30ee0d6d4a015d5595f31cb293e59277f2a2f
30. https://github.com/crazydiseases/mike/commit/8e73da168295aa2a185a5d570054150ce03e543c
31. https://github.com/crazydiseases/mike/commit/fbb062217c5d18f70eea7d652269ebac53f26951

## What I want you to do

1.  **Sanity check first.**

    - Run `git status`. If the working tree is dirty (uncommitted
      changes you don't recognise, untracked stuff you don't expect),
      STOP and tell me — don't try to be helpful by stashing. I'll
      resolve it.
    - Run `git branch --show-current`. If the branch is `main` or
      `master`, confirm with me before proceeding.

2.  **For each commit URL above, in the order listed:**

    a.  Fetch the diff. Pick whichever works:
        - `gh api repos/<owner>/<repo>/commits/<sha>` returns the full
          patch in JSON.
        - WebFetch the URL with `.patch` appended, e.g.
          `https://github.com/<owner>/<repo>/commit/<sha>.patch`.

    b.  Read the original commit message. That's the AUTHOR's intent —
        respect it.

    c.  Read the diff and understand the change. **Don't blindly
        cherry-pick.** This is a sibling fork — paths, naming, and
        structure can differ. You're porting, not pasting.

    d.  Compare against THIS repo's layout:
        - File at the same path → apply the change.
        - File exists under a different name (renamed / restructured) →
          apply the equivalent change at the right location.
        - File doesn't exist here at all → decide: new file we want, or
          is the source adding something this repo already has by
          another name? Use judgement. Lean towards creating the file
          when in doubt — easier for me to delete than to recreate.

    e.  Apply the change. Run `git diff` after, eyeball it, fix
        obvious issues (lint errors, broken imports, typos in the diff
        itself).

    f.  Commit with a message that:
        - Preserves the source commit's subject line.
        - Adds a short body explaining what you adapted, if anything.
        - Includes trailers:

              Source: <commit-url>
              Source-author: <original author name>

        so the attribution stays clear.

3.  **After all commits are applied:**

    - Run `git log --oneline -<count>` showing what you produced.
    - Show `git status` final state.
    - List any files you skipped, conflicts you resolved, and any
      assumptions you made.

## Rules

- **Do not push.** Local commits only. I'll review and push.
- **Do not rebase or force.** Only fresh commits. If you'd otherwise
  need a force push, stop and explain why.
- **Don't touch `.git/config` or run `git remote add`.** Leave my
  repo's remote setup alone.
- **No package installs, build steps, or migrations** unless the
  change manifestly requires it AND you explicitly tell me what
  you're about to run first.
- **One commit per source commit.** Don't squash. Don't split. If
  porting genuinely requires either, explain.
- **Read existing code before changing it.** This isn't the source
  fork. Match the local style.

## If you get stuck

Stop and tell me. Show what you've already done (commits made, files
changed), what blocked you (conflict, missing file, ambiguous intent),
and your recommended next move. I'd rather ship 3 of 5 commits cleanly
than have you guess on the 4th and break things.
