You're not in as much trouble as you feared. What you found matters more than any of us expected.

Negative adverbial inversion, "only" fronting, so/such inversion for emphasis, full locative inversion after a place adverbial, and the family resemblance to the conditional inversion already covered — delivered as the evening's verdict finally arrives, taught by Sophia, tested by Marcos, and precisely footnoted by Philo.

You're not in as much trouble as you feared. What you found matters more than any of us expected.

Then let the sentence match the moment. Never had I expected a broken shelf to end in something worth telling the whole library about.
Negative Adverbial Inversion

You just did something worth naming. "Never had I expected" — not "I never had expected." Put a negative adverb first, and the subject and auxiliary swap places, the same inversion a question makes.

It reads as more than a plain statement now. It reads like a statement straining toward emphasis.
More Negative Openers

Rarely have I seen Marcos handle anything this carefully.

Under no circumstances did I plan on being complimented and insulted in the same sentence.

"Rarely," "seldom," "little," "under no circumstances," "not until now" — any of these leading a sentence trigger the same inversion.

Leave them in their ordinary spot after the subject, and the sentence never inverts at all: "I have rarely seen it," plain as anything.
"Only" Inversion

Only after reading it twice did I understand what she'd hidden, and why.

"Only" carries the same force as a negative here, and drags the same inversion behind it. Say it without fronting "only," and the sentence relaxes back to ordinary order.
So/Such Inversion

So rare is this account that I doubt another copy exists.

"So" plus an adjective, fronted for emphasis, pulls the verb ahead of its subject the same way. Compare the plain version: "this account is so rare." The inverted one simply insists harder.
Locative Inversion

Down the corridor comes the head librarian now.

Notice this inversion doesn't even need an auxiliary — the whole verb swaps sides with the subject: not "the head librarian comes," but "comes the head librarian." A place adverbial at the front can pull the entire verb forward with it, not merely an auxiliary.
The Same Trick You Already Learned

And you'd already met one version of this without naming it: "had we asked permission" instead of "if we had asked" — the conditional dropping "if" is only inversion wearing a hypothetical's clothes.

So it's one habit doing service across half the sentences we've studied this month.

So rarely have I followed a sentence this far just to be told I'm not in trouble.

Rarely have any of us. And there — you've done it again without trying.