Preheat oven to 400°F (200°C). Pierce sweet potatoes with a fork and roast for 45-50 minutes until tender. Allow to cool, then peel and pass through a ricer or mash thoroughly.
In a large mixing bowl, combine the riced sweet potato and the lightly beaten egg until uniform.
Fold in the almond flour, arrowroot starch, sea salt, and nutmeg. Mix by hand until a soft, slightly tacky dough forms. If too sticky, add arrowroot starch 1 tablespoon at a time.
Transfer dough to a work surface dusted with arrowroot starch. Divide into four equal portions.
Roll each portion into a long rope approximately 1/2-inch thick. Cut the ropes into 1-inch gnocchi pieces using a bench scraper or knife.
Optional: Roll each piece over the tines of a fork or a gnocchi board to create ridges for holding sauce.
Prepare the pesto by placing toasted walnuts, sage, garlic, lemon juice, salt, and pepper into a food processor. Pulse while slowly drizzling in the olive oil until a coarse paste forms.
Bring a large pot of salted water to a boil. Drop gnocchi in batches. Cook for 2-3 minutes; remove with a slotted spoon once they float to the surface.
Heat a large skillet over medium-high heat with a splash of olive oil. Sear the boiled gnocchi for 1-2 minutes per side until a golden-brown crust forms.
Remove skillet from heat, add the sage walnut pesto, and toss gently to coat. Serve immediately.