{"/blog/20101118-learning-selenium":{"content":"My basic need is to find a platform where I can test FF, IE, and Safari on Windows, Linux, and OS X. I use OS X as my platform, and Safari or Webkit as my environment. I don’t like Windows or IE. Linux is OK, but I like OS X because it just works the way I want. And I find FF to be slow, and Firebug which is needed to debug we pages causes rendering changes and timing issues (most notably causing FF to crash).\nIdeally I want the testing environment:\nTo be developed in Safari on OS X To be able to test both internal libraries and rendered UI To use unit tests to test internal libraries To use interactive tests to test rendered UI To use the unit/interactive tests as regression system moving forward To write the tests once on my browser of choice To run the tests on all combinations of browser and platform. To not be bogged down by the testing framework To be free, or very cheap From my research it looked like Selenium did basically exactly what I needed. And unfortunately was the only real option. There were plenty of options for taking screen shots of public sites (which mine isn’t, yet) and comparing those between browsers. And there are several options for unit testing javascript, but only Selenium did both and could be run on my own hardware.\nImplementation From my reading it looked like I wanted to use the IDE to create the tests, and remote controls to run the browsers. Eventually I need to scale to Selenium Grid, but that is for later discussion.\nTest code This is the sample file that I created to test.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 <html> <body> <script> Namespace = { test: function(item){ return item == true; } }; function String(item){ if(!item.push && typeof(item) === 'object'){ return item.name || ''; } return ''+item; //yup this is faster then toString } function Int(item){ return parseInt(item,10); } function Array(item){ var type = typeof(item); if(type === 'string'){ return item.split(\"\\\\\\\\n\"); } else if(type === 'object'){ if(item.push && item.length && item.concat){ return item; } } return [item]; } </script> </body> </html> Using the IDE It took a long time to understand this tool, since I had no background in Selenium. The basic premiss is that each file is a single test case, which is a set of tests. Each test is a grouping of three items: the action, the target, and the expected result. It natively creates a 3 column HTML table, which it can also run, but personal preference is that use the IDE to export the basic test into a different language.\nI am a rails developer, and am familiar with rspec so I use the IDE to run the tests to make sure they work, but then I transfer it to rspec since it is a more expressive test framework. The downside is that you have to use a Remote Control to run the test, which adds an extra level of complications. We will get to the Remote Control later.\nA basic HTML test looks like this:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 <?xml version=\"1.0\" encoding=\"UTF-8\"?> <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"<http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd>\"> <html xmlns=\"<http://www.w3.org/1999/xhtml>\" xml:lang=\"en\" lang=\"en\"> <head profile=\"<http://selenium-ide.openqa.org/profiles/test-case>\"> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" /> <link rel=\"selenium.base\" href=\"file:///Users/jkamenik/Desktop/sel_test.html\" /> <title>Unit Testing</title> </head> <body> <table cellpadding=\"1\" cellspacing=\"1\" border=\"1\"> <thead> <tr><td rowspan=\"1\" colspan=\"3\">Unit Testing</td></tr> </thead><tbody> <tr> <td>open</td> <td>file:///Users/jkamenik/Desktop/selenium/sel_test.html</td> <td>test</td> </tr> <tr> <td>verifyEval</td> <td>this.browserbot.getUserWindow().Int(1)</td> <td>1</td> </tr> <tr> <td>verifyEval</td> <td>typeof(this.browserbot.getUserWindow().Int(1))</td> <td>number</td> </tr> </tbody></table> </body> </html> There really is nothing more to it then that. The one thing to note is that the test uses verifyEval which takes a JavaScript string.\nNote\nIn all tests the this object is the base Selenium object so if you want to get to the window object you have to traverse up the stack via this.browserbot.getUserWindow().\nWarning\nUnfortunately everything tested in Selenium is converted to a string before testing. So if I need to ensure that an integer parsing function actually produces a number I need to use typeof.\nUsing RSpec The IDE is a great way to test scripts live, but for any programmer it is going to be easier to use a testing framework doing it programmatically. As a rails guy I prefer RSpec so that is what I use.\nInstalling This package requires ruby-gems, rspec, and selenium-client. I am going to assume you have ruby-gems installed already. The others are installed like this:\n1 2 sudo gem install rspec sudo gem install selenium-client Converting When using Rspec the only real thing to remember is that there are no assert* or verify* methods. The reason is that Rspec itself is a testing framework so it will have it own version of assert and verify (in this case should).\nThe IDE has a great feature in that it converts the HTML test into a rspec test for you. It isn’t a great format, but it is better then nothing and is a good place to start.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 require \"rubygems\" gem \"rspec\" gem \"selenium-client\" require \"selenium/client\" require \"selenium/rspec/spec_helper\" require \"spec/test/unit\" describe \"array_test\" do attr_reader :selenium_driver alias :page :selenium_driver before(:all) do @verification_errors = [] @selenium_driver = Selenium::Client::Driver.new \\\\\\\\ :host => \"localhost\", :port => 4444, :browser => \"*chrome\", :url => \"file:///Users/user/Desktop/selenium\", :timeout_in_second => 60 end before(:each) do @selenium_driver.start_new_browser_session end append_after(:each) do @selenium_driver.close_current_browser_session @verification_errors.should == [] end it \"test_array_test\" do page.open \"file:///Users/jkamenik/Desktop/selenium/index.html\" begin (\"1\").should == page.get_eval(\"this.browserbot.getUserWindow().Array([1])\") rescue ExpectationNotMetError @verification_errors << $! end begin (\"object\").should == page.get_eval(\"typeof(this.browserbot.getUserWindow().Array(1))\") rescue ExpectationNotMetError @verification_errors << $! end end end Warning\nThe browser being shown is chrome. This actually means Firefox, not Google Chrome. For Google Chrome use googlechrome.\nFor Safari use safari, but remember that you will need to disable the popup blocker manually and close Safari (for this user) otherwise it will just sit there forever.\nRemote Controls A remote control is what Selenium uses to execute the test. The IDE comes with it built-in, but it is tied to FireFox. To use IE, Safari, or Chrome you need to download the remote control software: http://seleniumhq.org/projects/remote-control. This software is just a Java server that opens your machine on port 4444 (by default) to allow Selenium clients to run tests. Each client gets its own browser instance to run the tests in.\nNote\nThe server must be run by a user that has access the browser and has a screen to render to.\nWarning\nFirefox will only run a single profile per user. If you need to run Firefox concurrently on the same machine you need to fake a second profile. Don’t do it, just create a VM; you will be happier.\nCaution\nGoogle Chrome does not works on OS X. This is because OS X doesn’t add application executables to the path, and the server code isn’t smart enough to use the executable directly. The fix is supposedly here, but I was not able to get it to work. If I do I will probably write another blog entry and link it here.\nPutting it all together By default RSpec provides no runner code and the code the IDE produces is not standalone. This is not a problem since installing RSpec into a rails app installs script/spec. I have copied the runner code here so make it easier.\n1 2 3 4 5 6 #!/usr/bin/env ruby if ARGV.any? {|arg| %w[--drb -X --generate-options -G --help -h --version -v].include?(arg)} require 'rubygems' unless ENV['NO_RUBYGEMS'] end require 'spec/autorun' exit ::Spec::Runner::CommandLine.run I am going to assume the RSpec runner code is called spec and the test file is called test.rb. To run this test from the command line do the following:\n1 ruby spec test.rb Assuming you followed all the steps the test should have opened Firefox, executed a page, run the tests, closed Firefox, and returned the results. Now you can add more tests and have Selenium execute them.\nRelated Research Using Selenium Grid Using Chrome, or IE Using a Grid to run the same test in all browsers on all OSs ","lastmodified":"2010-11-18T00:00:00-05:00","tags":null,"title":"Learning Selenium"},"/blog/20101204-git-with-svn":{"content":"Normally, I would just use GIT without a bridge to another control system, but many companies use SVN. There are just so many benefits to using GIT that, for me, I am going to use it if there is a bridge to repository type the company uses. I certainly don’t hate SVN or CVS or Perforce, but GIT allows me to work the way that I know I am most productive; which is commit early, commit often.\nWhat I mean by commit early, commit often is that I commit even if I only have part of the solution. As I find the other parts of the solution I commit those as well. That way when I am 2 or 3 days into a fix I already have the commit messages saved in GIT, so I don’t have to remember what I did for those 2 or 3 days. When the solution is shippable only then do I push it up to the company’s repository.\nBenefits of GIT include: Being able to share non production ready code (Peer to Peer) Being able to have many local branches Being able to logically group commits (via local branches) and push all at once Fantastic branch switching/merging Rarely will you ever have to fix a merge conflict yourself Rebase as well as merge Rebase is SVNs style of linear commits Merge is non-linear and tries to keep commits sequentially ordered by date. So if two branches are merged and both were actively worked on then the commits are intermixed. (makes a lot more sense in practice then in writing) With GIT’s power comes a little bit more complexity, and here I will detail the method that I have developed over months of fits and starts. That way you can experience the benefits of using GIT for day to day work, but still use SVN when dealing with corporate.\nSettings up the SVN Bridge You can have GIT manage an entire SVN repository, branches and all. However, for GIT to do this it must checkout every revision of the SVN repo. This can be very painful when there are a lot of commits. Instead I recommend only managing a single branch starting a specific revision near HEAD. You will lose history older then that revision, but it does save a lot of time for large SVN repositories.\nFor the below example I am going to assume we have a standard SVN repository at http://example.com/svn, the latest revision is 400, and the SVN username is test.\nFind the latest revision of the repository:\n1 svn log <http://example.com/svn/trunk> | head The latest revision will start with an “r” and be within the first 5 lines.\nSetting up a git repo:\n1 2 git svn init --username=test <http://example.com/svn/trunk> dev git svn fetch -r 400 Now you have a local GIT repo in dev that is synced to SVN trunk at revision 400. And when you git svn dcommit the user test will be used.\nAlways work in a branch In my company before anything is allowed to be checked into SVN it must go through a peer review. In any given day I might work on 2 or 3 bugs/tasks. For each, I create a GIT branch with the bug/task ID and work there. When I am done I use git log -p to list the diffs that I submit for review. Then I move on to the next item, while the fix is being reviewed. When the first bug/task is reviewed and accepted I jump back to master, rebase it, jump to the branch, rebase master, jump back to master and merge the branch, and finally svn dcommit everything. After I mark the bug/task complete I also delete the branch. If the code is not accepted then I still have a branch where I can make the required corrections and repeat the process.\nIt might sound complicated, but it really isn’t. The only reason for all this rebasing is so that GIT’s native merge tools deal with SVN merge conflicts. I am not sure why, but they are far better then what the SVN bridge can do, and will ultimately lead to few headaches for you.\nIn code it looks like:\n1 2 3 4 5 6 7 8 9 10 11 12 git> git svn rebase git> git checkout -b task1 ... work on task 1 git> git log -p -n X > task1.diff ... create diff of all (X) changes needed for task1 ... email the diff for review git> git checkout master git> git svn rebase git> git checkout -b task2 ... work on task 2 ... when task 1 is approved commit what you have for task 2 and dcommit task1 ... return to task 2 when task 1 is committed This style also works well if your boss comes over at the 11th hour and assigns you a new emergency assignment. When you are done with the emergency switching gears is as easy as switching branches.\nDCommitting your changes As states above I use the checkout, rebase, checkout, rebase, checkout, merge, dcommit style. This seems cumbersome until you understand the purpose.\nFrom any branch always checkout into master. This allows master to stay pure of your changes and makes its less likely that git svn will fail.\nOnce master is up-to-date checkout the branch again and rebase the master changes into the branch. Fixing any rebase conflicts there might be. By fixing them on the branch we keep master clean so we are using git’s rebase/merge capabilities, not the SVN bridge’s. There are times this step can be skipped, but once you have to deal with your first rebase conflict from the bridge you will wish you had branched.\nNow that the branch holds the latest code to be dcommitted to SVN: checkout master, merge the branch, and dcommit master. You could rebase the changes from the branch if you prefer, it really makes no difference because your changes are on top of SVN now either way. Once done all of master’s log messages will be rewritten to what is in SVN.\nAll together it looks like this:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 git> git checkout master git> git svn rebase git> git checkout task1 git> git rebase master ... SVN needs your changes to be rebased so rebase master ... by rebasing onto to a branch it is easier to deal with rebase failures ... fix any rebase issues git> git checkout master git> git merge task1 ... could merge or rebase, doesn't matter here git> git svn dcommit ... mark the task closed git> git brach -D task1 ... svn doesn't always mark the branch merged properly so use -D instead of -d Pro Tips Different user names Use a different username for SVN and GIT. That way it is easy to see in the log what is committed to SVN since the bridge will rewrite the commit log from what SVN says.\nFor SVN I use jkamenik. For GIT I use jkamenik at gmail dot com. Commits that are in SVN also have the SVN revision number in the log message, but I find it easier to use usernames since it is at the top of the log message.\nSetup Aliases Git allows more commands to be added via aliases. An alias can be a shortening of a git command: st = status. Or it can be a shell command that git will execute test = !sh -c 'echo \"it works!\"' (notice the leading !).\nHere is the alias part of my ~/.gitconfig file looks like:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 [alias] # Old SVN aliases ci = commit co = checkout st = status stat = status # stuff I find useful br = branch df = diff rm-all = !git st | grep deleted | awk '{print $3}' | xargs git rm add-all = !git st | grep modified | awk '{print $3}' | xargs git add st-br = \"!f(){ git co master && git svn rebase && git co -b $1 }; `f`\" up-br = \"!f(){ git co master && git svn rebase && git co $1 }; `f`\" co-br = \"!f(){ git up-br $1 && git co master && git merge $1 && git svn dcommit }; `f`\" Notice that st-br, up-br, and co-br are basically all the set of commands I noted above in single command style.\nStashing changes The stash is a hidden place that git can keep changes that are not yet ready to commit. This is very useful if you get switched to another task and really don’t have time to fully vet a change on the current task. You can stash the outstanding change and later replay them.\ngit stash keeps a queue of changes so you can stash more then one thing, but you can only replay them top down.\n1 2 3 4 5 6 7 8 git> git stash ... hides all modified files git> git stash list ... lists all stashes git> git stash apply ... applies the top stash, but does not remove it git> git stash pop ... applies the top stash, and remove it Resources GIT <-> SVN workflow Effectively using GIT with SVN ","lastmodified":"2010-12-04T00:00:00-05:00","tags":null,"title":"Git With SVN"},"/blog/20101205-how-to-be-a-bad-boss":{"content":"Being a boss is a complicated thing. It is your job to get people to do things, sometimes things they do not want to do. And it is especially complicated in the software industry, where it is like herding cats.\nI see a lot of posts on how to be a good boss, but the problem there is that they often forget to mention the things that can and will immediately erode any success you might have had. I am going to assume that as a reader you strive to be a person who others are willing to follow.\nNobody is perfect, so you will probably have done at least one of these things in the past. Or you do then without even knowing. Now is your chance to stop, and be a constructive boss who people want to work for.\nBe smarmy Yep, this is number one. Smarmy people are falsely friendly (think used car dealers). Notice I did not say do not “be mean.” As a boss sometimes you will need to be mean, or at least not very nice. And even that should be kept to a minimum, but it is never OK to be smarmy. All it does is make people uncomfortable confiding in you, which means they will either find better employment (if they can) or they will sabotage you.\nHere are some examples of what I mean by smarmy:\nSuggest that a problem can be solved by the employee working more or harder Using scrum (or any general meeting) to point out an employee’s failure Joke about firing an employee Make any sarcastic comment about an employee in the presence of others Only talking to an employee when you need them to do something (i.e., I am only talking to you because I want something) Some ways to tell that you have already failed at this:\nAll laughter stops when you enter the room Conversations between you and an employee die quickly Employees no longer tell you about issues they are having Be a hypocrite A hypocrite is someone who says one thing and thinks or does another. It can be as overt as being prejudiced (racist, sexist, etc…) or as covert as being passive aggressive. Being a hypocrite is risky because when other people find out, you are just being deceitful, and no one wants to deal with that.\nOne example is saying that code needs to be high quality but not leaving time for testing. Overtly this often resembles explicitly adding a testing phase at the end of coding and then cutting it if coding goes long. Covertly this is often assuming that testing is done as part of coding, but scoffing at longer estimates. Speed and quality have a tenuous relationship. Something done slowly may or may not be of quality, but something quickly is almost never of quality.\nThe best way not to be a hypocrite is not to bring your values and prejudices into the equation. To do this though you have to understand what your values and prejudices are. In the case of the no testing, quality is explicitly stated as the important part, but speed is implicitly stated as the important factor. More specifically speed at the cost of quality is stated as the import factor. To avoid this, it is important to explicitly state the importance of all three tenets of the project triangle: that way you avoid the embarrassing case where one tenet goes to 0 unintentionally. See: Project Triangle.\nBe arrogant I am not talking about being hard headed or stubborn. I am talking about being truly arrogant. Stubborn people will listen to reason, assuming the opposing argument is good enough; arrogant people cannot be directly convinced. There are two forms of arrogance to watch out for: arrogance of idea, and arrogance of presenter. Arrogance of idea is simply dismissing an idea because it is in direct conflict with your internal ideas or values. Arrogance of presenter is rejecting an idea because of who presented it.\nTwo engineers approach you with different solutions to the problem of releasing on time: one says to keep the feature set and stop doing unit testing, and the other says reduce the feature set but keep the unit testing. Which do you choose? If you choose “keep the feature set” then you wrong. If you choose “keep the unit testing” you are also wrong. If you chose either (based on only the information provided) then the choice you made was based on you internal values only and not based on the problem being presented.\nIn the context of work the truth is that new hires probably know more about a given framework than you, and certainly will have a different perspective on how things should be done. They are probably offering you this knowledge, because they have already encountered the problem you are now seeing and have found an appropriate solution. It is tempting to dismiss this simply because a new hire presented it and they don’t know the full business impact of their suggestion. But ask yourself: if the system architect presented you with this idea would you accept it? If yes, then you are suffering from arrogance of presenter and should tread lightly.\nI suggest instead that you judge an idea (never a presenter) on its merits in the context of only the problem (never on facts you assume to be true). And make sure you are consciously and actively judging the idea, and you are not adding your own problem or values.\nOffer post hoc rewards A post hoc reward is a reward given after work is complete. In physical work the effects of post hoc rewards are well known and lead to better results, but in knowledge work offering post hoc rewards has a distracting effect. Work will take longer and be of lower quality. It will make employees very good at performing work that maximizes their incentives, and not at developing a quality product. Be aware that offering reward for work done defines a tangible value for that work, which may demoralize an employee who feels under compensated as a result.\nIntrinsic rewards can and should be used. These are things that are given universally and without reservation. Basic examples would be vacation, and health benefits. Other examples would be a free day to work on any project the employee wanted, or free soda/tea/coffee. These intrinsic benefits help endear you and the company to the employee.\nAccept estimates less than 4 hours This may only be true in software, but tasks never take less than 4 hours. A task is really an atomic complete chunk of work, so to be considered complete it must be coded, tested, reviewed, and committed. However, some employees will claim they finish tasks sooner. Often these people are cutting corners (not testing, or not getting a review) or they are doing a bunch of tasks that should have logically been considered one task.\nEither way they are playing a game with the numbers to get their counts higher, which means that you are probably rewarding over aggressive estimates, and have a huge defect backlog. Well done!\nForcing the Time-box I have seen this bite so many bosses, where they say something like “tasks cannot possibly take longer than 4 days.” The problem is that now you have employees trying to split tasks - often nonsensically - that have little or no longterm vision. So when it comes time to implement you have a bunch of small tasks that are too small to warrant research themselves, but no real clear direction because no real research is worth doing. Then it gets implemented and becomes instance legacy.\nEstimates of several weeks or months are fine early in the process. But enough time needs to be given to investigate feasibility prior to high level scoping. Prior to implementation, time should be given to research an implementation and split the tasks out. All of this time should have been blocked in as a single unit during high level scoping.\nRequire meetings Meetings cost time and money. And in addition to the meeting itself there is time before the meeting where people ramp down, and time after the meeting when people need to ramp back up again. Both ramping phases are about 10 minutes each.\nTo monetize this for you, let’s say you have 12 employees going to a meeting, and on average they make $24 an hour, and the meeting is 15 minutes (a scrum). The total chunk of wasted time is 35 minutes or about $14 per employee. For the company that means you wasted $168. And that does not include any prep time employees had to take. In general, meetings need to be kept to a minimum and kept on track because they will end up being the single most costly event both in terms of money and productivity.\nWatch your employees work Nobody is comfortable being scrutinized. Do not set up your office so that you are looking into your employees’ cubes, and don’t wonder around aimlessly, and never under any circumstances hover. By doing this you are showing your employees that the most important thing is to look busy (a function of the keyboard and finger), not to solve problems (a function of the brain). At the point where your employees feel scrutinized they will work just hard enough to not get fired, and will partake in CYA games.\nThe best example is Office Space the movie. Little more needs to be said.","lastmodified":"2010-12-05T00:00:00-05:00","tags":null,"title":"How to Be a Bad Boss"},"/blog/20101212-deal-with-email-overload":{"content":"This isn’t strictly software related, but a lot of us have to deal with the horror that is email. Email is not a good solution to any problem, but it is ubiquitous so it is used for all things: personal correspondence, commit tracking, defect notification, task notification, etc… Email is all to often used as a mechanism to pass-the-buck.\nThe only way to deal with this email overload is to set boundaries on email usage. A lot of people will find these boundaries annoying, if not unworkable. Just stick with it and lead by example. Eventually, in a time of high stress, you will be able to get to important messages fast when other would have been will be left floundering. And at that point, folks will ignore the limits you put on email.\nMy results I am putting the summary first in hopes that you might actually try some of these suggestions. On average I get 50 to 200 work related emails a day. In any given day (saturday and sunday included) I will need to respond to 5 to 10 of them. That means that I get between 40 and 195 un-actionable emails.\nMy full process is detailed below, but basically it reduces my email load from hundreds to ones of email that I have to deal with. I also limit the amount of time I spend in email which further limits it as a point of distraction. On busy days I may never even check my inbox, instead relying on others to contact me via a different medium if they really need me. And yet, no one feels like I am unresponsive.\nUse the right messaging system to avoid email Use email for messages that do not need an immediate response. Since there is no message size limit, make sure you use the most of it. Write emails that are well detailed and specific. If at any point a message can be answered with “Ok” or some other monosyllabic word then email was not the correct choice.\nUse Instant Messages (IM,IRC,etc…) for conversations that need semi immediate responses, and a possible record. Many IM packages can log conversations for later viewing, which is useful when you forget things. There are message length and formatting restrictions so this forces the messages to be brief and specific.\nUse Phone, Skype, or face to face contact when a response is needed immediately.\nUse Twitter, or some other global message posting service to track commits, continuous integration fails, defects, etc…\nUse a wiki, or blog to track generic instructions or documentation.\nBut check email when asked Once a set of other messaging systems is up and running then folks will be able to tell you that they sent you an email. Instead of saying “I don’t check email” which can be off-putting say “oh I missed it, let me check”.\nThen check your email, read their message, and ignore all other messages.\nCheck email twice a day (only) The easiest way to train people not to use email as a crutch is not use it as one yourself. Only check email twice a day, and give a concerted effort to reduce that to once a day within a month, and once a week within 6 months. Setup the other messaging systems so that email is used only for what it needs to be. And when people step out of line, correct them.\nDon’t check email first or last Email should not be the first thing that you check in the morning, as you should not be working out of email. It should also not be the last thing you check as it will disrupt your already stressful commute/home life. Instead check email 2 hours after the start of the day, and 2 hours before the end of the day. If you work a 9-to-5 that means once at 11am and once at 3pm.\nThe day you start doing this, tell the people that send you the most email and the ones that you will most affect by the change, and no one else. You are not trying to be sneaky, but if you blast an email to everyone then you are going to make it a big deal; which it is not. The others will learn over time.\nDon’t use Inbox as an archive Once you are finished reading an email, either deal with the email and delete it or archive it. Create a separate archive folder and move emails there if you need to save them. Your goal is aways to reduce the inbox to zero\nCreate an “other inbox” By default all messages should go to your “other inbox”. Then you should have filters that filter-in messages that are important. A recommended filter might be messages where you are the direct recipient and the sender is an important sender.\nI recommend this as the first filter, but eventually your “other inbox” will become overloaded. So a standard fine grain set of filters will likely be needed to redirect messages junk away from the “other inbox”. These can just be filters before “other inbox” filter.\nUse the server’s filtering mechanism When possible have server do all the filtering that way you can use multiple email clients and will not be dependent on leaving an email client on. All Exchange servers and many online email services can do server filtering. When using Outlook, be careful, the ease of creating filters is sometimes offset by the fact that it lies about what filters can be saved to the server. Though harder, since MS didn’t spend much time on the server-side features of Exchange, it is better to build the filters on the server directly.\nReduce the inbox to zero (in one sitting) The goal is always to reduce your inbox to zero. Once all the filters are in place, the only thing left to actually deal with all the important emails (at least that is the hope). When dealing with email decide if the email should be dealt with, deferred, or archived.\nIf time is really an issue then find the messages to archive and defer first, and move them. That way what is left is just the stuff to deal with now.","lastmodified":"2010-12-12T00:00:00-05:00","tags":null,"title":"Deal With Email Overload"},"/blog/20101215-js-unit-testing-using-yui":{"content":"Ok, Selenium was a partial success that you can read about here, but it really was harder then I wanted it to be and it required a lot of setup for only a little bit of testing. I noticed that a project that I use a lot ExtJS uses a modified version of YUI Test. So I converted my Selenium test example to YUI Test.\nMy initial impression was confusion because you have to download the entire YUI 2 suite just get to get the test tools. Also, when you download the entire suite they are many different copies of the same file in various stages of minification. But following the documentation I boiled down exactly what I needed and threw away the rest. I put all the code for my test here so you can follow along.\nYou will need the following files from the YUI archive:\nbuild/logger/assets/logger.css build/logger/logger.js build/yuiloader-dom-event/yuiloader-dom-event.js build/yuitest/assets/testlogger.css build/yuitest/yuitest.js Create an HTML file that includes the css and js files: The HTML will also need to instantiate the test logger and run the test runner global. I bound the test run to a button so I could control when it ran: Now that we have a YAHOO.tool.TestRunner we need to add a test that can be run. Instantiate a new YAHOO.tool.TestCase and add it to the TestRunner. All a TestCase needs is a name and a bunch of functions that start with “test”. Everything else is automatic. Below is a simplified version of the full file. Conclusion Though Selenium is more automated that comes at the cost of being more complicated then testing should be. If I were a team of programmers then sure setting up and maintaining Selenium Remote controls would be a small part of the overall effort, but since I am not a team of programmers I think it is overkill.\nWhat I really need is an easy to run, easy to write, repeatable, unit testing framework in JS. I do the leg work on pointing my various browsers at the html and reviewing the results. When things get big enough that I need to setup a continuous integration server, or I have a QA department, then I will give Selenium another go. For now YUI test is the way to go.","lastmodified":"2010-12-15T00:00:00-05:00","tags":null,"title":"JS Unit Testing Using YUI"},"/blog/20101231-minimum-developement-enviornment":{"content":"Every developer has their own opinions on what tools are needed. This is a very malleable list, in general, but in my ten years of experience I have found some key things are are needed. Sure, you can live without a lot of these, but they will make your life easier.\nText Editor A text editor is where a programmer is going to spend most of their time. I am sure it is nice to have all the IDE features right there in the side bar or right click menu, but a lot of IDEs (Eclipse I am looking at you) add this fluff at the expense of a truly useable text editor. I don’t need my editor to take 15minutes to open if all I am going to do is edit a single file. I don’t need a plugin architecture if all I want to do is edit a script and run it from the editor.\nI use TextMate right now because it has all the features I require. If another editor comes along (one that is updated regularly) that has them then I will switch.\nGutter It isn’t enough to have a note somewhere about the current line (for example the bottom). I want a gutter that takes up constant room and shows the line number as well as other things like: cursor location, folding marks, breakpoint/quick jump points.\nSyntax Highlighting This is a must! Sorry vi. It is a very quick way of determining if the syntax is correct. It also make the code easier to read.\nWhite space highlighting Very often tabs are mixed with spaces. This is a no no, and if you are working with me I will not accept mixed code. Use one or the other, not both interchangeably. And have an editor that can show you the difference. If it is a feature that vi has then you better be damn sure your editor has it as well.\nVertical Selection There are times where vertical selection comes in handy. Basically it places the cursor as a box and anything you type is repeated once for every line. Great if you need to add indentation to the front of a lot of lines at once.\nFolding When programers write 1400 line functions (don’t scoff you know you have done it) it is nice to hide those. Basically any block that is not immediately useful to me is hidden.\nHotkeys (for everything!) The Windows method of pressing alt+X, where X is the underlined letter of the menu, is not what I mean. Everything should have a single hotkey combination what does exactly what I want. For example to run the current file as a script cmd+R seems reasonable to me. It also has to be single press. Sorry Emac ctrl+x,ctrl+r just to run a file isn’t going to cut it.\nMouse Support Yep, selection especially vertical selection is just faster with a mouse.\nQuick Search cmd+f should present a search box. cmd+g should quick search for what was already typed in the search box. And the search box should be erased when opening a new file. shift+cmd+g should search up instead of down. All search should automatically wrap without asking or prompting. I can see from the scroll bar that a wrap happened.\nSearch and Replace Search has to support regex, with matching. Replace needs to support matched items (usually $N where n is the paranes set). Replace should allow replacing in the entire file, or just in the highlighted section.\nQuick Open When opening a directory to do not all files open in the editor. I just want a file browser and a place where the text files will open. Quick open (cmd+t in TextMate) should show a dialog listing all the files that meet my typing so that I can quickly open the one I want. I do not want to have to type a full path, or search for the file. The editor should index the file names so that I can quickly open them when I want. Updating of the list of files also has to happen live.\nIndent Correction Contributors will mix tabs and spaces because they will not enable white space highlighting. If the code is already checked in and I have to deal with it then I am going to have my editor re-indent the way I want. I will commit this first then start making changes. What way my changes can actually be seen and are not hidden in indentation hell.\nScripting Support Any editor that can run scripts is an IDE. In many case they are better because you get a great editor first, and an ability to extend it. Most IDE spend a lot of time outthinking you as the user. More specifically they spend a lot of CPU and memory on things in hopes that they might be useful to you one day. This is CPU and memory that could be used by your kernel to do other things that are actually useful to you.\nCommand line tool I spend a lot of time at the command line. So I really need to be able to open a file in the current directory (or the directory itself) from there.\nControl Comments These are comments that can be placed at the top of a file to control how the editor shows the document. They are normally hidden within comment blocks so do not affect the flow of the document, but are very useful for controlling file specific changes.\nTerminal The reverse is similarly true. Sometimes you need to run a command without leaving the editor. It is best is the editor can do that via a real terminal.\nNative/Quick start/Low Memory Java apps might work on a lot of different architectures, but they are dog slow and memory hogs. The editor I use is going to be the editor I use for almost all text work. I might open a lot of files at once, or I might open only a single file at a time. It needs to be fast.\nVersion Control I use git. You will eventually use it as well so you might as well learn it.\nNon-locking Commits Distributed Network Fast Personal Branches Tags Merging SVN’s merging was a joke. It was so bad that it made you do all the work, so you basically never did it. I have yet to have serious problem with GIT merging and I use it daily. In fact I might have 2 to 3 active branches going at one time, and I will randomly merge between them. It just works. I don’t know why, nor do I care. And when it fails, it does so clearly. It doesn’t just puke random output at you.\nMisc The following more important when you start working in a group setting. At work they will often be given to you or forced upon you, but for personal projects I recommend having a set of free or OSS options to pull from.\nCloud Repository Storage This can be anything that gets the code off of your machine. It is the means of sharing code between other people and machines. The requirements are minimal, but basically it has to support the SVC tool you use (usually git), allow for both human and machine accounts, and have a permissions model to allow basic limiting of access (for example, machines get read-only access).\nWiki Some location will be needed so that you can get your ideas out of your head and into someone else’s; be it the user of your software or another maintainer (like the future you). It doesn’t have to be anything complex, and the concept of wiki style documentation is about as light weight as you can get. Have one.\nRequirements and Issue Management System / Service Once your software is used, especially if used by others, things will come up. Since no one can spend every moment of every day just implementing you will need a place to park requests so that you can focus on other things. This is where a “ticketing” system comes in.\nThe basic requirement is a system that can house multiple tickets. Each ticket needs a text box where you can describe what the issue is or what needs to be done, the ability to assign it to someone, the ability to order the ticket, the ability to comment or discuss, and finally the ability to track status (open, done, etc…).\nCaution: Many of the systems readily available were built in a time of code bloat, where the belief was that the code needed to handle all things. This has lead many of the systems out there to be a basic copy of someone else’s complex workflow; codified. This can lead to bloated and inflexible process, so unless you really need the bells and whistles I’d avoid them in favor of something really light weight. Sometimes a spreadsheet is good enough.\nTesting Framework(s) Regardless of what you are building you will need to test it to make sure your change didn’t break something that was already working. I could write entire blog entries on proper testing techniques, but the basics are the need for three types of testing system.\nUnit test - These tests - always written by programmers - test the very low level objects. Usually they focus on edge cases in the logic. Often times a programming language will have this built in. Behavioral tests - These tests - also always written by a programmer - prove that the work is complete. In other words these prove the “behavior” of the feature being coded and are often extracted from the requirement of the feature itself. The Frameworks you choose will determine the Behavioral test frameworks that you have available to you and the form those tests take. None is really better then another as long as in 2 to 5 years you can re-read the tests to determine if the described intent matches the logic. If it is difficult to marry those two things then choose a simpler test framework. Just remember DRY is not a thing in testing. System tests - These tests - written by QA - prove the software works outside of itself. That is that they test the final artifact that is produced. They are always outside the repo itself and always on the built artifact. These tests are often paired or versioned with the artifact, so that you can go back and retest old software to determine if an issue exists there or not. For a library this might be using it downstream project, so the downstream’s unit tests act as system tests for the upstreams. For a binary this might be coping the binary onto a host machine and executing it. For an appliance this might be booting it, and using its API. Notice how integration test is missing from the above? That is because it is an overly board and over used term. As such it often comes to mean “test what is easy to test”, and thus becomes an ultimate waste of time. The above testing styles have a clear intent, and intent is everything. So put on different hats and test correctly instead of what is easy.\nContinuous Integration Service / System Once the tests are written, and the compile and packaging details ironed out, there should be a system that isn’t the developer to does that. Ideally this system can be built from a minimal config using a set of directives that are defined in configuration files stored with the code itself. This ensures that the config is versioned along with the source code (i.e., Infrastructure as Code). Also, it ensure that a single system can be used for multiple projects thus dividing the maintenance costs across projects.\nWhat the CI server / service should do is:\nMonitor for change to the code If changed, it downloads the new code finds and blindly executes the IaC file reports pass / failure status Caution: It sounds simple enough, but finding the right balance of expressive IaC that runs fast enough that isn’t hard to rebuild when it is a corrupted is extremely difficult. As the build system gets more complex and more scripts are written to work around its problem the Ikea effect can kick in making the build machine seem more valuable than it really is. Don’t invest highly in an “CI ecosystem” (i.e., Jenkins), instead treat it as a set of fungible runners executing build and test scripts that are versioned with the source it builds. Be able to delete and rebuild the CI platform quickly, so that when a better CI platform come along you are in a position to switch quickly.\nArtifact Store Whatever you are building you should not use the source repo itself as the final state. Instead you should CI it (test, build, and package) the software and then capture the package somewhere else.\nWhat and how you do that will depend on what language you use, and how downstream user need to consume the artifact. In some cases your code might need to built into multiple artifacts stored separately.\nThe only real advise is that the Artifact Store has to handle the distribution of the artifacts, which means it need to be able to hold multiple versions and have a permissions model that allows write access by the build process and read-only to downstream consumers. Also, it needs to be able to handle the amount of parallel downloads of the artifacts.\nContinuous Deployment Service / System If you are building a library or artifact then you won’t need one of these. Testing, building and coping the artifact to a final storage location is going to be enough. However, if you are hosting a service then you will need to have an automated means to make the new software available customers automatically.\nThere are many styles of deployment and no one tool that is good at them all. Also, the CD platform you can use will be determined by how you run your service.\nBasically, it needs to be able to:\nCheck for the need to deploy Usually either checking for new versions of artifacts, or via manual push button. Anything else can rolled up into one of these two options. Delta the current to expected state and determine the correct commands to run Gone are the days when you write a script to deploy. Modern CD is declarative. Recover from issues in the deployment Again, declarative. You say how something can recover on error and CD figure out if it is needed and what the actual steps would be. Could be a retry, a roll back, a halt, or something else. Notify a human Caution: CD can be “implemented” using a CI platform but that is fraught with problems. It is tantamount to using a hammer on screws. Yes you can, but should you? No you shouldn’t. Pick a tool that is aimed at the end goal of the deployment and makes part easy.","lastmodified":"2010-12-31T00:00:00-05:00","tags":null,"title":"Minimum Developement Enviornment"},"/blog/20110104-what-the-restaurant-industry-can-teach-the-software-industry":{"content":"I really like “Gordon Ramsey’s Kitchen Nightmares.” Not the American version because it is mostly drama. The British version is where the substance is. The basic idea is that Gordon has 7 days to turn a failing restaurant into a successful one. Also, four to six weeks later he returns to see how many of his ideas stuck and how the business is going.\nUniversally, if the restaurant follows his advise they do well. If they fight him they fail. His tactic in every episode are almost identical and I have taken them and applied them to the software industry. Nothing new here, just interesting how good ideas transcend industries.\nKnow your customers A lot of restaurant fail because try to be what they want and not what the customers want. Your location dictates what types of food you can serve, and even what decorations should be used in the restaurant. The chef/owner has to bring the concept, but that concept has to fit the area.\nThe same is true in software. Google Wave is a good example of what not to do. There was no real problem to solve, and there was really no audience. It was a novel idea, but it lacked the understanding of what it was trying to do.\nMeet the Quality Expectation There is a minimum quality that a sit-down restaurant must meet. It is entirely based on user expectation of value. One does not go into a sit-down and expect to order off of a “dollar menu.” And one does not expect to get preprocessed, pre-made, microwaved, hamburger.\nWhat the customer never sees, that Gordon really harps on, is a clean kitchen with quality fresh ingredients.\nElegance is more important then flash If the restaurant looks like “Tijuana puked up” then there is a good bet where all the money went and it isn’t the food. A similar thing can be said about software. If the UI looks like an icon library puked on it then all the money went into adding features no one uses.\nThere is an understated elegance to that indicates a care to details. And that makes things more enjoyable.\nSimple is Key In Gordon’s words “simple is key.” This is just part of the reason that Twitter, and FourSquare are popular given that Facebook has both of these features. There’s is the simpler solution so when that is all you want that is where you go.\nPassion and Direction are key Any kitchen that does not have a passionate chef is doomed. The same has to be true of your software engineers. When the passion is lost then everything falls apart.\nThe other important part is direction. Passion without direction is bull in a china shop; great energy, but likely to cause more harm then good.","lastmodified":"2011-01-04T00:00:00-05:00","tags":null,"title":"What the Restaurant Industry Can Teach the Software Industry"},"/blog/20110110-problems-with-agile-implementation":{"content":"I really like agile programming. It keeps me close to the action, and makes me have to think about my next moves. It also keeps me informed as to what is going on around me. But in my many years of using agile I realize that, though the process itself is very nice, its implementations can tend not to be.\nProblem don’t arise from agile itself, but who and how it was implemented. If the implementer’s goals do not match the Agile Manifesto there is little chance of success.\nI have used scrum many times and the most common problems I see are:\nAgile as Micromanagement There are many reasons that folks micromanage, but usually it comes from a place of fear. This fear then leads to an over involvement, which in turn leads to the Agile methods becoming a weapon for them to alleviate that fear by remaining in control.\nIt looks like:\nHaving to break task down into hourly segments of work Having to break task that logically have to be done by a single person Having to account for ALL time taken, even time not related to code like attending meetings Having to be overly detailed in comments on work items Using deadlines instead of priority Agile tenet misused:\nIndividuals and interactions over process and tools Working software over comprehensive documentation This happens when a manager (chicken role) is the Scrum Master or when the Product Owner has say over implementation specifics. It is a confusion of roles, which in turn leads to a confusion of goals, which in turn leads lost productivity.\nAgile as a Whip Where micromanagement affects entire teams whips are an individualized weapon. Agile tools can be used to single out individuals just as well if not better than entire teams. The following are signs that it being to whip and individual.\nIt looks like:\nFiltering a burn-down on an individual basis Placing “realistic efforts” on tickets because the individual “cannot estimate correctly” Associating points with people (publicly) Associating number of tasks done with effort Associating points with hours, in an attempt to estimate a person’s working day Basically anything where measured output is more important then people Agile tenet misused:\nIndividuals and interactions over process and tools Anytime you associate numbers with people you have created a crab mentality. Their focus will stop being on software, but on making their numbers better. Those that are better at number games will succeed, those that are better at software will fail.\nAnytime you put your people under undo pressure then simple mistakes are made. This is going to later erode confidence in the team. It is going to happen like this: “you missed a comma in a Javascript file which causes it not to work in IE. That was such a simple mistake to have tested for that I am not sure you are testing any of your code.” The problem was caused by 4 hours of sleep in 72 hours of coding at the end of an over-extended sprint. The programmer was nearly delirious. It is shocking it was the only mistake, not that it was a simple mistake!\nUnfortunately I have seen this situation start innocent enough, with comments like “we don’t want to over work the staff” or “we want to make sure they always have something to do” or “we want them working on the correct things”. If the “we” in question is management then there is probably already a misalignment, and Agile is going to be used as whip to solve the problems created by the bad implementation.\nAgile as Demotivation And now we come full circle to have to do when Agile has been used poorly and management is stuck. Clearly it isn’t Agile’s fault cause Agile is perfect right?\nWhat happens here is that management is try to convince folks that it is their fault. The following are some actual quotes I have been told over my career. I paraphrased to remove details about the person and companies involved.\nIt looks like:\n“You said it would take 3 days. It took 10 days. You need to make up the difference out of your own time” It did actually only took 3 effort days, just took 10 calendar days due to distractions. “We cannot slip these date, and you have already pared back the release 2 sprints ago. You need to put in extra effort” 2 Sprints ago the direction changed and 2 sprints of effort were exchanged with 2 others without discussion. It took 1 sprint to cleanup / hide the feature that were in-progress but that wasn’t accounted for. There were still 2 sprints of effort left at this point “Agile is about being agile. Even though we are mid sprint we are radically changing direction, we are not canceling the sprint or doing sprint planning. We are just swapping out some tasks for others. We already did the estimates for you so you can keep working.” Yes, this was what was actually said to us those 2 sprints ago. Agile tenet misused:\nIndividuals and interactions over process and tools Responding to change over following a plan These are all excuses I have heard. Each time given by a person in a manager role because they are ignoring changes in the field (military term). Every choice has a set of outcomes: some good, some bad. The attempt with agile is not to mitigate bad outcomes, but to allow those outcomes to contribute to the overall direction.\nSometimes the bad outcome will be that something took too long, or that one language/tool was not the correct choice given the problem set. If for every problem that happens the developer has to take their own time, or face embarrassment, to solve the problem then they will stop making choices. Not just choices that might have bad outcomes, but choices altogether. At which point someone in a management will start making detrimental choices.","lastmodified":"2011-01-10T00:00:00-05:00","tags":null,"title":"Problems With Agile Implementation"},"/blog/20110711-understand-capistrano-without-rails":{"content":"I am working on a rails project and that rails project is distributed over several nodes in a cluster. However, each of those nodes is a standalone unit and the rails app is a small administrative frontend for that box only. For this reason the standard Capistrano deployment tasks will not work. So some hacking is in order.\nLooking around I noticed a number of projects that were just deployment steps for other frameworks and stacks, but still required Capistrano. This got me thinking that maybe Capistrano is more then just a set of deployment steps. The wiki does not make this clear but there are three parts to Capistrano:\nan engine to replicate (transactional) commands on any number of servers a rake like DSL for defining tasks to perform on remote servers, and a set of deployment recipes specifically tied to rails. The first two items are what I need and by not including the default recipes I can do anything I want. Below is my understanding of how Capistrano works.\nSample config/deploy.rb file The below code is an example that will be reference throughout.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 role :servers, 'host1' role :client, 'host2', 'host3' role :client, 'host4', :special => true task :install, :roles => :servers do run \"uname -a\" end task :test, :roles => :client do sudo 'echo TEST' end test :special, :roles => :client, :only => {:special => true} do sudo \"echo SPECIAL\" end Understanding Roles Capistrano uses “roles” to list servers with similar behaviors. The default recipe uses roles like “web” and “db” and makes it seem like that they are in some way special. They really are not. The only way they are used is by the “roles” option when defining a task.\nWhen a task defines “roles” then it will only be called on the server that have that role (see sample). Additionally options can be added to the end of roles that act like flags that can later be used by tasks to filter. Armed with understanding we can easily create arbitrary roles for use in our deployment steps.\nUnderstanding Tasks Capistrano is a simplified rake like syntax. If you are familiar with rake there are few gotcha:\ntasks cannot take input, and tasks and namespaces cannot overlap. Both of these can be worked around however. Deployment tasks should never (NEVER) take user input. User input is a variable that cannot be repeated automatically. So armed with the knowledge that if you “need” user input in deployment then you are doing something wrong rework the system to not require user input and move on.\nThere is only one special task name that I have found “:default”. If you make a task “:default” then it will simply become the task that is run when the namespace is called. It also, takes itself out of the help list so there is no task <namespace>:default.\nUnderstand Flags Task provide the options “except” and “only” that work on role flags. In the sample there is a task :special that will only run for hosts with the “client” role that also have the :special flag set to true. The included deployment recipe adds :primary to the :db role to indicate that it is the only server on which migrations should be run. I currently have no use for flags, but it is nice to understand their behavior.\nCalling other tasks In rake it is possible to say that a task depends on other tasks. In Capistrano it is not. This is not a problem since task is a wrapper around a method definition. Basically you can call a task in the current namespace by using its name like a method. And you can call methods in higher namespaces using “top”.\n1 2 3 4 5 6 7 8 9 10 11 12 13 task :upload do puts \"real upload\" end namespace :child do task :upload do puts \"child upload\" end task :upload1 do top.upload end end 1 2 3 4 5 6 7 8 $ cap upload real upload $ cap child:upload child upload $ cap child:upload1 real upload Understanding Connections In addition to being a DSL to define deployment tasks Capistrano is also an SSH connection manager. Using the “run” or “sudo” function Capistrano will execute that string at a shell on each remote machine in turn. The gotcha is that each call to “run” or “sudo” opens an entirely new connection. Therefore if several things need to be done at once use ; or && to chain commands in a single shell.\n1 2 3 4 task :test do run \"export TEST=foo && echo $TEST\" run \"echo $TEST\" end 1 2 3 4 5 6 7 8 9 10 11 $ with servers !test ** [out :: host1] foo ** [out :: host1] $ with client !test ** [out :: host2] foo ** [out :: host3] foo ** [out :: host4] foo ** [out :: host2] ** [out :: host3] ** [out :: host4] In the above example the ENV variable “TEST” is set to foo, but since the second “run” gets a new shell the ENV is reset. Also, in the second example it is clear that each “run” is executed on every server before it moves onto the next server.","lastmodified":"2011-07-11T00:00:00-04:00","tags":null,"title":"Understand Capistrano Without Rails"},"/blog/20110908-software-hazard-pay":{"content":"The military has a concept of “hazard pay” which is extra money because you are placing your life on the line. Software has something similar, though certainly not as permanent, where you are putting your socioeconomic well being on the line.\nThe following is a list of things that I think are software hazards that should require more pay.\nDress-code Policy A policy is an explicit rule created to cover an anomaly. And when the anomaly is repaired the policy remains. Dress-code policies (“dress atire shall be no less then business casual”) like social-conduct policies (“you shall report yourself in a professional manner”) are specifically vague, as to leave management leeway so that enforcement is discretionary.\nI am against these type of policys because they setup a confrontational attitude between management and workers. I personally do not know of any professional (sorry, but waiters and waitresses don’t count) that has been fired because of the enforcement of a dress-code policy, so I have to question the merits of explicitly stating one.\nLook at truly innovative technology companies and you will notice one thing lacking: a dress-code policy.\nSoftware IT Software engineers, that are good, are tinkerers. We have broken more then a few computers in our day, and almost always figure out why and fix it. The job of an IT department is to prevent employees from tinkering with computers, because it costs the company valuable effort.\nThese two departments can only co-exist as peers. In general if IT provides API to standard services like Email then software developers will never have to bother IT with questions. After all software developers are usually overqualified IT.\nIf the company codes for the Linux platform, but software developers are required to use windows machines, because that is what IT can support, this is a sign of an imbalance between Software and IT.\nNo SVC Every programmer that has been out of college for more then a semester knows about Source Versioning Control systems. There isn’t even a debate anymore, they are essential for programming. A company without at least some type of SVC is scary.\nIf you know and understand Git then you can solve this problem for the company, but if the other engineers are not familiar with such system there is going to be strong, and often emotional, opposition. Not something a professional should have to deal with.\nCommercial SVC There is no commercial SVC software out there that has the usefulness that Git does. There are a lot that fill in for the lack of usefulness by adding bloat, like IP protection. Commercial SVCs are always sold to detached CTOs by sales guys that hide its destructive nature.\nOnly a detached CTO would buy software without first letting the developers review it for usefulness. I do honestly think commercial SVC systems are destructive because they always designed for an audience that is not software developers. At best this means that the developers adapt, but usually it means that adding wildly complicated procedures to deal with the lack of a good flow.\nVSS is a great example of this failure. It only supports file locking, because it is easiest to implement. It also could not deal with merge conflicts, so external tools has to be purchased to deal with that. Also, if files were locked the nightly internal backup could not run or it would create a corrupt backup. So you couldn’t keep files locked overnight. It didn’t support branches (as we know them today) so everyone worked on the same set of files, and locked each other out all the time. It was hell!\nNo CI This is the first thing I do before any code is written. I create an empty repo, put an a rake/make/cake file that simply has one step “ci” and attach that to a CI server. As soon as we know the details of the language, testing framework, coverage metrics, etc… I adjust “make ci” to do those things.\nIt is so simple to setup that if it isn’t there then it erodes my confidence in the entire project. Tests are the only reliable communicator of assumptions, and not having a system that actively enforces those assumptions will cause greater complications later.\nRequired IDE Detached management love IDE’s, because they speak in a language that managers understand: GUI. Sometime they are useful and sometimes they are not. And most of the time they bloated, slow, and expensive.\nAny editor that can shell out is an IDE. So if using a specific IDE is required then someone is forcing their bad ideas on you. The emacs vs. vi debate still rages because they are as powerful (in cases more so) then what we think of as IDEs (xcode, eclipse, etc…), but they both are and neither requires a specific “project” file to manage a project.\nCowboys and “Heroes” Cowboy coders prefer to work alone, often thinking themselves and their code superior to other developers. If there are not code reviews, it is usually because of adamant opposition from these guys. Even if they lose the code review fight they will fight be exempt from code reviews themselves.\nAll they do is hack some stuff together without thought of quality or maintainability and call it done. They are dangerous, and the quality of the system will suffer as the project gets too complicated to fit entirely within their own heads.\nA “hero” is a very loud cowboy. They are the software equivalent of “yes” men. They tell management what they want to hear, and often gain position greater then their experience and expertise. Unfortunately they almost always spell doom to a project in one way or another. Sometimes it is outright fail to produce a workable product, and sometimes it is a mass exodus of skilled workers.\nBoth cowboys and “heroes” have a habit of getting entrenched and are very hard to unseat, but the project will not survive them.\nCoding Silos For reason beyond my understanding managers usually frown upon agile approaches like pair programming. It is seen as wasting company time and tantamount to theft. Instead they would prefer programmers to “just do their job” which involves writing code and not much else.\nA vertical silo is where you are expected to do everything from the GUI to the database layer. On small projects this is expected and even wanted. But rarely (unless you doing it on your own time) will a progressional project be that small. When a person holds the entire stack in their heads then the apparent usefulness of MVC (or similar patterns) breaks down. This later leads to scaling problems.\nA horizontal silo is when there are many projects for the company and you maintain the same role on ALL of them. A major problem is in solving the wrong problems. For example: you are the DBA for all apps in the company. You have a very expensive Oracle DB and know it well, and have a bunch of homegrown management scripts. Therefore all web apps run on the same Oracle DB server because it is quicker and easier for you, and now there are two single points of failure (you and DB). Sqlite would have been good enough, but that isn’t how specialized people think.\nWhen all you have a hammer all problems look like nails - Barry Gruenberg.\nAnother problem with horizontal silos is a stagnating. For example: a junior engineer wants to use a new distributed key/value store like Cassandra or CouchDB. You argue with management that a simple key/value table in the already sharded Oracle DB would be good enough and would save the company money in both hardware and effort. You might be right, or you might be wrong; but you are guaranteed not be to exposed to a different way of thinking. In the long run that simple act adds complacency and stagnation into large companies.\nThe only sustainable solution is a cross functional team, where everyone has areas of strength and weakness but they work on the system as a whole.\nValue Based Estimates At market driven company it is not uncommon to see estimates done by those not qualified to do them (management). A marketing department will usually attach a proposed value of a given feature, or product. This automatically skews the estimate by placing an upper bound (the value minus require profit).\nIf the company communicates well then realistic estimates are given by developers, and if those estimates are higher then the projected value then the feature or product is not invested in. In marketing driven the realistic estimate are not done or are ignored and the project moves forward with the value estimate. This then adds instant legacy as the correct implementation was not worth the effort, so a half-assed job was done instead.\nHopefully, the team at least invested in a means to fix past mistakes. But sometimes that isn’t a feature worth the effort.\nDetached Management Much of what has already been stated come from the same source: detached management. A detached manager will often blame the developers for failures in software and procedures he/she is forcing on them. “A carpenter doesn’t blame his tools” is a common excuse. If a developer is lazy and has no interest in keeping up with the industry it is a valid excuse, but more often the manager just doesn’t want to hear that they did not fully think through the problem before forcing a solution.\nEarly in the game this looks like a manager that doesn’t show up to scrum calls because they are too busy.\nOverstaffing One of the easiest ways to make a budget look needed is to hire a bunch of staff. If there is an influx of new hires, especially if they appear unqualified or under qualified then it is possibly for budgetary reasons.\nThe unfortunate side effect of overstaffing (even if the staff is qualified) is laziness. More staff equals more cooks in the same amount of space, which in turn equals more confusion and less efficiency. This lack of efficiency leads to an imbalance of responsibilities and therefore some will be overworked and other underworked. Underworked employees become complacent, and overworked ones become annoyed and will work less. This drives overall productivity down.\nAdding staff at any stage of a project makes the project take longer and that will continue to be true until we learn to download and upload expertise.\nMarket Driven or Marketing Driven company Companies driven by a Marketing Department (however good) are reactive companies. There is no vision of how things should be, or why they should be that way. It takes a visionary to reduce a companies offering, and instead focus on quality. Marketing departments do not do this, they always add more.\nIn fact, there is a certain critical mass in which a marketing department exists to exist. This is the point at which the marketing budget becomes as big (or bigger) then the R&D and Engineering departments, so they can convince users of the usefulness of the product (which probably isn’t).\n“Putting out fires” Anytime I hear “putting out fires” I know the project is doomed. Things probably got this way gradually over time, but at this point there is too much technical debt to warrant moving forward. Projects that cannot move forward die.\nThe only way to prevent this situation is to head it off early by dealing with heroes before they cause trouble and keeping marketing in check.\n“Continuous Work” Anytime I hear someone from a company (usually marketing) mention continuous or unending work I get nervous. I understand that it is an attempt to make it seem like the job is on going and therefore safe, but I am not a factory worker. The stuff I work on should have a natural conclusion, and the knowledge I gained should then be used on another project.\n“Competitive Salary” Anytime I hear “Competitive Salary” I know three things:\nit is a lie, and by extension the company lies. they gear to recruiters, not people being hired they under value employees and will undervalue you Huge red flags are raised.\nAgile Lip-service A lot of companies are flocking to Agile as an end all be all. But that is exactly what Agile is not. I have detailed in Problems with Agile Implementation a number of bad implementation and companies that think Agile is a silver bullet are likely to make some or all of them.","lastmodified":"2011-09-08T00:00:00-04:00","tags":null,"title":"Software Hazard Pay"},"/blog/20120309-factory-girl-automatic-tests":{"content":"Early in a project I started to use factory girl without fully understanding it. After many months of creating steps like Given /^(\\d+) blog exists$/ and Given /^the following blogs exist:$/ I started to come up with generic functions that would build those steps.\nStupid me for not checking that factory girl already does something like that. All you have to do is include factory girl’s step_definition file:\n1 requie 'factory_girl/step_definitions' Once you start using FactoryGirl correctly there are a world of new features that can make your steps both cleaner and more concise. Here are some tips I have found via trial and error.\nTip 1: Do not reinvent the wheel Factory girl will create steps for all factories that you have register.\n1 2 3 4 5 6 7 8 class Blog < ActiveRecord::Base end FactoryGirl.define do factory :blog do name 'Foo' end end 1 2 3 4 5 6 7 8 Scenario: Showing example steps Given the following blogs exist: | name | | first blog | Given a blog exists with a name of \"first blog\" Given a blog exists Given 41 blogs exist Given 14 blogs exist with a description of \"Test\" Tip 2: Use association, Do not add more steps then are needed Factory girlassociation are automatically created before the factory is created and they are automatically linked. It only supports the belongs_to behavior, so keep that in mind.\nUsing the “Given the following XXX exist” step you can define attributes, on the theassociation, in the table. If we leave the association out then a default is created. If we define an attribute then it will be found or created using that attribute.\nLets say you have a product and it can belog to a category. You do not need to create a category.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 class Category < ActiveRecord::Base end class Product < ActiveRecord::Base belongs_to :category end FactoryGirl.define do factory :category do name 'Foo' end factory :product do association :category name 'Bar' end end 1 2 3 4 5 6 7 8 Scenario: Bad Given a category exists with a name of \"Foo\" Given a product exists with a category of \"Foo\" Scenario: Good Given the following products exist: | name | category | | Foo | name: Bar | Tip 3: Attaching files via CarrierWave Since cucumber is a text file it doesn’t make much sense for you to define full files in steps. It also doesn’t really make sense to embed full file paths in the tests. Instead, you can use a Transient attribute and some code so that in cucumber you define a file name and in the factory it converts to an actual file.\n1 2 3 4 5 6 7 8 9 10 11 12 class Product < ActiveRecord::Base mount_uploader :file, FileUploader end FactoryGirl.define do factory :product do ignore do file_name 'small_image.png' end file { File.open(Rails.root.join(\"path/to/files\",file_name)) unless file_name.blank? } end end 1 2 3 4 5 6 7 Scenario: Products Given a product exists # 1 product with an included file whose file_name was \"small_image.png\" Given the following products exist: | name | file name | | No image | | | Big image | big_image.png | Tip 4: Fixing a circular dependency between two models Lets say you have a Store model and User model. And a User can both work at and own a Store. If you put associations in both the User and the Store model then each will try to create the other, infinitely. We can reuse the transient method as before to break the circle.\nThe trick is to avoid defining an association in both factories, but instead use a transient attribute in one factory to simulate the behavior of an association. Also, since transient attributes are not likely to have the same level of sophistication as the associations you should use the association to define the more complex of the two models.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 class User < ActiveRecord::Base belongs_to :store has_many :stores, :foreign_key => 'owner_id' end class Store < ActiveRecord::Base belongs_to :owner, :class_name => 'User' end FactoryGirl.define do factory :user do name 'John Doe' ignore do store_name nil end store {Store.find_or_create_by_name(store_name || 'Test store')} end factory :store do name 'Test store' association :owner, :factory => :user end end 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Scenario: 2 users named 'John Doe', and 2 stores named \"Test store\" Given a user exists Given a store exists Scenario: 2 users both working at the same store Given the following users exist: | name | store name | | John Doe | Test store | | Jane Doe | Test store | Scenario: 2 stores both owned by the same person Given the following stores exist: | name | owner | | MD Store | name: John Doe | | CA Store | name: John Doe | Tip 5: Fixing a circular dependency between the same model Let say you have a Category model, and that model can belong to another Category (a tree) then you cannot use an association or you get the same infinite recursion issue as before. Here we can use a transient attribute along with an after_create hook to simulate the behavior we want.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 class Category < ActiveRecord::Base acts_as_nested_set end FactoryGirl.define do factory :category do name 'Foo' ignore do parent nil end after_create do |category,attributes| unless attributes.parent.blank? parent = Category.find_by_name(attributes.parent) category.move_to_child_of(parent) end end end end 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Scenario: Has no parents Given the following categories exist: | name | | Foo | | Bar | | Baz | Scenario: Nested tree Given the following categories exist: | name | parent | | Foo | | | Bar | Foo | | Baz | Bar | # + Foo # |+ Bar # |- Baz ","lastmodified":"2012-03-09T00:00:00-05:00","tags":null,"title":"Factory Girl Automatic Tests"},"/blog/20120519-the-everyone-elses-job-is-easy-paradox":{"content":"The “Everyone else’s job is easy” is a easy trap to fall into and an almost impossible trap to get out of. My point is best illustrated using the stereotypical Employee/IT relationship.\nThe stereotype from the Employee’s perspective is this “I hate dealing with IT. They are a bunch of asses, and never do things right, and my computer is alway worse after they leave then it was with the problem that I called them for. What is their problem? It is their f’n job to keep these computers working so that I can do my job. I have no interest in working this weekend because IT was not able to get my computer fixed in a reasonable amount of time. When ever I walk by their desk they are always goofing off, if they only did their job I could do mine, how hard could it be.”\nThe stereotype from the IT’s perspective is this “I have to fix everyone’s stupid computer. If only they would read that Wiki article I emailed about the proper way to do this thing then I wouldn’t have to keep fixing things. I tried to prevent these kind of issues by not giving admin rights to users, but they always need to install some piece of crap software, and they won’t take the time to learn to take responsibility. After all with great power comes great responsibility, and I see none of it. In addition to keeping everyone’s computer working all the damn time I also have to keep all the internal and external services running. Besides most of the time these people are on the phone chit-chatting, or standing around the water cooler; clearly their job easy enough for a monkey, so why should I rush.”\nThe problem It was a pretty extreme example, but I bet that everyone has acted this way to another individual at least one. How could you not, after all when tentions are high and emotions are frayed devaluation of other is a natural defense. And though it is a natural defense it is certainly not an acceptable one.\nI am certainly no Psychologist, but here are some ways I have found to prevent the escalation.\n1. Understand how hard everyone’s job actually is In term if difficultly, both mentally and physically here are the jobs in order from most difficult to least.\nBering Straight Fishermen Any other Fishermen Logger Political leader/Dictator Fugitive Mangers (above you in the company) Everyone else’s Job Your job Yep, once you understand that more then likely the person that you are dealing with has a more difficult job then you do then it is easier to compromise.\n2. Humanize This is hands down the hardest thing to do when nerves are frayed, but remember the other person in the argument is also a human.\n3. Eliminate Cognitive load Cognitive load is simply an amount of mental work that must be processed before learning can be accomplished. For example, it is not uncommon for requests between departments to have to be done in a formal way, like though a task tracking system. This is completely unacceptable.\nIf communication between departments has to be done in a formal way then the department HAS to consider every other depart as a customer. Would you as a customer of Comcast think that it is acceptable to have to login into a Comcast support portal in order to request them to fix your TV? No, you would call them, or email them, or do something else that is convient to you, and your would let Comcast deal with formalizing the request in a way useful to them.\nThe same has to be true between departments. If you are in IT and you have to formally use Autotask, or Zendesk, or anything else then YOU MUST also find a way to get the requests into that system. Other departments have to be able to call, email, or walk over to YOU and make requests.\nBut at the same time, other departments are as busy as you, so you have to remember that once asked turnaround can take a while.\n4. Detail the difficulty If the other person doesn’t know a lot about all your responsibilities then they are more likely to thing of things as easy. And most of the time everything that is being asked of you is easy, because it is your job and you are good at your job; right?\nThe problem is usually more likely the amount of stuff you have to do before you can do this one other “easy” thing. At one company I worked for we liked to call these type of situation marketing fire drills. Marketing would have a client that promised to buy 200 hundred widgets every year if only the widget has some feature. But we have 20 other features that have to be implemented before we can start on the new feature is started.\nSo in this case the difficulty is prioritizing all the “easy” features. Especially since each market person was responsible for their own projects and did not have a company wide view of things.\n5. Be concise, but be human Often times people see conciseness as talking about work and nothing else. But in my experience more time is wasted talking about work topics then for any other reason. I don’t mean that work topics are a waste of time, but how many time have there been several hours of talk when 15 minutes of actual investigation would have eliminated the need for talk.\nWhat I mean about being concise is only add information if it is relevant. “Because it is always done this way” is not relevant, no matter what you might think. So unless you have specific experience keep it to yourself. Also, raise any relevant questions, and take any relevant advice.\nBy eliminating the work conversation waste you can and should spend time talking about personal things. I have always been a huge fan of eating lunch away from the office with co-workers. It is the best to respect people and be respected. And by humanizing, barriers can be eliminated.","lastmodified":"2012-05-19T00:00:00-04:00","tags":null,"title":"The \"Everyone Else's Job Is Easy\" Paradox"},"/blog/20120520-the-problem-with-best-practices":{"content":"I hate the term “Best Practices” for two important reasons. First, in an attempt to be concise the eliminate the most import information: the reasoning. They are often just the call-to-action statement. and they are often passed down as policy. Some best practices are good practices (for example pre-flight checklist) when applied to the correct situation. But without the reasoning statement, it is hard to tell if the practice can be applied to other situations. If I had to apply a pre-flight checklist before starting to code then I would waste a huge amount of time.\nSecond, best practices eliminate critical thinking. With a misnomer like “Best Practices” it is not surprising that they are not questions. And in most situation questioning a “Best Practice” is taken as an affront to the person/department that introduced the Best Practice. I am not sure why this is, because very rarely is a Best Practice the best practice for every situation. But since they defy questioning once instituted they become technical dept when they outlive their usefulness.\nInstead of “Best Practices” I prefer “Pro Tips.” But the name itself is not as important as to how it is presented. In order for me to consider a “Pro Tip” it must have three parts: a list of benefits, a list of drawbacks, and description of behavior.\nA best practice: Always backup your work using git I do not think that any software engineer is going to argue that backing up work is a good thing. But by phasing it this way the problem because that “git” becomes an afterthought and therefore an annoyance.\nA Pro Tip: Use git as a journal Using git as a backup mechanism is a good thing. But it is better to use git to journal what you are doing. So instead of work for an entire day, committing everything at a single time, and then pushing everything at once you should do a single complete thing, and commit that. Usually commits happend every 5 to 10 minutes, but they are generally self contained.\nBenefits:\nYour work is backed up You and others can see your train of thought You can return of any point and attempt other options You eliminate the fear of trying new things Focused work Drawbacks:\nYou have to know git to make the most of it You have to take the time to make smaller commits You have to push more often You might have to start branching in order to keep organized Difficult for messy thinkers (tinkerers) See: a pro tip is a bit longer, and more detailed, but at the same time it is more convincing. The reader can then choose when and how to try the tip, and also is free to adapt the tip to their given situation. For example: a developer is going to use git differently then a designer; but git could be useful for both.","lastmodified":"2012-05-20T00:00:00-04:00","tags":null,"title":"The Problem With Best Practices"},"/blog/20120911-testing-rails-in-ie-through-pow":{"content":"My Problem I can’t test in IE (but the client wants it to work in IE 7 and IE 8). So I have to fool things.\nNote\nPow is now defunct. Services like nip.io, or sslip.io can be used instead. Just replace *.myhost.dev with *.nip.io and it will work as expected.\nMy Setup A mac - because I need it to work the first time every time Rails RVM - because you should be using it PostgreSQL - it is better then MySQL and actually easier to setup after you do it once. Pow - because it is small, spins up the rails server when you need it and the url looks like http://myhost.dev, not http://127.0.0.1:3000 (some browsers will attempt to look up “localhost” via google search, before asking DNS) TDD Cucumber - because it is easier to read integration level testing Rspec - because I like it (it both backs cucumber, and also us the unit testing for models and libraries) Capybara Capybara-webkit - so the browser is opened headless and doesn’t intrupt other work My Solution First do everything as normal, since you will be developing faster and only at the END worry about IE. This is counter to a lot of thinking, but I have found that if you stick to good TDD and are testing using an actual opened browser then the only issue you will end up with are CSS related issues.\nBefore you start Since it is likely that you will only have CSS issues it is a requirement that you make the main CSS work on HTML5 compliant browsers. And add exceptions for the others.\n<%= stylesheet_link_tag 'real' %> <!--[if IE]> <%= stylesheet_link_tag 'ie' %> <![endif]--> <!--[if IE 8]> <%= stylesheet_link_tag 'ie8' %> <![endif]--> <!--[if IE 7]> <%= stylesheet_link_tag 'ie7' %> <![endif]--> Use a Windows VM Go to https://github.com/xdissent/ievms and install the various IE VMs. I have not had luck with IE6 and IE7, but IE8 works fine.\n1 curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | IEVMS_VERSIONS=\"8\" bash If it fails, just keep rerunning it, or try a different version\nBoot and wait for driver detection On first boot I usually go in as Admin and let windows detect everything and install all the needed components. This isn’t a genuine version of windows so after 30 days you will be locked out, at which point you just need to revert to the “clean” snapshot.\nInstall the OS extensions For some reason the CD doesn’t autoplay for me. Just enter d: in the Start Menu -> Search and then select the installer.\nAdd Fake DNS Pow munges DNS on the Mac so that you don’t have to use “localhost”. I actually really like this about Pow and so will remain using it. The only thing that you need to do is edit the windows Hosts file and add the Fake DNS there as well.\nLogin as the IEUser Start -> Search -> “Notepad” Right click and select “Open as administrator” File -> Open Change URL to “C:\\WINDOWS\\system32\\drivers\\etc\\hosts” Add the following (change the host names as you need) “10.0.2.2 myhost.dev” “10.0.2.2 myhost1.dev” Now open http://myhost.dev in IE and it will work ","lastmodified":"2025-08-09T00:00:00-04:00","tags":null,"title":"Testing Rails in IE Through Pow"},"/blog/20140410-code-does-rust":{"content":"Fourteen years ago Joel Spolsky wrote an article entitled “Netscape Goes Bonkers”. In that article he states that “old software doesn’t rust”. The rest of the article is good, but that statement is “off”.\nTo be clear, as a direct comparison software contains no metal to oxidize and therefore cannot actually “rust”. But as an analogy, over time untouched software will slowly degrade and eventually stop working. So the corrected statement should have been “[untouched] old software rust[s].”\nRecently, some login code I wrote a few years ago magically stopped working on FireFox. This functionality continues to work on all other major browsers. However, due to the fact that FireFox decided to change how it handled cookies my software is now slightly less capable of performing as expected.\nAs a result, instead of making further progress on a new feature I am forced to a take a moment to clean and fix the rust spot. Not a challenging fix and not indicative of a fundamental design problem, but rather, an annoying, little issue which needs to be addressed. Of course, the big picture view is that, over the years, I’ve had to deal with hundreds of problems just like this one. Meaning that when I don’t closely maintain a project’s codebase and adapt it to dependency updates, then it’s performance and functionality is diminished. Very similarly to how an unmaintained metal surface rusts.\nThis leads me to believe that software does in fact rust.\nThe solution? I’ve found that there is no substitute for taking the proactive approach and resolving these problems early on because eventually the rust will become too significant and leads to the software being scrapped altogether.\nImportant\nIdeas age like fine wine, but software rusts.\nHow to slow the problem There are different ways to solve the problem depending on the situation.\nUse some one else’s Stable Interface Any time there is an interface between two systems there is corrosion. This is as true in software as it is in the real world. Tires exist because road surfaces chew-up (corrode) anything that slides across them. The tire is the car’s interface to the road. It is designed to be easily replaced when it wears out. The same method works for software.\nIf the interface between two systems is highly corrosive (constantly changing) then the best interface is someone else’s. For example, Heroku is a going to be a better interface to “cloud” hosting then Amazon. Amazon is infrastructure in the cloud; basically the road. Heroku is web hosting in the cloud and uses Amazon as a base; basically the tire. So if all you want to spend your time on is building the car, then use Heroku as the tires.\nUse a standards base API If the interface between two systems is only slightly corrosive then add a standardized “socket”, to protect yourself. Car’s don’t produce enough point-heat to light a cigarette, and instead of piping the 800+ degree exhaust into the cabin or giving unprotected access to the car’s battery the car manufacturer introduced a socket that could power a heating coil. The socket protects the car, and provides a standard interface. And by being standardized, anyone (not just the manufacturer) can create an adaptor to fit the socket.\nAn Application Programming Interface (API) is the software equivalent of a standardized socket. Any place your system needs to be accessed, simply create an API, even if you control both ends. Now your tests can focus on ensuring an unchanging API, to catch any wear that needs to be addressed.\nIgnore it until it fails If the interface is non-corrosive then test for wear. Many systems “guarantee backwards compatibility” (at least until they it breaks the first time). This is the software equivalent of a well lubricated non-corrosive interface. It is still not immune to corrosion, but you don’t (and shouldn’t) actively protect yourself. Instead, add some once-in-while checks. Cars usually get a 50K mile service to check for these low wear areas. Do something similar with your software.\nOf the millions of cars that get a 50K mile service a small percentage will have a catastrophic failure, where one of those non-corrosive interfaces corroded. The same can happen in your software, but the cost of constantly checking those parts is far greater than any saving gained by not letting it fail. It is better to follow good practices (like modular design, and not cutting corners) than it is to search for failures everywhere all the time.\nFail Fast… If the interface is solid and shouldn’t fail, then simply fail to launch. For example: Cars need engines; that is a solid interface and a hard requirement, without it you go no where. And if an engine dies while it is running there is the expectation that the car will not be able to propel itself anymore. We might be surprised that an engine breaks, but we are not surprised when a broken engine stops a car. Web servers often need databases and network connections. So code to bind to a port or connect to the database should allow the app to fully fail.\n…With a retry Because software and hardware fails so much that real software has to start assuming the previous exit did so uncleanly so it has to start by checking for and performing cleanup. This is the major reason that a full retry is often the best solution.\nAlso, because retries are so common they are usually someone else’s Stable Interface that can be used.\nAside: Degrading Software And now I hear you saying “Woah, apps should degrade gracefully.” Honestly, they shouldn’t, at least not self-degrade. You would never drive a car, get a flat, and expect the car to change its own tire. No, you pull over, install the spare tire, and at a degraded level drive slowly to a tire shop to have it fixed (at least that is what you should do). But the car did not degrade itself. You, as the driver, are expected to make that choice for the car.\nThe same is true in software. The software should not degrade itself. There should be a watchdog for your software which periodically checks to see if it is alive. If during one of the checks the software is found dead then it should be resurrected. If it suffers SIDS then the watchdog notifies someone, otherwise it is business as usual. To be a good-citizen, your software should play nicely with the watchdog\nThe Half-dead problem Permanently-half-dead is the common state in degrading software where your software has one or more forms of degradation and as a result, it cannot self-correct. It will never die because it is degraded, but it can never perform fully either.\nThis is the worst possible state of software because the issue - by definition - is unclear. The software is running, or appears to be, but isn’t doing what it is supposed to. This is not a testable state, so there is no amount of QA that can be performed to prove the issue is resolved. This is not a place you want your software to be able to get into, so don’t.\nAside: Defensive Software As a further aside, people often confused degrading software with defensive software. But to clarify, defensive software is only concerned with preventing bugs due to unforeseen usage. Things like swapping direct memory manipulation with a memory manager, and code reviews, and testing are defensive. Defensive software can and does terminate before it can degrade into doing something foolish. Take for example:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 class DegradedUser def name=(name) # If the user provides too much data, # ignore their wishes, do what we want, # and don't tell them. # # This is degraded, and bad @name = name.to_s[0..16] end end class DefensiveUser def name=(name) # If the provides too much data, # tell them immediately and fail to continue # # This is defensive, and good (though annoying to the user) raise 'name is too long' if name.length > 16 @name = name end end ","lastmodified":"2014-04-10T00:00:00-04:00","tags":null,"title":"Code Does Rust"},"/blog/20140622-google-sheets-query-language":{"content":"A while back, my wife and I started keeping a budget. We need something very easy that shows us where we are every moment. Also, to ensure that it is not something we “forget” it must be something that we manually enter.\nI created a Google Form in order to allow us to capture the receipts. The form dumps into a Google Spreadsheet. I then use a Pivot Table and the Google Query Language to create a Chart. In this post I will cover the entire process.\nStep 1: Create a form Create a google form Add the following fields “Company” - text- required “Date” - date - required (don’t include time) “Amount” - text - required (add a “number” validation) “Category” - list - required. We added the following Other / Unknown Baby Supplies Car Entertainment Gas Groceries Home Medical Pet Supplies Restaurants / Fast Food “Comment” - paragraph Choose response destination Choose a “New Spreadsheet” Send the form to yourself and anyone else that needs to enter receipts At this point you have a Form which submits to a Spreadsheet. I recommend bookmarking the link in your smart-phone so that it is easy and quick to add receipts right after your purchases.\nStep 2: Pivot Form usually records into a sheet called “Form Responses” which I assume here.\nSelect “Form Responses” Select Data -> Pivot table report… Rows - Add “Category” Values - Add “Amount” Now you should have a two column table. On the left are the categories. On the right is the sum of all the values of that category.\nStep 3: Google Query In order to chart the budget vs the actual spending we need to create another table.\nInsert a sheet named Budget. Label the columns: Category, Budget, Actual, Query Copy all the categories to column A Add the budgeted amount to column B Add the following to column C =if(isna(C2), 0, C2) Add the following query to column D =QUERY('Pivot Table'!A:B, \"select B where A='\"&A2&\"'\",\"\") #NA means that are no receipts for the category and can safely be ignored. Copy and paste cell C2 and D2 to the rest of the cells in the column Google will change the internal references (A2, and C2) to the correct cell name, so you don’t have to. The Google Query Language is defined here. It is a good read to see all the power of this language, but I am only going to explain the parts that we need.\nQuery QUERY takes three arguments: range of values, query string, and optional headers. I am going to explain them in reverse.\nThe headers are guessed if nothing is provided. This would cause the query to take two cells, which is not the behavior I wanted. By adding \"” it removes the header.\nThe query string tells google what data we are selecting into the cell. In our simple example it is a direct value select using a conditional. This is because the column order may not be the same in both sheets. “select B” means to choose the “B” from whatever rows match the query. “where A=’\"&A2&”’\" means to limit the rows returned to those where the value of cell A matches the value of A2 in this sheet. The “&” is the string concat operator.\nThe range of values tells Google what it is allowed to look at. We use the ‘Sheet’!Col:Col form in order to select data from another sheet. We only provide the columns A and B because we want to look at all rows.\nISNA Charts cannot deal with non-number columns. Since the query can produce a non-number output (#N/A) we need to add an additional level of processing.\nisna takes a cell and returns if that cell is #N/A.\nif take a boolean, a true value, and a false value. If the first argument is true then the true value is returned. If the first argument is false then the false value is returned.\nStep 4: Chart Charts can only take numbers and they can only accept contiguous cells. A, B, and C are the columns that we want to chart.\nInsert -> Chart Data range: Budget!A1:C14 Use row 1 as headers Chart type: Bar chart Add a chart title Step 5: Publish The point of this document is to know where your money is going quickly. In order to make it easy publish the document. This will make google convert the document into a HTML version which is easily viewed in your smart phone. The chart will even be convert to an image.\nFile -> Publish to the web… Check “Automatically republish when changes are made” Copy the link Send to link to anyone that needs to be kept informed about the budget ","lastmodified":"2014-06-22T00:00:00-04:00","tags":null,"title":"Google Sheets Query Language"},"/blog/20140623-rake-publish":{"content":" Note\n2025 Update. This blog is no longer Octoblog, but the content is still valid.\nOctoblog (the engine behind this blog) uses Jekyll. As such, it also supports the publish flag. I a previous post I detailed how I added this feature back to Octopress. Here I will show you a little rake task to easily publish an unpublished post.\nRequirements For a post to be published I wanted a few things to happen:\npublished: true was set in the YAML front-matter date: <todays date> was set in the YAML front-matter The file was moved to today. Here is what I came up with for my Rakefile.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 desc \"Publishes an unpublished entry by changing its name, updating its internal timestamp, and setting published: true\" task :publish, :pattern do |t, args| require 'tempfile' require 'fileutils' files = Dir[File.join(source_dir,posts_dir,args[:pattern])] raise \"No files found matching pattern\" if files.size == 0 raise \"Too many files match pattern\" if files.size > 1 name_time = Time.now.strftime('%Y-%m-%d') file_time = Time.now.strftime('%Y-%m-%d %H:%M') file = files.first name = File.basename file new_name = name.gsub(/\\\\\\\\d+-\\\\\\\\d+-\\\\\\\\d+/,name_time) w = Tempfile.new('publish') File.open file do |f| scan = false f.readlines.each do |line| # limit scanning to the YAML front matter scan = !scan if line == \"---\\\\\\\\n\" unless scan w.write line next end line.gsub!(/published.*/,\"published: true\") line.gsub!(/date.*/, \"date: #{file_time}\") w.write line end end w.close FileUtils.rm file FileUtils.mv w.path, File.join(source_dir,posts_dir,new_name) end Line 6: I take a argument and get a list of files matching the pattern Line 7 & 8: I found it was too easy to screw up a pattern and publish too few or too many posts. For that reason I am explicit about the failure. Line 15: Calculates its name for today. Line 16 & 37: Generate a temp file to write to. I found that bad things happened if you published a post that you wrote the same day. Solution was to write to a temp file and then move the temp file later. Line 19 && 22: An inelegant solution to isolating scanning to only the YAML front-matter. Line 28 & 29: Update the YAML front-matter. ","lastmodified":"2014-06-23T00:00:00-04:00","tags":null,"title":"Rake Publish"},"/blog/20140802-bats":{"content":"Shell scripting is a great tool, but rarely is it tested. Enter BATS! In this post I will give a quick tutorial on how to use it to test scripts.\n1 2 3 4 5 6 7 #!/usr/bin/env bats @test \"running a command\" { run foogrep \"bar\" foo_file [ \"$status\" -eq 1 ] [ \"$output\" = \"1: bar baz\" ] } Note\nShameless plug: Before we start, I recommend downloading the language grammar package - language-bats for the Atom editor.\nIf you have never used RSpec or other testing framework the idea is simple: your code is run against expectations and if those are met then the tests pass. The framework deals with the heavy lifting of executing the tests, printing the results, and providing to the correct interface to Continuous Integration servers.\nBATS is a test runner for Bash scripts. Before each run BATS takes the file and splits each test into its own file. BATS then runs each test file to see if passes or fails. Anything you can do in Bash you can do in BATS, and if any command fails then the entire test fails.\nA Basic test BATS syntax for a test is @test \"desc\" {}. But if you want it to run the file individually you should add the shebang line. The simplest test looks something like this:\n1 2 3 4 5 #!/usr/bin/env bats @test \"something\" { false } This isn’t very useful, but it will generate a failing test.\nSkipping tests Sometimes it is a useful to skip a test. Just add skip at the point you want to the test to be skipped. You can add a description or not.\n1 2 3 4 5 6 7 8 9 10 11 @test \"just skip\" { skip } @test \"skip for a reason\" { if [ \"$x\" == \"foo\"]; then skip \"Because of foo\" fi # more tests } Running a command Bash doesn’t let you return strings from functions, so if you are trying to capture output and status then you have to roll your own, or use run. run returns the commands output to $output, and its exit code to $status. This makes testing on output and status easier.\n1 2 3 4 5 @test \"check output and status\" { run echo_foo [ \"$status\" == \"0\" ] [ \"$output\" == \"foo\" ] } Hooks Sometimes multiple tests need to share the same state. In testing every test should stand on its own and leave no artifacts. To accomplish this we can use the setup and teardown hooks.","lastmodified":"2014-08-02T00:00:00-04:00","tags":null,"title":"BATS"},"/blog/20140917-ruby-sucks-kind-of":{"content":"Ruby sucks! Kind of!\nOk, well not really. Not even a little. But there seems to be a misconception about what ruby is. I hope to clarify somethings by first comparing it to other languages, then by ripping it apart in a constructive way.\nEvery computer language serves to let human control computers, and nothing more. Every language creator chooses an abstraction level that they feel fits with their needs. And in the end every computer language creates strings of 0s and 1s.\nHere is a high level summary of some languages that I use:\nAssembly - Turn computer instructions into easier to remember words C - A set of preprocessors on top of assembly C++ - An Object abstraction on top of C Java - An Everything is an Object attempt Javascript - Sceme for the browser Python - Its academic Go - Easy concurrency Ruby - Reads like prose Assembly For those few of you that were alive in the time before assemby, the solution was direct bit manipulation. This was done by manually flipping switches that represented bits or feeding punch cards. Assembly was a huge improvement.\nInstead of memorizing human instructions and then having to translate to and from binary one could use simplified language. The downside is that every CPU manufacturer had their own language set.\nC Given that every CPU had its own Assembly language, code could not be ported to multiple computers. Enter C, the third attempt to create a portable language. A and B came before C, but no one uses them or even references it any more.\nThe syntax and 2 pass compiler design has become the standard for most “compiled” languages.\nC++ After many years of success, someone had the bright idea that complexity can be reduced by adding objects and encapsolating details. C++ is born using the same syntax as C, but with OOP. Early version of C++ were just a preprocessor which created C code.\nAs the techniques of OOP became solidified the C++ compiler became a compiler in its own right. However, unlike C most C++ are not bootstrapped (meaning it is not written in the same language as they compile).\nJava Java was born out of Sun Mirocosystems. It was originally intended to be an embedded language. The idea being that you would install the JVM as the device’s OS and your program would remain the same no matter what hardware was running. In the end this concept was years ahead of its time, but ultimately a failure of its original goal due to bloat.\nIt was also one of the first languages that forced classical OOP with its “everything is an object” approach. Unfortunately, for performance reasons the language still contained primitives and other basic non-OOP contracts making its choice to force the “main” method to be a callback of an arbitrary object kind of ridiculous.\nAfter the embedded aproach did not pan out Sun went after the web. During this time they also split the language from the JVM, published the bytecode spec, and picked up XML as preferred configuration format. The verbosity of XML seemed to fit the verbosity of Java as a whole.\nThe Java ecosystem has had a years of turmoil due to the Oracle purchase of Sun Microsystems and not liking OSS. After years of litigation things have stabilized.\nJavascript Javascript was born in Netscape to allow HTML to be programmed. It uses prototypical inheritance instead of classical inheritance. Its language is based on C++ with concepts of several other languages. Javascript has a lot of advanced concepts which of its developer did not know how to properly utilize given it an undeserved bad name.\nA few well constructed libraries and the advent of JSLint made it clear what was good code and eliminated much of the early pains.\nℹ️ For many years I though “classical inheritance” was because it was the classic / old form (like “classical music”), which gave it air of correctness. That is actually not true at all. Classical - in this case - comes from “of or relating to class hierarchy”. Python Python was born in academia. It has infinite precision and a clean syntax. About the only ding is that the cleanlyness of the parser is more important then the expressiveness of the language. Other then its non-expressive syntax it is a first rate language.\nGo Go is a new comer to the language scene. It aims to make concurrent programming easy. It is OOP but has a C-like syntax, and is also opinionated about the syntax. So opinionated that they have a go fmt program which will rewrite files using the expected indentation and alignment.\nIt is clearly a “new” language, and lacks some fairly common features of other langagues like versioned dependancies. But it has an active community of caring people which are solving these issues.\nRuby Ruby was created to be an expressive language that was a joy to work with. Unfortunately this has meant that much of the interpreter is nearly impossible to understand. The upside is that unlike any language before it, it can act as its own DSL.\nRake, for example, is ruby’s version of Make. While Makefile is a special text that the make program parses, a Rakefile is just ruby code. Adding require 'rake' to a ruby file simply causes it to load rake.rb which add functions which make defining tasks and dependancies like writing english.\nAs promised this is the point where I list rubies weaknesses.\nRuby is too magic The ruby interpreter is not a point in time interpreter, like python or Java. It is a dynamic re-interpreter like LISP. There is no first parsing pass for calculating and caching the structural elements of the program and then a second runtime pass.\nInstead, it is a single pass, building the structure as it goes. This has the added benefit of allowing you to dynamicly add, redefine, or remove structure like classes or methods on classes. However, this can be and is very confusing for those unsure how those that structure was built.\nThis “feature” is what causes ruby to appear like magic. The solution requires a full understanding of all dependencies that are loaded.\nAny class can be changed at any time, which is scary This is just the “ruby is too magic” argument under a different name.\nYes, ActiveSupport from Rails adds a lot of nicities like 1.day.ago to ruby. Generally this more useful then not.\nIt’s nothing but bloat It is true that ruby program are larger then C programs, but they are no larger than most other interpreted languages.\nIt’s slow With the speed increases for the latest version of Ruby it is faster than both PHP and Python now. And JRuby runs at nearly C speeds. So it is fair to say that is an apples-to-apples comparison that ruby is no slower then any other interpreted language.\nThe GIL is slow and prevents concurrent programming Not really true. The Global Interpreter Lock (GIL) gets a lot of flack from those that haven’t actually looked at the code, but it is pretty smart. The GIL gets locked anytime there is IO and unlocked anytime a thread is about to sleep. For example: let’s say you have a loop and in the loop you spawn a thread and do a web request to http://google.com. The first thread would build an IO request to a socket locking the GIL, but once the request hit the wire and the thread would sleep releasing the GIL and the loop would continue.\nJust like any semaphore locking if you do too much while the GIL is locked then your app is slow. If you are smart about how you chunk your code Ruby’s GIL is actually faster and simpler then Python’s threading system.\nThey change the syntax every release There have been only a relatively few releases which actively broke an existing syntax, and in those cases it was because the original syntax was flawed.\nIt doesn’t work on Windows Use Cygwin, or a Linux VM.\nThere is no self-installer, or GUI builder Rubiest are command line junkies. There are several ways to install ruby for every platform.\nRuby doesn’t really make much sense as a GUI application. However, there are several packages that aim to make Ruby the glue language. I leave it as an exercise of the reader to find them, but while you are looking you may also want to checkout a language called lua.\nIt’s good for Rails, but not much else Ruby on Rails it the keystone framework, and the reason why most use it. However, both puppet and chef (deployment tools) are written in it.\nRails is huge and slow Yea, and getting bigger and slower every release. That is common as frameworks grow, but guess what, you don’t need all the bells and whistles. While getting bigger Rails is also getting more component-ized, allowing you to exclude the stuff you don’t need.\nConclusion I hope by this point you get the sense that no language is bad per se. Each language starts with a set of assumptions which inform a design. In turn that design defines the language, which in turns defines what is easy and what is hard. You have to pick the right tool for the job. And each language represents a single tool.","lastmodified":"2014-09-17T00:00:00-04:00","tags":null,"title":"Ruby Sucks... Kind Of"},"/blog/20140921-using-amperstand-instead-of-if":{"content":"You can use && to perform a logical if. And there are a few reasons it may be better to use &&.\nIf I was a Computer Scientist I might pull out logic maps or Turing completeness or do a mathematical proof. If I was a Computer Architect I might argue that I do not need to prove anything and you should trust my experience. Luckily I am a Software Engineer, so I will prove my point with tests.\nNote\nThe following is written in ruby, but the will work in any Turing-complete language with operator precedence. Just remember in Ruby that the last statement is returned.\nLet’s take if a then b. The entire purpose of the if then it to only execute b if a is true. If I were to write it using tests I might do it this way:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 require 'spec_helper' describe \"if then\" do class Test def a; end def b; end def if_then if a b end end end let(:t) {Test.new} it 'executes a' do expect(t).to receive(:a).and_return false t.if_then end it 'executes b if a is true' do expect(t).to receive(:a).and_return true expect(t).to receive(:b) t.if_then end it 'does not execute b if a is false' do expect(t).to receive(:a).and_return false expect(t).not_to receive(:b) t.if_then end end These tests pass. So, I will make no change to the tests. But, I will refactor the Test class to use &&:\n1 2 3 4 5 class Test def if_then a && b end end These tests also pass! And you are probably thinking that I duped you somehow. Let me explain why this works.\nLogical and (&&) and logical or (||) can both be short circuited; meaning that if a certain condition is met they can immediately return a value without needing to execute more statements. For and if any value is false then the entire statement is false. So the first time the program sees a false value it can return. For or the first true causes true to be returned.\nThe actual execution for a && b is as follows:\nExecute a if a is false return false if a is true Execute b If you look carefully that is identical to the execution path of if a then b, which is why all the previous tests pass without modification.\nif not then Just like && maps to if then, || maps to if not then or in some lanugages like ruby unless then. I leave it as an exercise for the reader to write the tests, but the code is as follows:\n1 2 3 4 5 class Test def if_not_then a || b end end if then else else is just the if not case. Since, || is eqivilant to if not we can chain it after &&.\n1 2 3 4 5 6 class Test def if_then_else # if a then b else c a && b || c end end Why is this useful? For some reason many languages can execute && and || a lot faster then if then else, but I very rarely consider performance a good excuse for crappy looking code. I have some simple reasons to use && instead of if:\n1. You are chaining actions If the things that you are chaining are actions being performed and those action return whether they were successful then it often reads better as &&.\n1 2 3 4 5 # bad paint_it_black if find_a_door # good find_a_door && paint_it_black 2. You are likely to chain additional items Once you nest logic then readability goes out the window. Using && helps.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 # bad if column_a_is_a_string if column_b_is_a_number if not column_c_is_a_boolean raise 'Bad' end end end # good column_a_is_a_string && column_b_is_a_number && column_c_is_a_boolean || raise 'Bad' 3. You don’t know how many items you need to chain Sometimes you need to parse a file of conditionals, or will be given a list of conditionals. Most of the time you cannot ensure that there are only two items on the list, so the if then contract is not useful, but a variants of && and || will work.","lastmodified":"2014-09-21T00:00:00-04:00","tags":null,"title":"Using `&&` Instead of `if`"},"/blog/20140929-golang-stream-file":{"content":"Go (golang) is a highly concurrent language. But more then that it is a simple language built using modular components and strings them together in useful ways. This modularity has lead me to play around a bit and one of things that I found was a easy way to stream a file.\nAt first I was very unhappy that Go did not support the default compression provided by the xz tool. At work, we use xz to stream compress very large amounts of data. But since go had no native support I thought that it would be a lost cause.\nTurns out there is no native support because there doesn’t have to be. Below is the basic code.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 func xzReader(r io.Reader) io.ReadCloser { rpipe, wpipe := io.Pipe() cmd := exec.Command(\"xz\", \"--decompress\", \"--stdout\") cmd.Stdin = r cmd.Stdout = wpipe go func() { err := cmd.Run() wpipe.CloseWithError(err) }() return rpipe } Declare the function to take an io.Reader as STDIN and return io.ReadCloser as STDOUT Create a pipe so I that can capture the program’s STDOUT and broadcast it as a readable stream Register xz as the command to execute Set the command’s STDIN Capture the command’s STDOUT Run a command in the background Run the command until there is an error Close the pipe when the command exists Return the read end of the command’s STDOUT At this point you have a io.ReaderCloser (which is an io.Reader). You can use it anywhere you would use an io.Reader. For example lets say you have a compressed CSV file. The following code would open the file, decompress it, parse it as CSV, and print that to the screen:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 func main() { fp, err := os.Open(os.Args[1]) if err != nil { log.Fatal(err) } defer fp.Close() xz := xzReader(fp) defer xz.Close() csv := csv.NewReader(xz) for { line, err := csv.Read() if len(line) > 0 { println(line) } if err != nil { break } } } Define the main function Open a file Test for errors and bail if there are any Close the file pointer after the program exits Pass the file as the stdin to the xz command and capture its output Close the command’s STDOUT after the program exits Pass the decompressed file to the CSV parser and get back a csv.Reader Loop until the stream is closed Read a line Print the line if it exists Note: in Go, it is perfectly reasonable for a command to work and fail in the same call. If I check for an error before printing the line then I may miss the last line of the file. Check for a stream error and break the loop It is a very common paradigm in Go to take an io.Reader and pass it to a function just to get back a new io.Reader, and take that and pass it around and get back what you want (like a string or CSV row). Once you get your head around the fact that Go’s power is that everything is a small well defined lego block, and that they all fit together, then it stops being strange that you would take one kind of interface and exchange it for exactly the same kind of interface.","lastmodified":"2014-09-29T00:00:00-04:00","tags":null,"title":"Golang Stream File"},"/blog/20141017-go-concurrency-patterns":{"content":"One of Golang’s strengths is its composability. This strength is only useful if you know how to make those composable parts. That is where patterns are useful.\nGolang is concurrent, which is not necessarily parallel. However, to make things concurrent you have to break thing into atomic steps. If you are careful in how two step share information then you can easily turn concurrent design into parallel design. Go channels make this communication stupid simple, and thus make concurrent design very easy.\nIn this post I am going to share what I think are the basis of most other concurrency patterns: The Generator, The Worker, and The Consumer.\nA note about parallel vs concurrent Before we start, it might be useful to separate parallel and concurrent. Parallel is doing multiple things (usually the same or similar things) at the same time. Concurrent is doing multiple disparate things to converge on the same point. In other words, the purpose of concurrency to arrive at a solution, while parallel allows us to repeated arrive at a solution in the same span of time.\nAnother way to think of it is commuting to work, vs working. We all drive to work in parallel. However, at work our work is concurrently producing company value.\nSo why is this useful? OSes since the early days of Unix were parallel; they were routing phone calls after all, which is just a lot of the same thing. This in-turn meant that the OS level abstractions (threads and processes) were parallel and no thought was given to concurrent abstractions.\nThis in-turn was exposed directly by most programming languages. However, just as driving to work doesn’t necessarily make you useful these constructs on their own isn’t useful. Additionally, there are a lot of edge cases and paradoxes when parallel code tries to become concurrent.\nHowever, properly concurrent code can become parallel code quite easily. Go luckily allows us to structure our code concurrently and then handles the parallelism without you having to use a thread.\nBelow are the basic types of concurrent actions. If you keep your code bitesized and focused then parallelism is automatic.\nThe Generator A generator simply does work and places that work on a channel. What that means is really up to what is needed but the pattern is:\nCreate a channel Create closure which does work Execute the closure as a goroutine, closing the channel when done Return the channel 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 func generateInt() chan int32 { // 1. Create a channel out := make(chan int32) // 3. Spawn a closure go func(){ defer close(out) // 2. Do work for i := int32(0); i < 100; i++ { out <- i } }() // 4. Return the channel return out } The Worker A worker takes stuff off an input channel, works on it, and places the result on an output channel.\n1 2 3 4 5 6 7 8 9 10 11 12 13 func enlargeInt(in chan int32) chan int32 { out := make(chan int32) go func() { defer close(out) for x := range(in) { out <- x*2 } }() return out } The Consumer A consumer takes stuff off an input channel and consumes it. There are two primary way to do this: Blocker and Signaller.\nBlocker The blocker form simply run the code. This version is useful if there is a main loop which shouldn’t exit until all work is complete.\n1 2 3 4 5 func printInt(in chan int32) { for x := range(in) { fmt.Println(x) } } Here is a full working version.\nSignaller A signaller is actually a varient of the Worker pattern, where the output channel is used to signal the completion of work.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 func printInt(in chan int32) chan bool { out := make(chan bool) go func() { defer close(out) // Work until the channel is closed for x := range(in) { fmt.Println(x) } // Single that I am done out <- true }() return out } Here is a full working version.","lastmodified":"2014-10-17T00:00:00-04:00","tags":null,"title":"Go Concurrency Patterns"},"/blog/20141215-emacs-key-binding":{"content":"I recently switched to Emacs as my editor of choice. It has taken a bit of work to get it to where I like it. My full settings are on github here.\nIn this post I will share how I added a key binding to only a single mode.\nA key binding is just maps a key sequence to a lisp function. A global key binding can be added in the following way:\n1 (define-key global-map (kbd \"C-/\") 'comment-or-uncomment-region) This causes a key sequence to be added to a map. The global-map contains the global key bindings regardless of mode. This is only useful if the command makes sense in all modes. In a lot of cases keys should only be bound to a mode.\nEach mode has its own map which emacs only uses when you are in that mode. This is how you add mode specific key bindings. The map for any mode is the mode name with “-map” added. You will need to have the mode loaded for the map to exist.\nThe following will add Agenda mode to OrgMode, which is off my default.","lastmodified":"2014-12-15T00:00:00-05:00","tags":null,"title":"Emacs Key Binding"},"/blog/20150210-emacs-full-screen":{"content":"On a Mac the short cut to put a window into full-screen mode is ctrl + cmd + f. Unfortunately this does not work directly for emacs. Here I will explain how I made it work.\nℹ️ This is only applicable to windowed versions of Emacs! First, I needed to figure out if it was possible to make emacs full screen. To do this I turned to the help system for a function M+x fullscreen<tab> did not turn up anything useful. Then I checked the apropos help command. C+h a fullscreen produced the following:\nType RET on an entry to view its full documentation. toggle-frame-fullscreen <f11> Toggle fullscreen mode of the selected frame. That looks promising so I run it as an interact command: M+x toggle-frame-fullscreen and it does what I expect. Now to bind it to a key.\nI added the following to my config:\n1 (global-set-key (kbd \"C-s f\") 'toggle-frame-fullscreen) ℹ️ “s” is “super” which is what the “cmd” on a Mac maps to. I run C+x e to evaluate the lisp code and then I use the keyboard combination ctrl + cmd + f, but nothing happens. What gives?\nI use the help system describe-key to find out what it is bound to C+h k <ret> ctrl + cmd + f prints \" is undefined.\"\nAs it turns out “ctrl + cmd” will almost always present as a numerical key value. Using the help system causes emacs to print what it sees when those buttons are pressed. It is simple matter of using angle bracket key form (like is printed). (global-set-key (kbd \"<C-s-268632070\">) 'toggle-frame-fullscreen) works like a champ!","lastmodified":"2015-02-10T00:00:00-05:00","tags":null,"title":"Emacs Full Screen"},"/blog/20150210-emacs-tabs-and-tab-groups":{"content":"From other editors I am used to having Tabbars. Switching to Emacs I miss that behavior. Emacs does have a tabbar plugin, but it isn’t quite what I want.\nBy default it groups the tabs in a seemingly random way. I am sure it makes sense if you wrote it, but for me I want the things group by my projects. For me a project is a directory which has a .git directory at its root.\nFirst I created a simple function to get the project root, or return nil.\n1 2 3 4 (defun my-project-root () \"Return the root of the project.\" (locate-dominating-file default-directory \".git\")) Basically this search all parent directories until it finds one containing the .git directory. The built-in function details are. locate-dominating-file BASE FILE searches the parent directory tree from BASE until it finds FILE. default-directory is a file local variable which is the directory of the current file. Next I set the tabbar-buffer-groups-function to return the group name of the current file. The only requirement is that the function return a list, but it is recommended that the list only contain a single item.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 (setq tabbar-buffer-groups-function (lambda () (let ((dir (expand-file-name default-directory))) (cond ((member (buffer-name) '(\"*Completions*\" \"*scratch*\" \"*Messages*\" \"*Ediff Registry*\")) (list \"#misc\")) ;; All Magit status goes the same place ((string-match \"^*magit\" (buffer-name)) (list \"#magic\")) ((string-match \"^COMMIT_EDITMSG\" (buffer-name)) (list \"#magic\")) ;; All Cider windows ((string-match \"^*nrepl-server\" (buffer-name)) (list \"#cider\")) ((string-match \"^*cider\" (buffer-name)) (list \"#cider\")) ;; Group tabs based on project root ((my-project-root) (list (my-project-root))) ;; Use the current dir (t (list dir)))))) Here we capture the absolute path of the current file. Then we check a bunch of things to determine which best represents the group name. The first thing we do is group various special buffers together. Then we use the project root to group files. And if nothing else we use the file’s directory as the group name.\nlambda ARG BLOCK creates an anonymous function. let VAR BLOCK sets a variable and then calls a block. The variable is then local to that block. cond TUPLE TUPLE... executes tuples until the first time in the tuple is true. When it finds a true tuple it executes the second item and returns it. member ITEM LIST returns true if the first item is contained within the second list. buffer-name returns the name of the current buffer. list ITEM converts an item into a single item list. string-match REGEXP STRING returns the index of the regex in the string, or nil. my-project-root See above. ","lastmodified":"2015-02-10T00:00:00-05:00","tags":null,"title":"Emacs Tabs & Tab Groups"},"/blog/20151230-hugo-blog-development":{"content":"Hugo does a great job of separating out configuration, content, themes, and local overrides. Each getting their own file or directory. But it provides no deployment scripts.\nFor comparison, Octopress/Jekyll leaves it as an exercise for the developer to separate configuration, content, themes, and local overrides, but it provides a deployment script.\nUsing GitHub pages and a little bit of git wizardry and the deployment process is pretty easy.\nConfiguration Before you start you run hugo new site -f yaml command to create all the files and directories Hugo uses. I prefer YAML to TOML or JSON, but Hugo supports all three.\nI used the following as my basic configuration.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 # config.yaml --- # Configure the basic behavior of URLs baseurl: \"<http://jkamenik.github.io/>\" canonifyurls: true # Name the site title: \"Random Software Inklings\" # Whenever new files are written, use this format metaDataFormat: \"yaml\" # The format shown here is the same one Jekyll/Octopress uses by default. permalinks: post: \"/blog/:year/:month/:day/:title/\" Themes Hugo has a lot of themes to choose from in the Showcase. But it is easy enough to build your own theme if you want; I went with the Icarus theme.\nIf you want to try a couple different themes, just download them to the ./themes diretory and use hugo -t theme-name to generate the site with that theme.\nWhen it came time to pick my final theme, I decided to use git submodule so that I could upgrade the theme in the future without having to deal with merge conflicts. git submodule works by marking a sub-directory as separate git repository. There are some gotchas so read the entire explanation on the git-scm site.\n1 2 3 4 # Make sure you repo is clean first!!!! $ git submodule add git@github.com:digitalcraftsman/hugo-icarus-theme.git themes/hugo-icarus-theme $ git add . $ git commit -m \"Adding theme\" If you need to download a new version of the blog just be sure to init the submodule.\n1 $ git submodule update --init --recursive Theme Overrides If there is anything about a theme that you do not like it can be overridden. For example, I wanted Gravatar to used as my profile pick. I did this by copying ./themes/hugo-icarus-theme/layouts/partials/profile.html into ./layouts/partials/profile.html I then changed the image link to use gravatar.\n1 2 3 4 5 6 <aside id=\"profile\"> <div class=\"inner profile-inner\"> <div class=\"base-info profile-block\"> {{ with .Site.Params.gravatarHash }}<img id=\"avatar\" src=\"<https://www.gravatar.com/avatar/{{.}>}?s=200\">{{ end }} <!-- <img id=\"avatar\" src=\"{{ .Site.BaseURL }}css/images/avatar.png\"> --> ... Rest is unchanged ... You will notice that I pull gravatarHash from Site.Params. This needs to be added to the config.yaml file.\n1 2 params: gravatarHash: \"md5 checksum of your email address\" DeploymentThe hugo site has a very good tutorial on using github pages here. I used a modified version with my blog.\nThe blog will reside at http://jkamenik.github.io. This means the repo MUST be named jkamenik.github.io, and the static site MUST be on the master branch. If you are using Hugo for project documentation then the setup is a bit different and you should read the tutorial linked above.\nKnowing that Hugo generates the static site in ./public the easiest thing to do is use git subtree to track a directory as a ref. git subtree is similar to git submodule in that they both aim to make a directory of one repository a ref to another repository. The difference is that git subtree does this as a merge strategy, while git submodule does it by maintaining two separate full repos.\nIn my case I will be developing the blog on the draft branch, and publishing it on the master branch. For this reason git submodule is not a good fit, but git subtree is ideal.\nHere is the setup.\n1 2 3 4 5 6 7 8 9 10 11 12 $ git checkout --orphan master $ git ls-files | xargs git rm --cached -f $ ls | xargs rm -rf # remove all but the hidden .git directory $ git checkout drafts README.md $ git add README.md $ git commit -m \"Initial Commit\" $ git push origin master $ git checkout drafts $ rm -rf public $ git subtree add --prefix=public origin master --squash $ git push origin drafts $ git subtree push --prefix=public origin master It seems more complicated then it is. Basically, I just create an orphan branch (one not associated with the commit history of the current branch), and then I load that branch in the ./public directory of the branch I will be maintaining. That way using a single git commit will take care of both repos at the same time, and GitHub will be happy because master will have the static site.\nDeployment becomes:\nAdd and commit changes Regen site Push drafts branch Push master subtree (./public) The following script does that taking a commit message or supplying a default.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 #!/bin/bash echo -e \"\\\\\\\\033[0;32mDeploying updates to GitHub...\\\\\\\\033[0m\" # Build the project. hugo # Add changes to git. git add -A # Commit changes. msg=\"rebuilding site `date`\" if [ $# -eq 1 ] then msg=\"$1\" fi git commit -m \"$msg\" # Push source and build repos. git push origin drafts git subtree push --prefix=public origin master Hugo does a great job of separating out configuration, content, themes, and local overrides. Each getting their own file or directory. But it provides no deployment scripts.\nFor comparison, Octopress/Jekyll leaves it as an exercise for the developer to separate configuration, content, themes, and local overrides, but it provides a deployment script.\nUsing GitHub pages and a little bit of git wizardry and the deployment process is pretty easy.\nHugo does a great job of separating out configuration, content, themes, and local overrides. Each getting their own file or directory. But it provides no deployment scripts.\nFor comparison, Octopress/Jekyll leaves it as an exercise for the developer to separate configuration, content, themes, and local overrides, but it provides a deployment script.\nUsing GitHub pages and a little bit of git wizardry and the deployment process is pretty easy.\nHugo does a great job of separating out configuration, content, themes, and local overrides. Each getting their own file or directory. But it provides no deployment scripts.\nFor comparison, Octopress/Jekyll leaves it as an exercise for the developer to separate configuration, content, themes, and local overrides, but it provides a deployment script.\nUsing GitHub pages and a little bit of git wizardry and the deployment process is pretty easy.\nHugo does a great job of separating out configuration, content, themes, and local overrides. Each getting their own file or directory. But it provides no deployment scripts.\nFor comparison, Octopress/Jekyll leaves it as an exercise for the developer to separate configuration, content, themes, and local overrides, but it provides a deployment script.\nUsing GitHub pages and a little bit of git wizardry and the deployment process is pretty easy.\nHugo does a great job of separating out configuration, content, themes, and local overrides. Each getting their own file or directory. But it provides no deployment scripts.\nFor comparison, Octopress/Jekyll leaves it as an exercise for the developer to separate configuration, content, themes, and local overrides, but it provides a deployment script.\nUsing GitHub pages and a little bit of git wizardry and the deployment process is pretty easy.","lastmodified":"2015-12-30T00:00:00-05:00","tags":null,"title":"Hugo Blog Development"},"/blog/20160101-forcing-factors":{"content":"A forcing factor (a.k.a Forcing Function, for us nerds) is any factor that forces you to make a choice. They are often thought of as bad because when you are forced to make a choice that choice is not likely going to be a good one.\n“Check” in the game of chess is one such negative forcing factor. Global climate change is another. However, they can be used for good if you take control of them.\nIf you think about forcing factors as the start of a feed back loop then you can use that to your advantage. The following are some ways I used them to make my life better.\nBroccoli Once upon a time - like most kids - I hated broccoli. So I forced myself to eat it first instead of last. By forcing myself to eat it first I creating a forcing factor that prevented me from eating the food I liked until I finished the broccoli.\nAs an adult I actually like broccoli, so this particular forcing factor isn’t necessary, but I still use the idea when trying new foods. Instead of resisting, I simply try new foods first, and if I don’t like it then I finish it anyway before moving to the foods I like. That way my doggy bag contains the food I do like and I get a second meal.\nCleaning Up After the Dogs I dislike cleaning up dog poop. But I really dislike when people don’t clean up after their dogs, so I always clean up after my my dogs when I walk them. And I use that dichotomy as a forcing factor.\nI used to let the dog out into our fenced in backyard to do their business I would simply let them out and back in. This meant that if we wanted to let the kids play back there (they’re toddlers) I would have to take 30 minutes and comb the backyard for the poop bombs, or clean it off the kids when started playing in it. It was not pleasant.\nI would have to do the same before I mowed the backyard as well. Or I risked stepping in poop, or worse having it explode out of the lawn mower. Yuck!!!!\nWhen I walk the dogs I always carry poop bags and clean up after my dogs. So now, I simply leash up the dogs and walk them around the front yard with poop bags two to three times a day. When the dogs go I clean it up and trash it. Now I never have to worry about there being poop bombs in my backyard.\nAt first it was annoying but now it is habit, and sometimes if the mood strikes me I simply take the dogs on a full walk around the neighborhood. Its better for me and the dogs.\nYard Work I hate mowing the lawn, but I like a clean yawn. Specifically I like my front yard to look good for my neighbors. So, I use this to force me to do the entire yard.\nMy wife would prefer I do the “important” stuff first, so that I could quit in the middle. But half completed work bothers me.\nI do the edging first (because I won’t do it if I wait). Then I mow the backyard, then the front, and finally I blow off the sidewalk, driveway, and patio so that everything looks nice. By doing it that order it ensures that I do it all, so when head in for the day I am not worried about how much work I have left.\nConclusion Forcing factors can be bad, but you can still use them as a force for good in your own life. Take a step back, figure out what makes you avoid something and do that thing first (eating yucky food). Or find a thing you really don’t like and find a way to make it habit (picking up dog poop). Or find a way to organize a daunting tasks which ensures you complete it (yard work).\nOne benefit - not listed above - is that as you find and use forcing factors on yourself you become more aware of them. It becomes easier to see when others are using them for good or ill; which means your response will naturally become more calculated and less forced.","lastmodified":"2016-01-01T00:00:00-05:00","tags":null,"title":"Forcing Factors"},"/blog/20160118-story-points-done-wrong":{"content":"Ever said or heard something like:\n“How many hours per Point?” “How many days is a 3 point story?” “Why can’t we just use hours?” If so…\nTo be honest Story Points are probably the trickiest part of Scrum largely because everyone “wants” them to be something that they are not. But once you understand them they are far more useful and accurate then any other form of estimation (that I have seen).\nStory Points are Complexity not Time Story Point do not aim to be an accurate calendar representation of work. And because of this, when used correctly they are. Story Points are a measure of risk and complexity combined into a single number, nothing more and nothing less.\nAt most you should use 5 story point values, but ideally you have fewer. The scale you choose doesn’t matter just so long as everyone knows that there is no direct relationship. For example, 2 smalls don’t make a medium.\nPoints are chosen by comparing the unestimated story to a known golden story whose complexity is well understood. Finding the golden story is the hardest part of using Story Points, but also the most important. Usually it is best to pick a single generic medium story. That way the comparision is simply “is this story more effort, less effort, or similar effort to the golden story”.\nGrooming: Never do Points at Planning I won’t go over what or how to do Grooming, but by the time planning starts it is already too late for Story Points to have value. Planning is the time where a story is tasked out and (if the teams so chooses) hours assigned to tasks. If you wait, then Points will be equated to hours and the value of Points is lost.\nVoting Each team member should vote in silence and at the same time so they are not influenced by a dominate person (usually a PO or senior dev which under values complexity, effort, or risk). The idea is to get a general consensus, not a unanimous verdicts. If there is an event split or one extreme outlier, then a discussion should be had so that everyone understands. A new vote should be taken after the discussion. Repeat until everyone is close to the same number then pick the point value of the majority and move on.\nI Need a Time! - Velocity By abstracting Points from Time you are no longer conflating the two. However, projects are done based on calendar time, so points need to be translate. Enter Velocity.\nVelocity is simply the average number of Story Points the current team has done in the last several sprints. It doesn’t pretend to have perfect knowledge. It is just a calculated number which accurately represents how the team produces.\nOn the small (at the sprint level) velocity has little to no accuracy, but on the large (at the release level) it is very accurate. Think of it like a radioactive half-life. At the atom level you have 0% chance of guessing when it will decay into the stable form. However, at a larger quantity you know exactly how many atoms will decay in the time period (just not which ones).\nIf you are used to moving warm bodies around, or individually assigning stories, then velocity may seem like a step backwards. And maybe you (or a manager) have even seen short term gains doing your own thing, but eventually things will turn sour (usually at the worst possible time). Go read Mythical Man Month, and return here when finished.\nA stable velocity is a fragile thing, and it doesn’t pretend like it isn’t, but if you are willing to protect the team (and by extension the velocity) then it is amazingly accurate. For example, if over the last 3 sprints the team has averaged 10 points a sprint and you double the team size and put 20 points of work into the sprint then there is no hope of success because the velocity number is still 10 point / sprint.\nVelocity changes slowly, so don’t fall into the trap of playing with team makeup in an attempt to gain velocity. It is always better to increase throughput (amount of new feature) while leaving velocity alone.\nThroughput Throughput is simply the number of new features added. It is related to velocity, but not the same. In fact, whenever someone says “we need to increase our velocity” this is actually what they mean. The easiest way to increase throughput is to limit risk in one of the following ways.\nCut scope Does “user login” imply a “forgot password” process? If so, split it into two explicit stories. Cut stories horizontally Stories are often cut vertically, which usually leads to interesting half done features. Consider cutting stories horizontally first, then vertically. To ensure that stories aren’t half done and need to be revisited. Release Earlier - with an easy upgrade path A Min Viable Product is likely 2 to 3x more features then are actually needed. In many cases it is better to 1/2 the feature count and 2x the quality and release early. Remember, once you release you must support; which is going to chew up time, so get used to it. Don’t focus only on the “customer” A “user” is any user of the system including Devs (developers and QA). Making their jobs easier will increase throughput overall. So make sure stories reduce tech debt, and increase automation and testing. We overcommit A very common problem, if you use Story Points at sprint planning is to overcommit the team. Like previously said, points have no accuracy in the small. So using them as a measure of the sprint will result in no accuracy.\nPoints may (and should be used) by the PO to help order the backlog so an even mix of large and small tasks make it into a sprint. If the sprint is mostly large stories (which are large because of risk or complexity) then the sprint is likely to fail.\nThe correct way to do planning is to take each story from the backlog and task it out. For each task add an estimated time to complete, and don’t forget about QA or outside team tasks, but refrain from assigning tasks. Keep tasking stories until you get to the story that can only be partially completed during the sprint. The PO may decide to accept a half done story, or decide to rearrange the backlog to find a smaller story.\nOnce the stories are pulled into the sprint it is entirely up to the team to decide when and in what order to do the stories. Ideally, the entire team would bring a single story to completion before starting another, but there are cases where it doen’t work completely. For those cases the devs should move on to testing.\nWhen deciding how many tasks will fit in a sprint a good rule of thumb is 5 productive hours per day per person. This is because email, team discussions, and scrum meetings all take away from development time. The larger the team it more coordination is needed therefore 5 hours is only true for teams of 3 to 5 devs. For larger teams take away 45min of productive time per additional dev.","lastmodified":"2016-01-18T00:00:00-05:00","tags":null,"title":"Story Points Done Wrong"},"/blog/20160202-gitflow-simple":{"content":"Gitflow is a great workflow to ensure you maintain constant ever increasing version numbers with enough room to fix mistakes. The downside is the slowness of deploying new features. GitFlowSimple is a simplified version which can be expanded to standard GitFlow when needed, but is less effort when deploying new features.\nAssumptions This method assumes the following are true:\nYou understand the following features of git How to branch from a non-HEAD commit How to deal with a merge conflict That linear history is an illusion (so you use git log -a --graph). You understand what is meant by a “SNAPSHOT” version. Basically, ever changing code which devs can use, but never goes into production. You have read and understand GitFlow You need to release changes quickly. For example, you are maintaining several projects and need to add features to a library package; GitFlowSimple is ideal for the library. You don’t care about contiguous version numbers. they The numbers are ever increasing, but may not be in sequence (a use might get 1.2.5 as the update to 1.1.0). This branching style is ideal for library code that is not normally seen by an end user, or end-user software that is automatically updated since the end-user doesn’t usually keep track of version numbers. You mileage may vary, and you can always migrate to the standard GitFlow workflow when needed.\nBranching Where GitFlow has “develop”, “master”, feature, release, and hotfix branches, GitFlowSimple only has “master”, and feature branches (or you can call them release branches if you like merging several features into a release). Everything that is done on the extra GitFlow branches is be done directly on a feature branch or master branch in GitFlowSimple.\nThe main branch “master” is the only main branch and (just like GitFlow) it must remain production ready. And just like GitFlow this is the branch where version tags are created.\nUnlike GitFlow this is also the branch where version numbers are bumped. The flow looks a little bit like this:\nHEAD is version 1.0 (which is also tagged) A feature branch is created from the HEAD commit of master The feature is bumped into a snapshot image as follows: The version file (inside the source code) is updated to 1.1.0-SNAPSHOT The change is committed, immediately The change and the feature branch are pushed to the central repo The feature is developed The feature is tested and merged (git merge --no-ff) On master, the version is bumped as follows: The Version file is updated to 1.1.0 (no “-SNAPSHOT”) The change is committed The change is tagged All changes are pushed to the central repo Merging using --no-ff prevents git from linear-izing the commits and makes it easy (using git log -a --graph) to see all the branches/features.\nSupporting Branches The hotfix and feature branches are both used in GitFlowSimple. The two branches serve the same purpose as they do in GitFlow. The release branch serves no function in GitFlowSimple.\nAn example GitFlowSimple is best shown using an example. Lets assume the project is currently at 1.0, and a defect that popped up needs to be fixed, and at the same time two new features need to be added. I am going to deal with each in turn, but in actuality they will be done in parallel.\nHotfix A hotfix branch is created using the 1.0 tag (unlike GitFlow which would have used the “master” branch for this). The branch is called “hotfix-1.0.1”. The version file is updated to “1.0.1-SNAPSHOT” and committed. The branch is pushed The defect is fixed (which takes 10 commits) The defect is tested Now we need to merge to master and claim the rightful version number.\nThe code is merged to master On master the version is updated to “1.0.1” The change is committed The commit is tagged “1.0.1” The commit and tag are pushed to origin Feature 1 Started at the same time as the Hotfix.\nA feature branch is created using master’s HEAD (currently 1.0.0) is created named “feature-1”. The version file is updated to “1.1.0-SNAPSHOT” and committed. The branch is pushed The feature is added (which takes 3 commits) Now we need to merge to “master” and create a release, but the Hotfix was already merged.\nThe code is merged to master, but fails because of a version file conflict The merge is reverted. The feature branch is checked out and “master” is merged back into the feature branch. The conflict is present again. It is fixed by keeping our “1.1.0-SNAPSHOT” version. Note: we did this because our version was greater then what was in master; see “Feature 2” for what to do when this is not the case. We retest before merging to master. We attempt the merge to master again. There are no conflicts so we bump the version number as we did with the Hotfix; becoming 1.1.0. Feature 2 Feature 2 logically started on the 0.9 version so has the 1.0.0-SNAPSHOT version. This feature is not finished until after feature 1 has been merged.\nMaster has been pulled Master is merged into the feature branch, with a conflict on the version file. The conflict is fixed by keeping master’s version: 1.1.0. The version number is bumped to 1.2.0-SNAPSHOT (as if this was a new branch based on the current master) The code is retested The branch is merged into master (as with feature 1 and the hotfix becoming 1.2.0. Multiple Same Versions There is a chance when merging a feature it will not create a merge conflict because it is trying to claim the same version as what is already in master.\nThis is why it is important to ALWAYS do the following when merging features:\nMerge master back into the feature branch before merging the feature into master. Manually update the version number if no merge conflict happened. ","lastmodified":"2016-02-02T00:00:00-05:00","tags":null,"title":"Gitflow Simple"},"/blog/20160423-packer-ova":{"content":"Recently I have started using Packer to build AMI images. It works like a champ, but then I tried to make VMWare images and it produced machine images, not machine exports. This makes the exports nearly useless. However, with a little post-processing magic this can be fixed.\nThere is a GoLang based ovftool post processor that already does this, but it needs to be compiled and put into the packer plugins dir. Nothing that the plugin does requires GoLang, so I whipped up a quick bash version that I could include with the packer script.\nVMWare comes bundled with a tool called ovftool which will convert a machine image into a OVA file. It has a lot of useful options so I recommend you reading the manual page. Basically it take a vmx file and its associated files and makes a OVA: ovftool sourc.vmx dest.ova.\nI turned this into a script that can be called as a post processor from packer. There are a number of protections, but the important items are:\nline 5: Ensures ovftool is on the path line 19: This avoids an interesting behavior (read bug) of Packer where the the inline script is called multiple times; once per file in the output directory. line 33: Removes the floppy which is used to install some VMWare drivers. line 37: Removes the CD-Room that is also used to install some VMWare drivers. line 42: Uses ovftool to create an OVA. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 #!/bin/bash # Make sure ovftool is in the path. # On the mac: PATH=/Applications/VMware\\\\\\\\ Fusion.app/Contents/Library/VMware\\\\\\\\ OVF\\\\\\\\ Tool/:$PATH # I need to be given the output path and vmname. if [ -z \"$1\" -o -z \"$2\" ]; then echo \"output path and vm-name are required\" exit 1 fi DIR=$1 NAME=$2 cd $DIR # I may be called multiple times. If so bail early if [ -f \"${NAME}.ova\" ]; then echo \"OVA already created, skipping\" exit 0 fi if [ ! -f \"${NAME}.vmx\" ]; then echo \"no ${NAME}.vmx file found\" exit 1 fi # bail on error set -e # remove floppy sed '/floppy0\\\\\\\\./d' ${NAME}.vmx > 1.tmp echo 'floppy0.present = \"FALSE\"' >> 1.tmp # remove CD sed '/ide1:0\\\\\\\\.file/d' 1.tmp | sed '/ide1:0\\\\\\\\.present/d' > 2.tmp echo 'ide1:0.present = \"FALSE\"' >> 2.tmp mv 2.tmp ${NAME}.vmx ovftool -dm=thin --compress=1 ${NAME}.vmx ${NAME}.ova Add this script to the packer JSON files.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 { \"variables\": { \"output_path\": \"output\", \"vm_name\": \"data-collector\", ... }, \"builders\": [{ \"output_directory\": \"{{ user `output_path` }}\", \"vm_name\": \"{{ user `vm_name` }}\", ... }], \"_comment\": \"Create an OVA because packer cannot.\", \"post-processors\": [{ \"type\": \"shell-local\", \"inline\": [\"post-ova.sh {{user `output_path`}} {{user `vm_name`}}\"] }] } ","lastmodified":"2016-04-23T00:00:00-04:00","tags":null,"title":"Packer OVA"},"/blog/20161203-managing-base-docker-images":{"content":"Docker is a great way to package your code such that you can be sure it will run on any machine that has docker installed. However, maintaining your docker containers and publishing them to docker hub can be a bit of a challenge. The following are two ways I do it.\nOption 1: Let docker hub do it If your needs are simple then you can have Docker Hub monitor a repo and rebuild the docker file when you push a changed to the directory.\nDocker hub maps branches to tags with “master” being the “latest” tag. If you want more docker tags (maybe multiple versions) then you will need to create multiple branches and reconfigure Docker Hub.\nOption 2: One repo to rule them all The option that I generally go for is a single repo to manage all my docker containers. Where the directories map to the docker repos and to the tags. I do this because you “should” be separating your packaging from your source, and I like to keep similar things organized.\nWith this method you do not need to create the Docker Hub repos. They will be created by docker push from the build.sh, but you will need to manually edit the repo information on Docker Hub to make the repo useful for others.\nIf you wanted to automate it then you will need a CI service which allows docker images and Docker-next-to-docker. Setting up automation is beyond the scope of this entry.\nThe docker-image repo directory would look a bit like this:\n- / - jkamenik/ - hugo/ - 0.15/ - Dockerfile - entrypoint.sh - latest -> ./0.15 - README.md - my-private-repo.com/ - emacs - 25.1 - Dockerfile - build.sh The highest level directory (“jkamenik”) is the Docker hub account name. Or it could be a private docker repo. build.sh has not been tested against private repos, but it should work.\nThe 2nd level directory (“hugo”) is the docker image name: “jkamenik/hugo”. Within this directory is also where I put the README.md. This is because a Docker Hub Repo’s information is independent of a tag; so it makes sense for me to manage it in the same way. After the first creation, or an update to the README, I copy and paste this information into the Docker Hub repo’s information.\nThe 3rd level directory (“0.15”) is the docker tag: “jkamenik/hugo:0.15”. Also, the 3rd level directory can be a symlink, which is useful when tagging “latest” to a specific version.\nThe 4th level is where the Dockerfile and any supporting files go. A common pattern for me is to provide a script which will be the entry point. The behavior of this script is generally to check the argument list and if they look like program arguments blindly pass them to the default program. If they don’t look like program arguments then execute them as the entry point.\n1 2 3 4 5 6 7 8 # execute hugo without args $ docker run jkamenik/hugo # execute hugo with \"-D\" $ docker run jkamenik/hugo -D # execute bash $ docker run jkamenik/hugo /bin/bash The build.sh file takes 0 or 1 argument. If there are 0 arguments then it will build all directories. If there is 1 argument traverse that path and build only images there. For example:\n1 2 3 4 5 6 7 8 # build all $ ./build.sh # build all private repos $ ./build.sh my-private-repo.com # build only the 0.15 verion of hugo $ ./build.sh jkamenik/hugo/0.15 To see this all in action see https://github.com/jkamenik/docker-images","lastmodified":"2016-12-03T00:00:00-05:00","tags":null,"title":"Managing Base Docker Images"},"/blog/20171021-docker-details-dumb-init":{"content":"If you don’t control the “init” process of docker then you are doing it wrong. But don’t worry there is an easy fix. Before I explain the solution, I should explain the issue. Almost every process you run in Linux will likely run at least 1 child process. And Linux expects that every parent will properly care for its children by propagating kernel signals like SIGTERM, and by cleaning up child zombie processes. If all else fails the Linux init process will do that on behalf of Linux and all is happy.\nHowever, programmers generally don’t know the requirements of dealing with child processes, and linux clean up after itself so unless you already know what to do testing won’t show issues. The issue comes because Docker doesn’t provide an init process for the container, so your child processes will not get signals, zombies will be created, and eventually things will terminate uncleanly or hang indefinately.\nSolution: Use dumb-init dumb-init provides a very small init runtime that deals with signals and zombie processes. And nothing else! It is a tiny 45Kb statically compiled and will work inside any docker container as the entrypoint.\ndumb-init has the ability to do signal-rewriting which is very important if you are using apache which uses SIGWINCH for a graceful shutdown or nginx which uses SIGQUIT. Many other programs also use different signals then TERM to mean graceful shutdown.\nAnother nice benefit of dumb-init is that it will terminate the container immediately on any of the termination signals, even if the child processes ignore the signals. This prevents stall-out of container termination in Kubernetes, Docker Swarm, and Docker Compose.\nTest your containers To test your containers send it the SIGHUP, SIGINT, SIGTERM, SIGUSR1, and SIGUSR2 signals to your running container. All of them should immediately start the shutdown process.\nLets assume you have a container like the following container\n1 2 3 4 5 6 7 FROM alpine:3.5 COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh RUN apk add --no-cache bash ENTRYPOINT [\"/entrypoint.sh\"] The entrypoint.sh looks like this. It will print the signal it gets but only exit cleanly if it gets USR1. I also added a 2s wait on USR1 to simulate a graceful shutdown. All the signal handlers should be called in turn until one exists the program.\n1 2 3 4 5 6 7 8 9 10 11 #!/bin/bash trap \"echo TERM\" TERM trap \"echo HUP\" HUP trap \"echo INT\" INT trap \"echo QUIT\" QUIT trap \"echo USR1; sleep 2; exit 0\" USR1 trap \"echo USR2\" USR2 ps aux tail -f /dev/null You can build the container with a command like docker build -t my_container. If you run it with docker run --rm -ti --name my_container my_container you will get the following output:\nPID USER TIME COMMAND 1 root 0:00 {entrypoint.sh} /bin/bash /entrypoint.sh 7 root 0:00 ps aux You can send any signal you want to the container via docker kill -s HUP my_container (replace HUP with various signals). None of the signals are printed! To double check run docker stop, which will sent TERM, then wait 10 seconds before sending KILL.\n$ time docker stop my_container my_container real\t0m10.761s user\t0m0.011s sys\t0m0.015s So here we can tell that stop waited the full 10s and still needed to send KILL.\nFixing the issue Changing nothing about /entrypoint.sh we can fix this by updating the Dockerfile as follows.\n1 2 3 4 5 6 7 8 9 10 11 12 13 FROM alpine:3.5 COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh RUN apk add --no-cache bash # Change 1: Download dumb-init ADD <https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64> /usr/local/bin/dumb-init RUN chmod +x /usr/local/bin/dumb-init # Change 2: Make it the entrypoint. The arguments are optional ENTRYPOINT [\"/usr/local/bin/dumb-init\",\"--rewrite\",\"15:10\",\"--\"] CMD [\"/entrypoint.sh\"] Again start the container and run docker stop\n$ time docker stop my_container my_container real\t0m2.778s user\t0m0.011s sys\t0m0.013s Here you can see it exists immediately after the simulated graceful shutdown meaning it got and processed the USR1 signal, even though it was sent the TERM signal. The output of the container is\nPID USER TIME COMMAND 1 root 0:00 /usr/local/bin/dumb-init --rewrite 15:10 -- /entrypoint.s 7 root 0:00 {entrypoint.sh} /bin/bash /entrypoint.sh 8 root 0:00 ps aux User defined signal 1 USR1 0 In case you want to double check that TERM was actually used we can use docker kill -s TERM to explicitly send the TERM signal:\n$ docker kill -s TERM my_container my_container PID USER TIME COMMAND 1 root 0:00 /usr/local/bin/dumb-init --rewrite 15:10 -- /entrypoint.s 7 root 0:00 {entrypoint.sh} /bin/bash /entrypoint.sh 8 root 0:00 ps aux User defined signal 1 USR1 0 We still get USR1 as the signal.\nHonorable Mentions The following are worth mentioning, though I don’t use them.\ntini tini is an alternative to dumb-init. It is a few months older then dumb-init but doesn’t provide the signal rewriting that you are going to need for many of the programs you will want to run.\nIt is also 850Kb for the statically compiled version (vs 45kb for dumb-init). Not a huge number, but given it has fewer features it isn’t worth the bloat.\nAlso, if you do use tini remember to use the -g options so that all child processes are signaled, like would be done from init during a shutdown. This is the default for dumb-init but needs to be enabled for tini.\ndocker run –init The --init flag was added to docker 1.13 to run tini as the init process before the ENTRYPOINT is executed. Its a cute addition, but isn’t used by Kubernetes, Docker Swarm, or Docker Compose. This might be fixed in the future, but for now it is best to ignore this option.","lastmodified":"2017-10-21T00:00:00-04:00","tags":null,"title":"Docker Details - Dumb Init"},"/blog/20250406-wikilinks":{"content":"Wikilinks are a standard of many / most wiki software. However, Hugo does not have support for them. They have a simple form of Page Title or Display Text, which makes them very useful for quick linking. This is how I implemented something like them.\nShortcode Proof of Concept First, let’s start with a shortcode that gets us most of the logic. The idea is that shortcode { {% wl \"Hugo Wikilinks\" %}} would link to this page.\nSome examples\nwl \"Hugo Wikilinks\": Hugo Wikilinks wl \"Hugo Wikilinks\" \"Another name\": Another name wl \"hugo wikilinks\": Hugo Wikilinks wl \"invalid\": invalid wl \"FOO\" \"bar\": bar Note\nFor ease we’ll use the markdown form of calling shortcodes: % instead of <.\nThe contents of layouts/shortcodes/wl.html:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 {{- $title := .Get 0 }} {{- $display := .Get 1 | default \"\" }} {{- $page := \"\" }} {{- range .Site.RegularPages }} {{- if eq (lower .Title) (lower $title) }} {{- $page = .}} {{- if eq $display \"\" }} {{- $display = .LinkTitle }} {{- end }} {{- end }} {{- end }} {{- if ne $page \"\" }} {{- printf \"[%s](%s)\" $display $page.RelPermalink }} {{- else }} {{- $display | default $title }} {{- end }} Line 1: Gets the Title of the page for comparison 2: Gets the display value override 5 - 12: Searches all regular pages (ones with valid titles) for the one that matches 8 - 10: Uses the Page’s Link Title if an override is not provided 14 - 18: Prints either the wiki link or the display string or the title This is a 90% solution. However, we can make it the 100% solution with a lot more logic. So let’s leave it here for now.\nIf you are interested in more of a solution then milafrerichs/hugo-wikilinks has a good start.","lastmodified":"2026-05-16T00:00:00-04:00","tags":null,"title":"Hugo Wikilinks"},"/blog/20250418-kustomize-rollout":{"content":"[Kustomize](/garden/kustomize/) is a tool built into kubectl which helps in the management of YAML. It does a lot of things, but one of the major ones is having overlays per deployment. It is not uncommon to have a single base and a rollout per deployment. However, this can cause issues when you need to fix your base, as it will happily update all your overlaid environments en masse; which is less than ideal. Here is how I have fixed that for my deployments.\nSetup Let’s say we have the following kustomize layout. It is a simple deployment with a service and ingress. There are 4 deployments; the 3 standard stages (dev, staging, prod) plus a local testing overlay meant to be deployed manually to a local instance.\napp base deployment.yaml ingress.yaml kustomization.yaml service.yaml overlays dev kustomization.yaml local kustomization.yaml prod kustomization.yaml staging kustomization.yaml Option 1: Patches In this first option everything that makes a deployment unique is only tracked in the overlay via patches. This is very good for simple patches like the following:\n1 2 3 4 5 6 7 8 9 10 11 12 # overlays/dev/kustomization.yaml resources: - ../base patches: - patch: |- - op: replace path: /spec/rules/0/host value: dev.example.com target: kind: Ingress name: app However, things are a little more annoying if you have to exclude or remove items. There is no way in kustomize to delete entire objects so the only way to handle this in each overlay is via full object copies. If however, you have a large discrepancy between an env or a lot of objects then this can be error prone.\nOption 2: A/B Bases Note\nThis style is more complicated because it prevents accidental rollouts. It should be reserved for when the deployment maturity requires it.\nIn this style the base has a, b, provider-a and provider-b bases as well as all the standard overlays plus a local overlay that cannot have provider specific objects.\napp base a deployment.yaml ingress.yaml kustomization.yaml service.yaml provider-a backend-config.yaml cert.yaml external-secret.yaml frontend-config.yaml kustomization.yaml b deployment.yaml ingress.yaml kustomization.yaml service.yaml provider-b backend-config.yaml cert.yaml external-secret.yaml frontend-config.yaml kustomization.yaml overlays dev kustomization.yaml local kustomization.yaml prod kustomization.yaml staging kustomization.yaml A standard rollout is as follows:\nEvery overlay is pointing at *a local and provider-a directly at a dev, staging, and prod at provider-a Create / update b to be what is in a Point local to b Update b until it works for local Create / update provider-b based on provider-a Make sure that provider-b points to b Point dev to provider-b Update provider-b until it works for dev Roll out the changes to staging and prod (optional) Delete a and provider-a Blast Radius Diff\nBecause there are going to be so many file changes with every update it is useful to create a script that can diff the output of kustomize between what is currently deployed (usually the main branch), and what is currently on the branch. This is the only way to get a real idea of the blast radius of the change.\nOption 3: Versioned Helm Charts The final option - which is complicated as it introduces a new tool - is to produce a versioned [helm chart](/garden/helm-chart/). Then use that reference and a values file in each overlay. In this case, because the helm chart is the base, no separate base is needed.\napp overlays dev kustomization.yaml values.yaml local kustomization.yaml values.yaml prod kustomization.yaml values.yaml staging kustomization.yaml values.yaml Each kustomization.yaml would look like this:\n1 2 3 4 5 6 helmCharts: - name: app includeCRDs: false valuesFile: values.yaml version: 3.1.3 repo: https://oci.example.com/repos/app Separately you will need a repo for the helm chart with a CI pipeline that pushes a versioned OCI image to a repository. To rollout a change you update the version flag and make any correction needed to the values file.\nNote\nIt is not uncommon to do local testing directly from the Helm chart and have a special dev cluster for manually testing the helm chart before it gets rolled out. This means that the local vs provider specific objects has to handled by logic exposed in the values.yaml.\n1 2 3 4 5 6 7 8 9 10 # values.yaml provider: \"local\" # only include the CRDs valid for local deployments # or provide explicit disable flags disableExternalSecrets: true disableManagedCertificates: true # hardcoded secrets are now needed secrets: someSecret: key: some-secret-value Don’t use chartHome\nKustomize does support a chartHome option which will use a local file path to find the helm chart. Don’t use it, as it is worst of all worlds. You have to manage it in A/B style or you have to add the stage logic to the chart directly which means you cannot truly test it before roll out. It will bite you.","lastmodified":"2026-05-16T00:00:00-04:00","tags":null,"title":"Kustomize Rollout"},"/blog/20250514-rag-pipeline":{"content":"A Retrieval-Augmented Generation (RAG) pipeline is a technique for interfacing with LLMs that helps to:\nAdd Context Improve Accuracy Check / Filter hallucinations Preserve Privacy Add Value In this age where LLMs are becoming ubiquitous you will very likely need to create one of these sooner or later.\nBasic Flow flowchart LR User((User)) Vector[(Vector DB)] LLM{{LLM}} Embedding[Embedding Processor] Embedding -->|A| RAG -->|B| Vector Vector -->|2 & 4| RAG -->|5| User User -->|1| RAG -->|3| LLMThere are two distinct flows that need to be performed. The first is the embedding flow, which reads and stores data not directly accessible to the LLM. It vectorizes the data and hands it to the RAG for storage in the Vector DB. Following Single Responsibility Principle, it is important that the RAG be the only system with direct access to the Vector DB.\nSeparately the Query flow starts with the user asking a question. The RAG system may (or may not) pull data from the Vector DB to augment the query with context the LLM doesn’t have. Care has to be taken to ensure that no IP is leaked to the LLM because queries are considered public and may be used in future LLM training. After the LLM response is returned the RAG can additionally augment the response with embedded context from the Vector DB before handing it back to the user.\nRAG Service The RAG service should be a simple HTTP service that has 2 types of endpoints. The first type will be the CRUD API for the embedding flow. The second is the streaming API for the query flow.\nEmbedding API The Embedding API should be your standard CRUD operations. You would be well served using an OpenAPI server. If at all possible we recommend taking the raw data in the API and then vectorizing it in the service for storage in Vector DB.\nQuery API The Query API should “stream” the response. There are a few ways to do this which will affect what deployment options you have. One of the easier ways - from the server perspective - is websockets. However, not all load balancers or WAFs support that. Another option is a Cursor Keep Alive, though that comes at the disadvantage of requiring a separate DB to keep track of the cursors.\nDeployment Options Your simplest option is a serverless function or container. That service would take care of the API endpoint and then you largely just have to make sure that your code completes before the service timeouts.\nA Kubernetes Deployment is another viable option. Expose the endpoint via an Ingress through a high performance IngressController and you should be all set.","lastmodified":"2026-05-16T00:00:00-04:00","tags":null,"title":"RAG Pipeline"},"/blog/20250615-blast-radius":{"content":"Context is everything, and understanding Blast Radius is crucial for providing the necessary context when assessing risk as a DevSecOps professional.\nBlast Radius - simply put - is how much of the infrastructure is touched when a change is made. The higher the blast radius the higher the risk. And in the world of IaC that usually means it is caused by a change in IaC code. So it would be natural to assume that a large change in blast radius would be caused by a large change in IaC, but that is often not the case. There is only an indirect relationship between changes to IaC lines and infrastructure changes.\nBut how do you protect yourself?\nYou measure blast radius, then track it using Key Performance Indicator (KPI), and finally design to minimize it.\nMeasuring Blast Radius The best way to measure Blast Radius is by using the IaC tool itself. A naive approach is to simply count the number of changes. However, that doesn’t include any kind of risk assessment. Different types of change represent different risks. Therefore, my recommendation is to calculate it as follows:\n+1 for any item added or deleted, but not replaced If possible, consider the underlying provider’s objects and not what is in IaC. For example, in terraform an aws_s3_bucket might have a logging block. Those are 2 separate objects in AWS and thus should be counted separately. As a side note, this is why the logging block is deprecated and the aws_s3_bucket_logging object should be used instead. +3 for any item changed in place They are higher risk targets as they are presumably already in place and working so a change is a higher risk +5 for any item that is replaced. They are already working, and any replace is likely to result in data loss. Add up all the changes and that represents the risk of the change. This can then be tracked over time to indicate the relative risk of changes.\nOptional items The following items are harder to know because sometimes the IaC won’t know. But if you can track them, you should.\n+7 for any case where the IaC change would not be respected. That is, the IaC is changed, but it won’t affect the underlying infrastructure. If the IaC tool doesn’t error, that is a high risk because you’ll assume everything is ok, but it very much isn’t. S3 bucket encryption is an example of this. If the flag is enabled only new files are encrypted. Older files remain unencrypted without any way to know. +9 if the change would cause loss of data This usually is only discovered during that failure moment when everything fails and you have to trigger Disaster Recovery. Once this type of change is known it should be documented as the kind of change that shouldn’t be made. Policy-as-Code tools are good for preventing this. At the time of this writing, AWS EFS encryption is an example. It would happily remove all existing files when this flag is changed. Blast Radius KPI The following are the KPIs you need to track and publish:\nBlast Radius (See above) - This tells you the risk of each apply IaC lines changed - This tells you the programmer’s intended number of changes for each apply. It is important to track the lines changed between two applies of the IaC, not just the lines changed per commit. Each line changed, added, or deleted counts as +1. Resources Under Management (RUM) - This is a count of the number of objects described by the IaC at the time it is applied. Since IaC often has means to reduce code duplication (like modules) this should be based on fully expanded resources, not just what is in the IaC files. IaC Code Efficiency ($\\frac{IaC\\ resources}{1K\\ line\\ of\\ code}$) - The number of resources should be at the plan or apply stage. The lines of code should be measured based on the workspace. It is measuring how effective you are at using coding techniques to manage your IaC resources. Change Risk (min, max, mean, median, & mode of $\\frac{Blast\\ Radius}{IaC\\ Changes}$) - This tells you how much of your infrastructure is changing per change in IaC. High numbers indicate that relatively small changes in actual code cause large changes in infrastructure. You need to balance IaC Code Efficiency and Change Risk to maximize your operational speed.\nDesigning for Blast Damage Each situation and business model is different. So there is no one size-fits-all solution here. The design goal should be to know what the maximum potential effect of a change could be and to ensure it is within an acceptable tolerance given the business. Then design an IaC layout and processes that maximizes the IaC Code Efficiency without increasing the potential blast radius outside acceptable tolerances.\nBalancing these two competing ideas is difficult and constantly needs to be revisited and adjusted. Below are some ideas that might help you.\nSimple Base Let’s say you’re using a code gen tool like Kustomize. This uses a base + overlays. Let’s say there are overlays for dev, staging, and prod. Any change to base affects all envs, thus has a large blast radius. Change to overlays only affect those overlays. Therefore they have a smaller blast radius.\nA good technique to reduce blast radius is to apply the changes to each overlay individually. This maximally reduces Blast Radius by maximally increasing code duplication. To reduce code duplication, once each overlay has all the changes, move them up into base so that any new envs also benefit. The idea is to keep the base as simple and minimal as possible, and copy and paste the required changes between overlays.\nYou might even consider splitting your monolith across multiple bases so that each can release independently.\nA/B rollout A more extreme version of the above - but ultimately easier to maintain - is an A/B style rollout. Using the Kustomize example again, you’d create a second copy of base called base-b. You’d modify it as needed and point each overlay to it in turn. Once all overlays are pointed at base-b you can erase base.\nYou’d have as many bases as you’d have in-process rollouts up to a maximum of the number of envs you have. Therefore it is important to track the roll outs carefully.\nCare also has to be taken with PRs since the actual line change will look huge but the relative change will be small.\nCheck-in Fully Rendered Code Similar to the A/B style, but more broadly is to use code gen tools like CUE to maintain an easier to manage base template then fully render it out and check-in that code. In this case the CI/CD pipeline should only ever run off the fully rendered code, and the developer controls what changes get committed and thus the blast radius.\nFor early teams this is likely a good balance. But as the team scales the amount of generated IaC per small change will be untenable. So just keep that in mind. This model is ultimately a path with limited long-term scalability (an “evolutionary dead-end”), but it could serve you for years before any issues arise.\nVersioned Artifacts The most effective approach to handling Blast Radius is through the use of Versioned Artifacts and rolling out new versions. All roads will eventually lead to this method; however, there is quite a bit of effort involved in setting up a repository for the artifact, CI pipelines that include adequate testing, and artifact storage.\nWhile this gives you the benefit of being able to independently test the artifact before release, the entire process does involve some amount of operational overhead. Therefore it is only recommended for mature organizations for the items that MUST remain stable.\nBranches and/or Tags Sort of a lazy man’s versioned artifacts is using branches or tags. Code can be merged between branches as needed to rollout changes, but you do not have to do things like setting up new repos, CI pipelines, or Artifact Repos. Folks also generally know how to merge between branches better than they understand how to release artifacts. Therefore it is a smaller conceptual load and easier to pick up.\nHowever, there are some major downsides:\nMerging is manual so forgetting to merge changes across branches will be common. There is no relationship between branches, thus it won’t be clear what or how changes can and should be made, or where things are deployed. It would be entirely possible to have changes not flow through a standardized process. Environments will tend to drift both making future merging difficult. ","lastmodified":"2026-05-16T00:00:00-04:00","tags":null,"title":"Blast Radius - Critical Context"},"/blog/20260603-ai-proof-software-careers":{"content":"A lot of developers feel career anxiety about AI. Some of that is hype. Some is backed by data. The backed part is often contradictory: big productivity gains in one study, a slowdown in another, softer junior hiring in payroll data.\nHere we talk about what the data actually means and what you can do about it.\nThe Contradictions Headlines on AI and developer careers often contradict each other. That is not a reason to ignore the data. It is a reason to read carefully.\nProductivity Is Real, but the Number Depends on the Study Conclusion: AI helps on many tasks. Throughput metrics and self-reported speed do not tell the whole story. One headline percentage is a weak basis for a career plan.\nMIT field RCTs, 2024: about 26% more completed tasks with Copilot across roughly 4,900 developers. GitHub lab study, 2022: 55% faster on a bounded coding task. Jellyfish working paper: about 8.7% faster task completion at adopting firms; quality measures did not decline. NAV IT longitudinal study, 2025: no statistically significant change in commit metrics after Copilot rollout. The Labor Market Is Squeezing the Bottom Rung Conclusion: This is not “no software jobs.” The backed worry is fewer classic junior slots for work models can draft quickly.\nStanford Digital Economy Lab, 2025: workers aged 22-25 in AI-exposed occupations saw roughly 16% relative employment decline vs less-exposed roles. Same study, software developers: employment for that cohort fell nearly 20% from its late-2022 peak by September 2025. Experienced workers in the same occupations did not show the same pattern. Experienced Work Does Not Automatically Get Faster Conclusion: Speed is not the same as correctness, operability, and accountability. That gap is where durable careers still live.\nMETR RCT, 2025: experienced open-source contributors took 19% longer with AI allowed; many still felt faster. See also a critique of the study design. Stack Overflow Developer Survey, 2025: 46% actively distrust AI accuracy; 66% frustrated by “almost right” output. What It Means The backed data points to uneven tools, pressure on junior hiring, and persistent need for human judgment. That maps to two practical views: what tends to hold up and what is most exposed.\nWhat Holds Up Better No title comes with a guarantee. The studies do not rank job titles. They do suggest where humans are still needed:\nProduction ownership. Site reliability, incident command, and on-call culture exist because outages have cost, blameless learning, and a named owner. AI can suggest runbook steps. It does not carry the pager or explain a missed SLO to leadership. Security and adversarial thinking. Threat modeling, incident response, application security, and offensive research assume an opponent who adapts. Generated code can be wrong in subtle ways. Trust boundaries and “did we actually fix prod?” need skeptical humans. Platform and infrastructure at org scale. Identity, networking, cost, compliance, and migration history are specific to your employer. Models rarely have your full graph. The engineer who can reason across that graph stays relevant. Regulated and high-stakes domains. Healthcare, finance, defense, and safety-related embedded systems add liability, audits, and sign-off workflows. Tools accelerate drafts. Humans still sign. Architecture and technical leadership. Tradeoffs across teams, legacy, and multi-year bets are political and technical. Models propose options. They do not own the decision when the bet fails. Customer-trusted technical roles. Solutions architecture, forward-deployed engineering, and staff roles on revenue-critical accounts combine judgment, communication, and delivery under scrutiny. Building and operating AI systems. Evaluation, guardrails, observability, cost control, data pipelines, and human review loops are busy fields. Adoption ran ahead of trust. Domain depth plus shipping. The durable builder is often “engineer plus billing, logistics, clinical workflow, or security operations,” not a generic feature author. If your résumé already shows multi-stakeholder delivery and production cutover risk, you may already be closer to these patterns than the anxiety headlines suggest.\nWhat Is Most Exposed Some of the career anxiety maps here. These roles lean on throughput without ownership:\nSpec-driven UI and API work with no system context Thin integration glue with no failure-mode analysis Roles measured by merges, not by prod outcomes Documentation or boilerplate factories disconnected from operations Models are strongest on spec-and-output work with little system context. They still do not own a bad deploy, a security incident, or a wrong architectural call across three teams.\nWhat to Do About It The studies conflict. Our read is that productivity gains are real but uneven; junior hiring is under pressure; experienced work still needs human judgment and trust.\n“AI-proof” is the wrong goal. Accountability-proof is closer to the truth. While there are no guarantees, the following are our recommendations:\nOwn outcomes, not keystrokes. Measure success by latency, reliability, cost, security posture, and customer results, not lines and commits. Tie your work to prod or business risk. Verify before you trust. Treat model output like a fast junior: useful, needs review. Specify intent in verifiable slices. Use tests and static analysis. Stage carefully. Reject the first answer when it does not hold up. Think in systems, not syntax. Syntax is table stakes. Build skill in data flow, failure modes, boundaries, operability, and evolution across services you did not write. Learn AI orchestration. This is not prompt trivia. Assemble context from repos, runbooks, tickets, and metrics. Decompose work. Parallelize where safe. Gate risky changes. Write down why you chose a path. Go deep in one scarce lane. Pick security, data, distributed systems, a regulated industry, hardware-adjacent work, or AI infra and eval. Shallow feature-only generalists face the most hiring pressure in the data. Invest in communication and trust. Write clear RFCs. State tradeoffs honestly. Be willing to be the person called when production is on fire. Retool without panic. Tooling will churn. Adopt workflows on real projects. Measure speed and defect rate. Keep what works. Neither “ignore AI” nor “AI replaced me” is a strategy. A Simple Mental Model flowchart TB A([Problem and context]) --> B[[Human: scope, risk, constraints]] B --> C{{AI: draft, explore, automate}} C --> D[[Human: verify, integrate, operate]] D --> E([Outcome in production])The durable career is the human + AI. As the human, you scope risk and constraints, then verify and operate in production. Let AI draft and explore in the middle.\nYour response is not to code less. It is to ship correct, valuable systems with AI as labor, and to lean on taste, verification, and trust when the model is only almost right.","lastmodified":"2026-06-03T00:00:00-04:00","tags":null,"title":"What Software Jobs Survive AI, and What You Can Do"},"/blog/20260605-agent-skills":{"content":"I have been using AI for many years, and within the last year really got heavy into MCP and Agent Skills Framework. At this point it is clear that using agents is now a required skill by any engineer and many (if not most) non-engineering jobs.\nThe thing that is going to separate the haves and have-nots in this new reality is the curated list of personal Agent skills you develop and take with you. Here I am going to explain how to do that successfully.\nFirst, I am going to assume you are familiar with AI Agents, and how your particular agent framework loads skills. There are many ways this is done but at the end of the day it boils down to a directory that contains an AGENTS.md (or CLAUDE.md because Anthropic uses that name) and a skills directory of directories containing SKILL.md files. That directory is the one you need to manage and maintain.\nA Soul The first thing you need to do is give your Agent a Soul. The SOUL.md gives your agent a purpose, and rules for how it behaves with you. Start small and define these things:\nYour Identity - How do you think of yourself (i.e. “I am …”) Its Identity - How should it know itself (does it have a name? Should it be an employee of yours? Should it pretend to be you?) Communication Style - How you like to be talked to (i.e., “Concise with a lot of links backing up your statements”) Operating Principles - What MUST the agent do, what MUST it NOT do First: Tool-Skills and MCPs The very next thing is to load a few tool-based skills. These tell the agent how it can do things. I keep a fairly up to date curated list of Agent Skills to pull from. First you should look for tool-skills which are basic and portable skills like apple-reminders.\nAdd one or two you think will be useful, and run them to see if there is additional setup that is needed (usually auth tokens and MCP servers). Once you have a basic conversation and get the agent to do a thing it is time to open the floodgates, and let the agent maintain itself.\nUnderstand Skill Types There are no hard and fast rules with skills (because there is no standard). However, I like to think about skills as existing in one of three camps. They are:\nCapability Skills - These teach the Agent to do a thing (like interface with apple reminders). They are highly portable, and can often be useful to others. Name these for what they do (i.e., apple-reminders, proofread) Behavioral Skills - These teach the agent how to behave when using other skills (like using GTD when managing reminders). Name these for what they layer on top of (i.e., reminders-gtd, proofread-blog) Domain Skills - These are outcome based skills that you define that reference the other skill types. These are highly specific to you. Name these for what they do (i.e., morning-briefing, company-research) Skillify Skill The first real skill you need is the skill that can maintain skills for you. As meta as it sounds it is straightforward to create this skill via a conversation with the agent.\nCreate the stub skill as follows:\n1 2 3 4 5 --- name: skillify description: \"Create, improve, and audit SKILL.md. Use when building a new skill from scratch, refining an existing skill's description or commands, or auditing all skills for quality and staleness.\" --- # Skillify Then ask the agent to create this skill based on the description. Or even using <path to my list of skills repos> create this skill.. Just continue until you have something that looks like it should work. Then use it.\nCreate Your Own soul-audit Skill Now comes the first in a long line of skills you’ll create: the soul-audit. Your agent’s SOUL is critical to your success. So you need a skill that can specifically manage it; and it is a great test of your skillify skill.\n1 /skillify create soul-audit. I want to periodically update your soul (AGENTS.md) through a series of prompts. It should be re-runnable anytime to update any section of the soul. Use when I specifically ask for a soul-audit to be performed. Your skill will be specific to you. But I like to keep my sections separate so it is easier for each phase to only update its section. My AGENTS.md looks like this:\n1 2 3 4 5 6 7 # AGENTS.md Load the following in order: - SOUL.md - USER.md - IDENTITY.md - ACCESS_POLICY.md Then my skill looks something like this:\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 # SOUL Audit Generate the agent's identity and operational configuration through an interactive interview. Each phase produces a file. Any phase can be re-run independently to update. **IMPORTANT:** This skill generates content from the USER'S OWN ANSWERS. It NEVER ships pre-filled content. ## Phases ### Phase 1: Identity Interview Ask: \"What is this agent to you? Research partner? Executive assistant? Thinking partner? All of the above?\" Generate: SOUL.md identity section. ### Phase 2: Vibe Calibration Show 3-4 communication style examples: - **Formal:** \"I've prepared a comprehensive analysis of the situation...\" - **Direct:** \"Here's what's happening. Three things matter.\" - **Technical:** \"The root cause is in the connection pooling. Here's the fix.\" - **Casual:** \"Yeah so basically the thing is broken because X. Easy fix.\" Ask which feels right. Generate: SOUL.md vibe + communication style sections. ... Once it is there, run it via /soul-audit.\nConclusion In our new AI-driven world your critical skill is being able to maintain a curated list of Agent Skills that is unique to how you work. This MUST be continually updated and maintained, so the first set of skills helps you do that. From there build out as you need to.","lastmodified":"2026-06-05T00:00:00-04:00","tags":null,"title":"Curating Personal Agent Skills"},"/blog/20260715-dso-conjecture":{"content":"The Developer-Security-Operations (DSO) conjecture is CAP Theorem applied to engineering orgs. Like CAP’s famous “pick two,” it is a teaching shortcut for alignment: under pressure, you drop a pillar. While Eric Brewer later warned that CAP’s “2 of 3” framing oversimplifies real systems, it stands as a good framing that is broadly applicable. This is my personal conjecture from years of working in software orgs of all types.\nThe DSO Conjecture states that a business’s software engineering organization can provide at most two of these three guarantees:\nDeveloper Tolerance - How far the company tolerates arbitrary developer choices (language, framework, toolchain). Security Consistency - How reliably the company keeps systems and data secure under change. Operational Availability - How reliably the product or service stays available to customers. No pair is universally better. Problems start when a company or team isn’t clear about which guarantees are the real ones.\nThe Company Types At most you can have two guarantees. You do not need two. Undecided and single-letter rows are fine as early stages of maturing. But real maturity is found when you settle on a pair.\nTrade-offs Meaning Common Terms Used (undecided) No guarantee set chosen yet. Experimentation is fine until scale or regulation forces a pick. “Startup”, “Agile”, “Greenfield” D Developer freedom first. A common early stage while product-market fit is still unclear. “Developer Focused”, “Fail fast” S Security first, often from regulation or a security product. Fine as a stage if the plan adds D or O later. “High Sec”, “Compliant”, “Regulated” O Operations first. Platform or provider mindset while the service must stay up. “Highly Available”, “NOC”, “Provider”, “Platform” DO Balance feature delivery against keeping production up. Security often lands as backlog enhancements that steal Dev time. Some teams brand this “DevSecOps” to widen appeal without changing the tradeoff. “Production Ready”, “Automated”, “DevOps” SO Balance security with operational demands. Non-security change is gated. Security and platform updates keep moving. “Secure”, “SecOps”, “Shared Fate” DS Ship highly secure software; customers own day-to-day ops and availability. “Single App”, “Zero External Dependencies”, “Simple deployment”, “Endpoint Agent” None of these is wrong when the tradeoffs match the requirements. A greenfield spike that starts undecided or at pure D can be the right move. Stay there only if maturing into a pair is part of the plan. It gets dangerous when the company stops at one pillar and flip-flops among the other two without choosing. Marketing that sells all three while engineering is quietly DO or SO creates the same pain.\nPivoting: Architecture, Process, and Tools Headwinds A common issue I see is the business wants to pivot to or add an additional vertical to the addressable market segment. If the new market segment already matches the pillar-pair then success can be had. However, switching to a market where the pillar-pair is different results in failure.\nOnce a pair is real, architecture, processes, and tools drift toward those pillars. Pipelines, review gates, platform defaults, hiring loops, and even repo layout start assuming that tradeoff. Switching pillars later is not a slogan change. It is full rework: rebuild controls, retrain teams, and retire habits that optimized the old pair. It is not a simple new segment focus.\nA great example of this is going from a banking vertical to a medical vertical vs going from CISO-types to Developer-types. The first will likely be possible, while the second will not. Banking and Medical verticals are both highly regulated SO style businesses, and while the exact details differ, their risk stance is similar enough to have success. However, CISO-types are strongly S or SO, while Developer-types are strongly D or DO. Those are incompatible pairs, so the org’s locked architecture will fight the new buyer.\nCircumventing the Conjecture with One Role Another failure mode is picking one pillar, then stuffing the other two into a single job title. That is an attempt to circumvent the conjecture. It sets that role up to fail.\nExample: a security-focused org (S) hires “DevOps” without saying whether D or O is the real partner pillar. The person is asked to maximize developer freedom and operational availability at once. Under pressure they will pick the wrong missing pillar for that week’s crisis.\nThe best path is clear alignment communication. Name the two guarantees and soften the expectation on the other. Then hire and measure against that pair.\nShielding Alignments Larger companies often need offerings aligned to different pillars than other parts of the company or the company as a whole. This can work with dedicated teams that realign to the needed pair. Those teams need to be shielded by charter, product boundary, or P&L success.\nExample: Google Cloud Platform GCP leans SO as a company. Shared fate, secure defaults, and opinionated platform hygiene favor Security Consistency and Operational Availability over unbounded Developer Tolerance.\nTwo clear SO signals:\nAlways-on encryption. Google encrypts customer content at rest by default. No opt-in. Security and ops hygiene are baked in; developers only get to choose between provider managed and customer managed keys. GKE node auto-upgrade. Nodes upgrade by default so the fleet stays current; but the choice of upgrade window allows it to be within a maintenance window. This forces the developer to ensure their apps are architected to tolerate such maintenance. Platform security updates keep moving even when product teams would rather freeze. That is the org lean, but not true of every GCP offering. Take Compute Engine: it is a more traditional IaaS offering, which leans DO. Pick the OS, own the guest stack, schedule your own patching (VM Manager helps, but it is still your job). Google still encrypts disks by default. Beyond that, Developer Tolerance and operational control sit with the customer. Security of the guest OS and workload is not forced.\nShielding is how Google can stay SO-minded overall while still selling a DO-leaning offering. Different team, different pair, same company. Because of this customers need to understand the trade-off not for GCP as a whole, but of each offering and choose accordingly. They should pick the offering that matches their pair, not assume every GCP service is SO.\nSoftening Jargon: Eventual Consistency Orgs often soften a missing pillar without naming the loss. The softener sits on the pillar that is not really guaranteed. The other two are the real priorities.\nIn CAP, when availability and partition tolerance matter most, teams say “eventual consistency.” The word “eventual” softens Consistency. That signals AP: Availability and Partition tolerance are the critical pair. Consistency is deferred, not inherent. Apps must work around stale or divergent reads.\nBusinesses use the same pattern. Softening one pillar in language implicitly names the other two as the real pair. “Java shop” for example, indicates that developer choice is secondary. Security and Ops are what the org will actually facilitate. While “Secure by design” indicates that security is thought of as a developer motion, not a stand-alone function. Therefore, Developer and Ops are the focus.\nTrade-offs are rarely stated outright. Listen for which pillar gets the softener. That is usually the one that will yield under pressure.\nSoftener Pillar being softened Real pair “Eventual consistency” Consistency (CAP) Availability + Partition tolerance “Secure by design” / “Automated” Security Consistency Developer Tolerance + Operational Availability (DO) “Java shop” / “approved stack” Developer Tolerance Security Consistency + Operational Availability (SO) Sources Eric Brewer, CAP Twelve Years Later: How the “Rules” Have Changed (IEEE Computer, 2012) Default encryption at rest GKE: Auto-upgrading nodes Shared responsibilities and shared fate on Google Cloud Compute Engine OS patch management (VM Manager) Tyler Treat, Security, Maintainability, Velocity: Choose One (parallel org tradeoff framing) ","lastmodified":"2026-07-17T00:00:00-04:00","tags":null,"title":"DSO Conjecture"},"/blog/20260914-iac-mistake":{"content":"I have been in and around infrastructure automation for a long time. Longer than I care to discuss. And every few years I have noticed a pattern. That is a new tool to do the exact same thing as older tools while handwaving what is actually important.\nThere has to be a better way, right? I am concerned that with all the benefits of IaC we still are no closer to solving the actual problem that leads us to pick up IaC in the first place.\nBackground: SNMP & NCCM When I started in the industry what we had was Telnet (ssh wasn’t widespread yet) and Simple Network Management Protocol (SNMP). SNMP was a universal protocol that was supposed to allow you to configure any network device. It did this by making every single configuration option an individually addressable Object ID (OID) in a tree structure. Everyone was supposed to map to a common set of OIDs, but they allowed each vendor to have a section of the tree to call their own.\nThere were many issues with this level of abstraction as a true management protocol, which was mostly due to the complexity of rules needed in setting the related OID values. Usually, hundreds to tens of thousands of OID values had to be set per device managed. But the OID would often change between versions and every new feature has a new tree of OIDs. It was so low-level and raw that it became almost useless as a management language.\nAs an aside, many current machines (possibly even the machine you’re using to access the internet) have SNMP enabled (albeit read-only). While its use for management isn’t common anymore, it is still very commonly used for monitoring.\nAt the company I was working at we took a page out of Cisco’s and Juniper’s playbook and made our OIDs read-only, and standardizing on a Cisco-style terminal configuration language as the only means of configuring the device. This had the benefit of allowing a single configuration command to be complex - often setting dozens of OIDs at once. It moved items up a level of abstraction making management easier. It also made our boot process substantially easier as a simple matter of replaying a configuration file as if the user was typing it. This gave us much better control over validation while also adding additional virtual “super” commands that did a lot of things all at once in the correct order.\nHowever, even that was not enough because rarely does a single device live on its own. These devices had to work together. This meant what you really needed was something that could configure multiple devices at the same time. Many vendors provided a vendor specific control plane tool for this and that company was no different. I wrote a backplane manager which was a GUI program where you draw the rack of devices and how they were connected. It would suck in their configurations and then validate them operationally against network flow. Green was good, and Red meant a misconfiguration. You could then inspect and fix the configuration in the simulator before pushing it back to the devices.\nUnfortunately, this only worked for a small subset of our devices and only for a specific set of their configurations that were related to our validation rules. Sure we could add additional devices and configuration support over time, but the customer could not.\nThe next company I worked for created a vendor agnostic tool and a Gartner market segment called Network Change and Configuration Management (NCCM). The goal was to control a fleet of network devices regardless of vendor. At that time we standardized on Telnet terminal invocation and later expanded to SSH and storing the text based configuration. Basically, using our tool a network engineer should execute a single command or even a series of commands across a fleet of devices. However, in hindsight this was a misstep because we focused on how and not why. Therefore, all our features were related to making configuration easier to manage, but didn’t do anything to solve the underlying problem.\nDeterminism & IaC Many years after NCCM came the cloud. And with the Cloud came outcome-based APIs. No longer did you have to care about the specific switch port configuration. Instead, you cared about the higher-layer constructs like virtual networks, subnet, and compute. You asked for what you needed, and left it to the provider to figure out the details.\nEven that is in some cases too low-level. In many cases we need a higher-level operational construct like scaling, disaster recovery, and upgrades. This concept of letting the provider figure out the details has since extended into the tooling making IaC the default. There are pure declarative IaC tools like Terraform and Kubernetes which make it very difficult to do non-declarative things. And there are hybrid tools like Ansible which prefer declarative IaC, but do allow for non-declarative scripts to be run for the edge cases.\nThis is a step in the right direction, but not nearly enough for true automation. Not only that, but their architectural choices themselves cause issues that have to be overcome.\nThe Real Issues: Drift, Shadow IaC, Day 2, and Purpose For all the benefits of IaC tooling it has exposed several weaknesses.\nDrift IaC tooling is generally one-shot, not continuous. That means it only runs a reconciliation cycle when instructed to do so. In between two cycles it is easy for the natural changes of the environment to become out-of-sync with the IaC.\nAdditionally, during emergencies, IaC tools are often avoided because they are outside the debugging cycle. In the best case this is state that can be reconciled back into the IaC’s state; though it usually takes a lot of effort sometimes more than the value of the change.\nShadow IaC In IT whenever there is a tool or system used that isn’t officially known by the IT department it is known as Shadow IT. This introduces the scariest kind of risk; unknown risk.\nIaC has a similar issue. That is, during the natural course of maintenance things in the infrastructure change. Many times these are changes to objects and configuration tracked by IaC. In this case we call it drift and we know about it.\nHowever, often these are changes in objects that are not known to IaC. We call this shadow IaC and it is a far bigger problem than drift because it is unknown. And once known it is often difficult to add the references to IaC in a perfectly compatible way.\nDay 2 “Day 2” is operational shorthand for all the on-going maintenance that is required to keep something running. Day 2 issues are what cause Drift and Shadow IaC, but the real question is why. And by and large the reason is that even though IaC is supposed to be declarative (I want an encrypted disk, instead of here are the steps to create an encrypted disk), the reality is often far from it.\nI often give the example of setting encryption on an EBS volume. By default EBS volumes have no encryption unless you explicitly set the encryption flag(s). You have the choice between provider and customer managed keys. However, the issue is that any change to the encryption setting removes the existing disk and replaces it with an empty disk. This is a non-obvious outcome, but obviously not the intent. This is the kind of thing only an operations expert would know.\nIn this example IaC tooling actually gets in the way because to encrypt a disk requires a bunch of manual steps. So effectively, depending on the IaC tooling chosen, you have to disable the tooling, fix the underlying issue manually (encrypt the disk), and verify it manually. Then reverse those changes manually back into new IaC objects (usually this requires forking golden modules), then update the existing state to match reality again, and finally re-enable the IaC tooling. The entire time you spend convincing yourself that this effort is worth it.\nPurpose While IaC is great at declaring objects and configuration it completely lacks purpose. This purpose, if it exists at all, is left to tools that manage the IaC files (often git commit messages) or the tools that drove the tasking (Jira or ServiceNow). It isn’t nothing, but isn’t first class either.\nI cannot express how many times in my career my debugging consisted of trying to glean the purpose of a change. I needed to determine if the change was on-purpose with good reason, on-purpose as a mistake, or just plain wrong. With the intent buried and separate this task is made difficult, often impossible.\nWhat Is Next? Intent-as-a-Service Basically the biggest issues are really:\nLack of Expertise Incomplete Solutions Missing Abstractions However, I think they can all be solved with reframing around intent. As they say in the legal profession “intent is everything”. That is really the thing that is missing. This is not a new concept. Many years ago Google released a white-paper titled Prodspec and Annealing. In that paper they explained the process by which intent (the prodspec) becomes reality (annealing). Many years on and many of those lessons have become the basis of Kubernetes. There is even now a K8s SIG called Crossplane which aims to use K8s objects to control any infrastructure.\nThis is a step in the right direction in that the expertise is bundled into an operator that continually monitors the infrastructure. This solves drift entirely. It also probably solves Shadow IaC as well. The only real thing missing is tracking the intent of changes to the configuration itself and the necessary ad-hoc workflows that have to be applied along with changes to the infrastructure.\nWhat everyone really needs is an orchestrator that sits on top of a system like Crossplane that specifically tracks day-2 concerns via intent. A so-called Intent-as-a-Service system. So for example you’d say, “Encrypt EBS volumes with provider managed keys”. Out from that would flow any changes to the IaC, but also any operational playbooks that are needed like backing up the volume so data can be copied. The more that is done at the infrastructure level the less has to be via operational playbooks, but there will likely always be a need to have those so they need to be first class.\nWhat you get at the end should be a changelog of all the requested changes over the life of the system. And if done correctly the intent-based changelog becomes the verification procedure, so the system can self monitor that the intent was fulfilled.\nThe expertise can be concentrated into the annealer / operator that does the monitoring and reconciliation of infrastructure. Its sole job is to drive the removal of drift between the intent and reality. The orchestrator on top would then coordinate across annealers and providers to make sure the final state is reached and maintained. Loops of loops.\nThat is the dream. And with AI that dream might be closer than ever before.","lastmodified":"2026-09-14T00:00:00-04:00","tags":null,"title":"Is IaC a Mistake"},"/contentindex/index.json":{"content":"","lastmodified":"0001-01-01T00:00:00Z","tags":null,"title":"Content Index"},"/garden/12-factor-app":{"content":"12 Factor App. The 12-factor methodology is designed for building SaaS services that are declarative, clean, maximally portable, and minimally divergent.\nBlurb A methodology for building modern, scalable, maintainable software-as-a-service apps.\nSummary Garden stance: We adopt 12 Factor App for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails The twelve factors are a shared vocabulary for service design. They do not prescribe a single stack. They do constrain how code, config, and ops interleave so teams can swap platforms without rewriting apps.\nConfig (III): A litmus test from the spec is whether the codebase could go open source without leaking credentials. Use environment variables per deploy, not grouped “environment” files checked into the repo.\nProcesses (VI) and concurrency (VIII): Persist data in backing services (Postgres, Redis, object storage), not local disk on the app instance. Scale by adding processes, not by making one process bigger.\nBuild, release, run (V): CI produces an immutable release artifact; config binds at deploy time. Avoid editing running containers by hand.\nDev/prod parity (X): Same backing service types in every stage; time gaps between deploys should be hours, not months.\nReferences\nThe Twelve-Factor App Twelve-Factor App methodology (Wikipedia) ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"12 Factor App"},"/garden/1password":{"content":"1Password is a password, secrets, and access-management platform for people, machines, and AI agents. We adopt it as the default personal vault, and as the password manager to recommend when a company has none yet.\nBlurb One secure platform for humans, AI agents, and machines. Unified Access is built to discover, secure, and audit.\nSummary What it is: End-to-end encrypted vaults plus enterprise products: password manager, privileged access, credential broker for agents/workloads, and SaaS Manager (ex-Trelica). CLI (op inject, op run) covers many inject-into-process needs without a second secrets tool.\nWhen to use:\nSituation Notes Personal / family vault Default choice; strong UX, passkeys, travel modes Company with no password manager Recommend 1Password; then stay in that ecosystem Business shared vaults Admin policies, SSO hooks, team vaults Shadow IT / SaaS sprawl SaaS Manager for discovery, spend, and access workflows Agent / machine credentials Credential Broker and privileged access; also op for local/CI When to skip:\nOrg already standardized on another vault (Bitwarden, Keeper, and so on). Stay in their ecosystem. Hard requirement for self-hosted secrets with no vendor trust boundary Pure Git-encrypted files with no vault product: assess SOPS (Secret OPerationS) only when there is no password manager Trade-offs: Excellent polish and CLI for day-to-day secrets. SaaS dependency and expanding XAM surface area. Once chosen, prefer op over stacking SOPS (Secret OPerationS) for the same job.\nDetails Product area Notes Personal / Business Password Manager Default vault recommendation CLI op inject for inline refs; op run for subprocess env Privileged Access Just-in-time / just-enough access patterns Credential Broker Runtime credentials for agents and workloads SaaS Manager App discovery, governance, spend (Trelica tech) References\n1password.com 1Password CLI Company / leadership Trelica acquisition (Jan 2025) ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"1Password"},"/garden/3-point-estimate":{"content":"3 Point Estimate is a technique we assess in the garden.\nSummary When to use:\nTeams stuck in Scrum story-point debates or long Planning Poker sessions without better forecasts. Stakeholders who need a range (68%, 90%, 95%) rather than one total. Engineering projects where limited information still requires a defensible rollup. When to skip:\nThe team will not maintain three numbers per task. Precision would be theater without tracking actuals against forecast. Approach Tradeoff Planning Poker Fast consensus on one m value; weak on uncertainty Story points Common in Scrum; often debated without probabilistic rollup Three-point More fields per task; project-level confidence from task SD rollup If your team struggles with estimating, three-point ranges can reduce over-analysis compared to arguing a single effort number. Many teams can estimate dozens of tasks in the time it took to estimate a few with Planning Poker.\nDetails Three Points Per Task For each task, track three values:\na - The best case. This is probably what an expert would say. Or someone outside of engineering would think it should take. m - The likely case. This is what you would arrive at with Planning Poker or another consensus technique. b - The worst case. This is the “it could possibly take more than…” number. The Math For each estimated task, calculate the weighted average and standard deviation:\n$E = \\frac{a + 4m + b}6$ $SD = \\frac{b-a}6$ Roll up to the project:\n$E(project) = \\sum E(task)$ $SD(project) = \\sqrt{\\sum SD(task)^2}$ Confidence intervals:\n68% = $E(project) \\pm SD(project)$ 90% = $E(project) \\pm 1.645 \\times SD(project)$ 95% = $E(project) \\pm 2 \\times SD(project)$ 99.7% = $E(project) \\pm 3 \\times SD(project)$ 95% is usually the target.\nWith a spreadsheet, rollup and intervals are straightforward.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"3 Point Estimate"},"/garden/a-model-of-communication":{"content":"A Model of Communication is a technique we use to limit standing privilege and grant audited, time-bound access instead. We assess it under Technique in the garden.\nSummary What it is: A teaching model from Bill Warters’ ODR learning module (Wayne State). It adapts Claude Shannon’s information-theory diagram to human CMC. The sender encodes intent into a message, transmits it through a medium, and the receiver decodes it while noise may distort the signal. A feedback path closes the loop.\nCore components:\nElement Role Information source Person or system with intent to convey Encoder / message Meaning packaged for the chosen medium Transmitter / channel Tool that carries the signal (email, chat, video) Noise Anything that degrades fidelity (latency, ambiguity, missing cues) Decoder / destination Receiver interprets meaning and acts Feedback Return path so the sender can adjust Medium dimensions that matter for engineering teams:\nDimension Lean / low bandwidth Rich / high bandwidth Timing Async (email, tickets, docs) Sync (calls, pair sessions, chat) Social cues Text-only, easy to misread Video, tone, rapid clarification Persistence Durable record, slow loop Ephemeral or live, fast loop Noise risk Ambiguity, tone gaps, delayed feedback Scheduling cost, interruption, recording gaps When to use the model:\nChoosing default channels for a team (standups vs async status, incident comms vs design docs) Explaining why a “quick Slack” escalates or why email feels stuck Designing feedback loops (reviews, RFCs, office hours) so intent survives the medium When to skip:\nYou need a quantitative SLA or tooling matrix only (pair with runbooks and channel policies) The audience already has a mandated stack (model informs how to use it, not whether to buy) Relation to garden: Sits in Specification alongside reference architectures. Useful when setting collaboration norms, not when picking a single vendor.\nDetails The diagram above is the human-CMC variant: it adds feedback and highlights that sender and receiver may share different context. Noise is not only technical. It includes cultural mismatch, partial attention, and medium limits (no tone in plain text, no thread history in a hallway conversation).\nShannon-Weaver Lineage Van Veenen and Warters trace the model to Shannon’s work at Bell Labs (1940s). The simplified chain is source → encode → transmit → (noise) → receive → decode → destination. For ODR, the transmitter is often a computer; the same frame applies to engineering collaboration tools.\nMatching Medium to Message Poor fit shows up as rework, escalation, or “we already decided this” loops. Examples:\nMessage type Poor medium Better fit Nuanced disagreement Long async thread without summary Sync conversation plus written decision Firm decision / policy Verbal-only standup Durable doc or ticket with owners Quick unblock Email chain Sync chat or call Audit trail needed Ephemeral chat Ticket or doc with version history ODR Module Context The source module is part of a broader ODR orientation (limitations of CMC, positive effects, task-to-form mapping). The module index links adjacent pages on not replicating face-to-face processes online. Licensed CC BY-NC-ND 3.0 for educational use.\nReferences A Model of Communication (primary) Communication Theory and ODR - an Orientation (module home) ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"A Model of Communication"},"/garden/access-on-demand":{"content":"Access on Demand replaces standing access with audited, time-bound elevation to sensitive systems. We trial it under Technique when SSO can support the workflow.\nSummary When to use: Production or sensitive systems where compliance requires logged reason and duration for privilege elevation, and your IdP supports SAML or OIDC group workflows.\nImplementation pattern: Grant standing groups plus aod_<group> variants. Provide a request UI that logs reason, issues a short-lived session token with the elevated group, and expires access on schedule. Downstream systems authorize on the non-aod group names.","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Access on Demand"},"/garden/acyclic-dependencies-principle":{"content":"Acyclic Dependencies Principle is a technique we adopt in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Component Coupling Context ADP is one of three classic component coupling principles (Robert C. Martin). Siblings are Stable Dependencies Principle (SDP) and Stable Abstractions Principle (SAP).\nPrinciple Gist ADP No cycles in the component graph SDP Depend toward more stable components (Stable Dependencies Principle) SAP Stable components stay abstract (Stable Abstractions Principle) Breaking Cycles (Practical) Technique When it fits Extract shared interface to a third package Two modules need each other’s types Dependency Inversion Principle (preferred) High-level module should not depend on low-level detail; extract shared interface Event or message boundary Runtime decoupling when compile-time inversion is awkward Merge components Cycle means the split was wrong; reunify Practical Signs Signal Likely fix Build order only works with hacks or --force Map imports; break the smallest back-edge common imports from features and vice versa Invert dependency or extract shared kernel Microservices call each other synchronously in a ring Introduce events or consolidate ownership Refactor blocked because “everything depends on everything” ADP review before more features Common Failure Modes Ignoring test-only or devDependency cycles that mirror production cycles Breaking a cycle by moving code to a junk-drawer shared package (creates a god module) Layer rules on paper while code imports whatever is convenient Splitting services without removing synchronous call loops Related Garden Items Stable Dependencies Principle and Stable Abstractions Principle for direction of dependencies after the graph is acyclic Dependency Inversion Principle for introducing abstractions at cycle breaks Reuse-Release Equivalence Principle for versioned components that ADP keeps independently releasable ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Acyclic Dependencies Principle"},"/garden/agent-client-protocol":{"content":"The agent client protocol allows separate systems to use an agent as a service in its own right. We adopt it under Platform in the garden as the protocol for registering agent harnesses.\nSummary When to use: As the registration fabric for agent harnesses. ACP gives a neutral, standard handshake for any agent tool, so a control plane stays harness-agnostic: register anything, govern everything.\nWhen to skip: When a simpler alternative already covers the need and there is no multi-harness registration requirement.\nKey trade-offs:\nHarness-agnostic registration - governs any agent that speaks ACP Suited to governed, audited execution models where agents need to be registered and controlled before acting Pairs with Tensor9 any-prem deployment for customer-environment control ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-08-06T00:00:00-04:00","tags":null,"title":"Agent Client Protocol"},"/garden/agent-control":{"content":"Agent Control is an open-source control plane for AI agents. It enforces centralized policies at runtime, block, deny, steer, warn on each LLM output and tool call. We assess it for governance and guardrails across OpenAI, Move, Bedrock, and a growing set of agent frameworks.\nBlurb Control all AI agent behaviors at runtime with centralized policies. Write once and deploy everywhere.\nSummary What it is: A policy-driven step-level guardrail server for agent fleets. A @control decorator wraps LLM calls and tool execution, checking outputs against policies cached on the agent client, then responding with allow, deny, steer, or warn.\nWhen to use: You need runtime governance, safety, and compliance across many agents. You want “write once, deploy everywhere” policy enforcement without redeploying agents.\nWhen to skip: Single-agent apps with simple guardrails, where hard-coded checks suffice. You already run a gateway-side governance product that meets step-level needs.\nKey features: Centralized Policy Enforcement, Control Store (mix guardrails from AWS Bedrock, Cisco AI Defense, NeMo, Galileo Luna), Audit Logs, Live policy updates without downtime, agent framework integrations (LangChain/LangGraph, Strands, Google ADK, OpenAI Agents SDK, AutoGen, CrewAI). Apache 2.0 licensed.\nDetails Maintained by: Galileo (currently Galileo Technologies).\nGuardrail ecosystem: Amazon Bedrock Guardrails, NVIDIA NeMo Guardrails, Galileo Luna-2, Azure AI Content Safety, Cisco AI Defense.\nDocs: https://docs.agentcontrol.dev\nSource: https://github.com/agentcontrol/agent-control","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-08-14T00:00:00-04:00","tags":null,"title":"Agent Control"},"/garden/agent-skills-framework":{"content":"Agent Skills Framework packages repeatable agent know-how as a folder with a required SKILL.md (YAML frontmatter plus markdown instructions). We adopt it as the only realistic way to make agent behavior portable across models and providers.\nSummary When Action Building portable ops for coding agents Use the layout: one folder per skill, SKILL.md with strong name and description One-off prompts in a single tool Skip; inline rules or tool-native config may be enough Importing community skills Vet each repo; use Agent Skills - Sources; run in sandbox first Portability: Tool-native rules, system prompts, and vendor config do not travel. A SKILL.md folder ports across Claude Code, Cursor, Codex, Gemini, and other runtimes with path changes at most. That is the practical baseline for shared agent behavior in a multi-model estate.\nLayout: skills/<skill-name>/SKILL.md plus optional scripts/, references/, assets/. The description field is the primary trigger signal. Keep the body under ~500 lines. Push detail into reference files.\nIn this vault: agent-skills/skills/ mirrors the pattern. gbrain two-layer pages and identity files in AGENTS.md / CLAUDE.md sit alongside skills.\nDetails Required Frontmatter 1 2 3 4 --- name: my-skill # lowercase, hyphens; matches folder name description: \"What it does and when to use it (trigger keywords live here).\" --- Skill Types (Informal) Type Purpose Example Capability Teach a concrete tool or API apple-reminders, proofread Behavioral Layer policy on other skills reminders-gtd, proofread-blog Domain Your outcome-specific workflow morning-briefing, company-research Runtimes in the Garden Claude Code: .claude/skills/ or shared agent-skills/ Cursor / cursor-agent: .cursor/skills/ Gemini CLI, Codex, Cline, OpenCode: tool-specific paths; core SKILL.md often ports with path changes only See Agent Skills - Sources for official docs, awesome lists, and marketplaces.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"Agent Skills Framework"},"/garden/agent-skills-sources":{"content":"A living research document tracking good sources of agent skills to draw from. We adopt it under Technique in the garden.\nSummary Key points:\nMaintenance: Review quarterly. Update “last checked” dates when vetting a source. Remove dead or low-quality links.\nDetails Official Sources Source URL Notes Anthropic Skills Docs https://code.claude.com/docs/en/skills Canonical SKILL.md format spec anthropics/skills (GitHub) https://github.com/anthropics/skills Anthropic’s own first-party skills; reference implementations Claude Code issue tracker https://github.com/anthropics/claude-code/issues Community bug reports often reveal undocumented skill patterns Curated “Awesome” Lists Aggregator repos and sites, good for broad discovery.\nSource Notes Last Checked hesreallyhim/awesome-claude-code Skills, hooks, slash-commands, orchestrators, plugins. Most comprehensive single list. 2026-05-06 travisvn/awesome-claude-skills Focused on SKILL.md-format skills; ~8.7k stars 2026-05-06 ComposioHQ/awesome-claude-skills 1000+ production-ready skills across Claude.ai, Claude Code, and coding agents 2026-05-06 rohitg00/awesome-claude-code-toolkit 135 agents, 35 skills, 42 commands, 176+ plugins, 20 hooks, 15 rules 2026-05-06 Individual Collections Maintained by practitioners, often higher signal-to-noise than aggregators.\nSource URL Notes Last Checked wshobson/commands https://github.com/wshobson/commands Production-ready slash commands; good engineering workflow patterns 2026-05-06 glebis/claude-skills https://github.com/glebis/claude-skills Personal collection; broad use-cases 2026-05-06 alirezarezvani/claude-skills https://github.com/alirezarezvani/claude-skills 232+ skills across Claude Code, Codex, Gemini CLI, Cursor 2026-05-06 garrytan/gstack https://github.com/garrytan/gstack gbrain author’s exact Claude Code setup; 23 opinionated tools spanning CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA roles 2026-05-06 mattpocock/skills https://github.com/mattpocock/skills Matt Pocock collection; grill-me stress-tests plans via one-question interviews. 2026-06-04 maxmzkr/dotfiles https://github.com/maxmzkr/dotfiles/tree/main/claude/.claude/skills Personal dotfiles repo with 12 Claude Code skills for PR review and commit hygiene: review-comments, deep-reviewing-hotspots, editing-commits-interactively, gh-stack, session-retro. Unstarred, but actively pushed through Oct 2026. 2026-10-19 Marketplaces & Directories Source URL Notes SkillsMP https://skillsmp.com/ Marketplace for agent skills across Claude, Codex, ChatGPT Toolradar blog https://toolradar.com/blog/best-claude-code-skills-2026 Curated top-20 list; good for quick survey Firecrawl blog https://www.firecrawl.dev/blog/best-claude-code-skills Editorial picks; refresh periodically ScriptByAI resource list https://www.scriptbyai.com/claude-code-resource-list/ Broad 2026 resource compilation MCP Servers (Complements Skills) MCP servers extend what tools Claude can call; skills extend how Claude reasons. Both compound.\nSource URL Notes Last Checked modelcontextprotocol/servers https://github.com/modelcontextprotocol/servers Official reference implementations 2026-05-06 wong2/awesome-mcp-servers https://github.com/wong2/awesome-mcp-servers Most-linked community list 2026-05-06 mcp-awesome.com https://mcp-awesome.com/ 1200+ quality-verified servers, searchable directory 2026-05-06 abordage/awesome-mcp https://github.com/abordage/awesome-mcp Auto-updated daily; good for freshness 2026-05-06 Cross-Ecosystem Inspiration Not SKILL.md format, but good sources for ideas, patterns that adapt directly.\nSource Notes Cursor rules repos (awesome-cursorrules) .cursorrules files are functionally similar to SKILL.md; large existing corpus GitHub Copilot custom instructions Per-repo instructions that shape behavior , same pattern, different runtime ChatGPT custom instructions / GPT Actions Prompt patterns for persona, workflow, and tool-use OpenAI Codex CLI plugins SKILL.md format is cross-compatible; Codex skills often translate directly Blogs & Articles Source URL Notes DEV Community - Claude Code Skills Practical Guide https://dev.to/muhammad_moeed/claude-code-skills-a-practical-guide-for-2026-3f6p Hands-on walkthrough Medium - 10 Must-Have Skills https://medium.com/@unicodeveloper/10-must-have-skills-for-claude-and-any-coding-agent-in-2026-b5451b013051 Quick survey of high-value skills Evaluation Criteria When vetting a new source:\nFormat compliance: Is it SKILL.md format, or does it require adaptation? Cross-agent portability: Works only in Claude Code, or also Gemini CLI / Cursor / Hermes? Maintenance signal: Last commit date, open issues, star trajectory. Domain fit: Is it relevant to consulting work or personal use (DevSecOps, PKM, automation)? Quality bar: Are skills self-contained with a clear trigger description in frontmatter? See Also Agent Skills Framework, framework overview gbrain, two-layer page convention used by this document hermes-agent, local agent runtime Claude Code Gemini CLI ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-10-19T00:00:00-04:00","tags":null,"title":"Agent Skills - Sources"},"/garden/agile-software-development":{"content":"In order to ensure credit is given we won’t restate the manifesto here and instead redirect you to the Manifesto for Agile Software Development. The software industry as we know it owes much to this manifesto.\nThe single most important thing is that we are people trying to deliver value and get paid. Keep practices that make this easier and possible. Dispose of those that get in the way and learn from your mistakes. This should be adopted by all teams as the foundation for their processes.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Agile Software Development"},"/garden/ai-agent":{"content":"Under Tool, AI Agent covers runnable agent tools: services that run an agent loop (observe context → plan → call tools → persist state) rather than one-shot chat completions. You install or self-host them and build workflows on top, often via Agent Skills Framework and protocols like Agent Client Protocol.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"AI Agent"},"/garden/ai-techniques":{"content":"Under Technique, AI Techniques covers how you apply language models and agents in software and knowledge work: patterns, frameworks, and conventions. This is not the ML training stack or the agent products themselves.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"AI Techniques"},"/garden/anki":{"content":"Anki is an open-source spaced repetition flashcard program for long-term memorization of facts and concepts. We assess it as a dedicated SRS companion to our knowledge tools.\nBlurb Anki is a program which makes remembering things easy.\nSummary When to use: Choose Anki for serious, high-volume spaced repetition study where retention matters more than integrated note-taking.\nWhen to skip: Skip it when you want notes and SRS combined in one place; RemNote integrates both.\nKey trade-offs:\nPros Cons Mature SM-2 scheduling Separate tool from your notes Free, open source, sync included Dated UI Huge shared deck ecosystem Card authoring is manual Extensible via add-ons Related: PKM RemNote\nDetails Topic Notes Scheduling SM-2 algorithm with configurable intervals Platforms Windows, macOS, Linux, iOS ($), Android (AnkiDroid) Sync Free AnkiWeb sync across devices Formats Rich text, images, audio, LaTeX, Cloze deletions Ecosystem Add-ons plus large community shared-deck library License Open source (AGPL) ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-08-25T00:00:00-04:00","tags":null,"title":"Anki"},"/garden/ansible":{"content":"Ansible. Is agentless second touch provisioning.\nBlurb Ansible Collaborative\nSummary When to use: bootstrap or repair VMs, brownfield servers, lab machines, or one-time migrations where you cannot yet replace pets with cattle.\nWhen to avoid: day-two loop for production fleets. Prefer golden AMIs/images, Terraform / cloud APIs for first touch, Kubernetes / Dev Container for runtime shape, and git-reconciled desired state.\nCompared to Salt Stack (hold) and legacy Capistrano (hold), Ansible wins on simplicity: no agent daemon, inventory + playbooks in git, dry-run via ansible-playbook --check. Controller needs SSH access (keys, ideally passwordless sudo on targets).\nDevSecOps framing: provisioners are a smell. Use Ansible to reach a reproducible baseline, then stop mutating and move config into code the platform reconciles.\nDetails Core concepts\nTerm Meaning Inventory Hosts and groups (/etc/ansible/hosts, file, or ANSIBLE_INVENTORY) Playbook YAML describing desired state for a set of hosts Task One module invocation with arguments (in a playbook) Module Unit of work; must exit 0 and emit JSON on stdout Fact Host metadata from setup/gathering; variables for later tasks Ad hoc ansible CLI one-liners; fine for debugging, not for production shape Typical flow\nInstall controller and collections (once) SSH access and sudo policy on targets (once per host) Define inventory → playbook → ansible-playbook --check → fix → apply Retire ongoing playbook churn once images or cluster config own the shape Ecosystem: Ansible Galaxy roles; Red Hat Ansible Automation Platform / AWX for UI, RBAC, and job scheduling when a team outgrows CLI-only workflows.\nReferences\nQuick start video Ansible documentation Ansible book ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Ansible"},"/garden/apache-airflow":{"content":"Apache Airflow. Is a Python-centric workflow orchestrator for DAGs of tasks (operators, sensors, schedules) with a central metadata database, scheduler, and workers.\nBlurb Platform created by the community to programmatically author, schedule and monitor workflows.\nSummary Garden stance: We assess Apache Airflow for our estate.\nKey points:\nTopic Notes Model DAGs in Python (@dag, operators); UI for run history Executors Local, Celery, Kubernetes; pick based on isolation and scale Secrets Connections/variables in metadata DB; integrate Vault/cloud secret managers Testing Unit-test DAG structure; use staging env for integration Security Lock down web UI, RBAC, and who can trigger DAGs References\nApache Airflow documentation Details Topic Notes Model DAGs in Python (@dag, operators); UI for run history Executors Local, Celery, Kubernetes; pick based on isolation and scale Secrets Connections/variables in metadata DB; integrate Vault/cloud secret managers Testing Unit-test DAG structure; use staging env for integration Security Lock down web UI, RBAC, and who can trigger DAGs References\nApache Airflow documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Apache Airflow"},"/garden/apache-superset":{"content":"Apache Superset. Is a modern, enterprise-ready business intelligence web application from the Apache Software Foundation.\nSummary What it is: Python/Flask app with React frontend, Celery workers, and configurable cache. Ships with 40+ chart types, custom viz plugins, REST API, and integration with warehouses, lakes, and query engines (Presto, Trino, Snowflake, BigQuery, Postgres, and more).\nWhen to use: Central BI platform with curated datasets and metrics; advanced SQL analysts; geospatial and plugin-heavy dashboards; multi-tenant security roles in regulated environments.\nWhen to skip: Small teams that want the fastest path to shareable SQL dashboards (Redash or Metabase). Primary workload is time-series monitoring and alerting (Grafana). Ops overhead of Redis, metadata DB, and workers is not justified for a handful of charts.\nKey features: Explore and SQL Lab, semantic layer for dimensions and metrics, async queries, caching layer, OAuth and RBAC, cloud-native Helm charts.\nDetails Topic Notes Deploy Docker Compose, Kubernetes/Helm, or managed offerings; requires metadata database, cache, and message broker for production scale Data model Datasets point at physical tables or SQL; metrics and dimensions defined in UI or YAML Auth FAB security manager, LDAP/OAuth, row-level security filters on datasets Practices: Version dataset definitions where possible; cap async query timeouts; separate read-only warehouse roles; test upgrades in staging because the release cadence is active.\nReferences\nApache Superset documentation GitHub repository ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Apache Superset"},"/garden/api":{"content":"Under Technique, API covers how systems expose and consume programmatic interfaces: contracts for moving data and invoking behavior across process and network boundaries.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"API"},"/garden/architecture-decision-record-adr":{"content":"Architecture Decision Record (ADR)\nAn Architecture Decision Record captures one significant architectural decision, its context, and its consequences. We adopt ADRs because AI-assisted delivery increases the need to preserve why a system took its current shape.\nSummary ADRs preserve decision rationale near the system they describe. Each record explains the forces behind a decision, the choice made, and the expected consequences.\nUse when: a decision changes system structure, constraints, technology choices, or long-term operating costs. Pair with SDD: use ADRs alongside Spec-Driven Development (SDD) to preserve architectural rationale while the specification remains current. Keep them close: store ADRs in the project repository so changes can follow the normal review process. Preserve history: mark an obsolete ADR as deprecated or superseded. Create a new record instead of rewriting the original decision. Skip when: the choice is trivial, easily reversed, or already explained by an established standard. Related garden notes: Software Architecture, Spec-Driven Development (SDD), Specification, and Design Pattern.\nDetails Michael Nygard’s original format uses five parts:\nPart Purpose Title Name the decision, not merely the problem Status Track proposed, accepted, deprecated, or superseded decisions Context Describe the facts and forces that require a decision Decision State the chosen response in active voice Consequences Record positive, negative, and neutral outcomes One ADR should cover one significant decision. The context should remain value-neutral, while the decision should state what the team will do.\nRecord every meaningful consequence, not only the benefits. Those consequences often become context for later decisions.\nA replacement decision should reference the ADR it supersedes. The old ADR should point forward to its replacement, preserving a navigable decision history.\nADRs and Spec-Driven Development A specification should show the current intent. ADRs should preserve why significant architectural choices were made as that intent evolves.\nAI agents can maintain both artifacts, but the team remains responsible for approving the decision. An agent should update links and status without erasing the original context or consequences.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"Architecture Decision Record (ADR)"},"/garden/argo-workflows":{"content":"Argo Workflows. Is a Kubernetes-native workflow engine: DAGs and steps run as pods, with retries, artifacts, parameters, and scheduling.\nSummary Garden stance: We trial Argo Workflows for our estate.\nKey points:\nTopic Notes Model Workflow CRDs; steps as containers; templates for reuse Artifacts S3/GCS/Artifactory-style artifact repository recommended at scale UI Argo UI for run history, logs, resubmit Events Often paired with Argo Events for event-driven triggers (separate project) Ops Controller + workflow RBAC; watch etcd load and archived workflows Ecosystem: Same Argo Proj family as ArgoCD but independent install; do not confuse deploy (CD) with orchestration (workflows).\nDetails Topic Notes Model Workflow CRDs; steps as containers; templates for reuse Artifacts S3/GCS/Artifactory-style artifact repository recommended at scale UI Argo UI for run history, logs, resubmit Events Often paired with Argo Events for event-driven triggers (separate project) Ops Controller + workflow RBAC; watch etcd load and archived workflows Ecosystem: Same Argo Proj family as ArgoCD but independent install; do not confuse deploy (CD) with orchestration (workflows).","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Argo Workflows"},"/garden/argocd":{"content":"ArgoCD. Is a declarative GitOps controller for Kubernetes: it watches Git (or Helm chart repos), compares desired state to the live cluster, and reconciles drift.\nSummary Garden stance: We adopt ArgoCD for our estate.\nKey points:\nTopic Notes Sync Manual, automatic, or selective; prune and self-heal options Health Built-in resource health; custom health via Lua Multi-cluster Register clusters; one Argo CD instance can manage many Secrets Never commit plaintext. Use sealed secrets, external secrets operators, or SSM/Vault integrations RBAC Project-scoped apps; integrate SSO (OIDC) for the UI Alternatives: Flux CD is the other common GitOps engine (similar model, different UX). Prefer one per estate; mixing controllers on the same apps causes pain.\nReferences\nDocumentation CNCF webinar , Argo at enterprise scale Details Topic Notes Sync Manual, automatic, or selective; prune and self-heal options Health Built-in resource health; custom health via Lua Multi-cluster Register clusters; one Argo CD instance can manage many Secrets Never commit plaintext. Use sealed secrets, external secrets operators, or SSM/Vault integrations RBAC Project-scoped apps; integrate SSO (OIDC) for the UI Alternatives: Flux CD is the other common GitOps engine (similar model, different UX). Prefer one per estate; mixing controllers on the same apps causes pain.\nReferences\nDocumentation CNCF webinar , Argo at enterprise scale ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"ArgoCD"},"/garden/arrow":{"content":"Apache Arrow is a language-independent columnar memory format plus libraries for fast in-memory analytics and zero-copy interchange. We trial it as the in-memory companion to Parquet on disk.\nBlurb The universal columnar format and multi-language toolbox for fast data interchange and in-memory analytics\nSummary What it is: Columnar layout for flat and nested data, optimized for CPUs/GPUs. Supports zero-copy reads without serialization tax. Libraries exist across languages; many engines use Arrow for IPC and compute kernels.\nWhen to use:\nSituation Notes In-memory analytics Share batches across processes without copy Polyglot pipelines Python, Rust, Java, Go exchange the same buffers Engine plumbing DuckDB, Spark, and others speak Arrow When to skip:\nDurable lake storage (Parquet files) Simple scripts over small CSV dumps No multi-language or zero-copy requirement Trade-offs: Excellent interchange and speed; another format layer to learn. On-disk default remains Parquet for most lakes.\nDetails Format vs Libraries Piece Role Arrow format Spec for columnar memory layout Arrow libraries Language bindings and compute building blocks Ecosystem Used inside analytic engines and dataframe stacks Related Garden Items Parquet - common on-disk columnar format DuckDB - reads/writes Arrow-friendly workflows References arrow.apache.org ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"Arrow"},"/garden/artificial-intelligence-machine-learning":{"content":"Under Technique, Artificial Intelligence & Machine Learning covers methods and practices for building systems that learn from data or mimic intelligent behavior. This is not specific agent products, model hosts, or IDEs.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Artificial Intelligence & Machine Learning"},"/garden/asciiflow":{"content":"AsciiFlow. Is a browser-based editor for drawing simple boxes-and-arrows diagrams as plain ASCII.\nBlurb Infinite ASCII diagrams, save to Google Drive, resize, freeform draw, and export straight to text/html.\nSummary When it helps: quick architecture napkin sketches, Slack/PR comments, or README boxes where a PNG feels heavy and you already live in monospace.\nWhy hold: drawings are not structured source; resizing, diffs, and refactors are painful; output must render in a monospace font or alignment breaks; no real collaboration or export story compared to Diagramming tools you version-control.\nGraduate to: Mermaid when the diagram should live in Markdown/docs and evolve with the repo; Draw.io when you need layers, icons, or shareable .drawio files.\nDetails Topic Notes Output Copy-paste ASCII; treat as disposable unless you snapshot it Rendering Test in target font (GitHub, terminal, email) before publishing Maintenance Manual edits only, no codegen from code or IaC ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"AsciiFlow"},"/garden/asdf":{"content":"asdf is a tool we assess in the garden.\nBlurb Manage multiple runtime versions with a single CLI tool\nSummary What it is: Core plus community plugins (Node, Ruby, Python, Terraform, etc.) with shim dispatch.\nWhen to use: Teams already committed to asdf plugins and .tool-versions in repos.\nWhen to skip: Greenfield laptops where mise performance and UX win evals.\nKey features: .tool-versions, plugin add/update, legacy breadth of plugins.\nDetails Topic Notes Practice Commit .tool-versions; document required plugins in README CI Mirror versions in GitHub Actions setup actions References\nasdf documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"asdf"},"/garden/atom":{"content":"Atom was GitHub’s hackable, Electron-based text editor. We hold it because the project is archived; use Visual Studio Code or Cursor for new work.\nBlurb The hackable text editor.\nSummary Do not start new work in Atom. Keep it only for historical context, configuration recovery, or migrating an old workflow to Visual Studio Code or Cursor.\nAtom helped popularize extensible Electron editors, but its archived status ends the case for active adoption. Existing packages and configuration may still explain later editor preferences.\nDetails Source: https://github.com/atom/atom Status: Archived and no longer maintained Successors: Visual Studio Code for the broad extension ecosystem; Cursor for the current agent-first workflow Fit: Tool / IDE as a historical editor platform Lineage: Followed Emacs in the estate’s editor history and preceded Visual Studio Code ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"Atom"},"/garden/auth0":{"content":"Auth0. Is a managed identity platform (now part of Okta) for embedding sign-up, login, and API access in applications, especially B2B SaaS products.\nBlurb Secure users, AI agents, and more with Auth0, an easy-to-implement, scalable, and adaptable authentication and authorization platform.\nSummary Positioning: developer-first IdP below enterprise workforce suites (Okta workforce, Ping, etc.) but overlapping Okta’s own portfolio since the acquisition; clarify sales and contract path if you already standardize on Okta.\nWhen to assess: greenfield SaaS needing orgs/tenants, social and enterprise connections (SAML/OIDC), machine-to-machine APIs, and customizable login UX without building auth from scratch.\nWhen to look elsewhere: single-tenant apps with simple needs (framework auth or cloud IdP may suffice). Consider strict data residency or air-gap (self-hosted Keycloak-class options). Compare FrontEgg and similar platforms for deep B2B2B product-led onboarding layers.\nOps & security: treat Auth0 as critical infrastructure. Enable MFA for admins and lock down Management API tokens. Use DevSecOps review on Rules/Actions code. Pair workforce access patterns with Access on Demand where production elevation matters. Boundary (Hashicorp) and other tools can consume OIDC from Auth0 for human access to infra.\nDetails Topic Notes Protocols OIDC, OAuth 2.0, SAML for enterprise connections B2B Organizations, roles, invitation flows; map to your RBAC model in the app Pricing MAU and feature tiers bite at scale; model cost before commit Portability Standards help, but Rules/Actions and hosted UX create migration work Compliance Verify region, logging, and audit needs for your sector Garden stance: assess on every new product; prove you need a dedicated embedded IdP vs. cloud-native identity (e.g. Cognito, Entra, Google) or building on a framework.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Auth0"},"/garden/aws":{"content":"AWS. Was the first hyperscale Cloud and still has the broadest catalog.\nBlurb Amazon Web Services offers reliable, scalable, and inexpensive cloud computing services. Free to join, pay only for what you use.\nSummary Why hold: IAM/console complexity, historical foot-guns (public S3, over-broad roles), and services marketed as fully managed that still leave patching, scaling, and security on your team. Total cost often surprises once egress, support, and “almost managed” add-ons stack up.\nWhen AWS anyway: existing estate, partner/marketplace requirements, a service with no peer (rare and shrinking), or regulated footprints already certified on AWS. In those cases, contain blast radius, Terraform, guardrails, DevSecOps gates, and avoid pet clusters on AWS EKS (also hold; prefer Google GKE for greenfield K8s).\nDetails Topic Notes Strengths Mature marketplace, global regions, hiring pool familiarity Weaknesses Default-deny is opt-in discipline; service matrix overwhelming K8s See AWS EKS; use only when tied to AWS Secrets Secrets Manager is fine when already on AWS; still design rotation and IAM boundaries Exit Data egress and proprietary APIs are the real lock-in; design portable interfaces ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"AWS"},"/garden/aws-config":{"content":"AWS Config. Is AWS’s managed service for resource inventory, configuration history, and continuous compliance evaluation.\nBlurb AWS Config is a config tool that helps you assess, audit, and evaluate the configurations and relationships of your resources.\nSummary Garden stance: We assess AWS Config for our estate.\nOverview: We assess it under Tool for estates that already run AWS.\nDetail 1: It fits native rules, conformance packs, and multi-account aggregators without Cloud Custodian.\nDetail 2: Prefer Cloud Custodian or Policy as Code when you need one policy language across clouds.\nDetails Topic Notes Rules Managed rules, custom rules, conformance packs (bundled rules + remediation) Aggregation Central compliance view across accounts and Regions Remediation Manual or automatic; SSM documents or custom Lambda Notifications SNS on non-compliance and configuration changes Practices: Start with detective rules (notify, dashboard) before auto-remediate. Scope recording to resource types you need. Use aggregators so security teams see compliance without console access to every account.\nReferences\nWhat is AWS Config? AWS Config product page ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"AWS Config"},"/garden/aws-eks":{"content":"Amazon EKS is AWS’s managed Kubernetes control plane. We hold it as the weakest major managed K8s option unless the workload is already bound to AWS.\nBlurb Amazon Elastic Kubernetes Service (EKS) is a managed service and certified Kubernetes conformant to run Kubernetes on AWS and on-premises.\nSummary Why hold: control-plane cost per cluster, IAM/VPC wiring complexity, CNI and add-on versioning friction, and “managed” still leaves node patching, ingress, and security baselines on you. Teams often underestimate day-2 ops compared to GKE’s tighter integration with the platform that invented K8s.\nWhen EKS anyway: mandated AWS-only estate, tight coupling to ALB/NLB, IAM roles for service accounts (IRSA) patterns already standardized, or multi-tenant AWS accounts where egress to another cloud is blocked.\nContain damage: Terraform (or equivalent) for clusters and add-ons; ArgoCD for GitOps; DevSecOps admission and image policies; avoid snowflake node groups; plan upgrades and add-on compatibility explicitly.\nDetails Topic Notes Compute Managed node groups, self-managed, or Fargate; each trades cost vs. ops burden Networking VPC CNI IP consumption; plan subnets and prefix delegation early Identity IRSA for pod AWS API access; prefer over long-lived node instance roles Alternatives Google GKE for new multi-cloud or GCP-first platforms Distro EKS Distro / EKS Anywhere for on-prem parity; still AWS-flavored ops Aligns with parent AWS (hold): do not choose EKS because “we’re on AWS”; choose it only when K8s on AWS is the explicit requirement.","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"AWS EKS"},"/garden/azure":{"content":"Azure. We hold it under Platform in the garden.\nBlurb Invent with purpose, realize cost savings, and make your organization more efficient with Microsoft Azure’s open and flexible cloud computing platform.\nSummary Overview: is Microsoft’s hyperscale Cloud. It is strong when you are already in the Microsoft identity and productivity stack. We rate it hold for new platforms: recurring security incidents, opaque shared-responsibility “managed” services, and incentive-driven market share (startup credits) that do not equal fit-for-purpose engineering.\nTopic Notes Lock-in M365 + Entra + Azure RBAC intertwine, exit is a program, not a toggle Parity Many services match AWS/GCP on paper; ops maturity and defaults differ Containment Terraform, policy guardrails, DevSecOps reviews on every subscription Greenfield Default away unless Microsoft stack is the explicit requirement Details Topic Notes Lock-in M365 + Entra + Azure RBAC intertwine, exit is a program, not a toggle Parity Many services match AWS/GCP on paper; ops maturity and defaults differ Containment Terraform, policy guardrails, DevSecOps reviews on every subscription Greenfield Default away unless Microsoft stack is the explicit requirement ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Azure"},"/garden/azure-policy":{"content":"Azure Policy. Is Microsoft’s service for enforcing and assessing resource compliance at management group, subscription, or resource group scope.\nBlurb Azure Policy helps you manage and prevent IT issues with policy definitions that enforce rules and effects for your resources.\nSummary What it is: JSON policy definitions and initiatives (policy sets). Assignments at scope, a compliance dashboard, remediation tasks, and Defender for Cloud regulatory views.\nWhen to use:\nAzure-primary estates Entra-backed org structure Tag and location standards Built-in regulatory initiatives (NIST, PCI, etc.) Policy as Code workflows (Git + CI/CD) for definition lifecycle When to skip:\nMulti-cloud policy in one language (see Cloud Custodian or OPA/Rego) Greenfield where Azure is hold Sub-minute deny at the API edge (Policy evaluation can lag) Pairs with: Policy as Code and IaC gates on PRs. Policy for in-subscription and org-wide assignment. DevSecOps for pipeline plus cloud governance.\nDetails Topic Notes Definitions Built-in and custom; parameters, conditions, effects (Deny, Audit, DeployIfNotExists, Modify, etc.) Initiatives Grouped policies deployed as one assignment Scope Management group, subscription, or resource group Kubernetes Separate AKS policy add-on and Azure Machine Configuration paths Practices: Assign at management group for consistency. Use exemptions sparingly and document them. Store custom definitions in git and deploy via pipeline. Pilot Audit before Deny on shared subscriptions.\nReferences\nAzure Policy documentation Overview of Azure Policy ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Azure Policy"},"/garden/backstage":{"content":"Backstage. Is an open source developer portal framework from the CNCF.\nSummary What it is: React app plus backend plugins; entities (Component, System, API, Resource) declared in YAML and ingested from git repos.\nWhen to use: microservice sprawl needs a service catalog; platform team can run and customize plugins; Software Templates for standardized repo bootstrap.\nWhen to skip: single monorepo with no discovery problem; no staff to operate and upgrade the portal; SaaS IDP (Port, Cortex) fits procurement better.\ncatalog-info.yaml: each service repo carries metadata (owner, lifecycle, links to docs and CI) at repo root or path configured in the catalog importer.\nDetails Topic Notes Catalog Entity descriptors in YAML; processors merge from GitHub, GitLab, etc. Scaffolder Template template.yaml plus actions to create repos and Kubernetes resources Plugins TechDocs, Kubernetes, Argo CD, CI views (community and custom) Practices: treat Backstage as a product; assign owners; keep catalog-info.yaml in the same PR workflow as code changes.\nReferences\nBackstage documentation Software catalog GitHub repository ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Backstage"},"/garden/bdd":{"content":"Behaviour-driven development (BDD) extends TDD so tests describe desired behavior in plaintext. We hold it for new process design: Spec-Driven Development (SDD) replaces it by putting the agent inside the specification.\nBlurb Behaviour-driven development (BDD) has evolved out of established agile practices and is designed to make them more accessible and effective for teams new to agile software delivery.\nSummary What it is: Dan North’s evolution of TDD: name behaviors in sentences, prioritize valuable missing behavior, and capture acceptance as readable scenarios (often Given/When/Then).\nLineage: TDD → BDD (plain-text behavior) → Spec-Driven Development (SDD) (spec includes agent). Do not start new work as BDD-only. Fold BDD’s plain-text behaviors and acceptance scenarios into the SDD specification.\nWhen to use (existing only):\nSituation Notes Inherited scenario suites Keep if maintained; migrate process toward SDD Teaching history Explain behavior language as the bridge from TDD to SDD When to skip (new work):\nGreenfield delivery process: use Spec-Driven Development (SDD) Agent-assisted multi-file work needs a reviewed spec that includes the agent, not Gherkin theater alone Trade-offs: BDD fixed TDD’s “test” vocabulary and shared language. SDD absorbs that plain-text behavior requirement and adds the agent as a first-class part of the spec.\nDetails Useful BDD habits that SDD specs should still include:\nBehavior described in plain sentences (not jargon-only tests) Next most important missing behavior Scenarios: Given context, When event, Then outcomes References\nDan North: Introducing BDD Dan North: BDD is like TDD if… ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"BDD"},"/garden/bicepgoat":{"content":"BicepGoat. We trial it under Tool in the garden.\nBlurb BicepGoat is Bridgecrew's \"Vulnerable by Design\" Bicep and ARM repository. BicepGoat is a learning and training project that demonstrates how common configuration errors can find thei…\nSummary BicepGoat sits in Bridgecrew’s IaC Goat family alongside TerraGoat (Terraform multi-cloud). Use it when the lab stack is Azure Bicep or ARM, not HCL.\nWhen to use: calibrating Checkov on Bicep and ARM files; teaching Policy as Code and DevSecOps gates before Azure deploy; Azure-only teams that will not run TerraGoat’s AWS or GCP modules.\nWhen to skip: you cannot isolate a disposable Azure subscription; you need Terraform labs (use TerraGoat); you need app-layer vuln targets only (use DVWA or Juice Shop).\nScope: intentionally vulnerable Bicep and ARM templates. Upstream warns that apply creates real insecure Azure resources.\nDetails Compared to TerraGoat Lens BicepGoat TerraGoat IaC language Bicep and ARM Terraform (HCL) Cloud focus Azure AWS, Azure, GCP Scanner pairing Checkov (Bicep/ARM policies) Checkov (Terraform policies) Best fit Azure-native IaC training Multi-cloud Terraform training Deployment Guardrails Use a dedicated sandbox subscription with no production data. Read upstream warnings before deploy: resources are intentionally insecure. Tear down all deployed resources when the lab ends. Scan the repo locally with Checkov before any deploy to practice catch-before-deploy. Scan-First Lab Sketch 1 2 3 4 git clone https://github.com/bridgecrewio/bicepgoat.git cd bicepgoat checkov -d . # Optional: deploy in sandbox only after reviewing findings ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"BicepGoat"},"/garden/bigquery":{"content":"BigQuery. Is Google Cloud’s fully managed, serverless data platform for SQL analytics, ML, and BI at petabyte scale.\nBlurb BigQuery is the autonomous data and AI platform, automating the entire data life cycle so you can go from data to AI to action faster.\nSummary What it is: Columnar warehouse with standard SQL, partitioned tables, streaming inserts, BigQuery ML, and native ties to Looker, Vertex AI, and GCP IAM. Pay per query and storage; slot reservations for steady workloads.\nWhen to use: Large analytics on GCP; federated queries over GCS objects; marketing and product event pipelines landing in tables; teams already standardized on dbt-core against BigQuery.\nWhen to skip: Primary OLTP (use Postgres). Multi-cloud strategy that forbids GCP-only warehouses. Small datasets where Postgres replicas plus Grafana or Metabase suffice.\nKey features: Serverless scaling, nested and repeated fields, sharing and authorized views, scheduled queries, cost controls via quotas and reservations.\nDetails Topic Notes Deploy GCP project and dataset IAM; no VMs to patch Cost Monitor bytes scanned; partition and cluster tables; use cached results BI First-class in Metabase, Redash, Apache Superset Practices: Separate dev and prod projects; avoid SELECT * on wide tables; load via batch or streaming with clear retention; pair with Postgres for transactional source of truth.\nReferences\nBigQuery documentation BigQuery pricing ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"BigQuery"},"/garden/bitbucket-pipelines":{"content":"Bitbucket Pipelines. Is Atlassian’s hosted CI service for Bitbucket Cloud repos.\nBlurb Bitbucket Pipelines brings continuous delivery to Bitbucket Cloud, empowering teams with full branching to deployment visibility and faster feedback loops\nSummary Garden stance: We assess Bitbucket Pipelines for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Bitbucket Pipelines"},"/garden/boundary-hashicorp":{"content":"Boundary (Hashicorp). Is an identity-aware proxy for just-in-time access to hosts and services (SSH, RDP, databases, Kubernetes) without handing users long-lived credentials or flat network VPNs.\nBlurb Explore Boundary product documentation, tutorials, and examples.\nSummary What it does: brokers connections after OIDC/SSO auth; issues short-lived credentials (often via Vault); logs sessions for audit. Replaces “SSH keys on a bastion” and broad Tailscale-style network access when you only need specific targets.\nWhen to assess: multi-cloud or dynamic infra (Nomad, VMs, K8s) with compliance pressure for no standing privilege; teams standardizing on HashiCorp (Terraform, Vault) and wanting one access plane.\nWhen to skip: simple static fleets with mature SSO + AoD elsewhere; orgs avoiding HashiCorp post-IBM acquisition complexity; need full L3 VPN (use Tailscale sparingly, not Boundary).\nEditions: Community (self-managed), Enterprise, and HCP Boundary (managed). Match edition to audit requirements (session recording, multi-tenancy).\nDetails Topic Notes Identity Entra, Okta, Ping, or any OIDC IdP, pairs with Auth0-class providers at the edge Secrets Dynamic credentials via Vault; plan Vault HA before Boundary production Model Targets, host catalogs, roles; map to RBAC and break-glass runbooks Technique Implements Zero Trust Network Architecture principles in practice ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Boundary (Hashicorp)"},"/garden/bun":{"content":"Bun is an all-in-one JavaScript and TypeScript toolkit: runtime, package manager, test runner, and bundler in one binary. We trial it where startup time and toolchain simplicity matter more than full Node.js ecosystem certainty.\nBlurb Bun is a fast, incrementally adoptable all-in-one JavaScript, TypeScript & JSX toolkit.\nSummary What it is: One binary replacing several tools. Built on JavaScriptCore instead of V8. Adoptable piecemeal: use bun install or bun test inside an existing Node.js project without switching runtimes.\nWhen to use:\nSituation Notes Slow npm installs bun install as a drop-in, much faster client Jest suites that drag bun test keeps the expect() API CLIs and scripts Fast start; single-file executables Zero-config TypeScript Runs .ts and .tsx without a build step When to skip:\nProduction services that depend on native addons or obscure Node modules Teams that need the conservative default runtime (Node.js) Anything where an unproven engine profile is an unacceptable risk Trade-offs: Real speed wins on install, test, and cold start. Node compatibility is a goal, not a guarantee. Adopt one tool at a time and verify with your own suite before moving a whole service.\nDetails Tool Role bun run Execute scripts and TypeScript entrypoints bun install npm-compatible lockfile and registry client bun test Jest-compatible test runner with fast startup bun build Bundle JS, TS, and JSX for server or browser targets Bun.serve HTTP server with routing and WebSocket support Compatibility: Bun targets broad Node API parity, but gaps remain in native addons and less common modules. Run your test suite and integration checks before declaring parity.\nProcess management: PM2 supports Bun since v1. The same cluster and reload patterns apply as for Node.\nEngine difference: JavaScriptCore (Safari) versus V8 (Node). Performance profiles differ. Benchmark your own app rather than assuming universal wins.\nBatteries included: Built-in SQL clients, S3 and Redis helpers, shell scripting via Bun.$, and YAML imports. Convenient, but each one is a coupling to Bun-specific APIs.\nReferences\nBun documentation Bun GitHub repository Node.js compatibility ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Bun"},"/garden/cap-theorem":{"content":"CAP Theorem says a distributed data store cannot guarantee Consistency, Availability, and Partition tolerance at the same time. We adopt it as the default vocabulary for consistency trade-offs in distributed design.\nBlurb You can have at most two of these properties for any shared-data system\nSummary What it is: Brewer’s conjecture (PODC 2000), later proved by Gilbert and Lynch. Under a network partition you must choose: keep serving possibly stale answers (favor Availability), or refuse unsafe reads/writes (favor Consistency).\nWhen to use: Design reviews for multi-node stores, multi-region apps, Microservices data ownership, and NoSQL engine choice. Translate product SLOs into an explicit C vs A stance when partitions happen.\nWhen to skip: Single-node or single-site systems with no partition risk. Do not use CAP as a slogan to reject SQL or transactions without a real distribution requirement.\nTrade-off under partition Meaning Typical examples CP Prefer correct data; may error or block Consensus quorum stores, many primary-replica DBs with failover AP Prefer answering; may return stale or divergent data DNS-style caching, some eventually consistent KV stores CA Consistency + availability only if you assume no partitions Classic single-site databases (not a wide-area guarantee) Pairs with: First Principles when teams treat “we need all three” as a requirement. Software Architecture for system-boundary decisions. Treat CAP Consistency as not the same as ACID transactional consistency.\nDetails The Three Guarantees Guarantee CAP meaning Consistency Every successful read sees the latest write (or errors). CAP-C is not ACID-C. Availability Every request to a non-failed node gets a response. It may not be the newest value. Partition tolerance The system keeps running when the network drops messages between nodes. On modern networks, partitions are assumed. Real designs are usually CP or AP during a partition, not a free CA triangle.\nCommon Misreads “Pick two” forever: Outside a partition, many systems provide both C and A. The hard choice shows up when the network splits. CAP-C equals ACID: CAP Consistency is about latest-value visibility across replicas. ACID Consistency is about invariants inside a transaction. AP means no correctness: AP systems still need conflict rules, versioning, or repair. They trade linearizability during partitions, not all forms of correctness. Microservices automatically need AP: Service boundaries do not pick CAP for you. Shared databases and cross-service reads still force an explicit stance. How to Apply in Reviews Name the data item and the failure mode (zone loss, region split, degraded link). Ask which client outcomes are worse: stale/conflicting reads, or errors/timeouts. Match the store and API (quorum, leader election, async replication, CRDTs) to that choice. Document the choice in the design note. Do not hide it behind “highly available and strongly consistent.” References Wikipedia: CAP theorem Eric Brewer, Towards Robust Distributed Systems (PODC 2000 keynote slides) Seth Gilbert and Nancy Lynch, “Brewer’s conjecture and the feasibility of consistent, available, partition-tolerant web services” (ACM SIGACT News, 2002) ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"CAP Theorem"},"/garden/capistrano":{"content":"Capistrano. Is a Ruby remote-deployment DSL: SSH into servers, run recipes (cap deploy), symlink releases; classic 2000s Ruby on Rails ops.\nSummary Why hold: serial SSH orchestration with mutable servers is the opposite of reconciled desired state. Recipes become tribal knowledge; rollbacks depend on symlink tricks; secrets and host lists rot in repo or .cap config.\nHistorical credit: helped teams practice repeatable deploys before modern DevSecOps, but that problem is better solved today without Capistrano.\nUse instead\nNeed Prefer Configure existing VMs Ansible (adopt, last-resort second touch) Provision cloud shape Terraform + Declarative IaC Run the app Kubernetes + ArgoCD (GitOps CD) Legacy Rails monolith Strangle to containers/CI; don’t extend Capistrano Details Imperative IaC: same failure mode as Imperative IaC generators; hard to review, hard to test, hard to audit. Migration: freeze Capistrano recipes; mirror deploy steps in pipeline + declarative infra; retire SSH-based deploy users when apps move to K8s or immutable images. ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Capistrano"},"/garden/cattle-not-pets":{"content":"Cattle Not Pets. Once upon a time we treated servers like pets.\nBlurb I have been meaning to write this post for a long time, but one thing or another has gotten in the way. It’s important to me to provide an accurate history, …\nSummary Garden stance: We adopt Cattle Not Pets for our estate.\nOverview: Cattle are numbered, identical, fungible (interchangeable and replaceable without loss of value), follow instructions, and are replaced when they fail. This facilitates almost all modern software practices. Things like containers, Kubernetes, Software as a Service, or Cloud wouldn’t exist without this technique. Therefore it is an absolute must.\nReferences https://cloudscaling.com/blog/cloud-computing/the-history-of-pets-vs-cattle/\nDetails References https://cloudscaling.com/blog/cloud-computing/the-history-of-pets-vs-cattle/","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Cattle Not Pets"},"/garden/cdkgoat":{"content":"CdkGoat. We trial it under Tool in the garden.\nBlurb CdkGoat is Bridgecrew's \"Vulnerable by Design\" AWS CDK repository. CdkGoat is a learning and training project that demonstrates how common configuration errors can find their way into…\nSummary CdkGoat sits in Bridgecrew’s IaC Goat family alongside TerraGoat and BicepGoat. Use it when the lab stack is AWS CDK (Python), not raw Terraform or Bicep.\nWhen to use: teaching Checkov on synthesized CloudFormation when source repos have no .yaml templates; calibrating CI gates for CDKs-based teams; demoing build-time scanning before cdk deploy.\nWhen to skip: you cannot isolate a disposable AWS account; you need Terraform labs (use TerraGoat); your org avoids CDK for new work (CDKs is hold here, but the goat still helps scanner tuning).\nWorkflow: cdk synth produces cdk.out/cdkgoat.template.json; scan that artifact with Checkov before optional sandbox deploy.\nDetails Compared to TerraGoat Lens CdkGoat TerraGoat IaC style AWS CDK (Imperative IaC, Python) Terraform (HCL) Scan target Synthesized CloudFormation JSON .tf files and plans Cloud focus AWS AWS, Azure, GCP Best fit CDK pipeline and synth-time gates Multi-cloud Terraform training Deployment Guardrails Use a dedicated sandbox AWS account with no production data. Upstream warns that cdk deploy creates intentionally insecure resources. Rename S3 buckets and other global names if deploy fails on collisions. Run cdk destroy when the lab ends; verify the account is clean. Scan after cdk synth even when you skip deploy. Scan-First Lab Sketch 1 2 3 4 5 6 7 git clone https://github.com/bridgecrewio/cdkgoat.git cd cdkgoat python -m venv .env && source .env/bin/activate pip install -r requirements.txt npm install -g aws-cdk cdk synth checkov -f cdk.out/cdkgoat.template.json ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"CdkGoat"},"/garden/cdks":{"content":"CDKs. Cloud Development Kits (AWS CDK and similar) generate infrastructure from general-purpose programming languages.\nBlurb AWS Cloud Development Kit (CDK) is an open-source software development framework used to model and provision your cloud application resources with familiar programming languages.\nSummary Garden stance: We hold CDKs for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"CDKs"},"/garden/cel":{"content":"CEL. Common Expression Language (CEL) is Google’s sandboxed, non-Turing-complete expression language designed for high-frequency evaluation in security and policy contexts.\nBlurb Common Expression Language – specification and binary representation - cel-expr/cel-spec\nSummary CEL sits between a simple expression evaluator and a full policy language like Rego (Policy as Code / OPA). For Kubernetes specifically, the native ValidatingAdmissionPolicy integration in 1.26+ is a compelling reason to learn it , it removes the operational burden of running a separate admission webhook. For more complex, cross-cutting policy logic, OPA/Rego via Conftest remains more capable. Assess CEL if you are already invested in the Kubernetes control plane; it will likely become unavoidable there.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"CEL"},"/garden/censys":{"content":"Censys. Is an Internet intelligence platform built on continuous global scanning, certificate observation, and structured host data.\nSummary Garden stance: We assess Censys for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Use case Notes Asset discovery Find shadow IT and forgotten subdomains tied to your org Certificate research Search one of the largest public X.509 corpora for related infrastructure CVE exposure Fingerprint services and tie them to CVE context ASM Continuous monitoring with risk prioritization (Platform SKU) Threat hunting Adversary Investigation module links malware and actor data to hosts Not the same as: Censys Technologies (BVLOS drones and aerial analytics). The security vendor lives at censys.com.\nEthics and policy: only query assets you own or have written permission to assess. Pair external recon with internal Shift Left scanning.\nAlternatives: Shodan and ZoomEye overlap on host lookup. Pick one primary index to avoid alert fatigue. Use Censys when certificate depth or enterprise ASM matters more than IoT banner breadth.\nReferences\nCensys Censys Search Censys documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Censys"},"/garden/centaur-emacs":{"content":"Centaur Emacs is a batteries-included Emacs configuration aimed at a clean, fast out-of-the-box IDE feel. We assess it when evaluating Emacs distributions rather than building init.el from scratch.\nBlurb Centaur Emacs - A Clean and Fast Emacs Configuration\nSummary Use Centaur when you want a polished Emacs starter with dashboard, LSP hooks, and broad language modules already wired. Skip it if you prefer a thinner base like Emacs Prelude, or Vim-style keys via Spacemacs.\nTrade-off: speed to productivity vs owning less of the config surface. Upstream is seagle0128/.emacs.d. Personal forks exist; treat them as overlays, not the source of truth.\nDetails Canonical upstream: https://github.com/seagle0128/.emacs.d Noted fork: https://github.com/danielcnorris/centaur-emacs Requires: GNU Emacs 28.1+ (prefer latest stable) Fit: Tool / IDE as an Emacs distribution, not a separate editor binary Contrast: Spacemacs (Evil-first), Emacs Prelude (closer to stock Emacs), Cursor (AI-first GUI) ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"Centaur Emacs"},"/garden/cfngoat":{"content":"CfnGoat. Is Bridgecrew’s “Vulnerable by Design” AWS CloudFormation template repository.\nSummary Garden stance: We trial CfnGoat for our estate.\nKey points: ### Compared to Sibling Goats\nLens CfnGoat TerraGoat CdkGoat IaC format CloudFormation YAML Terraform (HCL) AWS CDK to synthesized CFN Scan target cfngoat.yaml in repo .tf files and plans cdk.out/*.template.json Cloud focus AWS AWS, Azure, GCP AWS Best fit Direct CFN template scanning Multi-cloud Terraform training CDK pipeline gates Deployment Guardrails Use a dedicated sandbox AWS account with no production data. Upstream warns that stack create deploys intentionally insecure resources. Pass CAPABILITY_NAMED_IAM; set a strong Password parameter per README. Delete stacks when the lab ends (aws cloudformation delete-stack or console). Scan locally with Checkov before any stack create. Scan-First Lab Sketch 1 2 3 4 git clone https://github.com/bridgecrewio/cfngoat.git cd cfngoat checkov -f cfngoat.yaml # Optional: create-stack in sandbox only after reviewing findings Details Compared to Sibling Goats Lens CfnGoat TerraGoat CdkGoat IaC format CloudFormation YAML Terraform (HCL) AWS CDK to synthesized CFN Scan target cfngoat.yaml in repo .tf files and plans cdk.out/*.template.json Cloud focus AWS AWS, Azure, GCP AWS Best fit Direct CFN template scanning Multi-cloud Terraform training CDK pipeline gates Deployment Guardrails Use a dedicated sandbox AWS account with no production data. Upstream warns that stack create deploys intentionally insecure resources. Pass CAPABILITY_NAMED_IAM; set a strong Password parameter per README. Delete stacks when the lab ends (aws cloudformation delete-stack or console). Scan locally with Checkov before any stack create. Scan-First Lab Sketch 1 2 3 4 git clone https://github.com/bridgecrewio/cfngoat.git cd cfngoat checkov -f cfngoat.yaml # Optional: create-stack in sandbox only after reviewing findings ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"CfnGoat"},"/garden/chaos-tools":{"content":"Under Tool, Chaos Tools groups products that inject controlled failure so teams find resilience gaps before production incidents. Typical targets are Kubernetes workloads and cloud services. Tag a product here when the note is about the fault-injection runner or platform, not about the broader SRE practice.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Chaos Tools"},"/garden/chatops":{"content":"ChatOps. Is the practice of running operations through a chat interface: posting alerts into channels and/or invoking bots that execute commands.\nSummary Two flavors:\nAlerting in chat: notifications from CI, monitoring, or deploy tools land in team channels. Actions from chat: slash commands and bots mutate infrastructure (deploy, restart, encrypt disks, etc.). Why hold: chat is high-noise and low-audit compared to pipelines and break-glass tools. Mixing pager-worthy events with coworker banter trains people to ignore channels. Giving chat bots production credentials fails most audits and creates irresistible distraction for engineers.\nWhat to do instead: route pages through Incident Management tooling; run automation via CI, GitOps, or approved runbooks with identity separation. Use Slack (trial) for human coordination, not as the control plane.\nDetails Alerting in chat Alerting matters in DevSecOps; the signal must be scarce and actionable. A #production channel that also gets jokes and threads buries real incidents. Prefer dedicated on-call paths with explicit severity, not “whatever showed up in Slack.”\nActions from chat Triggering automation from chat sounds convenient until someone runs the wrong command in the wrong channel. Production access for chat integrations is a liability; investment here dies on compliance reviews. Tools like Keel that lean on ChatOps are long-term dead ends for the same reason.\nGarden stance hold for new ChatOps workflows. Existing bots: restrict scopes, document owners, plan retirement. Do not build new prod dependencies on chat commands.","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"ChatOps"},"/garden/checkov":{"content":"Checkov. We adopt it under Tool in the garden.\nBlurb Prevent cloud misconfigurations and find vulnerabilities during build-time in infrastructure as code, container images and open source packages with Checkov by Bridgecrew. - bridgecrewio/checkov\nSummary Role: CLI and CI gate that scans Terraform, CloudFormation, Kubernetes, Helm, Dockerfile, GitHub Actions, and other IaC or pipeline files before deploy. Graph-based scanning adds context across resources. Output formats include JSON, JUnit, SARIF, and CycloneDX.\nLens Checkov Conftest Regula Policy model Built-in + custom Python/YAML Rego (OPA) Built-in Rego bundles Surfaces IaC, CI workflows, SCA/CVEs Structured config via OPA IaC focus (AWS/Azure/GCP/K8s) Best fit Default IaC and CI PR gate Cross-stack custom governance Terraform-centric Rego without OPA ops When to use (default): any repo with IaC or CI workflow files; CIS, SOC2, or cloud-provider hardening on every Pull Request; teams want local scans that match Bridgecrew or Prisma Cloud policy packs.\nWhen to skip: policy logic must live in OPA and run at admission time (Policy as Code + Conftest); only application source linting matters; Regula already covers the full IaC stack with less policy maintenance.\nPairs with: terraform plan JSON scanning, pre-commit hooks, GitHub Actions or Jenkins gates, Prisma Cloud for centralized policy management.\nDetails Topic Notes Install pip install checkov (Python 3.9-3.12); Docker image bridgecrew/checkov IaC inputs Terraform, Terraform plan/JSON, CloudFormation, SAM, Bicep, ARM, OpenTofu, Ansible, Serverless K8s inputs Kubernetes manifests, Helm charts (rendered), Kustomize CI inputs GitHub Actions, GitLab CI, Azure Pipelines, CircleCI, Bitbucket Pipelines, Argo Workflows SCA Open source package and image CVE scanning (separate from IaC checks) Custom policies Python attribute policies; YAML attribute and composite policies Suppressions Inline skip comments and CLI global skips for accepted risk Upstream Open source by Bridgecrew; maintained under Prisma Cloud References\nCheckov documentation GitHub repository Policy index ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Checkov"},"/garden/ci-cd-tools":{"content":"Under Tool, CI-CD Tools groups products that run or orchestrate build, test, and deploy pipelines. The label CI/CD is overloaded: in practice it spans three technique notes we keep separate from this subcategory:\nContinuous Integration (adopt): merge often, automated build and Integration Testing on every change. Continuous Delivery (adopt): artifacts are always releasable; promotion and gates are explicit (on-prem, regulated, or multi-stage SaaS). Continuous Deployment (assess): every green mainline commit reaches production automatically; right mainly for Software as a Service with strong observability and rollback (often paired with Feature Flags). Pipeline shapes (how tools map):\nPattern What happens after CI Typical fit CI + deployment Artifact ships to production (or equivalent) after tests SaaS, K8s GitOps (ArgoCD), managed runners (GitHub Actions) CI + delivery Artifact is built, signed, and handed off; deploy is manual or downstream On-prem, air-gapped, or customer-operated installs Tag a product here when the note is about a runner, controller, or deploy server (Actions, Argo CD, Jenkins). Tag the technique notes above when the note is about the practice, not a vendor.\nGarden stance (products in this bucket):\nadopt GitHub Actions for repos on GitHub (CI and light CD in-repo). adopt ArgoCD for Kubernetes continuous delivery via GitOps (reconcile from Git; do not conflate with Argo Workflows, which is workflow/CI on-cluster). trial Argo Workflows when you need DAG-style jobs on K8s without bolting Jenkins onto the cluster. assess Tekton only if you must standardize on Kubernetes-native pipeline CRDs and accept operational complexity. hold Jenkins (security and pet-server risk; migrate off where possible) and Capistrano (SSH push deploy; superseded by GitOps or image-based CD for new work). Cross-cutting: wire DevSecOps, Policy as Code, and secret stores (HashiCorp Vault, cloud secret managers) on the PR path, not inside a pipeline server’s internal credential UI.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"CI-CD Tools"},"/garden/claude-code":{"content":"Claude Code. Is Anthropic’s agentic coding assistant (terminal CLI, VS Code extension, and desktop surfaces) that reads your repo, edits files, runs commands, and follows project rules.\nSummary Claude Code runs an agent loop in your project context: gather context (files, search, MCP), act (edit, bash, git), verify (tests, diffs). It supports hooks, subagents, plan mode, and the Agent Skills Framework directory layout used across this vault (SKILL.md files).\nUse it for interactive development, refactors, and skill-driven workflows when Claude models or Anthropic billing are the constraint. It is a repo-bounded AI Agent; not an omnichannel personal bot. Always-on messaging gateways (OpenClaw, Hermes) are hold in this subcategory. For scheduled automation, prefer deterministic scripts and Dagu with LLM steps only where reasoning is required (projects/research/morning-briefing-personal-automation-platform).\nCompare Codex for the same agent-loop-in-repo pattern on OpenAI plans.\nDetails Surfaces: terminal (claude in repo root), VS Code extension, desktop app; pick one primary surface per machine. Skills: load from .claude/skills/ or shared agent-skills/ repos; see Agent Skills - Sources for curated lists. Auth: Claude subscription or Anthropic Console API; some surfaces allow third-party model routing. Fit: Tool / AI Agent, agent-loop coding tool in the workspace (IDE surfaces are deployment options, not the taxonomy). Contrast: OpenClaw / Hermes for omnichannel bots; Cursor + cursor-agent for our default editor workflow; Codex on OpenAI plans. ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Claude Code"},"/garden/claude-devtools":{"content":"Claude DevTools is a local desktop app that reads Claude Code session logs from ~/.claude/ and restores tool calls, thinking steps, and context breakdown the terminal hides. We trial it for post-session debugging, subagent review, and copy-friendly transcript inspection.\nBlurb Your Claude is coding blind.\nSummary When to use:\nAfter Claude Code v2.1.20+ collapsed terminal output into opaque summaries Inspecting Read/Edit/Bash I/O and subagent trees Per-turn context attribution (CLAUDE.md, skills, @-mentions, tool output) Cross-session search or SSH remote session review Alerting on sensitive file access or high token use When to skip: aggregate cost dashboards and quota progress bars (use Claude Usage or CodexBar); sessions with no local JSONL (Cowork); replacing --verbose when you only need a one-off raw dump.\nTrade-offs: MIT desktop app (macOS Homebrew cask, Windows .exe, Linux AppImage, Docker self-host). Reads disk only. No login, API keys, or outbound calls. Works on historical sessions from any tool that wrote ~/.claude/ logs.\nDetails Topic Notes Site claude-dev.tools Repo matt1398/claude-devtools (MIT, TypeScript, ~3.7k stars) Install brew install --cask claude-devtools; or GitHub Releases (.dmg, .exe, AppImage); Docker self-host Data source Read-only access to ~/.claude/ session JSONL already on disk Not a wrapper Does not hook or modify Claude Code; parses existing logs Key features:\nContext reconstruction: per-turn token attribution across seven categories with compaction visualization Tool call inspector: syntax-highlighted reads, inline edit diffs, bash output, nested subagent trees Project memory pane: browse ~/.claude/work/projects/ memory layers with in-app search and “Open in…” launchers Notification triggers: regex alerts for sensitive paths, tool errors, token thresholds SSH remote sessions: inspect logs on remote hosts via ~/.ssh/config Command palette: Cmd+K cross-session search with snippet highlights Multi-pane layout: compare sessions side by side Fit: Tool / AI Agent debugging layer for Claude Code. Complements Claude Usage (charts and cost totals) and CodexBar (provider quota windows).","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-10-19T00:00:00-04:00","tags":null,"title":"Claude DevTools"},"/garden/claude-usage":{"content":"Claude Usage is a local Python dashboard and CLI that scans Claude Code JSONL logs under ~/.claude/ and charts tokens, models, costs, and session history. We trial it when you want subscription-window visibility that Anthropic’s UI does not expose.\nBlurb Pro and Max subscribers get a progress bar. This gives you the full picture.\nSummary When to use: daily or weekly Claude Code spend reviews; comparing model mix across projects; Pro/Max quota tracking with progress bars; terminal summaries (today, week, stats) without opening a browser.\nWhen to skip: deep per-turn debugging (use Claude DevTools); Cowork sessions (server-side, no local JSONL); multi-provider dashboards (CodexBar covers Claude plus Codex, Cursor, Gemini, and others from the menu bar).\nTrade-offs: Python stdlib only (no pip deps), incremental SQLite scan, Homebrew/uv/Docker install paths, and an optional VS Code extension. Cost figures are estimates from local logs and published pricing, not exact invoices.\nDetails Topic Notes Upstream phuryn/claude-usage (MIT, ~2k stars, Python) Data source Local JSONL under ~/.claude/ from Claude Code CLI, VS Code extension, and dispatched Code sessions Not captured Cowork sessions (server-side, no local transcripts) Surfaces Web dashboard (claude-usage dashboard), CLI subcommands, VS Code extension Install brew tap phuryn/claude-usage && brew install phuryn/claude-usage/claude-usage; or uv tool install git+https://github.com/phuryn/claude-usage; or clone + python3 cli.py dashboard Database Incremental scan into ~/.claude/usage.db (SQLite) Companion burnstop (same author ecosystem) CLI quick reference:\n1 2 3 4 5 claude-usage scan # populate usage.db from JSONL claude-usage today # today's usage by model claude-usage week # last 7 days claude-usage stats # all-time stats claude-usage dashboard # browser UI (default localhost:8080) Fit: Tool / AI Agent ops layer alongside Claude Code. Pairs with CodexBar when you need cross-provider menu-bar limits; pairs with Claude DevTools when you need session forensics, not aggregate charts.","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"Claude Usage"},"/garden/claw-patrol":{"content":"Claw Patrol is an open-source agent proxy from Deno. It holds credentials, inspects wire traffic, and enforces HCL rules before outbound calls complete. We assess it for self-hosted agent workloads that need audit logs and human or LLM approval gates.\nBlurb The security firewall for any agent\nSummary What it is: Self-hosted gateway (single Go binary) plus enrolled devices on WireGuard or Tailscale. Agents run under clawpatrol run; the gateway injects credentials, evaluates protocol-aware rules, and logs every request.\nWhen to use: You run coding or ops agents with broad API, database, or k8s access. You want secrets off the agent, per-request policy, a dashboard audit trail, and optional human or LLM judge for risky actions.\nWhen to skip: Perimeter controls already cover the same blast radius. You cannot operate a gateway host and HCL policy lifecycle. The project is early (v0.2.x) and may not meet a production bar yet.\nTopic Notes Gateway Self-hosted SQLite state; no cloud required Rules HCL config; match HTTP, SQL, k8s verbs, not just URLs Testing clawpatrol test with recorded fixtures in CI License MIT; github.com/denoland/clawpatrol Related garden notes: Open Policy Agent and Policy as Code for policy-as-code patterns; Tailscale for device join; AI Agent for the workloads this gates.\nDetails Install\n1 curl -fsSL https://clawpatrol.dev/install.sh | sh Workflow\nRun a gateway on a host you control with an HCL policy file. Join agent machines with clawpatrol join. Prefix agent commands with clawpatrol run (or route the whole machine with --whole-machine). Protocol-aware gating: Rules can match HTTP methods and headers, SQL verbs and statements, Kubernetes resource actions, and more. Credentials stay on the gateway; the agent never sees raw secrets.\nApproval flows: Risky actions can require a human or an LLM judge before the gateway stamps credentials onto the wire.\nRegression tests: Record real actions from the dashboard, store JSON fixtures, and run clawpatrol test in CI. Policy changes that flip a verdict fail the build with a diff.\nReferences\nClaw Patrol docs Getting started GitHub repository ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-09T00:00:00-04:00","tags":null,"title":"Claw Patrol"},"/garden/cline":{"content":"Cline is a tool we assess in the garden.\nBlurb Open-source AI coding agent with Plan/Act modes, MCP integration, and terminal-first workflows. Trusted by 8M+ developers worldwide.\nSummary Cline (cline/cline on GitHub, 60k+ stars) runs as an IDE extension or headless CLI in your repo: coordinated edits, bash with live output, optional auto-approve, multi-agent teams with cron schedules, and integrations (Slack, Linear, GitHub Actions). Rules ship via .clinerules; skills and MCP extend tools. No vendor lock-in: Claude, GPT, Gemini, Bedrock, Azure, Vertex, Ollama, OpenRouter, and OpenAI-compatible endpoints.\nWorth evaluating when you want a widely adopted, editor-agnostic open agent without switching IDEs, or when embedding agents via the SDK. Compare OpenCode for terminal-first multi-provider hubs; Kilo.ai for a similar VS Code + CLI story; Cursor when the editor platform and subscription are the anchor.\nDetails Install: VS Code Marketplace / Open VSX (saoudrizwan.claude-dev legacy id → Cline); npm i -g cline for CLI; https://cline.bot/install Docs: https://docs.cline.bot License: Apache 2.0 (open source). Models: BYOK or local weights; all major cloud providers plus OpenAI-compatible APIs. Surfaces: IDE extension (VS Code, Cursor, Windsurf, VS Code Insiders), CLI, SDK (embed), JetBrains EA. Features: Plan/Act modes, checkpoints/undo, MCP, multi-agent coordinator, CI/Slack/Linear hooks. Fit: Tool / AI Agent: open, multi-surface coding agent. Contrast: OpenCode / Kilo.ai (peer open-source agents); Cursor + cursor-agent (default adopt stack). ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Cline"},"/garden/cljgo":{"content":"cljgo is a Clojure host on Go: AOT to plain Go source plus a tree-walk REPL. We assess it as an experimental path to Clojure semantics with static Go binaries and zero-binding Go interop.\nBlurb The same source runs interpreted at the prompt and compiles to a single static native binary, with byte-identical output on both paths.\nSummary What it is: Compiler and REPL written in Go. Same dual-mode idea as ClojureScript, with Go as the emit target. require-go calls any Go module without hand-written bindings. cljgo build emits a static native binary (no JVM runtime).\nWhen to use:\nSituation Notes Clojure syntax, Go deploy Want REPL + single static binary Go ecosystem as stdlib Call Go packages live from Clojure Cross-compile from one host cljgo dist targets many GOOS/GOARCH pairs Tiny container images AOT web template (bri) claims scratch-friendly binaries When to skip:\nProduction-critical services (project is early; assess only) Teams standardized on JVM Clojure tooling and libraries Simple Go programs where Lisp is not the goal (Go alone) Trade-offs: Strong story for interop and dual-mode fidelity. Young project; ecosystem and long-term stewardship are unproven versus JVM Clojure.\nDetails Modes Command Role cljgo repl / nrepl Interpreted REPL; Calva/CIDER connect cljgo run Interpret a file cljgo build AOT to a static Go binary (needs Go toolchain) cljgo new Project templates: lib, cli, web cljgo dist Cross-compile release artifacts Related Garden Items Clojure - the language semantics cljgo aims to host GoLang - emit target and interop surface Bun - peer pattern: language stays separate; this is the runtime/toolchain Functional Programming - paradigm fit for Clojure-on-Go experiments References GitHub: muthuishere/cljgo Docs site pkg.go.dev ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-24T00:00:00-04:00","tags":null,"title":"cljgo"},"/garden/clojure":{"content":"Clojure is a Lisp dialect with persistent data structures, macros, and a strong functional core. We assess it for REPL-driven services and FP-heavy domains where JVM hosting is acceptable.\nBlurb Clojure is a robust, practical, and fast programming language with a set of useful features that together form a simple, coherent, and powerful tool.\nSummary What it is: Hosted Lisp on the JVM (and dialects on other hosts). Immutable defaults, software transactional memory for shared state, and first-class interop with Java libraries. Sibling of the broader LISP family.\nWhen to use:\nSituation Notes Interactive systems work Grow the program live with a REPL Concurrent shared state Prefer STM and agents over ad-hoc locks Java ecosystem access Call JVM libraries without leaving the language FP-first teams Pairs with Functional Programming practice When to skip:\nDefault platform CLIs and ops tooling (Go) Teams without Lisp or JVM appetite Ultra-small cold-start binaries without Graal or an alternate host like cljgo Trade-offs: Excellent data and concurrency model; JVM startup and ops cost remain the usual friction. Hiring and onboarding are narrower than Go or Python.\nDetails Hosts and Dialects Host Notes JVM Clojure Canonical implementation; Java interop ClojureScript Same ideas targeting JavaScript cljgo Experimental Clojure hosted on Go (AOT to Go source) Related Garden Items LISP - language family; Clojure is the dialect we evaluate for services Functional Programming - paradigm we adopt; Clojure is a practical FP language cljgo - alternate host aimed at static Go binaries and Go ecosystem interop GoLang - our default systems language; contrast for ops and CLIs References clojure.org GitHub: clojure/clojure ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Clojure"},"/garden/cloud":{"content":"Under Platform, Cloud groups hyperscale public clouds and their managed primitives: someone else’s computers, exposed through APIs and consoles so you rent capacity instead of racking hardware. The provider runs regions, physical security, and base virtualization; you own identity, configuration, data classification, and most “managed” service hardening under shared responsibility.\nStack (how items map):\nLayer What you get Examples in the garden IaaS Networks, compute, block/object storage AWS, Azure, Google Cloud Platform PaaS / managed runtime Less ops on the control plane; still your app and config Google GKE, AWS EKS (K8s control planes) SaaS Vendor runs the app See Software as a Service (not duplicated here) Tag a hyperscaler or cloud-native platform service here when the note is about choosing or operating on AWS/GCP/Azure (or a direct analog). Tag Hybrid Cloud for multi-cloud strategy; tag Cloud Lift and Shift when discussing migration anti-patterns.\nGarden stance (hyperscalers in this bucket):\nadopt Google Cloud Platform as the multi-cloud spearhead for greenfield: containers, data, AI, and DevSecOps-friendly defaults; do not assume 1:1 feature parity with AWS marketing checklists. hold AWS and Azure for new platforms: default away unless estate, marketplace, or Microsoft-stack requirements force them; contain legacy with Terraform, policy guardrails, and portable interfaces. hold AWS EKS when tied to AWS; prefer Google GKE for greenfield Kubernetes on GCP. adopt Hybrid Cloud as a technique when each workload lands on the best cloud for the job, not when teams mirror every service three times. Cross-cutting expectations: Cattle Not Pets for compute; Terraform (or equivalent Declarative IaC) for everything that can be code; secrets outside vendor CI credential stores; treat egress and proprietary APIs as the real lock-in. Bridge accounts with Tailscale, SD-WAN, or zero-trust patterns, not flat VPN spaghetti.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Cloud"},"/garden/cloud-custodian":{"content":"Cloud Custodian. We assess it under Tool in the garden.\nSummary What it is: Policy-as-data YAML plus a Python runtime, CLI (custodian), and optional serverless modes (Cloud Custodian Org for multi-account).\nWhen to use: replace ad hoc cleanup scripts; enforce tagging, off-hours shutdown, encryption checks, or unused resource removal across accounts; central metrics and reporting on policy runs.\nWhen to skip: small single-account shops covered by native Config or Policy; teams already committed to OPA/Rego (Conftest, Gatekeeper) for the same rules; no ops capacity to tune false positives.\nPairs with: Terraform provisioning plus Custodian enforcement in live accounts; Shift Left IaC scans on PRs, Custodian on deployed resources.\nDetails Topic Notes Policy shape policies: list with resource, filters, actions Modes pull (cron), cloudtrail/event-driven, periodic Extensibility mailer, c7n-org for org-wide rollout Practices: start with notify-only actions; dry-run in staging accounts; version policies in git like application code.\nReferences\nCloud Custodian documentation GitHub repository ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Cloud Custodian"},"/garden/cloud-lift-and-shift":{"content":"Cloud Lift and Shift. (rehosting) moves workloads to Cloud with little or no redesign.\nSummary Garden stance: We hold Cloud Lift and Shift for our estate.\nKey points:\nAnti-pattern Why it fails Better direction 1:1 service cloning across clouds Highest cost, weakest differentiation Pick best-of-breed per workload; document why it lives there Migrating databases by dump/restore monthly Downtime, drift, data egress bills Managed replication, eventing, or stay put and strangle “Same architecture everywhere” for compliance Compliance follows controls, not SKU parity Shared policy (DevSecOps, Policy as Code), different implementations Lift VMs without autoscaling groups Pay for peak 24/7 Cattle Not Pets, instance templates, rightsizing Chasing credits without TCO model Credits expire; architecture remains Model 3-year TCO including egress, support, and engineer time When rehost is acceptable: hard exit deadline from a datacenter, ISV appliance with no cloud-native path yet, or temporary landing zone with a written strangler plan and sunset date. Label it legacy containment, not the target architecture.\nReferences\nWikipedia: lift and shift Contrast: Hybrid Cloud (adopt) in this garden Details Anti-pattern Why it fails Better direction 1:1 service cloning across clouds Highest cost, weakest differentiation Pick best-of-breed per workload; document why it lives there Migrating databases by dump/restore monthly Downtime, drift, data egress bills Managed replication, eventing, or stay put and strangle “Same architecture everywhere” for compliance Compliance follows controls, not SKU parity Shared policy (DevSecOps, Policy as Code), different implementations Lift VMs without autoscaling groups Pay for peak 24/7 Cattle Not Pets, instance templates, rightsizing Chasing credits without TCO model Credits expire; architecture remains Model 3-year TCO including egress, support, and engineer time When rehost is acceptable: hard exit deadline from a datacenter, ISV appliance with no cloud-native path yet, or temporary landing zone with a written strangler plan and sunset date. Label it legacy containment, not the target architecture.\nReferences\nWikipedia: lift and shift Contrast: Hybrid Cloud (adopt) in this garden ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Cloud Lift and Shift"},"/garden/cloudbees":{"content":"CloudBees. Is the commercial steward of Jenkins and sells managed CI/CD (CloudBees CI, SaaS or self-managed controllers) plus enterprise orchestration (CloudBees CD, formerly ElectricFlow).\nBlurb CloudBees Unify is the enterprise control and context plane for your entire AI-powered software delivery lifecycle: open, multi-agentic, and continuously secure.\nSummary Garden stance: We hold CloudBees for our estate.\nKey points:\nTopic Notes CloudBees CI Managed or self-hosted Jenkins; same pipeline model as OSS CloudBees CD Release orchestration product; separate from Jenkins but same “hold unless sunk” rule Secrets Do not rely on Jenkins credential stores; use HashiCorp Vault or cloud secret managers Security Align with DevSecOps gates on the PR path; do not treat the controller as trusted for production deploy keys Greenfield Default to adopt tools in CI-CD Tools (Actions + Argo CD pattern), not CloudBees net-new If you must stay: single controller strategy, pinned plugins, infrastructure as code for controller config, no production deploy credentials on Jenkins, DR drills that assume rebuild-not-restore.\nReferences\nCloudBees See Jenkins for OSS-specific warnings Details Topic Notes CloudBees CI Managed or self-hosted Jenkins; same pipeline model as OSS CloudBees CD Release orchestration product; separate from Jenkins but same “hold unless sunk” rule Secrets Do not rely on Jenkins credential stores; use HashiCorp Vault or cloud secret managers Security Align with DevSecOps gates on the PR path; do not treat the controller as trusted for production deploy keys Greenfield Default to adopt tools in CI-CD Tools (Actions + Argo CD pattern), not CloudBees net-new If you must stay: single controller strategy, pinned plugins, infrastructure as code for controller config, no production deploy credentials on Jenkins, DR drills that assume rebuild-not-restore.\nReferences\nCloudBees See Jenkins for OSS-specific warnings ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"CloudBees"},"/garden/cloudgraph":{"content":"CloudGraph. We assess it under Tool in the garden.\nBlurb One API for all messaging channels. Send SMS, WhatsApp, and RCS messages with automated routing, compliance, and formatting. Start building today.\nSummary What it is: CLI and local GraphQL endpoint over scanned cloud accounts; query resources and edges across providers in one schema.\nWhen to use: quick inventory across AWS plus GCP; compare stage vs prod in one query; ad hoc compliance posture reports; explore relationships (e.g. security groups to instances).\nWhen to skip: need continuous agentless SaaS CNAPP with ticketing workflows; org standardized on Kubescape or a vendor CSPM; GraphQL ops overhead is unwanted.\nKey features: CIS benchmark packs, historical snapshots, validated queries, enhanced AWS billing and CloudWatch fields (per upstream docs).\nDetails Topic Notes Install See CloudGraph CLI Scan Connect credentials per cloud; index into local GraphQL Query GraphQL over unified schema Versus Kubescape: Kubescape targets Kubernetes and supply-chain posture with admission and CI hooks; CloudGraph emphasizes cross-cloud GraphQL inventory and CSPM-style checks.\nReferences\nCloudGraph documentation GitHub repository ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"CloudGraph"},"/garden/clutch":{"content":"Clutch. Is Lyft’s extensible platform for infrastructure operations.\nSummary Architecture: backend services plus protobuf-defined workflows; frontend for operators; auth integrations for enterprise SSO.\nWhen to use: studying how a large org wrapped risky ops in audited workflows; reading source as a pattern library before building an in-house IDP.\nWhen to skip: net-new deployments; teams expecting upstream fixes, security patches, or community support. Fork only if you can own long-term maintenance.\nUpstream: github.com/lyft/clutch (archived, read-only).\nDetails Lyft posted an archival notice on the GitHub README before marking the repository read-only. Existing code and docs remain available for reference. Contact for questions was listed as clutch@lyft.com in the notice.\nTopic Notes Status Archived 2026-02-13; no new development License Apache-2.0 (fork-friendly, but maintenance burden is on you) Garden stance hold - reference only, not adopt ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Clutch"},"/garden/codacy":{"content":"Codacy. Is a Software as a Service code-quality and security platform that runs on **Pull Request**s, aggregates many linters and SAST rules, and surfaces grades and trends.\nBlurb Govern code quality, security and AI coding policies from a single place. Enabling dev teams to ship safely without slowing down.\nSummary Role: PR-time Code Scanner under Code Linting / Shift Left: duplicate findings from ESLint, Bandit, Trivy-style checks, etc. into one UI, with org-level quality gates and coverage metrics.\nWhen to assess: many repos and languages, need central reporting for engineering leaders, or evaluating consolidation vs running linters directly in CI.\nWhen to skip: small teams with one stack; you only need deterministic lint fail in pipeline (use Super-Linter or language-native linters); IaC/policy validation (Conftest, trial) is a separate concern.\nPairs with: DevSecOps program (treat findings as backlog, not theater); required checks on main; do not replace secret scanning, dependency review, or Policy as Code on infra.\nNot the same as: SCA-only vendors, DAST, or OPA/Conftest for Terraform/K8s manifests.\nDetails Topic Notes Integration GitHub/GitLab/Bitbucket apps; status checks on PRs Findings Severity, patterns, optional AI-assisted triage (verify noise) Coverage Test coverage tracking; useful for trends, not a substitute for good tests Config .codacy.yml / UI policies; align with team Code Linting standards Cost Per-seat SaaS; compare TCO vs OSS linters in GitHub Actions References\nCodacy Super-Linter (alternative) ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Codacy"},"/garden/code":{"content":"Code is the garden quadrant for dependencies and notations in the repo: languages, libraries, frameworks, and test harnesses you import or reference. It is not where we classify things you operate (Tool), deploy on (Platform), or how you work (Technique).","garden":{"kind":"category"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Code"},"/garden/code-linting":{"content":"Code Linting. ) is automated static checking of source for style, correctness, and common bug classes before merge.\nSummary Why adopt: stops endless formatting and “you missed a semicolon” threads; catches whole classes of defects cheaply; pairs with Shift Left and DevSecOps when security linters run on the same PR path.\nLayers (typical stack):\nLayer Purpose Garden examples Editor baseline Consistent encoding, EOL, indent EditorConfig (adopt as Tool) Language linters ESLint, golangci-lint, RuboCop, etc. Run locally and in CI CI bundle One job, many linters Super-Linter in GitHub Actions Org dashboard Trends, policy across repos Codacy (assess), optional Rules of thumb:\nConfig lives in the repo (.editorconfig, eslint.config.js, .golangci.yml); version with code. Required checks on main: a green linter run is not optional. Fix or suppress with intent; do not disable rules globally because one legacy folder whines. Linters complement Code Review; they do not replace human judgment on design. Not the same as: Code Scanner products (vendor SKUs), Policy as Code for Terraform/K8s (Conftest), or Unit Testing (behavior vs style/static rules).\nDetails Topic Notes Local make lint or pre-commit hooks so devs see failures before push CI Same command as local; no “works on my machine” drift PR Report status to the PR; see Pull Request Monorepo Path filters or per-package configs to keep runtime sane AI-generated code Lint gates matter more, not less; tighten before merge When to add Codacy: many repos and languages and leaders need a single quality scorecard; otherwise Super-Linter plus native linters is enough.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Code Linting"},"/garden/code-review":{"content":"Code Review. Is structured peer (or self) inspection of a change before it lands on the mainline.\nSummary What good review looks like: small, focused diffs; clear description; at least one qualified reviewer when possible; all automated checks green; unresolved comments block merge.\nWorkflow: hosts such as GitHub and GitLab implement review via Pull Request / Merge Request; Gerrit uses change-based review with similar gates. The PR is the front door to Continuous Integration: nothing merges until review and CI agree.\nMachine vs human:\nLayer Catches Garden links Automated Style, static bugs, policy, unit tests Code Linting, Conftest, Codacy (assess) Human Architecture, security nuance, operability, product fit This technique Solo developers: still open a PR against main; bots and CI play the second pair of eyes.\nPairs with: Shift Left (find issues before production); DevSecOps (security findings are review backlog, not theater).\nDetails Topic Notes Size Prefer PRs that fit one context switch; split large work Blocking Failed checks, policy denies, or open required threads = no merge Rubber stamps Review for understanding, not checkbox approval Ownership CODEOWNERS or team routing for sensitive paths AI-assisted code Higher bar for human review; never skip automation Terminology: see Pull Request (GitHub PR, GitLab MR). Same practice, different vendor names.\nReferences\nWikipedia: Code review ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Code Review"},"/garden/code-scanner":{"content":"# Code Scanner\nUnder Tool, Code Scanner groups products that analyze source, dependencies, or committed config and report findings (usually on **Pull Request**s or in CI). This is the vendor and runner layer; the practice of enforcing standards is Code Linting (adopt as a Technique).","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Code Scanner"},"/garden/codeship":{"content":"CodeShip. Is a hosted CI service (CloudBees) for building and testing from Git repos.\nBlurb Learn how parallel testing helps DevOps teams boost their testing efficiency and discover the best parallel testing strategies and tools for your organization.\nSummary When to use: sustaining existing CodeShip projects until decommission; short-term bridge during a CI migration plan.\nWhen to skip: any new repository or service; standardize on GitHub Actions, GitLab, or self-hosted Jenkins only when required by policy.\nMigration hint: reproduce codeship.yml steps as Actions workflows or reusable workflows; rotate secrets into GitHub OIDC or org vaults during cutover.","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"CodeShip"},"/garden/codex":{"content":"Codex. Is OpenAI’s agentic coding agent (terminal CLI (Rust), IDE integrations, and cloud tasks) built to read repos, edit files, run commands, and use MCP tools under approval policies.\nSummary Codex runs an agent loop scoped to your codebase: sandboxed execution, configurable approval modes, subagents for parallel work, and support for the Agent Skills Framework SKILL.md format (skills from Agent Skills - Sources often port with minimal changes). It is not the legacy GPT-3 “Codex” completion API, that model family is historical; this note is the 2025+ product (openai/codex on GitHub).\nUse for interactive coding, reviews, and refactors inside a repo. Like Claude Code, it is a bounded AI Agent workspace tool; not an always-on messaging bot (OpenClaw, Hermes are hold for that pattern).\nDetails Install: npm i -g @openai/codex, Homebrew cask, or GitHub release binaries; requires a paid ChatGPT plan or API access per OpenAI docs. Models: GPT-5.x / Codex-tuned models with adjustable reasoning; cloud and local terminal modes per release notes. Safety: sandboxing, network policies, and human-in-the-loop approvals, see OpenAI’s “running Codex safely” guidance for enterprise patterns. Fit: Tool / AI Agent, agent-loop coding tool; compare Claude Code on Anthropic plans. Skills: cross-compatible SKILL.md ecosystem noted in Agent Skills - Sources. ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Codex"},"/garden/codexbar":{"content":"CodexBar. Is a macOS menu-bar app and CLI that surfaces AI coding-provider usage windows, credit balances, reset countdowns, and local token-cost estimates across Codex, Claude, Cursor, Gemini, and many other providers.\nBlurb Show usage stats for OpenAI Codex and Claude Code, without having to login. - steipete/CodexBar\nSummary CodexBar tracks per-provider session, weekly, and monthly usage windows with countdowns to the next reset. It also runs local cost scans from conversation logs (codexbar cost --provider codex, claude, or both) when API billing detail is unavailable. Estimates are API-equivalent, not exact subscription charges.\nUse when you run multiple coding agents and need visibility before starting a long task. The bundled CLI supports scripts and CI on macOS and Linux. Contrast RTK, which compresses shell output before it hits the context window; CodexBar measures spend and limits after the fact.\nDetails Install: brew install --cask steipete/tap/codexbar or GitHub Releases; Sparkle auto-updates on macOS. CLI: codexbar cost analyzes local Claude and Codex history offline; returns session and 30-day token and USD estimates. Providers: Codex, OpenAI, Claude, Cursor, Gemini, Copilot, OpenRouter, LiteLLM proxy, Vertex AI, AWS Bedrock, and others per upstream docs. Caveats: Local cost figures are estimates from published pricing and local logs; flat-rate plans may not match billed amounts. Fit: Tool / AI Agent ops layer for cost discipline and model routing decisions. ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"CodexBar"},"/garden/common-closure-principle":{"content":"Common Closure Principle is a technique we adopt in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Component Cohesion Context CCP is one of three classic component cohesion principles (Robert C. Martin). Siblings are Reuse-Release Equivalence Principle (REP) and Common Reuse Principle (CRP). Teams often trade them off: tight CCP reduces release coupling; tight CRP favors convenience imports.\nPrinciple Gist REP Release components as a unit when reused (Reuse-Release Equivalence Principle) CCP Group classes that change together CRP Group classes reused together (Common Reuse Principle) SRP and OCP at Component Level Class-level principle Component-level counterpart Single Responsibility Principle (one reason to change) CCP (one change driver per component) Open-Closed Principle (closed to unrelated change) CCP splits (unrelated concerns in separate deployables) Practical Signs Signal Likely fix Unrelated teams block on one library version Split by change axis (CCP) Frequent releases touch files that never co-change Move outliers to another package “Kitchen sink” shared module Peel off domains with different owners Common Failure Modes common or utils packages that accumulate every cross-cutting helper Microservices split by technical layer (all SQL in one service) instead of change driver Monorepo packages named by org chart that do not match deploy or change patterns Confusing CCP with “put everything in one repo” (version and release boundaries still matter) Related Garden Items Single Responsibility Principle for class-level one-reason-to-change discipline SOLID Principles for in-component class design after boundaries are drawn Open-Closed Principle for extension without unrelated modification at class level Common Reuse Principle and Reuse-Release Equivalence Principle for the other cohesion principles Acyclic Dependencies Principle, Stable Dependencies Principle, and Stable Abstractions Principle for component coupling Dependency Inversion Principle for stable ports across component seams ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Common Closure Principle"},"/garden/common-reuse-principle":{"content":"Common Reuse Principle is a technique we adopt in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Component Cohesion Context CRP is one of three classic component cohesion principles (Robert C. Martin). Siblings are Reuse-Release Equivalence Principle (REP) and Common Closure Principle (CCP).\nPrinciple Gist REP Release components as a unit when reused (Reuse-Release Equivalence Principle) CCP Group classes that change together (Common Closure Principle) CRP Group classes reused together Martin notes you cannot maximize all three at once. Tight CRP favors smaller, use-aligned bundles. Tight CCP favors independent release by change axis. Pick the pain you are solving.\nISP at Component Level Level Principle Rule Type / interface Interface Segregation Principle Do not depend on methods you do not use Package / module CRP Do not depend on classes you do not use Practical Signs Signal Likely fix Consumer imports one helper from a large common package Split by client use case (CRP) Dependency graph shows disjoint class clusters in one module Extract sub-packages Security or license review flags unused transitive deps Peel unused classes into separate artifacts Every consumer rebuilds when one rarely used class changes Consider Common Closure Principle split instead Common Failure Modes Kitchen-sink utils or common packages everyone depends on Bundling unrelated DTOs because they share a folder Splitting so fine that consumers juggle dozens of tiny modules Optimizing CRP while ignoring divergent change rates (CCP conflict) Related Garden Items Interface Segregation Principle for method-level “depend only on what you use” Common Closure Principle and Reuse-Release Equivalence Principle for the other cohesion principles Acyclic Dependencies Principle, Stable Dependencies Principle, and Stable Abstractions Principle for component coupling Single Responsibility Principle for class-level narrowing before package splits ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Common Reuse Principle"},"/garden/concourse-ci":{"content":"Concourse CI. Is an open source CI system built around pipelines as code, immutable container builds, and the “resources / jobs / tasks” model.\nSummary Model: fly CLI sets pipelines from YAML; workers run steps in containers; resources poll git, S3, and other endpoints for new versions.\nWhen to use: air-gapped or self-hosted CI with strong isolation; teams already running Concourse at scale with dedicated platform engineers.\nWhen to skip: managed SaaS preference; need rich marketplace actions (Actions wins); small teams without ops capacity to run the Concourse cluster.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Concourse CI"},"/garden/conda":{"content":"conda. (Anaconda/Miniconda) manages Python and non-Python binary dependencies in isolated environments.\nSummary What it is: environment.yml, channel-based packages, conda-forge ecosystem, cross-platform binaries.\nWhen to use: ML/data notebooks needing CUDA, BLAS, or scientific stacks that pip alone struggles with.\nWhen to skip: Standard web services on Python with wheels available on PyPI.\nKey features: conda create, exportable env files, mamba faster solver (community).\nDetails Topic Notes Fit Data science laptops, not typical GitHub Actions service CI Contrast pyenv + venv for app dev; Nix for fully declarative hermetic shells References\nconda documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"conda"},"/garden/conftest":{"content":"Conftest. Is a CLI that runs Open Policy Agent (Rego) policies against structured config on disk: Terraform plans, Kubernetes manifests, Helm charts, Tekton, Dockerfile, and more.\nSummary Role: offline policy tests (conftest test, conftest verify) with policies in Rego, results as pass/fail per file. Fits Shift Left and DevSecOps build gates on **Pull Request**s via GitHub Actions (or any CI).\nWhen to use: you already commit IaC and want repeatable compliance rules; OPA ecosystem is acceptable; need one tool across Terraform + K8s + misc YAML.\nWhen to skip: only application source linting (use Code Linting / Codacy); Terraform-only teams may assess Regula instead; simple Kubernetes admission without OPA ops may use native CEL (ValidatingAdmissionPolicy) for narrower rules.\nPairs with: versioned policy/ repo or directory; conftest verify for policy unit tests; admission controllers in-cluster for runtime (Conftest is pre-deploy).\nNot the same as: Codacy (multi-linter SaaS on app repos); cluster admission webhooks (different execution point).\nDetails Topic Notes Inputs Directories of manifests, JSON/YAML, HCL, Dockerfile, etc. Policies Rego under policy/; share bundles with OPA elsewhere CI Fail build on deny; pin Conftest version in workflow Terraform Test planned JSON (terraform show -json) or static .tf per your pipeline Helm Render chart then test output, or test templates with care Learning curve Rego is the cost; invest once for cross-surface rules References\nConftest documentation Open Policy Agent ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Conftest"},"/garden/container-structure-test":{"content":"Container Structure Test. (Google Container Tools) validates built container images before push or deploy: command output, filesystem paths, file contents, and image metadata.\nBlurb validate the structure of your container images. Contribute to GoogleContainerTools/container-structure-test development by creating an account on GitHub.\nSummary Garden stance: We adopt Container Structure Test for our estate.\nKey points:\nTopic Notes Config One or more YAML test files; version schema in project docs CI Fail the job on any test failure; pin the CST binary version Speed Faster than booting a cluster; slower than pure unit tests Scope Image contract only, not runtime policy or network behavior References\ncontainer-structure-test Details Topic Notes Config One or more YAML test files; version schema in project docs CI Fail the job on any test failure; pin the CST binary version Speed Faster than booting a cluster; slower than pure unit tests Scope Image contract only, not runtime policy or network behavior References\ncontainer-structure-test ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Container Structure Test"},"/garden/containerization":{"content":"Containerization packages an application and its dependencies into an immutable OCI image that runs the same way on a laptop, in CI, and in production. We adopt it under Technique in the garden.\nSummary What it is: a Technique (how you ship), not a single vendor product. The Open Container Initiative defines image and runtime specs; builders (docker build, buildah, kaniko) produce images; runtimes (containerd, cri-o, Podman) execute them.\nWhy adopt: reproducible builds, smaller blast radius than VMs, standard CI artifacts, and a straight path to GitOps (image tag is the deploy unit). Software as a Service and Cloud native designs assume containers.\nTooling stance in this garden:\nConcern Direction Format / runtime adopt OCI via Open Container Initiative Local dev runtime Prefer Rancher Desktop (trial) or Podman over commercial Docker Desktop (hold) Orchestration adopt Kubernetes at scale; single-node compose only for local/dev Image tests adopt Container Structure Test after build Dev environments adopt Dev Container for shared toolchain Not the same as: VMs with configuration management only; serverless functions without a container artifact (though many FaaS run OCI under the hood).\nDetails Topic Notes Images Immutable; promote by tag/digest, not mutable servers Config Inject at runtime (env, mounts, secrets stores), not bake secrets into layers Security Non-root users, minimal base images, scan in CI Lift-and-shift Containerizing a VM monolith helps packaging; still refactor for Cattle Not Pets References\nOpen Container Initiative ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Containerization"},"/garden/continuous-delivery":{"content":"Continuous Delivery (CD) means every change that passes Continuous Integration produces a releasable artifact; production deploy is a deliberate, low-risk promotion (button, approval, or automated stage), not an emergency rebuild. We adopt CD for all products; choose Continuous Deployment (assess) only when Software as a Service economics and observability justify shipping every green mainline commit.\nSummary CI vs CD:\nStage Technique Outcome Merge to main Continuous Integration (adopt) Built, tested artifact Releasable always Continuous Delivery (adopt) Artifact in registry/repo; deploy pending Auto to production Continuous Deployment (assess) No human promote step Typical delivery pipeline (after CI):\nBroader testing (system/integration in staging) Artifact signing and provenance (supply chain) Artifact publishing (registry, chart repo, installer blob) Promotion to environments (dev → staging → prod) with gates When delivery (not deployment): on-prem or customer-operated installs, regulated industries, multi-tenant SaaS with scheduled releases, or when rollback/feature control needs a human promote.\nWhen deployment instead: internal Software as a Service with Feature Flags, strong metrics, and automated rollback; see Continuous Deployment.\nTooling: GitHub Actions for build/sign/publish; ArgoCD + GitOps for K8s promote-by-sync; avoid Capistrano-style SSH push for new work.\nDetails Topic Notes Definition of done Main is green and artifact is in the catalog customers could receive Gates Manual approval, change windows, or policy checks on promote Config Environment-specific values outside the image (12-factor) Rollback Redeploy previous artifact tag; keep N-1 ready References\nWikipedia: Continuous delivery ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Continuous Delivery"},"/garden/continuous-deployment":{"content":"Continuous Deployment is a technique we assess in the garden.\nSummary Overview: extends Continuous Delivery: every change that passes Continuous Integration and downstream tests is automatically promoted to production without a manual release button. We rate it assess, not default: adopt Continuous Delivery everywhere; use continuous deployment when Software as a Service shape, observability, and release safety nets are in place.\nTopic Notes Risk Production blast radius is the whole pipeline’s responsibility Quality bar CI + staging must be trusted; flaky tests block all progress Compliance May still need audit trails and approval policies even if deploy is automatic Canary/blue-green Optional layers on top; not a substitute for flags and rollback References\nWikipedia: Continuous deployment## Personal Experience Details Topic Notes Risk Production blast radius is the whole pipeline’s responsibility Quality bar CI + staging must be trusted; flaky tests block all progress Compliance May still need audit trails and approval policies even if deploy is automatic Canary/blue-green Optional layers on top; not a substitute for flags and rollback References\nWikipedia: Continuous deployment ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Continuous Deployment"},"/garden/continuous-integration":{"content":"Continuous Integration (CI) means every change merged to the mainline is built and verified automatically before it becomes everyone else’s baseline. We adopt CI for all products: small batches, fast feedback on **Pull Request**s, and a green main that feeds Continuous Delivery (and optionally Continuous Deployment).\nSummary What CI owns (stop here vs CD):\nStage Technique Outcome PR + merge to main Continuous Integration (adopt) Compile/build, Unit Testing, lint, fast integration tests Releasable artifact Continuous Delivery (adopt) Signed/published artifact; promote with gates Auto to production Continuous Deployment (assess) No human promote Typical CI pipeline on every PR and on main after merge:\nCheckout and dependency restore (cached) Build (compile, bundle, image build if applicable) Code Linting and static checks (Shift Left) Unit tests and targeted integration tests (containers or test env as needed) Security/policy scans on the PR path (DevSecOps, Policy as Code where IaC changes) Code Review with required status checks before merge Practices we expect:\nTrunk-based flow: short-lived branches; merge at least daily Fix forward: broken main is priority zero; revert if fix is not minutes away Same commands locally and in CI (make test, npm test, etc.) Required checks on protected main; no bypass without explicit process Tooling: GitHub Actions (adopt) for repos on GitHub; avoid new Jenkins (hold) pet servers. See CI-CD Tools for the product bucket vs these technique notes.\nAfter CI succeeds: hand off artifacts to delivery (registry, chart repo, installer) per Continuous Delivery. Deploy controllers (ArgoCD) run downstream of the build, not instead of it.\nDetails Topic Notes Scope CI proves the change integrates; it does not replace staging/system tests in CD Speed PR feedback under ~15 minutes for core paths; split slow suites Flakes Quarantine or fix; do not mute checks Monorepo Path filters so unrelated packages do not block the world Forks pull_request vs pull_request_target carefully; least privilege for untrusted code References\nWikipedia: Continuous integration ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Continuous Integration"},"/garden/crossplane":{"content":"Crossplane is the cloud-native framework for platform engineering. We trial it under Platform in the garden because it shows strong fit for internal developer platforms built on Kubernetes.\nBlurb Crossplane Is the Cloud-Native Framework for Platform Engineering\nSummary What it does: Crossplane extends Kubernetes to orchestrate any resource, not just containers. It builds control planes that expose declarative APIs backed by Providers and Configurations, letting platform teams compose infrastructure without bespoke controllers.\nWhen to use: platform teams building an internal developer platform (IDP) that needs custom APIs with guardrails. Also cloud-native shops already running Kubernetes who want GitOps-friendly infrastructure. Also teams wanting to expose APIs that humans, automation, and AI agents can self-serve on.\nWhen to skip: small footprint workloads where Terraform or direct cloud CLI is enough. Also teams without Kubernetes who do not want the operational cost of running a control plane. Also single-cloud shops needing only classic IaC with no custom API layer.\nEcosystem notes: Crossplane is an open source CNCF project built and commercially sponsored by Upbound. It overlaps with Kubernetes Resource Orchestrator (KRO) for composition of Kubernetes resources into higher-level APIs.\nDetails Core concepts: Providers connect Crossplane to external services (cloud, DNS, database); Configurations bundle Providers and Compositions into installable packages; Compositions define how a Composite Resource (XR) maps to managed resources.\nV2: Crossplane v2 shifts focus from infrastructure-only to control planes for applications, with new APIs for grouping of resources.\nPromotion criteria: adopt only after a production workload shows real value over Terraform plus scripts. Pair with GitOps (ArgoCD) when Compositions and Claims live in repo.\nDocs: docs.crossplane.io, github.com/crossplane/crossplane, why control planes.","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-08-14T00:00:00-04:00","tags":null,"title":"Crossplane"},"/garden/csv":{"content":"CSV (Comma-Separated Values) is the common text format for exchanging tabular data between spreadsheets and systems. We adopt it for small-to-medium interchange where humans may open the file.\nBlurb This RFC documents the format used for Comma-Separated Values (CSV) files and registers the associated MIME type “text/csv”.\nSummary What it is: Line-oriented records with comma-separated fields; optional header row; quoting rules for commas, quotes, and newlines. Documented in RFC 4180 as MIME type text/csv. Implementations still vary; be liberal in what you accept.\nWhen to use:\nSituation Notes Human-editable dumps Spreadsheet round-trips, one-off exports Small tables Config lists, seed data, report attachments Lowest common denominator Partners who cannot take Parquet When to skip:\nLarge analytic tables (Parquet) Nested or typed structures (JSON, Arrow) Strict schemas and evolution (table formats / databases) Trade-offs: Universal and simple; ambiguous dialects, weak typing, and poor compression at scale.\nDetails Practical Notes Topic Notes Spec RFC 4180 (informational); RFC 7111 updates MIME text/csv with optional header parameter Engines DuckDB and most warehouses read CSV directly References RFC 4180 ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"CSV"},"/garden/cue":{"content":"CUE is a constraint-based language for validating, unifying, and generating structured data (JSON, YAML, TOML, and more). We assess it when JSON Schema and OpenAPI are not enough, but we do not default to it for new work.\nBlurb CUE makes it easy to validate data, write schemas, and ensure configurations align with policies.\nSummary What it is: Configure, Unify, Execute. CUE merges schemas through unification, validates with cue vet, and exports to JSON Schema, OpenAPI, and Kubernetes CRD shapes. Influenced by Google’s internal GCL/BCL lineage (see Details).\nWhen to use:\nSituation Notes Cross-format validation One schema for JSON, YAML, and CUE inputs in CI Policy patches Separate base schema from version-specific constraints; CUE merges and reports conflicts Kubernetes CRDs Generate structural OpenAPI from concise CUE definitions Go or Protobuf drift cue import from GoLang or Protobuf types When to skip:\nStandard API or config validation (JSON Schema adopt is the default) Teams without appetite for another config language Estates already standardized on HCL, YAML templates, or Conftest + Rego Greenfield work where schema tooling is not the bottleneck Trade-offs: Powerful but niche. Another standards-layer risk (XKCD 927). Smaller ecosystem than JSON Schema. Worth studying even when you do not adopt, because it demonstrates how constraint unification can replace verbose schema boilerplate.\nDetails Core Commands Command Role cue vet Validate data files against CUE schemas cue export Emit JSON, YAML, or other targets from unified values cue import Pull types from Go, JSON Schema, OpenAPI, Protobuf cue fmt Format CUE sources Schemas and policies can live in separate .cue files. CUE unifies them before validation.\nCompared to JSON Schema Topic CUE JSON Schema Verbosity Concise constraints, unification Verbose for complex cross-field rules Ecosystem Growing; Kubernetes and OpenAPI bridges Adopt everywhere in our pipelines Learning curve New language semantics Familiar to most platform engineers Garden stance assess adopt GCL Lineage CUE draws from Google’s internal General Config Language (GCL) and related BCL work. Even if you never deploy CUE, reading the design explains how Google-style config unification differs from template sprawl. Public background: General Config Language paper (PDF).\nReferences CUE documentation Language specification GitHub: cue-lang/cue ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"CUE"},"/garden/cursor":{"content":"Cursor. Is a VS Code-based IDE with built-in AI: Tab completion, inline edit (Cmd+K), agent panel, and cloud agents.\nBlurb Built to make you extraordinarily productive, Cursor is the best AI coding agent.\nSummary Cursor forks the VS Code experience and layers codebase indexing, model picker, rules, and .cursor/skills/ on top. You can dial autonomy from Tab suggestions through targeted edits to full agent runs in the editor or via cursor-agent in the shell.\nChoose Cursor when you want a single vendor for GUI + CLI agents. You get bring-your-own-model flexibility within their catalog and VS Code-compatible extensions without juggling separate CLIs per provider. It is an editor platform under IDE. The agent runtime in the terminal is cursor-agent under AI Agent.\nDetails Install: https://cursor.com/download (macOS, Windows, Linux); familiar VS Code layout and keybindings. Auth: Cursor Pro / Business / Enterprise subscription for models and agent features. Models: switch per task in the agent UI; Composer family plus major third-party models. Features: Tab model, inline edit, cloud agents, PR review (Bugbot), Slack/GitHub integrations per product docs. Skills: .cursor/rules and .cursor/skills/; portable SKILL.md repos in Agent Skills - Sources. Company: Anysphere Fit: Tool / IDE, primary editor distribution (not the headless agent binary). Contrast: Claude Code, Codex, OpenCode when you want a non-Cursor agent hub; cursor-agent for the same stack in terminal/automation. ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Cursor"},"/garden/cursor-agent":{"content":"cursor-agent. Is Cursor’s terminal agent, TUI/CLI for running the same Cursor Agent in your shell, scripts, GitHub Actions, and headless automations, with frontier models and MCP.\nBlurb Built to help you ship, right from your terminal. Same commands, any environment.\nSummary Garden stance: We adopt cursor-agent for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Install: curl https://cursor.com/install -fsS | bash (see Cursor CLI docs for npm and platform packages). Auth: Cursor subscription / team plan; CLI shares model access with the Cursor product. Models: Composer, Claude, GPT, Gemini, Grok, and other frontier models exposed in the CLI picker. Automation: headless mode and GitHub Actions integrations for doc updates, reviews, and custom agents. Skills: .cursor/skills/ and rules; cross-reference Agent Skills - Sources for portable SKILL.md repos. Fit: Tool / AI Agent, Cursor’s agent runtime in the terminal (Cursor is the editor under IDE). Contrast: vendor-specific CLIs when not on Cursor; OpenCode for multi-provider open source. ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"cursor-agent"},"/garden/cursor-keep-alive":{"content":"Cursor keep-alive is an HTTP API pattern for incremental results from long-running work (for example, a streaming RAG query) when you cannot rely on an open WebSocket. We assess it under Technique in the garden.\nSummary Key points:\nTopic Notes Storage Hot state in Redis; durable audit log optional Idempotency Same cursor + offset returns same chunk Backpressure Client polls with If-None-Match or since offset Errors Surface terminal error on poll; do not leave cursors orphaned Security Opaque, unguessable IDs; no cross-tenant cursor reuse Origin in our writing: described for RAG query APIs in RAG Pipeline (embedding CRUD vs streaming query split).\nReferences\nRAG Pipeline (blog)## Personal Experience Details Topic Notes Storage Hot state in Redis; durable audit log optional Idempotency Same cursor + offset returns same chunk Backpressure Client polls with If-None-Match or since offset Errors Surface terminal error on poll; do not leave cursors orphaned Security Opaque, unguessable IDs; no cross-tenant cursor reuse Origin in our writing: described for RAG query APIs in RAG Pipeline (embedding CRUD vs streaming query split).\nReferences\nRAG Pipeline (blog) ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Cursor Keep Alive"},"/garden/cypress":{"content":"Cypress. Is a JavaScript end-to-end and component testing framework that runs tests inside the browser with a dedicated runner UI, time-travel debugging, and network stubbing.\nSummary What it is: Open source test runner (cypress run, cypress open) plus optional Cypress Cloud for parallelization, recording, and analytics. Strong DX for front-end teams already on JavaScript.\nWhen to use: brownfield repos with a large Cypress investment and no cross-browser gap; component testing workflows already wired to Cypress; teams that rely on Cypress Cloud dashboards and flake detection.\nWhen to skip: greenfield web E2E (use Playwright); need first-class Firefox/WebKit in one project; multi-tab or multi-origin flows that fight Cypress’ in-browser architecture.\nKey capabilities: automatic waiting, screenshot/video capture, cy.intercept network control, component testing for React/Vue/Angular, GitHub Action and GitHub Actions CI recipes.\nDetails Topic Notes Install npm install cypress --save-dev; npx cypress open for interactive runner Run npx cypress run headless in CI Config cypress.config.js or .ts; baseUrl, viewport, retries Cloud Optional paid service for parallel runs and test replay Versus Playwright: Cypress historically optimized Chromium-first in-browser runs; Playwright targets all major engines with a single API and ships tracing for CI. Prefer Playwright for new Test Pyramid E2E layers.\nMigration path: run both frameworks in parallel on a slice of critical paths; port specs file-by-file; drop Cypress when Playwright coverage and CI time match or beat the old suite.\nReferences\nCypress documentation GitHub repository ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Cypress"},"/garden/dagster":{"content":"Dagster is an asset-centric data orchestration platform that tracks lineage, quality signals, and dependencies for every data asset. We assess it as an alternative to task-centric schedulers like Airflow.\nBlurb Dagster is the operational layer that structures how data is built, observed, and delivered, so both teams and AI agents can rely on it.\nSummary Asset-centric model: pipelines are defined by the data assets they produce, not sequences of tasks. First-class integrations with dbt, Snowflake, and Fivetran; open source core with a managed Dagster+ tier. Strong fit for teams that care about lineage, freshness, and blast-radius analysis before failures reach downstream consumers. Acquisition: dagster.io now states that Dagster is part of Prefect, so the deal is no longer pending. Evaluate roadmap and support implications before adopting; this may affect the long-term independence of the platform. Consider When Use Asset-heavy stacks (dbt + warehouse) needing lineage and observability built in Skip Simple cron-style job scheduling with no data-model needs Dagster is complementary to Databricks, not a competitor: Databricks is where data lives and gets computed, while Dagster orchestrates the pipelines that produce it. Databricks ships its own scheduler (Lakeflow/Jobs) for work inside its platform. Dagster is chosen when you want one orchestration view across Databricks plus dbt, Snowflake, and external systems; if everything lives in one platform, native tooling may suffice.\nDetails Open source core: https://github.com/dagster-io/dagster Docs: https://docs.dagster.io/ Learning: Dagster University (https://courses.dagster.io/) Comparison pages: vs Airflow, vs dbt Cloud, vs Azure Data Factory, vs AWS Step Functions (on dagster.io) ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-10-19T00:00:00-04:00","tags":null,"title":"Dagster"},"/garden/dagu":{"content":"Dagu. `A lightweight workflow orchestrator that runs shell-based DAGs via a single binary and YAML definitions , worth assessing as a lower-ops alternative to Airflow or Argo for teams t We assess it under Platform in the garden.\nBlurb Local-first workflow engine with a Web UI for small teams. Define DAGs in a declarative YAML format. Self-contained and no DBMS required. Use any AI agent to manage your DAGs. - dagucloud/dagu\nSummary Dagu positions itself as a simpler, self-contained alternative to heavier orchestrators like Apache Airflow or Argo Workflows. Key traits:\nSingle binary; no database required; state is stored on disk YAML-defined DAGs; each step can be a shell command, sub-DAG, or HTTP call Built-in web UI; visualize DAG structure, execution history, and logs Cron scheduling; native support without an external scheduler Low ops overhead; runs on a single VM or container without Kubernetes Best suited for teams running DevSecOps pipelines, data engineering tasks, or automation workflows at modest scale who want Airflow-style DAG semantics without the infrastructure burden.\nDetails History ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Dagu"},"/garden/dashboarding":{"content":"Under Tool, Dashboarding groups products that visualize queried data in shareable dashboards. This is the BI and observability UI layer, not the warehouse, ETL, metrics pipeline, or polling/alerting platform underneath. For the latter, see Monitoring.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Dashboarding"},"/garden/data-access-object":{"content":"Data Access Object. Is a Design Pattern that hides persistence behind an interface so domain code does not depend on SQL or driver details.\nSummary Garden stance: We assess Data Access Object for our estate.\nKey points:\nTopic Notes Typical API findById, save, delete, list/query methods scoped to one aggregate or table group Implementation Raw SQL + driver, query builder, or ORM session hidden inside the DAO class Testing Swap DAO for in-memory or fake implementation; keep domain tests free of a live DB when possible Migrations DDL lives in Sqitch (or Flyway-style tools), not scattered in DAO methods Backends Backend DAO hides Database SQL, parameters, connection handling, row mapping Filesystem Paths, directories, open/read/write, permissions Remote service HTTP/gRPC clients, retries, auth, response parsing; same-host daemons via IPC Serialized state JSON, protobuf, or other encode/decode at the boundary Swap backends by replacing the DAO implementation while keeping the interface stable. Domain services should not branch on storage type.\nCommon Shapes Style Scope Trade-off One DAO per table Thin CRUD around a single table Simple; joins may leak into services One DAO per aggregate Root entity plus related rows Clearer domain boundary; more custom SQL Generic DAO Reusable CRUD base class Fast start; tends toward anemic queries Failure Modes DAO becomes a dumping ground for every query in the system Interface mirrors the database schema one-to-one while the domain model diverges “DAO” label on top of a full ORM with no real abstraction boundary Missing transaction boundaries when multiple DAO calls must commit together Serialization logic scattered in services instead of centralized in the DAO Related Garden Items ORM for full object-graph mapping vs explicit DAO SQL Sqitch for versioned deploy, revert, and verify scripts Object-Oriented Programming for how services compose with persistence ports Dependency Inversion Principle when domain code depends on DAO interfaces, not drivers Details Topic Notes Typical API findById, save, delete, list/query methods scoped to one aggregate or table group Implementation Raw SQL + driver, query builder, or ORM session hidden inside the DAO class Testing Swap DAO for in-memory or fake implementation; keep domain tests free of a live DB when possible Migrations DDL lives in Sqitch (or Flyway-style tools), not scattered in DAO methods Backends Backend DAO hides Database SQL, parameters, connection handling, row mapping Filesystem Paths, directories, open/read/write, permissions Remote service HTTP/gRPC clients, retries, auth, response parsing; same-host daemons via IPC Serialized state JSON, protobuf, or other encode/decode at the boundary Swap backends by replacing the DAO implementation while keeping the interface stable. Domain services should not branch on storage type.\nCommon Shapes Style Scope Trade-off One DAO per table Thin CRUD around a single table Simple; joins may leak into services One DAO per aggregate Root entity plus related rows Clearer domain boundary; more custom SQL Generic DAO Reusable CRUD base class Fast start; tends toward anemic queries Failure Modes DAO becomes a dumping ground for every query in the system Interface mirrors the database schema one-to-one while the domain model diverges “DAO” label on top of a full ORM with no real abstraction boundary Missing transaction boundaries when multiple DAO calls must commit together Serialization logic scattered in services instead of centralized in the DAO Related Garden Items ORM for full object-graph mapping vs explicit DAO SQL Sqitch for versioned deploy, revert, and verify scripts Object-Oriented Programming for how services compose with persistence ports Dependency Inversion Principle when domain code depends on DAO interfaces, not drivers ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Data Access Object"},"/garden/datadog":{"content":"Datadog is a SaaS observability and security platform for metrics, logs, traces, RUM, and security signals in one vendor UI. We trial it for multi-cloud and hybrid estates when native AWS or Azure monitoring falls short.\nBlurb Datadog is the leading observability and security platform for the AI era, providing businesses with unified visibility across the technology stack to manage complexity at scale.\nSummary What it is: Agents and API ingest for infrastructure, APM, logs, synthetics, GPU monitoring, and dashboards with alerting and incident workflows. Bits AI agents investigate and remediate inside the same console.\nWhen to use:\nSituation Notes Multi-cloud or hybrid One pane across clouds beats stitching native consoles AWS or Azure estates Native monitoring is often too thin for serious ops Forced vendor consolidation Marketplace integrations and FedRAMP-ready SaaS When to skip:\nFully on GCP, where the native stack is usually good enough Hard data-sovereignty rules that block SaaS ingest Trade-offs: Fast time-to-value and broad product surface; pricing expands with products and volume. Homegrown Grafana + Loki + Prometheus + OpenTelemetry stacks rarely stay cheaper. Budget pressure often strips them until they stop working.\nDetails Topic Notes Fit Monitoring SaaS with strong Dashboarding UI; not a warehouse BI tool Cloud natives Prefer GCP native when GCP-only; choose Datadog for AWS, Azure, multi-cloud, or hybrid DIY OSS Grafana / Loki / Prometheus / OpenTelemetry look cheaper on paper; underfunded builds usually fail Contrast Splunk for log-centric SIEM; Honeycomb for high-cardinality events AI surface Bits AI agents, MCP Server for IDE/agent access, GPU Monitoring References\nDatadog documentation Investor relations ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Datadog"},"/garden/daybreak":{"content":"Daybreak. Is OpenAI’s frontier-AI offering for cyber defenders: secure code review, vulnerability triage, threat modeling, patch generation and validation, dependency risk analysis, and remediation guidance.\nSummary Daybreak is OpenAI’s vision to embed defensive AI in the software lifecycle: find vulnerabilities earlier, validate fixes with audit-ready evidence, and pair expanded model capability with trust, verification, and proportional safeguards. It targets high-impact issues (not noise), offers scoped repository access for patch workflows, and enables integration back into existing security systems.\nAccess is tiered. General GPT-5.5 covers everyday work. GPT-5.5 with Trusted Access for Cyber covers verified defensive workflows (secure code review, malware analysis, detection engineering). Preview GPT-5.5-Cyber targets specialized authorized red-team and penetration-testing validation. Launch partners cited on the Daybreak page include Cloudflare. CTO Dane Knecht endorsed the effort publicly. OpenAI is iterating deployment with industry and government partners.\nDetails Relationship to Codex: Daybreak deploys cyber intelligence inside Codex Security; the coding agent product (Codex) is the harness for repo-scoped review and remediation loops. Workflows: vulnerability scans, secure code review, patch generation/testing in authorized repos, dependency analysis, detection guidance. Fit: Tool / Code Scanner (analysis and findings) + AI Agent (agentic remediation via Codex). Contrast: Conftest (trial) for deterministic Rego on IaC; Codacy (assess) for multi-repo quality dashboards; Daybreak adds frontier-model reasoning and agentic patch loops under OpenAI governance (broader cyber workflows, non-deterministic). Entry points: request a vulnerability scan or contact sales per openai.com/daybreak. ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Daybreak"},"/garden/dbt-core":{"content":"dbt-core. Is the open-source CLI that transforms data in the warehouse: versioned SQL models, tests, docs, and a DAG executed with dbt build.\nSummary Garden stance: We trial dbt-core for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Project layout The project is the unit of work. It must include dbt_project.yml (model paths, profiles, vars). Main artifact types:\nArtifact Purpose Models Transforms; nodes in the execution DAG Snapshots SCD-style history for mutable sources Seeds CSV loads into the warehouse Tests Data quality on models and sources Macros Reusable Jinja/SQL Sources Upstream tables loaded by other tools Exposures Downstream consumers of the project Analyses Ad hoc SQL (not materialized on run) (Semantic models, metrics, and saved queries apply when using the metrics layer; see current dbt docs for your version.)\nCLI reference (common) build: run DAG in order (models, tests, seeds, snapshots as configured) run: execute models only test: run tests (usually after run) compile: render SQL without executing deps: install package dependencies debug: connection and profile diagnostics freshness: source freshness checks snapshot / seed: run those node types Incremental models on existing tables When a table is owned elsewhere but dbt should merge new rows:\nModel name matches the table (case-sensitive per adapter) materialized='incremental' unique_key set for merge/upsert incremental_strategy (append or merge per adapter) Use is_incremental() and {{ this }} for watermark logic 1 2 3 {% if is_incremental() %} AND created_at > (SELECT COALESCE(MAX(scan_timestamp), '1970-01-01'::timestamp) FROM {{ this }}) {% endif %} See Incremental models.\nReferences\ndbt documentation dbt-core on GitHub ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"dbt-core"},"/garden/deathbyclaude":{"content":"DeathByClaude is a tool we trial in the garden.\nSummary What it is: A public web app where you enter a company domain and get a death score (0-100), a rating band, a one-liner roast, and a mock SKILL.md replacement. The site frames the SaaSpocalypse: AI agents lowering the bar to replicate UI-wrapper SaaS.\nWhen to use: early gbrain company profiles when you want a memorable disruption snapshot; brainstorming moat strength before deeper research; sharing a concrete “could this be a skill?” prompt with stakeholders.\nWhen to skip: investment, acquisition, or compliance decisions that need audited evidence; companies where the scanner lacks context (hardware, regulated infra, frontier labs); replacing product teardown or financial analysis.\nNot the same as: rigorous competitive intelligence; Agent Skills Framework itself (the portable skill format); Netlify (only the host). The scanner is commentary with an API, not a neutral data vendor.\nDetails Topic Notes URL https://deathbyclawd.com/ (?url=<domain> pre-fills the scanner) Hosting Runs on Netlify; serverless analyze endpoint at /.netlify/functions/analyze Score scale 0 = most AI-resistant, 100 = most at risk; bands include SAFE, SWEATING, CRITICAL, Flatlining, ALREADY DEAD Outputs deathScore, deathRating, oneLiner, causeOfDeath, optional skillMdFile, metrics, eulogy API (programmatic scan):\n1 2 3 curl -sL -X POST \"https://deathbyclawd.com/.netlify/functions/analyze\" \\ -H \"Content-Type: application/json\" \\ -d '{\"url\":\"<domain>\"}' Pass the bare domain (e.g. sola.security), not a full URL. The company-research skill uses this endpoint when building resources/companies/ profiles.\nHow to read results: Low scores often reflect physical goods, deep enterprise lock-in, or infra Claude cannot trivially replicate. High scores target form builders, dashboards, and thin AI wrappers. The humor is the point, but the underlying question (is the moat more than UI?) is worth asking in every SaaS eval.\nReferences\nDeath by Clawd Agent Skills Framework (the .md skill model the site riffs on) ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"DeathByClaude"},"/garden/declarative-iac":{"content":"Declarative IaC. Describes desired end state in versioned files; a planner/reconciler (Terraform, the Kubernetes API, GitOps controllers) computes and applies the diff.\nSummary Declarative vs imperative (IaC):\nStyle Artifact Garden stance Declarative IaC Desired state (HCL, YAML, JSON) adopt Imperative IaC Programs that emit or call APIs hold Why adopt: reviewers see what should exist; engines handle ordering and drift detection. Pairs with GitOps (PR-driven apply), Policy as Code (lint before merge), and Shift Left / DevSecOps.\nCommon tools (declarative lane):\nSurface Examples Cloud accounts Terraform / OpenTofu (HCL) Kubernetes manifests, Helm charts (YAML) Cluster delivery ArgoCD reconciles Git desired state Host config (when needed) Ansible playbooks (prefer images + declarative cloud where possible) DRY without going imperative: modules, variables, for_each, Helm subcharts, and policy bundles. Repetition is a design smell, not a reason to generate IaC from TypeScript.\nWhen imperative is still OK: application code, one-off scripts, and glue. The garden hold is scoped to infrastructure generators, not all programming.\nDetails Topic Notes Reconciliation Plan/apply or controller loop; fix drift instead of documenting it Blast radius Declarative plans show resource graph changes; imperative generators hide side effects State Remote state (Terraform) or etcd (K8s); back up and lock Secrets Never in Git; use secret managers and external data sources Legacy import terraformer and similar can bootstrap; then refactor into modules References\nWikipedia: Infrastructure as code ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Declarative IaC"},"/garden/declarative-programming":{"content":"Declarative Programming. Describes what outcome you want, not the step-by-step procedure to get there.\nSummary Contrast declarative with imperative code that sequences mutations (for, if, imperative loops). Declarative forms include SQL (SELECT …), configuration and policy specs, functional pipelines, and desired-state manifests. The trade-off: less control flow in the artifact, more work for the engine to plan and apply changes safely.\nIn this garden, the headline application is Declarative IaC (Terraform, Kubernetes manifests, Helm Chart templates, HCL, much YAML). Imperative IaC and generator-heavy CDKs (CDKs, Pulumi) are hold here, convenient early, painful to reason about at scale. That is a scope choice for infrastructure, not a claim that imperative languages are wrong everywhere (application code, one-off scripts, and glue still use imperative style freely).\nDetails Reconciliation: desired state + diff/apply beats “run these 47 API calls in order” for production systems. Readability: reviewers see end-state; fewer hidden side effects than procedural generators. Limits: repetition without modules/macros; complex conditionals can be harder than a small program. Use tool-native abstraction (Terraform modules, Helm subcharts) instead of abandoning declarative form. Fit: Technique item, general paradigm; see Declarative IaC for IaC-specific guidance and Imperative IaC for the anti-pattern we avoid in infra. ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Declarative Programming"},"/garden/dependency-inversion-principle":{"content":"Dependency Inversion Principle is a technique we adopt in the garden.\nSummary What it is: A coupling rule. Callers and callees meet at interfaces (or abstract types), not at concrete classes. The domain layer defines the ports it needs; infrastructure adapters implement them.\nWhy it matters: Without inversion, a service imports a specific database driver, HTTP client, or SDK. Every test drags real IO. Every vendor swap rewrites business code. DIP pushes volatile details behind stable abstractions.\nWhen to use: Service boundaries, repository layers, plugin systems, and any code you want to unit test without containers or cloud APIs. Natural fit with Object-Oriented Programming and Design Pattern choices like Strategy and Adapter.\nWhen to pull back: Scripts, one-off CLIs, and throwaway prototypes where a single concrete dependency is fine. Do not add interface layers before a second implementation or a test seam is real.\nNot the same as dependency injection: Injection is how you supply implementations at runtime (constructor args, DI containers). DIP is why you introduce the abstraction in the first place.\nDetails Rules in Practice Rule Practice Depend on abstractions Domain code imports interfaces, not PostgresClient or S3Bucket Details depend inward Infrastructure projects reference domain ports, not the reverse Stable abstractions Port shapes change rarely; adapters absorb vendor churn Common Failure Modes Leaky abstractions that mirror one vendor’s API one-to-one Interface-per-class ceremony with only one implementation ever “Inversion” that still lets frameworks own the domain model Confusing DIP with a DI framework requirement Testing and Delivery Unit Testing gets easier when collaborators are interfaces you can fake or stub Keep composition roots (main, wiring modules) as the only place that picks concrete types In Go, small interfaces defined by the consumer are idiomatic DIP without inheritance Related Garden Items Single Responsibility Principle for narrowing what each module owns Interface Segregation Principle for keeping ports small enough to implement cleanly Object-Oriented Programming for the paradigm DIP most often supports Design Pattern for Adapter, Strategy, and similar structural choices after ports are clear ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Dependency Inversion Principle"},"/garden/design-pattern":{"content":"Under Technique, Design Pattern groups named, reusable solutions to recurring problems in code structure and collaboration (usually at class/module granularity). Patterns are vocabulary for review and design, not a checklist to apply everywhere.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Design Pattern"},"/garden/dev-container":{"content":"Dev Container. (devcontainer.json + image) define a reproducible dev environment in OCI: toolchain, extensions, and settings live in the repo instead of on each laptop.\nBlurb Development containers documentation and specification page.\nSummary Garden stance: We adopt Dev Container for our estate.\nKey points:\nTopic Notes Secrets Use env files or secret mounts; never bake credentials into the image Performance Mount workspace with delegated volumes on macOS; cache package dirs CI Build/test inside the same Dockerfile in GitHub Actions Agents Cursor / cursor-agent run inside the container when the editor attaches IaC link Treat the dev image like Declarative IaC for the toolchain References\nDevelopment Containers Specification Details Topic Notes Secrets Use env files or secret mounts; never bake credentials into the image Performance Mount workspace with delegated volumes on macOS; cache package dirs CI Build/test inside the same Dockerfile in GitHub Actions Agents Cursor / cursor-agent run inside the container when the editor attaches IaC link Treat the dev image like Declarative IaC for the toolchain References\nDevelopment Containers Specification ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Dev Container"},"/garden/devops":{"content":"DevOps. Is a culture and practice that breaks the wall between development and operations: ship small changes often, automate the path to production, and measure outcomes.\nSummary What it means in practice:\nTheme Garden expression Flow Continuous Integration + Continuous Delivery on every merge Automation CI-CD Tools (GitHub Actions, ArgoCD); Declarative IaC Collaboration Pull Request + Code Review; ops in design, dev on-call Feedback Metrics, logs, postmortems; Cattle Not Pets Improvement Blameless retros; shrink batch size Plan → code → build → test → release → deploy → operate → monitor maps to concrete gates: lint/tests on the PR, signed artifacts, promoted deploys, observability in prod.\nShift Left is how we describe moving quality, security, and ops checks earlier (same PR, same pipeline).\nGitOps is our preferred apply model: Git is the source of truth; merge triggers reconcile (infra and cluster).\nSecurity: DevSecOps (trial) extends DevOps with measurable security work in each stage, not a separate waterfall audit.\nNot the same as: buying a “DevOps platform” SKU; a dedicated ops team that only runs tickets; or Jenkins/CloudBees (hold) as the whole strategy.\nDetails Topic Notes Culture Shared ownership of running software; no “throw over the wall” Batch size Trunk-based flow; feature flags over long-lived branches Legacy Automate incrementally; do not wait for perfect greenfield Metrics Lead time, deploy frequency, MTTR, change failure rate (DORA) On-call Dev participates in production feedback loops References\nWikipedia: DevOps ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"DevOps"},"/garden/devsecops":{"content":"DevSecOps. Can be thought of as DevOps with a security focus at every step.\nBlurb devsecops.org is an informational site for security and business practitioners looking for innovative ways to incorporate security at scale.\nSummary Garden stance: We trial DevSecOps for our estate.\nOverview: Accept that security is an arms race against bad actors that have more time and more resources than you. Instead of throwing in the towel, or making it someone else’s problem, DevSecOps is about realizing it is a risk. A risk that can be measured and acted upon in the existing Agile or DevOps process you are already following.\nDetail 1: If you already practice DevOps and need a process to handle security concerns then DevSecOps is something to try.\nDetail 2: Map security work to the same delivery stages you already use: plan (threat modeling, requirements), build (SAST, dependency scan), test (DAST, fuzzing), release (signing, policy gates), deploy (hardening, secrets), operate (monitoring, IR), and improve (postmortems, control updates).\nDetails Manifesto Taking a page out of the Agile Manifesto, DevSecOps has the following manifesto:\nLeaning in over Always Saying “No” Data & Security Science over Fear, Uncertainty and Doubt Open Contribution & Collaboration over Security-Only Requirements Consumable Security Services with APIs over Mandated Security Controls & Paperwork Business Driven Security Scores over Rubber Stamp Security Red & Blue Team Exploit Testing over Relying on Scans & Theoretical Vulnerabilities 24x7 Proactive Security Monitoring over Reacting after being Informed of an Incident Shared Threat Intelligence over Keeping Info to Ourselves Compliance Operations over Clipboards & Checklists ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"DevSecOps"},"/garden/diagramming":{"content":"Under Tool, Diagramming groups products and formats for visual models of software: architecture, flows, sequences, ER diagrams, and deployment sketches. Prefer diagrams that live in Git (text or structured XML) over screenshots that rot.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Diagramming"},"/garden/direnv":{"content":"direnv. Loads and unloads per-directory environment variables when you cd into a project (via a hook in bash/zsh/fish).\nBlurb unclutter your .profile\nSummary What it does: reads .envrc in the project root (bash-like DSL), exports vars for that directory tree, reverts when you leave. Common patterns:\ndotenv / dotenv_if_exists: load .env (keep .env gitignored, commit .envrc) layout python, layout go: wire language version managers use nix, use flake: enter Nix dev shells on cd When to assess / adopt locally:\nMany repos on the laptop with different PATH, API keys, or tool versions cursor-agent / CLI agents that expect .env loaded automatically (see vault agent-skills README) Polyglot monorepos where each subdirectory needs its own env When to skip:\nPrimary dev is Dev Container or remote environments (env is in the image) Team policy forbids shell hooks on corporate laptops You only need one global profile (use shell profile or a single version manager instead) Security: run direnv allow only after reviewing .envrc; treat untrusted clones like arbitrary shell scripts.\nDetails Topic Notes Install Package + direnv hook zsh (or bash) in ~/.zshrc CI Do not rely on direnv in GitHub Actions; set env in workflow explicitly Secrets .envrc can reference .env; never commit secrets Pairing Fits Environment Managers bucket alongside version managers, not a replacement References\ndirenv documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"direnv"},"/garden/dive":{"content":"Dive. Is a terminal UI for exploring OCI/Docker image layers: file tree per layer, layer size, and an efficiency score to spot bloat.\nBlurb A tool for exploring each layer in a docker image. Contribute to wagoodman/dive development by creating an account on GitHub.\nSummary Role: developer feedback loop after docker build (or Podman): see which layers added weight, which files duplicate across layers, and what to move to multi-stage builds or .dockerignore.\nWhen to use:\nDebugging fat images before production Teaching Containerization (layer caching, multi-stage Dockerfiles) Quick review of third-party base images When to skip:\nHeadless CI-only pipelines (use dive ci only if you accept its efficiency threshold; many teams prefer CST + vulnerability scan) Teams on Dev Container only who never inspect host-built images Workflow:\n1 2 dive myimage:tag # interactive TUI dive ci --ci-config .dive-ci myimage:tag # optional CI gate Works with the docker CLI; often used with Docker / Rancher Desktop local engines. Image must be available locally (docker load if from CI artifact).\nDetails Topic Notes Efficiency score Heuristic; use as a hint, not a policy Multi-stage Dive shines when comparing builder vs runtime stages Security Layer exploration is not vulnerability scanning Complements Container Structure Test asserts image contract; Dive explores why the image is large References\ndive on GitHub ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Dive"},"/garden/docker":{"content":"Docker. Popularized containers and still owns the de facto docker CLI and Dockerfile workflow.\nBlurb Docker Documentation is the official Docker library of resources, manuals, and guides to help you containerize applications.\nSummary What to separate:\nPiece Garden stance OCI images / containers adopt via Containerization docker build / BuildKit in CI Common; also available via buildah/kaniko docker CLI on laptop OK as a front-end when the engine is Rancher/Podman/containerd Docker Desktop (paid) hold for new org-wide adoption Docker Hub as only registry Avoid single-vendor lock-in; use ECR/GCR/ACR + mirrors Why hold (vendor stack): commercialization of Desktop, license audits at scale, and historical tie-in to Docker-specific paths (#category/containers era tooling). The engine (containerd, runc) is industry standard; the Docker Inc desktop bundle is not.\nWhen the CLI still makes sense: tutorials, Dev Container docs, Dive, and CI snippets that call docker. Prefer rootless/daemonless options where security policy requires it.\nAlternatives for local dev: Rancher Desktop (trial), Podman (trial in garden), or Linux VM with containerd only.\nDetails Topic Notes Dockerfile Ubiquitous; keep multi-stage, non-root, minimal bases Compose Fine for local stacks; not a prod orchestrator (Kubernetes) CI docker build or buildx; pin BuildKit; scan images in pipeline Security Do not mount /var/run/docker.sock into untrusted CI without isolation References\nDocker documentation ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Docker"},"/garden/docker-compose":{"content":"Docker Compose. Defines multi-container apps in compose.yaml and runs them with docker compose up.\nBlurb Learn how to use Docker Compose to define and run multi-container applications with this detailed introduction to the tool.\nSummary Garden stance: We hold Docker Compose for our estate.\nKey points:\nTopic Notes Files compose.yaml at repo root or deploy/compose/; pin image digests for anything non-throwaway Secrets Use env files gitignored; not for prod secret stores Parity Do not assume Compose service DNS equals K8s Service names Engine Runs on Docker / Rancher Desktop / Podman compose support References\nDocker Compose documentation Details Topic Notes Files compose.yaml at repo root or deploy/compose/; pin image digests for anything non-throwaway Secrets Use env files gitignored; not for prod secret stores Parity Do not assume Compose service DNS equals K8s Service names Engine Runs on Docker / Rancher Desktop / Podman compose support References\nDocker Compose documentation ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Docker Compose"},"/garden/docker-desktop":{"content":"Docker Desktop. Is Docker Inc’s licensed desktop bundle: GUI, docker/docker compose CLI, optional local Kubernetes, and extensions on macOS/Windows/Linux.\nBlurb Docker Desktop is collaborative containerization software for developers. Get started and download Docker Desktop today on Mac, Windows, or Linux.\nSummary Garden stance: We hold Docker Desktop for our estate.\nKey points:\nTopic Notes Dev Containers Often documented with Desktop; other engines work if the socket is compatible WSL2 / macOS VM Desktop wraps a Linux VM; know where disk and CPU go Extensions Optional; treat as supply-chain risk in regulated environments CI Do not require Desktop in pipelines; use rootless builders in GitHub Actions References\nDocker Desktop Subscription overview Details Topic Notes Dev Containers Often documented with Desktop; other engines work if the socket is compatible WSL2 / macOS VM Desktop wraps a Linux VM; know where disk and CPU go Extensions Optional; treat as supply-chain risk in regulated environments CI Do not require Desktop in pipelines; use rootless builders in GitHub Actions References\nDocker Desktop Subscription overview ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Docker Desktop"},"/garden/docker-swarm":{"content":"Docker Swarm. Is Docker Engine’s built-in cluster orchestrator (swarm mode): managers, workers, overlay networks, and rolling service updates.\nSummary History: Swarm was pitched as a simpler Kubernetes alternative, then repositioned as a path from Docker Compose to multiple machines. The ecosystem standardized on Kubernetes; Docker Inc focuses on Desktop, Hub, and BuildKit, not growing Swarm as a greenfield choice.\nWho still maintains it: Mirantis (Docker Enterprise lineage) offers long-term Swarm support and security updates for paying customers (committed through 2030). That is not the same as Docker Inc driving new features in swarm mode for everyone.\nWhy hold (new adoption):\nConcern Detail Talent & tooling Helm, GitOps, operators, and cloud control planes assume Kubernetes Compose bridge docker stack deploy from Compose is a dead-end for most teams (Docker Compose is local-only in this garden) Stateful workloads Persistent volumes, failover, and upgrades lag K8s patterns; gaps are unlikely to close for casual users Strategic fit Containerization stays adopt; orchestration should be K8s, not Swarm When existing use is OK: regulated estates with Mirantis contracts, small stable fleets, or brownfield until migration is funded. Plan exit to Kubernetes + ArgoCD (or your GitOps tool), not indefinite Swarm expansion.\nDetails Topic Notes vs Kubernetes Swarm is simpler API surface; K8s wins on ecosystem, CRDs, and hiring Engine Swarm mode ships in the open-source engine docs; production support is vendor-specific Migration Map Services to Deployments; replace overlay secrets with cluster secret stores Local dev Do not use Swarm on laptops; use Compose locally and K8s (kind/minikube) for cluster parity References\nDocker Swarm mode overview Mirantis Swarm support ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Docker Swarm"},"/garden/dokploy":{"content":"Dokploy markets itself as a self-hosted PaaS. In practice it is mostly a UI for second touch provisioning on hosts you already own. We hold it for greenfield unless hosts are treated as Cattle Not Pets.\nBlurb Simplify Application and Database Deployments\nSummary Why hold: Marketing says PaaS. The real job is second-touch work: ship apps, Compose stacks, TLS, and DBs onto machines that First Touch Provisioning already created. That is useful UI, not a platform that abstracts the host fleet. Without cattle-style host automation, Dokploy encourages pet servers you babysit through a dashboard.\nWhen it might still fit: Lab or single-node experiments. Or an estate where first touch replaces hosts as cattle and Dokploy only handles app deploy on top. Even then, prefer patterns that keep Cattle Not Pets (image rebuild, replace, not SSH snowflakes).\nWhen to skip: New platforms. Prefer Kubernetes or managed PaaS (Netlify and peers) when you want real platform abstraction. The garden already holds Docker Swarm; Dokploy is Swarm-native under the hood.\nKey trade-offs:\nTopic Notes True role Second-touch control plane (deploy, Traefik, DB backups, roles) on your VMs Not A PaaS that owns first-touch cattle lifecycle for you Runtime Docker Swarm based; Compose without K8s Build Dockerfile, Nixpacks, Heroku Buildpacks, Compose Risk Dashboard-driven pets; Swarm path vs Kubernetes adopt References\nDokploy Dokploy GitHub Self-hosted PaaS overview Details Topic Notes Install Single-script install on a VPS; Cloud option for hosting the control plane Deploy targets Same server or remote servers; Swarm for multi-node Templates One-click open source apps (e.g. Supabase, Cal.com, PocketBase) Monitoring Real-time CPU, memory, network; notifications on deploy success/fail Positioning Markets as open source alternative to Vercel, Netlify, and Heroku Peers (not in garden) Coolify, Dokku, CapRover share the same second-touch shape ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-20T00:00:00-04:00","tags":null,"title":"Dokploy"},"/garden/dora-metrics":{"content":"DORA Metrics. Are the DevOps Research and Assessment team’s validated measures of software delivery and operational (SDO) performance.\nBlurb DORA is a long running research program that seeks to understand the capabilities that drive software delivery and operations performance. DORA helps teams apply those capabilities, leading to better organizational performance.\nSummary Garden stance: We adopt DORA Metrics for our estate.\nKey points:\nTopic Notes Scope System-level outcomes, not individual developer output Data sources CI/CD events, deploy logs, incident records, VCS timestamps Tooling DORA Quick Check; native DORA views in some platforms; custom Dashboarding on OpenTelemetry or pipeline metadata Anti-patterns Gaming metrics, local optimization, comparing unlike systems, executive decks that start with four keys Complements SPACE and flow metrics for developer experience; business KPIs for altitude Definitions (practical):\nLead time for changes: elapsed time from code committed to successfully running in production. Change failure rate: percentage of production changes that result in degraded service, rollback, or hotfix. Failed deployment recovery time / MTTR: elapsed time from production failure to restored service for users. Collecting honestly:\nDefine “deployment” and “failure” the same way across teams before comparing. Split metrics by service or product line when architectures differ. Review quarterly against last year, not against a static “elite” label from an old report. References\nDORA DORA Quick Check 2025 DORA Report 2024 DORA Report Four Keys (Google Cloud) Details Topic Notes Scope System-level outcomes, not individual developer output Data sources CI/CD events, deploy logs, incident records, VCS timestamps Tooling DORA Quick Check; native DORA views in some platforms; custom Dashboarding on OpenTelemetry or pipeline metadata Anti-patterns Gaming metrics, local optimization, comparing unlike systems, executive decks that start with four keys Complements SPACE and flow metrics for developer experience; business KPIs for altitude Definitions (practical):\nLead time for changes: elapsed time from code committed to successfully running in production. Change failure rate: percentage of production changes that result in degraded service, rollback, or hotfix. Failed deployment recovery time / MTTR: elapsed time from production failure to restored service for users. Collecting honestly:\nDefine “deployment” and “failure” the same way across teams before comparing. Split metrics by service or product line when architectures differ. Review quarterly against last year, not against a static “elite” label from an old report. References\nDORA DORA Quick Check 2025 DORA Report 2024 DORA Report Four Keys (Google Cloud) ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"DORA Metrics"},"/garden/dotfiles-in-version-control":{"content":"Version-controlled dotfiles are shell, editor, and tool configs kept in a git repo so a machine can be rebuilt from a known baseline. We assess it under Technique in the garden.\nSummary What it covers: .zshrc, .vimrc, Starship, tmux, Homebrew Brewfile, and similar personal setup committed beside a README and install script (or Declarative IaC-style bootstrap).\nWhen to use: you rebuild laptops often, want the same shell aliases everywhere, or document “how your machine is configured” for yourself.\nWhen to skip: orgs that mandate MDM-only laptops with no local customization; shared secrets in dotfiles (use a secrets manager instead); duplicating what Nix/Home Manager or a golden AMI already provides.\nPairs with: private repo or public repo with a secrets scrub checklist; symlink or copy install script; optional chezmoi/yadm if dotfiles span multiple machines.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Dotfiles in Version Control"},"/garden/draw-io":{"content":"Draw.io. (diagrams.net) is a browser and desktop diagram editor for architecture sketches, flowcharts, network layouts, and C4-style views.\nBlurb Free, open source diagramming application with 100M+ users. Store your data wherever you want-we can’t access it.\nSummary What you get: drag-and-drop canvas, shape libraries (AWS/Azure/GCP icons, UML, BPMN), layers, and exports (PNG, SVG, PDF). Files are XML (.drawio or .drawio.xml) you can store next to docs.\nWhen trial fits:\nUse Notes Stakeholder decks Polished boxes-and-arrows for reviews Complex layout Fine-grained positioning Mermaid fights Icon-heavy architecture Cloud vendor stencils out of the box VS Code / Cursor Draw.io Integration. Edits files in-repo When to prefer Mermaid instead:\nDiagram lives in Markdown, ADRs, or Hugo and should diff cleanly in PRs Sequence/flowchart/class diagrams with low layout friction CI or docs site renders diagrams from text (no binary/XML churn) Why not adopt (yet): XML merges are noisier than text; easy to fork “pretty” diagrams that drift from code; temptation to screenshot instead of exporting source.\nDetails Topic Notes Storage Commit .drawio + optional diagram.png for readers who do not open the editor Desktop Desktop app for offline or large files Integrations Google Drive, OneDrive, GitHub; pick one backing store per team to avoid link rot Security Self-host or use desktop app if diagrams are sensitive; default web app is third-party hosted Graduate from AsciiFlow (hold) for anything you will maintain References\ndiagrams.net Draw.io VS Code extension ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Draw.io"},"/garden/dry":{"content":"DRY is a technique we hold in the garden.\nSummary Key points:\nContext Guidance Application code Extract when behavior and change rate align; keep tests on both call sites during migration Terraform / OpenTofu Prefer small modules with clear inputs/outputs over one module that owns an entire account Kubernetes / Helm Subcharts for real reuse; copy YAML when teams and lifecycles differ Policies One Rego/Sentinel bundle per concern; do not merge unrelated checks for line count Reviews Ask “what changes together?” not “how many times does this string appear?” IaC-specific: minimizing blast radius beats minimizing bytes. Explicit duplication in two stacks is often safer than a shared module that forces unrelated environments to upgrade together.\nWhen repetition is OK: similar HCL for dev and prod with intentional differences; two resources that look alike but have different owners or compliance tags; bootstrap code you expect to delete.\nReferences\nWikipedia: Don’t repeat yourself Please do repeat yourself: DRY is dead The fallacy of DRY## Personal Experience Details Context Guidance Application code Extract when behavior and change rate align; keep tests on both call sites during migration Terraform / OpenTofu Prefer small modules with clear inputs/outputs over one module that owns an entire account Kubernetes / Helm Subcharts for real reuse; copy YAML when teams and lifecycles differ Policies One Rego/Sentinel bundle per concern; do not merge unrelated checks for line count Reviews Ask “what changes together?” not “how many times does this string appear?” IaC-specific: minimizing blast radius beats minimizing bytes. Explicit duplication in two stacks is often safer than a shared module that forces unrelated environments to upgrade together.\nWhen repetition is OK: similar HCL for dev and prod with intentional differences; two resources that look alike but have different owners or compliance tags; bootstrap code you expect to delete.\nReferences\nWikipedia: Don’t repeat yourself Please do repeat yourself: DRY is dead The fallacy of DRY ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"DRY"},"/garden/duckdb":{"content":"DuckDB is an in-process SQL OLAP engine for local and embedded analytics. We trial it for ad-hoc SQL on files, lakes, and agent test harnesses that need a real engine without a warehouse cluster.\nBlurb DuckDB is a SQL database that runs everywhere\nSummary What it is: Columnar, vectorized analytical DBMS that embeds in processes (CLI, Python, Go, Rust, Node.js, WASM). Queries Parquet, CSV, JSON, S3, and lake formats with a Postgres-like SQL dialect. MIT-licensed core and DuckLake format.\nWhen to use:\nSituation Notes Local analytics Laptop or CI job over Parquet/CSV without standing up a warehouse Agent or test oracles Independent SQL engine for differential checks against a system under test Embedded analytics Ship analytics inside an app binary Lakehouse experiments Iceberg / DuckLake reads without a full managed CDW When to skip:\nMulti-tenant managed warehouse needs (Snowflake, BigQuery) Long-running shared clusters with many concurrent BI users (Trino, warehouse SaaS) OLTP or strong multi-writer transactional workloads (Postgres) Trade-offs: Extremely easy to start; not a substitute for a managed multi-tenant control plane. Single-node by default (Quack adds client-server). Great companion to warehouses, not a wholesale replacement for them.\nDetails Differential Oracle Pattern DuckDB’s first-party ducklake extension is a strong independent reader for DuckLake catalogs. Replaying the same mutations through a system under test and through DuckDB, then diffing catalogs, catches behavioral drift early. Useful for agentic synthesis harnesses and CI, not only for interactive analytics.\nStack Fit Topic Notes Formats Parquet, CSV, JSON, Arrow, Iceberg, DuckLake Clients CLI, Python, R, Go, Java, Node, Rust, Wasm License MIT for core and DuckLake Related garden DuckLake, Neon, Snowflake, BigQuery, Trino, Postgres, dbt-core References DuckDB homepage DuckLake manifesto: ducklake.select ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"DuckDB"},"/garden/ducklake":{"content":"DuckLake is an open lakehouse format that keeps table data in Parquet (and kin) on object storage, and puts all catalog metadata in a normal SQL database. We assess it as a simpler alternative to Iceberg/Delta-style file mazes when a SQL catalog is already in the stack.\nBlurb DuckLake simplifies lakehouses by using a standard SQL database for all metadata, instead of complex file-based systems, while still storing data in open formats like Parquet. This makes it more reliable, faster, and easier to manage.\nSummary What it is: Open table format from the DuckDB authors (Mark Raasveldt, Hannes Mühleisen). Metadata lives in portable SQL tables with ACID transactions. Data files stay on blob storage. Any ACID SQL engine with primary keys can host the catalog (Postgres, DuckDB, and others).\nWhen to use:\nSituation Notes Lakehouse + SQL catalog You already run Postgres or DuckDB and want open Parquet data Multi-table transactions Cross-table ACID and transactional DDL in one catalog Agent / differential testing Independent DuckDB ducklake reader as an oracle against another engine Laptop-to-cloud path Local DuckDB file catalog first; migrate catalog DB without moving data files When to skip:\nOrg standardized on Iceberg or Delta with mature catalogs and tooling Need for a format with broad multi-engine production adoption today (DuckLake is early) No willingness to operate a catalog SQL database Trade-offs: Cleaner than JSON/Avro snapshot trees once a DB is in the path anyway. Younger ecosystem than Iceberg. Catalog DB becomes a scaling and availability concern (by design, same pattern as BigQuery/Spanner and Snowflake/FoundationDB metadata).\nDetails Architecture Layer DuckLake choice Data Immutable open files (Parquet) on disk, S3, GCS, Azure, etc. Metadata Relational tables + SQL transactions in a catalog database Compute Any engine that speaks the format (DuckDB extension first) Three-way split: storage, compute, and metadata. Catalog traffic is orders of magnitude smaller than data IO. Shared Postgres or Neon can back many logical catalogs.\nVs Iceberg / Delta Iceberg and Delta encode much metadata in files, then add a catalog DB for atomic version pointers. DuckLake moves all metadata into SQL once that DB exists. Fewer small files, faster planning (one catalog query), optional inlining of tiny writes into the catalog DB.\nReferences DuckLake manifesto Parent engine: DuckDB ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"DuckLake"},"/garden/dumb-init-for-containers":{"content":"Dumb-init for containers. Is a minimal PID 1 wrapper for Linux containers.\nSummary Problem: Docker and Kubernetes start your app as PID 1. Without a proper init, SIGTERM handling and zombie reaping break. Shell wrappers as PID 1 add their own signal quirks.\nWhen to use: production images where the entrypoint is a single binary or script; you need reliable graceful shutdown on docker stop / pod termination.\nWhen to skip: distroless images that already ship a correct init; images using tini or Kubernetes shareProcessNamespace patterns you have standardized on.\nUsage sketch: install the static binary in the image and set ENTRYPOINT [\"/usr/bin/dumb-init\", \"--\"] with CMD for the app.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Dumb-init for containers"},"/garden/dvwa":{"content":"DVWA. (Damn Vulnerable Web Application) is a PHP/MariaDB web app with deliberate OWASP-class flaws.\nBlurb Damn Vulnerable Web Application (DVWA). Contribute to digininja/DVWA development by creating an account on GitHub.\nSummary DVWA exposes common web vulnerabilities at four difficulty levels (low, medium, high, impossible). The UI is minimal on purpose so you focus on exploitation and remediation, not app navigation.\nWhen to use: building a local security lab; practicing with Zed Attack Proxy (Zap) or Burp; teaching SQL injection, XSS, CSRF, file inclusion, and related classes; red-team or AppSec onboarding before touching production code.\nWhen to skip: you need a modern stack or API-heavy scenarios (use Juice Shop instead); you cannot isolate the host from your network; you want automated pass/fail grading without manual verification.\nStack: PHP, Apache, MariaDB (MySQL works with extra config). Official install paths include XAMPP on a VM, Docker, or Debian-based scripts from the repo README.\nDetails Vulnerability Modules Typical modules include brute force, command injection, CSRF, SQL injection, XSS (reflected and stored), file upload, file inclusion (local and remote), insecure CAPTCHA, and weak session IDs. An API module adds JSON endpoints for parallel practice.\nSecurity Levels Level Behavior Low Minimal filtering; good for first exploits Medium Partial mitigations; closer to sloppy production code High Stronger filters; requires bypass thinking Impossible Reference secure patterns after you solve lower tiers Deployment Guardrails Use NAT or host-only networking in VirtualBox/VMware, or a dedicated lab VLAN. Prefer Docker or a throwaway VM over installing on a daily driver. Reset the database between sessions when teaching repeatable exercises. Pair manual labs with DAST runs from Zed Attack Proxy (Zap) to compare human findings with scanner output. Install Sketch 1 2 3 git clone https://github.com/digininja/DVWA.git cd DVWA # Follow README: copy config, create DB user, run setup.php, set security level Docker and pre-built images are documented upstream; pick the maintained GitHub source over stale third-party bundles.","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"DVWA"},"/garden/earlybird":{"content":"Earlybird. (Amex, Go) scans repositories for secrets, PII, weak crypto, and key material in source, comments, and committed files.\nBlurb EarlyBird is a sensitive data detection tool capable of scanning source code repositories for clear text password violations, PII, outdated cryptography methods, key files and more. - americanexpre…\nSummary Garden stance: We assess Earlybird for our estate.\nKey points:\nTopic Notes Install build.sh + install.sh (Linux/macOS) or Windows build.bat; config under ~/.go-earlybird Scan go-earlybird --path=... or --git=https://... Ignore files .ge_ignore with .gitignore globs (IGNORE.md) Line ignore Comment containing EARLYBIRD-IGNORE on that line False positives false-positives.json: Codes, Pattern (regex), FileExtensions, Description (docs) Example false-positive rule (ignore rules 1, 2, 4 when pattern abc matches):\n1 2 3 4 5 6 7 8 { \"rules\": [{ \"Codes\": [1, 2, 4], \"Pattern\": \"abc\", \"FileExtensions\": [], \"Description\": \"Just because\" }] } Rules apply when both Pattern and FileExtensions match (empty FileExtensions = all extensions). To disable a code entirely, use pattern .*. To skip markdown: \"FileExtensions\": [\".md\"].\nPilot snapshot (internal, 2024): 21 false positives, 19 valid, 3 noise; re-run after rule tuning before org mandate.\nPipeline placement: same PR path as lint (Continuous Integration step 5 in garden CI model); do not rely on scanner alone without secret rotation process.\nReferences\namericanexpress/earlybird Usage Hooks (pre-commit) Details Topic Notes Install build.sh + install.sh (Linux/macOS) or Windows build.bat; config under ~/.go-earlybird Scan go-earlybird --path=... or --git=https://... Ignore files .ge_ignore with .gitignore globs (IGNORE.md) Line ignore Comment containing EARLYBIRD-IGNORE on that line False positives false-positives.json: Codes, Pattern (regex), FileExtensions, Description (docs) Example false-positive rule (ignore rules 1, 2, 4 when pattern abc matches):\n1 2 3 4 5 6 7 8 { \"rules\": [{ \"Codes\": [1, 2, 4], \"Pattern\": \"abc\", \"FileExtensions\": [], \"Description\": \"Just because\" }] } Rules apply when both Pattern and FileExtensions match (empty FileExtensions = all extensions). To disable a code entirely, use pattern .*. To skip markdown: \"FileExtensions\": [\".md\"].\nPilot snapshot (internal, 2024): 21 false positives, 19 valid, 3 noise; re-run after rule tuning before org mandate.\nPipeline placement: same PR path as lint (Continuous Integration step 5 in garden CI model); do not rely on scanner alone without secret rotation process.\nReferences\namericanexpress/earlybird Usage Hooks (pre-commit) ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Earlybird"},"/garden/ebitengine":{"content":"Ebitengine. (pronounced “eh-bee-ten-gin”; formerly Ebiten) is an open-source 2D game engine for GoLang.\nBlurb Ebitengine is an open source game engine for the Go programming language. Ebitengine’s simple API allows you to quickly and easily develop 2D games that can be deployed across multiple platforms.\nSummary Ebitengine wraps rendering, input, and audio for 2D games without pulling in a heavy editor or scripting layer. You write ordinary Go, which makes it easy to share logic with servers and tools your team already ships in GoLang. The trade-off is ecosystem size: fewer tutorials, assets, and hiring signals than mainstream engines.\nDetails Platforms: Windows, macOS, Linux, browsers (via WebAssembly), iOS, Android, Nintendo Switch (with license). Model: immediate-mode 2D drawing; no built-in scene editor, games are code-first. Strengths: simple API, pure Go workflow, cross-compile story, active maintainer (Hajime Hoshi). Limits: 2D only; not the right default for 3D, AAA tooling, or teams without Go experience. When to trial: prototypes, tools, or indie 2D titles where Go is already the org language. ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Ebitengine"},"/garden/editorconfig":{"content":"EditorConfig. Is a repo-root .editorconfig file plus editor plugins that apply shared whitespace, encoding, and newline rules before language formatters or linters run.\nBlurb EditorConfig is a file format and collection of text editor plugins for maintaining consistent coding styles between different editors and IDEs.\nSummary Garden stance: We adopt EditorConfig for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Example baseline (team defaults; adjust per repo):\n1 2 3 4 5 6 7 8 9 10 11 12 13 root = true [*] indent_style = space end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = false [*.md] indent_size = 4 trim_trailing_whitespace = true insert_final_newline = true Property Typical use indent_style / indent_size Spaces vs tabs per language end_of_line lf for cross-platform repos charset utf-8 default trim_trailing_whitespace Cleaner diffs (often off for .md if needed) insert_final_newline POSIX text files; may differ for * vs *.md Monorepos: nested .editorconfig in packages is allowed; closest match wins. Prefer one root file unless a subtree truly needs different EOL rules.\nCI: optional editorconfig-checker in GitHub Actions if editors without plugins are common; most teams rely on linters plus local plugins.\nNot the same as: .gitattributes (Git checkout normalization); Prettier config; Policy as Code.\nReferences\nEditorConfig Formal specification ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"EditorConfig"},"/garden/elasticsearch":{"content":"Elasticsearch is a tool we assess in the garden.\nBlurb Elasticsearch is the leading distributed, RESTful, open source search and analytics engine designed for speed, horizontal scalability, reliability, and easy management. Get started for free….\nSummary What it is: JSON document store with inverted indexes, aggregations, and cluster scaling via shards and replicas.\nWhen to use: Unified search plus observability on Elastic Stack; security analytics with Elastic SIEM modules.\nWhen to skip: Greenfield LGTM stack without Elastic licensing. Small teams avoiding JVM cluster ops.\nKey features: Index lifecycle management, ingest pipelines, cross-cluster search, Elastic Cloud managed option.\nDetails Topic Notes UI Kibana for native dashboards; Grafana can query Elasticsearch as a datasource Ops Plan shard sizing, hot/warm tiers, and retention ILM policies early References\nElasticsearch documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Elasticsearch"},"/garden/emacs":{"content":"Emacs is the GNU project’s Lisp-powered text editor and long-lived computing environment. We hold it after the 2026 editor research: its key-chord model and config-framework maintenance burden rule it out as a daily driver, and the TUI IDE stack went with NeoVim.\nBlurb An extensible, customizable, free/libre text editor - and more.\nSummary Use Emacs only if you already live in it and accept the maintenance burden. This estate used Emacs as its primary editor for years before moving through Atom, Visual Studio Code, and Cursor.\nThe 2026 editor research dropped it again. Chords feel physically and mentally draining next to modal editing, and Centaur/Prelude/Doom all demand power-user upkeep. Re-evaluating Centaur Emacs and other frameworks in August 2026 did not change the outcome. The September TUI IDE research re-confirmed the drop and named NeoVim as the editor for the stack.\nCompare Vim for ubiquitous modal editing on servers and remotes without the Emacs Lisp environment.\nDetails Upstream: https://www.gnu.org/software/emacs/ Core model: Emacs Lisp interpreter plus buffers, modes, and packages Existing configuration: https://github.com/jkamenik/emacs-prelude-personal Estate history: Long-term former daily driver, followed by Atom, Visual Studio Code, and Cursor Decision: Dropped as TUI IDE daily driver 2026-08-16 (key-chords + maintenance), re-confirmed 2026-09-16 Successor in the stack: NeoVim Fit: Tool / IDE (editor platform, not a headless agent) Contrast: Cursor for AI-first daily driving; Vim for ubiquitous modal editing on servers and remotes ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-09-18T00:00:00-04:00","tags":null,"title":"Emacs"},"/garden/emacs-prelude":{"content":"Emacs Prelude is Bozhidar Batsov’s enhanced Emacs 29.1+ distribution with sane defaults and modular packages. We assess it as the most familiar path back to Emacs.\nBlurb Prelude is an enhanced Emacs 29.1+ distribution that should make your experience with Emacs both more pleasant and more powerful.\nSummary Use Prelude when you want better defaults and opt-in modules without Spacemacs-scale opinionation. Skip it if you need Evil-first ergonomics (Spacemacs) or a more finished GUI kit (Centaur Emacs).\nThis estate used Prelude as the foundation for its Emacs configuration about a decade ago. The existing personal repository provides a concrete migration baseline, but compatibility with Prelude 2.0 and current Emacs needs validation.\nTrade-off: easier to understand and extend vs fewer batteries enabled by default. Prelude 2.0 leans on built-in Eglot and tree-sitter rather than legacy third-party stacks.\nDetails Upstream: https://github.com/bbatsov/prelude Docs: https://prelude.emacsredux.com Existing configuration: https://github.com/jkamenik/emacs-prelude-personal Requires: GNU Emacs 29.1+ Migration concern: Audit decade-old personal modules against Prelude 2.0 before reuse Philosophy: Simple, stable foundation; modules mostly opt-in; not Evil by default Fit: Tool / IDE as an Emacs distribution Contrast: Spacemacs (Evil + layers), Centaur Emacs (heavier out-of-box UI), Cursor (non-Emacs AI IDE) ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"Emacs Prelude"},"/garden/enterprise-ready":{"content":"Enterprise Ready. Is a feature guide and checklist (from Replicated’s study of leading B2B SaaS) for what procurement and security teams expect before they buy.\nSummary Analogy: 12 Factor App for how you sell and operate B2B software; Enterprise Ready for what enterprises ask for in the contract and admin console.\nTwelve feature areas (each has guides and tear-downs on the site):\nArea Garden links / notes Product assortment Plans, entitlements, usage limits Single Sign-on adopt OIDC/SAML for B2B Audit logs Admin-visible activity trail RBAC adopt role separation in product and ops Change management Admin comms for rollouts Product security DevSecOps, pen tests, secure SDLC Deployment options SaaS vs VPC / self-hosted tradeoffs Team management Orgs, invites, central directory Integrations APIs, webhooks, data export Reporting and analytics Value proof for buyers SLAs adopt measured commitments + SLOs GDPR Privacy program when EU customers matter When trial fits:\nFirst enterprise pipeline or security questionnaire Prioritizing backlog before SOC2-heavy sales cycles Aligning product, legal, and engineering on the same vocabulary When it is not enough: checklists do not replace pen tests, contracts, or running Policy as Code on your own infra. IdP implementation still means Auth0 / FrontEgg (assess) or cloud-native identity choices.\nDetails Topic Notes Prioritization Start SSO + RBAC + audit logs; add SLAs before promising five nines Questionnaires Map each ER section to evidence (architecture diagram, policies, screenshots) Product vs platform Some items are in-app features; others are how you run Software as a Service Podcast / tear-downs Use HubSpot/Slack/Google examples as design references, not copy-paste specs References\nEnterpriseReady Feature guides index ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Enterprise Ready"},"/garden/environment-managers":{"content":"Under Tool, Environment Managers groups utilities that shape what runs on your machine when you develop: language/runtime versions, PATH, and per-project env vars. Goal is reproducible local dev without “works on my laptop” drift. Prefer Dev Container (adopt) for team-wide parity; use this bucket for host-native workflows and polyglot laptops.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Environment Managers"},"/garden/factory-pattern":{"content":"Factory Pattern. The Factory pattern family centralizes object creation behind an interface or function so callers depend on abstractions, not concrete constructors.\nSummary Garden stance: We adopt Factory Pattern for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Variants Variant Use when Simple factory One function or module picks the concrete type; no inheritance tree Factory Method Subclasses override which product type to instantiate Abstract Factory Clients need coordinated sets of products (UI kits, DB dialect families) Implementation Notes Keep factories at the composition root (main, DI module, test setup), not deep in domain logic Prefer constructor injection of the product interface; factory produces the instance once at startup In Go, package-level New functions and small constructor tables are idiomatic simple factories Name factories after what they create (UserRepositoryFactory), not abstract enterprise jargon Common Failure Modes Abstract Factory for a single product with no family relationship Factory interface with one implementation forever (use a function instead) God factory that knows every subsystem in the application Leaking concrete product types through the factory return type Related Garden Items Dependency Inversion Principle for why creation should sit behind abstractions Open-Closed Principle for adding product types without editing callers Object-Oriented Programming for the paradigm where Factory Method and Abstract Factory are most common ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Factory Pattern"},"/garden/fair":{"content":"FAIR (Factor Analysis of Information Risk) is a quantitative model for expressing cyber and operational risk in financial terms. We assess it when High/Medium/Low scores are not enough for control or budget decisions.\nBlurb Factor Analysis of Information Risk (FAIR™) is the only international standard quantitative model for information security and operational risk.\nSummary When to use: You need comparable loss exposure for a scoped scenario (asset + threat + effect). Stakeholders want dollars and likelihood, not color charts. You are choosing among controls by expected loss reduction vs cost.\nWhen to skip: You only need a compliance checklist, not a decision. You cannot scope a scenario or calibrate estimates. Broad “all ransomware” scopes usually produce noise.\nTopic Notes Output Loss exceedance curves, average annual loss, percentiles (e.g. P90) Inputs Calibrated ranges for frequency and magnitude factors Complements NIST CSF, ISO 27001, and similar frameworks define programs. FAIR quantifies loss exposure on top. Pairs with DevSecOps for measurable security work in delivery. Kerckhoffs's principle for control design that does not rely on obscurity. Core model:\nLoss Event Frequency (LEF): how often a loss materializes Loss Magnitude (LM): how costly each event is (primary + secondary loss) Risk for a scenario is the distribution from combining LEF and LM (often via Monte Carlo).\nDetails Factor Tree (Practical) Loss Event Frequency decomposes into threat event frequency and vulnerability (chance the threat succeeds). Vulnerability further depends on threat capability vs control resistance.\nLoss Magnitude splits into:\nLoss type Examples Primary Response, replacement, downtime, direct remediation Secondary Fines, lawsuits, reputation, customer churn, credit monitoring Workflow Scope one scenario tightly (asset, threat community, effect). Estimate each factor as a range (min / most likely / max), calibrated with data or experts. Simulate to get a loss distribution and decision metrics. Compare controls by how they change frequency, magnitude, or both. Standards and Ecosystem The Open Group publishes Open FAIR as O-RT (Risk Taxonomy) and O-RA (Risk Analysis). The FAIR Institute maintains community education and the FAIR Cyber Risk Management Framework. Commercial engines exist; the model itself is a methodology, not a single product.\nCommon Pitfalls Treating ordinal scores (1-5) as if they were ratio-scale measurements Mixing unlike scenarios into one “enterprise cyber risk” number Skipping calibration; then the simulation only amplifies bad guesses Confusing FAIR with program frameworks that do not prescribe how to compute risk References What is FAIR? (FAIR Institute) FAIR Risk Management The Open Group - Open FAIR ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-30T00:00:00-04:00","tags":null,"title":"FAIR"},"/garden/faiss":{"content":"FAISS is Meta’s C++ library for dense-vector similarity search and clustering, with Python wrappers and optional GPU acceleration. We assess it as the established baseline for local exact and approximate nearest-neighbor search.\nBlurb Faiss is a library for efficient similarity search and clustering of dense vectors.\nSummary When to use:\nYou need a mature local library rather than a database service. You need exact search, HNSW, product quantization, or GPU indexes under one API. You need a baseline for evaluating TurboVec, pgvector, or another vector engine. When to skip:\nYou need SQL joins, transactions, metadata filtering, and operational persistence. Start with pgvector. You want online low-bit quantization without a separate training phase. Assess TurboQuant or TurboVec. You need a managed, distributed vector service rather than an embedded library. Trade-offs: FAISS exposes many index families and tuning controls, but that flexibility adds complexity. Index choice affects recall, latency, memory, training cost, and update behavior. Persistence and application-level metadata remain your responsibility.\nDetails Index Families Family Use Flat Exact L2 or inner-product search; useful as a recall oracle HNSW Graph-based approximate search without quantizer training IVF Partition vectors into inverted lists; tune probes for speed versus recall PQ Compress vectors with learned product-quantization codebooks GPU Run supported exact and approximate indexes on one or more GPUs FAISS compares vectors with L2 distance or dot product. Cosine similarity uses dot product after normalization. Some compressed indexes store only encoded vectors, reducing memory at the cost of precision.\nComparison Points Option Better Fit FAISS Broad local ANN toolkit, benchmarking, GPU search TurboVec Compact online ingest using TurboQuant, especially for local RAG pgvector Vectors beside relational data in Postgres References FAISS repository FAISS documentation The FAISS Library ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-24T00:00:00-04:00","tags":null,"title":"FAISS"},"/garden/feature-flags":{"content":"Feature Flags. (feature toggles) decouple deploying code from exposing behavior: ship to production dark, then enable per user, tenant, or percentage.\nSummary Flag types (Fowler):\nType Purpose Release Hide incomplete work on main; enable when ready Experiment A/B tests and gradual exposure Ops Kill switch under load without redeploy Permission Entitlements / plan tiers (often overlaps RBAC) Why trial (SaaS + CD):\nPrerequisite in our Continuous Deployment model: deploy every green merge safely Per-tenant enablement for B2B without hotfix releases Instant rollback by flipping a flag, not rebuilding images Why still assess elsewhere:\nRoll-your-own adds branching and cleanup debt Long-lived flags become dead code; need expiry discipline On-prem or single-tenant deliverables may prefer Continuous Delivery with manual promote only Implementation options:\nApproach Notes Managed LaunchDarkly, Unleash, Flagsmith, ConfigCat (SaaS or self-hosted) OpenFeature Vendor-neutral SDK surface; pick a provider backend Config + DB Simple boolean table; fine for one product, watch ops burden Env/config only Not flags; redeploy to change (avoid for user-facing toggles) Details Topic Notes Naming feature_flags, toggles; consistent prefix in code Defaults Safe default off for new features; document in runbooks Lifecycle Ticket to remove flag and dead branches after full rollout Testing CI matrix: flag on/off; avoid tests that only pass one state Security Admin flags are authorization; audit changes like RBAC Observability Log evaluation or exposure events for experiment analysis Not the same as: Policy as Code (infra compliance); GitOps sync (delivery mechanism); environment-specific config files without runtime evaluation.\nReferences\nFeature Toggles (Martin Fowler) OpenFeature ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Feature Flags"},"/garden/first-principles":{"content":"First Principles. Thinking breaks a problem into truths you cannot deduce further, then rebuilds a solution from those foundations.\nSummary Use first principles when a design copies industry defaults (“always microservices”, “always one Terraform module”) and cost, latency, or ownership no longer fit. The goal is not novelty for its own sake. The goal is to name constraints that must stay true, then pick a shape that satisfies them.\nContext Garden stance Design and architecture reviews Adopt as the default reasoning method Ops, hiring, tooling, one-off tasks Assess before investing deconstruction time Mature pattern with known trade-offs Reasoning by analogy is often enough Assumptions section: Add an explicit Assumptions block to design docs. Use it to open review conversation. If reviewers debate an assumption, it is not a first principle yet. Deconstruct until the team agrees on bedrock constraints, then rewrite the design if needed.\nSibling techniques: Five Whys and Fishbone diagram trace failures backward in postmortems. First principles trace forward when you still control the shape.\nDetails Design Review Checklist List constraints the solution must satisfy (latency, blast radius, compliance, team ownership). Write Assumptions separately from constraints. Assumptions are hypotheses; constraints are non-negotiable unless disproven. In review, challenge any assumption that draws debate. Convert surviving items into first principles or remove them. Rebuild the proposal from the agreed principles. Name Design Pattern choices only after the shape is clear. When Not to Use Small, reversible changes with known precedent Decisions where time-to-ship matters more than architectural purity Problems better served by empirical measurement than upfront deconstruction Related Notes Single Responsibility Principle for module-level “one reason to change” Design Pattern vocabulary after structure is chosen, not before Incident Management for the postmortem side of the same learning loop ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"First Principles"},"/garden/first-touch-provisioning":{"content":"First Touch Provisioning. First touch provisioning creates the foundation layer of infrastructure: cloud accounts and guardrails, networks, DNS, IAM roles, clusters, VMs, databases as managed services, and remote state.\nSummary Garden stance: We adopt First Touch Provisioning for our estate.\nKey points:\nTopic Notes Tools Terraform (adopt); avoid new Imperative IaC / Pulumi generators for greenfield State Remote backend per env; locking; no local-only state for shared infra Modules Reusable VPC/cluster modules; watch blast radius (DRY discipline) Policy Policy as Code on plans before apply Provisioner anti-pattern Terraform remote-exec / heavy local-exec blurs touches; keep first touch declarative References\nWikipedia: Provisioning Details Topic Notes Tools Terraform (adopt); avoid new Imperative IaC / Pulumi generators for greenfield State Remote backend per env; locking; no local-only state for shared infra Modules Reusable VPC/cluster modules; watch blast radius (DRY discipline) Policy Policy as Code on plans before apply Provisioner anti-pattern Terraform remote-exec / heavy local-exec blurs touches; keep first touch declarative References\nWikipedia: Provisioning ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"First Touch Provisioning"},"/garden/fishbone-diagram":{"content":"Fishbone diagram. (Ishikawa or cause-and-effect diagram) maps a problem at the “head” and sorts possible causes into branching categories along the spine.\nSummary Garden stance: We assess Fishbone diagram for our estate.\nKey points: ### Common Category Sets\nPick labels the team already uses. Rename freely; clarity beats jargon.\nSet Categories 6Ms (manufacturing) Manpower, Machine, Method, Material, Measurement, Mother Nature (environment) 4Ss (service) Surroundings, Suppliers, Systems, Skills Ops/postmortem People, Process, Tooling, Environment, Measurement Mermaid Options Format Status Best for ishikawa-beta Beta in Mermaid Fishbone-shaped diagrams in docs mindmap Stable Version-controlled cause trees; easier day-to-day editing Here is the example in both formats on the same “Blurry Photo” problem.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ishikawa-beta Blurry Photo Process Out of focus Shutter speed too slow Protective film not removed Beautification filter applied User Shaky hands Equipment LENS Inappropriate lens Damaged lens Dirty lens SENSOR Damaged sensor Dirty sensor Environment Subject moved too quickly Too dark mindmap root((Blurry Photo)) Process Out of focus Shutter speed too slow Protective film not removed Beautification filter applied User Shaky hands Equipment LENS Inappropriate lens Damaged lens Dirty lens SENSOR Damaged sensor Dirty sensor Environment Subject moved too quickly Too darkIntegration with Five Whys Fishbone answers where to look. Five Whys answers how deep to dig on each branch. Do not stop at the fishbone brainstorm; shallow ribs produce shallow fixes.\nDetails Common Category Sets Pick labels the team already uses. Rename freely; clarity beats jargon.\nSet Categories 6Ms (manufacturing) Manpower, Machine, Method, Material, Measurement, Mother Nature (environment) 4Ss (service) Surroundings, Suppliers, Systems, Skills Ops/postmortem People, Process, Tooling, Environment, Measurement Mermaid Options Format Status Best for ishikawa-beta Beta in Mermaid Fishbone-shaped diagrams in docs mindmap Stable Version-controlled cause trees; easier day-to-day editing Here is the example in both formats on the same “Blurry Photo” problem.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ishikawa-beta Blurry Photo Process Out of focus Shutter speed too slow Protective film not removed Beautification filter applied User Shaky hands Equipment LENS Inappropriate lens Damaged lens Dirty lens SENSOR Damaged sensor Dirty sensor Environment Subject moved too quickly Too dark mindmap root((Blurry Photo)) Process Out of focus Shutter speed too slow Protective film not removed Beautification filter applied User Shaky hands Equipment LENS Inappropriate lens Damaged lens Dirty lens SENSOR Damaged sensor Dirty sensor Environment Subject moved too quickly Too darkIntegration with Five Whys Fishbone answers where to look. Five Whys answers how deep to dig on each branch. Do not stop at the fishbone brainstorm; shallow ribs produce shallow fixes.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Fishbone diagram"},"/garden/five-whys":{"content":"Five Whys. The Five Whys technique asks “why?” repeatedly to trace a problem from its visible symptom to a fixable root cause.\nSummary Five Whys looks simple on paper. In practice each answer can fork into multiple valid next questions. You are building a tree of cause chains, not a single straight line.\nPitfall What goes wrong Fix Literal five Stopping at an arbitrary depth Follow each branch until you reach a changeable process Weak early whys Filler causes that cannot be implemented Require quality answers for the first three levels Single branch only Missing parallel causes Start from Fishbone diagram, then Five Whys on each rib Blame stopping point “Human error” as the root Push to process, guardrail, or automation gaps Facilitation rule: Tell the group the first three “why” answers must be specific and actionable. Weak early layers poison every branch below them.\nSibling technique: First Principles is the forward-looking design counterpart. Use it when choosing architecture, not when tracing an incident backward.\nDetails Branching Workflow State the observable problem as a fact the group agrees on. Ask “why?” and capture every plausible answer, not just the first. For each answer, ask “why?” again. Track branches separately (whiteboard, doc outline, or Fishbone diagram). Stop a branch when the fix is a durable process, guardrail, or automation change. Prioritize action items on branches that recur across incidents. Quality Bar for Early Layers The first three answers should name mechanisms, not vibes. Compare:\nWeak Strong “Someone was careless” “Runbook step 4 has no verification gate” “Deploy was rushed” “Change window has no rollback checklist” “Monitoring failed” “Alert routed to a queue with no on-call subscription” When to Pair with Fishbone Use Fishbone diagram (or a mindmap stand-in) when the incident spans people, process, tooling, and environment. Run Five Whys on the highest-signal ribs after brainstorming.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Five Whys"},"/garden/fnm":{"content":"fnm. (Fast Node Manager) is a Rust-based Node.js version manager with .node-version / .nvmrc support and cross-platform shells.\nSummary What it is: Single binary, fnm use, auto-switch on directory change (optional), Corepack-friendly.\nWhen to use: Node-only version management with better performance than nvm.\nWhen to skip: Already standardized on mise / asdf for all runtimes.\nKey features: Multi-platform, .node-version, fish/zsh/bash support, --use-on-cd hook.\nDetails Topic Notes Migration Reads .nvmrc for compatibility with nvm-based repos Contrast nvm where shell-only legacy scripts dominate References\nfnm documentation ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"fnm"},"/garden/foreman":{"content":"Foreman is the Kubernetes-native control plane for agentic workloads that ships as an opt-in add-on to LLMKube. It dispatches coder, verifier, and reviewer agents across a heterogeneous fleet of local LLM nodes. We assess it: the coder/verifier/reviewer split is a sound shape for agentic coding, but it inherits Kubernetes complexity.\nBlurb Foreman is the Kubernetes-native control plane for agentic workloads that ships as an opt-in add-on to LLMKube. It dispatches coder, verifier, and reviewer agents across a heterogeneous fleet of locally-hosted LLM nodes.\nSummary Foreman models agentic coding as Kubernetes CRDs (Workload, AgenticTask, Agent, FleetNode) in its own API group and Helm chart, so it drops onto an existing LLMKube/K8s surface rather than fighting it. A Workload (intent + repo + issues) is decomposed by a reconciler into coder, verifier, and reviewer tasks; capability-aware scheduling claims each task on a fleet node whose hardware fits.\nThe v0.1 pipeline is deliberately linear: coder edits and pushes a fork branch, verifier runs a gate command (e.g. make lint test) and emits GATE-PASS/GATE-FAIL, and reviewers score the diff and emit APPROVE/REQUEST-CHANGES/REJECT. Reviewer ensembles and a coder escalation tier (fast model first, heavier model for capability failures) are first-class.\nWhy the coder/verifier/reviewer split matters: if you are going to use an agent for coding, you should think in those terms. A separate non-agentic verifier gate grounds the coder’s claims, and a reviewer catches what the gate misses. In-process frameworks (CrewAI, LangGraph, AutoGen) don’t solve fleet dispatch; Foreman sits between the inference engine and the application-layer agent framework.\nWhen to use: you already run Kubernetes for inference and want reproducible, self-hosted agentic pipelines with humans in the loop. When to skip: single-machine or light setups where a simpler harness like Claude Code is enough. v0.1 lacks DAGs, best-of-N, and an autonomous planner (v0.2+).\nDetails Four CRDs: Workload (user intent), AgenticTask (dispatchable unit), Agent (reusable role: system prompt, tool whitelist, model endpoint, required capability), and FleetNode (cluster-scoped, self-registered host capability). Inference is local by default against your own InferenceServices (vLLM, llama.cpp, mlx-server); no cloud egress unless you opt in.\nThe verifier gate runs as a Kubernetes Job and is non-agentic. Reviewers emit structured findings against an A-through-H checklist. Escalation fires only on capability failures (NO-GO or coder-gate failure), never on INCOMPLETE or stuck-loop, since a bigger model won’t fix a give-up. It assumes OpenAI tool_calls compatibility across inference endpoints.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-08-08T00:00:00-04:00","tags":null,"title":"Foreman"},"/garden/foundationdb":{"content":"FoundationDB is an open-source distributed key-value store with ACID transactions. We assess it for multi-tenant metadata and control-plane data that needs strong consistency at scale.\nBlurb FoundationDB gives you the power of ACID transactions in a distributed database.\nSummary What it is: Ordered key-value core with layers for higher-level data models. Designed to scale out, tolerate faults, and behave like one ACID database. Hardened with deterministic simulation testing. Open-sourced by Apple.\nWhen to use:\nSituation Notes Shared multi-tenant metadata Global catalog or coordination that must stay strongly consistent Layered data models Build document, graph, or relational layers on the KV core Extreme fault-injection culture Teams that will invest in ops expertise and sim-style testing When to skip:\nSelf-hosted or BYOC products where metadata should deploy with the app (Postgres is often enough) Teams without capacity to operate a specialized distributed store Workloads that fit a single-region relational DB Trade-offs: Industry-proven (Apple, Snowflake metadata stories) but operationally heavy. Expertise is scarce. Wrong default for “ship anywhere” agent-native databases.\nDetails Ops Reality FoundationDB is a full distributed system. It needs specialized operators, careful capacity planning, and deep familiarity with its failure modes. That cost is justified for hyperscale shared control planes. It is a poor default when the product must run in customer clouds or as a laptop binary. Prefer Postgres (or Neon) for deployable metadata, including DuckLake catalogs.\nCompared to Postgres Topic FoundationDB Postgres Consistency model Distributed ACID KV Single-primary ACID (or managed HA) Ops surface Cluster + layers Familiar RDBMS ops Self-host / BYOC Hard without specialists Practical with Neon-style vendors Garden signal Assess for shared control planes Prefer for deployable metadata References FoundationDB homepage FoundationDB documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"FoundationDB"},"/garden/framework":{"content":"Under Code, Framework groups opinionated application stacks that own project shape: routing, lifecycle, dependency injection, ORM conventions, and “where code goes.” You trade flexibility for speed. Prefer Library composition unless the framework’s opinions match your product for years.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Framework"},"/garden/frontegg":{"content":"FrontEgg. Is a B2B user-management platform: embedded auth, tenant/org modeling, admin portals, roles, audit logs, and product-facing identity UX; not just OIDC plumbing.\nBlurb Secure every entry point with Frontegg, the first identity layer for agentic SaaS. Protect APIs and scale with enterprise-grade CIAM.\nSummary Garden stance: We assess FrontEgg for our estate.\nKey points:\nTopic Notes Protocols OIDC, OAuth 2.0, SAML (enterprise SSO connections) Product Embeddable admin portal, tenant isolation, invitations Pricing MAU/tenant tiers; model before commit Exit Prefer standards at integration boundaries to limit lock-in Details Topic Notes Protocols OIDC, OAuth 2.0, SAML (enterprise SSO connections) Product Embeddable admin portal, tenant isolation, invitations Pricing MAU/tenant tiers; model before commit Exit Prefer standards at integration boundaries to limit lock-in ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"FrontEgg"},"/garden/functional-programming":{"content":"Functional Programming is a technique we adopt in the garden.\nSummary What it is: A paradigm where functions are first-class values, data is preferably immutable, and side effects sit at the edges of the program. Programs compose small functions (map, filter, reduce, pipelines) instead of mutating shared objects in place.\nCore ideas: pure functions (same inputs, same outputs), immutability, referential transparency, higher-order functions, and explicit effect boundaries (I/O, logging, persistence). Modern FP in industry is often pragmatic: impure shell around a pure core, not a ban on all mutation.\nWhen to use: ETL and analytics pipelines, event transforms, validation layers, parallel and concurrent workers, configuration transforms, and DSL-style business rules. Strong fit in languages with good FP support (Haskell, Clojure, Elixir, F#, Rust iterators, JavaScript/TypeScript with discipline).\nWhen to pull back: Rich UI state machines, ORM-heavy CRUD with identity lifecycles, and teams that lack FP idioms may ship faster with Object-Oriented Programming first. Do not rewrite working OOP services into point-free style without a measured pain point.\nGarden links: Declarative Programming overlaps on desired outcomes and query-style logic but is broader than FP. First Principles for architecture reviews before paradigm debates.\nDetails Pillars (Practical Reading) Pillar Practice Pure functions Keep business logic free of hidden I/O and global mutation Immutability Copy or persist new values; avoid in-place updates in shared data Composition Build pipelines from small functions with clear types Effects at the edge Isolate DB, network, and logging in an outer imperative shell Common Failure Modes Point-free golf that hides intent from the next maintainer Pretending immutability while mutating nested structures in place Monadic abstraction before the team understands plain function composition FP vs OOP turf wars instead of mixing paradigms by module Language Notes Haskell / PureScript: Strong static guarantees; steeper hiring and tooling curve. Clojure / Elixir: Practical FP on the JVM/BEAM with mature concurrency stories. See also cljgo for an experimental Go host. TypeScript / JavaScript: FP patterns (immutable updates, map/filter) without a enforced type system; discipline required. Rust: Ownership plus iterators give many FP benefits without a purely functional style. Go: First-class functions and small packages; idiomatic Go stays imperative at the edges. Related Garden Items Object-Oriented Programming for entity-centric domain models and polymorphic boundaries Declarative Programming for desired-state specs and query languages where control flow is implicit First Principles for choosing structure before paradigm labels ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-24T00:00:00-04:00","tags":null,"title":"Functional Programming"},"/garden/game-engine":{"content":"A game engine is a specialized Framework for interactive software: rendering, input, audio, physics, scene graphs, and asset pipelines so teams ship games instead of rebuilding low-level loops. Engines range from editor-driven stacks (Unity, Godot, Unreal) to code-first libraries such as Ebitengine for GoLang.\nUse this subcategory for runtime/tooling aimed at players and real-time loops; not general app frameworks or graphics libraries alone.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Game Engine"},"/garden/gatekeeper":{"content":"Gatekeeper. Is the Kubernetes admission controller for Open Policy Agent (OPA): validating and mutating webhooks plus audit scans, driven by Rego ConstraintTemplates and Constraints (CRDs).\nSummary Where it runs:\nLayer Tool When Pre-deploy (CI) Conftest Test manifests, Helm output, Terraform JSON on Pull Request Admission (cluster) Gatekeeper Block or mutate creates/updates at the API server Admission (native) CEL Narrow rules without OPA ops (K8s 1.26+) Audit (cluster) Gatekeeper Report existing resources violating policy What you get:\nConstraint library (community templates: labels, images, security context) Mutation (patch resources to comply, use carefully) External data (call out to systems during policy eval) Shared Rego with Conftest when policies are designed for both paths Why assess (not default adopt):\nController HA, webhook latency, and upgrade coupling to Kubernetes version Rego authoring and debugging cost (same as OPA elsewhere) Overlap with Kyverno (YAML policies) and CEL for teams that do not need full Rego When to assess:\nMulti-tenant clusters with mandatory guardrails (PSA, labels, disallowed registries) Need audit mode to find drift on live objects Already trialing Conftest and want one policy language end to end When to skip:\nNo Kubernetes (use Conftest / Regula on IaC only) Simple deny rules solvable with CEL and no extra controllers Greenfield without policy maturity (start with CI gates, not admission complexity) Details Topic Notes Install Manifest or Helm chart (gatekeeper-system namespace) Policies Start from Gatekeeper policy library GitOps Constraints in Git; ArgoCD syncs like app manifests Performance Watch webhook timeouts; scope constraints to needed namespaces Mutation Higher blast radius than validate-only; test in dry-run/audit first References\nGatekeeper documentation OPA ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Gatekeeper"},"/garden/gbrain":{"content":"gbrain. Is Garry Tan’s opinionated pattern for an LLM-maintained personal knowledge base. We rate it trial: the ideas are worth stealing (especially two-layer pages and MECE directory resolvers) but the full package is prescriptive (agent-maintains-everything, enrichment on every signal). Cherry-pick patterns and adapt them to your vault and workflows; do not treat gbrain as a religion.\nBlurb A personal intelligence system where your AI agent builds and maintains an interlinked wiki of everything you know (people, companies, deals, projects, meetings, ideas) as structured, cross-referenced markdown files. The agent writes and maintains all of it. You direct, curate, and think.\nSummary Worth applying: pre-computed synthesis above a --- separator with an append-only Timeline below; directory README.md resolvers that say what belongs where; one primary home per entity with wiki-links for adjacency.\nTake with skepticism: blanket “enrichment fires on every signal,” full automation of maintenance, and any rule that does not match how you file work (e.g. this vault uses PARA zones plus garden notes, not a single gbrain tree).\nThis vault: we adopt the two-layer pattern for research and garden notes (Agent Skills Framework, tech-garden items); we assess a root RESOLVER.md and always-on enrichment pipelines before copying them wholesale.\nPortable Patterns (Not Dogma) Two-Layer Pages (Compiled Truth + Timeline) Above ---: current synthesis (rewrite when facts change. Below ---: append-only edit log (**YYYY-MM-DD** | Author) …). Subject-matter history belongs above the line; the timeline records document changes only.\nMECE Directories (Light Touch) Resolvers in zone README.md files help agents and humans file consistently. MECE applies to directories, not reality. Use cross-links when entities span domains.\nEnrichment on Every Signal (Optional) Powerful for high-touch CRM-style brains; optional here. Prefer explicit jobs (Dagu, morning briefing) over implicit always-on writes.\nPage Template (Adapt as Needed) 1 2 3 4 5 6 7 8 9 10 11 12 # Entity Name > Executive summary: current state in one paragraph. ## State - **Key field:** value ## Open Threads - Active items (resolve → move detail to Timeline) ## See Also - Linked page ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"gbrain"},"/garden/gemini":{"content":"Gemini. Is Google’s open-source agentic coding agent for the terminal, ReAct loop, built-in tools (files, shell, search), MCP servers, and large-context Gemini models.\nSummary Gemini CLI (google-gemini/gemini-cli) runs an agent loop in your repo: reason, call tools, checkpoint conversations, and load project context via GEMINI.md. It shares quota with Gemini Code Assist agent mode on free and paid Google tiers.\nUse for interactive coding, refactors, and skill-driven workflows when Gemini models or Google Cloud billing are the constraint. It is a repo-bounded AI Agent; not an omnichannel personal bot (OpenClaw, Hermes are hold). For scheduled automation, prefer deterministic scripts and Dagu with LLM steps only where reasoning is required.\nCompare Claude Code (Anthropic) and Codex (OpenAI) for the same agent-loop-in-repo pattern.\nDetails Install: npm install -g @google/gemini-cli, Homebrew (brew install gemini-cli), or npx from GitHub; Node.js 20+. Auth: Google account (free tier quotas) or Gemini API key for pay-as-you-go. Models: Gemini 2.5 Pro and successors; very large context windows per Google docs. Skills: SKILL.md / Agent Skills Framework ecosystem, see Agent Skills - Sources for cross-agent collections. Fit: Tool / AI Agent, agent-loop coding tool (also branded Gemini Code Assist in IDE surfaces). Contrast: Cursor + cursor-agent for default IDE workflow; Claude Code / Codex on other vendors. ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Gemini"},"/garden/genesis":{"content":"Genesis. Is a Claude Code meta-project: you run Genesis inside Claude, describe a new app (stack + name), and it scaffolds a sibling repo.\nBlurb Bootstrap fully-equipped Claude Code projects in under two minutes. Agents, skills, hooks, memory, MCP configs - all scaffolded from a single conversation. - xeeva/Genesis\nSummary Problem it solves: productive Claude Code needs upfront investment (project rules, agents, skills, hooks, MCP, permissions). Most teams ship a thin CLAUDE.md and underuse subagents and skills.\nFour-phase workflow:\nPhase Output Interview 1-4 clarifying questions Plan Agents, skills, MCP list, folder layout for approval Generate Full project tree in one pass Finalise Git init, registry entry, next steps Generated artifacts (typical):\nCLAUDE.md with stack-specific standards .claude/agents/ (test-runner, reviewer, domain agents) .claude/skills/ (/test, /lint, /review, /commit + domain skills) .claude/settings.json (permissions, format hooks) .mcp.json, memory files, app boilerplate, .gitignore Supported stacks: Node/TS, Python, Go, Rust, Ruby, Java/Kotlin (profiles include linters, tests, folder layout).\nWhen to assess:\nStarting many similar Claude Code repos and want consistent scaffolding Teaching teams the Agent Skills Framework layout by example You already trial Claude Code and want faster first-session productivity When to skip:\nPrimary workflow is Cursor / cursor-agent (Genesis is Claude Code-specific) Monorepo with established agent conventions (merge by hand, do not overwrite) You only need a single skill file, not a full project factory Details Topic Notes Prerequisites Claude Code CLI, git, Node 18+; bash/zsh/PowerShell Install Clone to e.g. ~/claude/genesis, run claude in that directory Skills /genesis, /registry, /validate, /update inside Genesis First run Writes personalisation.md + environment.md (gitignored) Security Review generated code and MCP configs; MIT license with disclaimer References\nGenesis (GitHub) Documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Genesis"},"/garden/git":{"content":"git. Is the default distributed version control system for every repo we touch: local branches, cheap merges, and a full history on each clone.\nSummary Garden stance: We adopt git for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Under the hood (practical mental model): Git stores content-addressed objects (blobs, trees, commits) in an append-only object database. The index tracks what the next commit will contain; the working tree is your checkout on disk. You do not need to master plumbing to use Git well, but knowing “commit = snapshot + parent pointer” explains rebases and merge results.\nMerge philosophy: Git reconciles toward a consistent working tree, not strict chronological file history. It replays or combines commits so the checkout matches intent; when two sides change the same lines irreconcilably, you get a merge conflict with conflict markers. You edit the merged file, git add, commit, and push so teammates inherit the resolution. Centralized tools that enforce linear locks on paths tend to conflict more often because they privilege checkout order over current tree state.\nCommon commands (reference):\nArea Examples History git log, git show, git blame Undo git revert, git reset (know soft/mixed/hard) Sync git pull --rebase, git merge, git rebase Hygiene git stash, git clean, git gc Team practices: trunk-based or short-lived branches; Pull Request as the review gate; protected main; no force-push to shared branches without agreement. For infrastructure and config, treat the repo as source of truth (GitOps).\nNot the same as: GitHub / GitLab (hosting + collaboration); GitOps (delivery pattern); git lfs (large file extension).\nReferences\nGit Pro Git book ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"git"},"/garden/git-lfs":{"content":"git lfs. Is an open-source git extension that stores large blobs (binaries, media, datasets) outside the object database and keeps lightweight pointer files in history.\nBlurb Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.\nSummary Problem: Git is optimized for text diffs; committing multi‑MB or GB files duplicates full blobs in every revision and slows clone/fetch for everyone.\nWhat LFS does: On commit, matching paths are uploaded to LFS storage and replaced in the tree with small pointer files. On checkout, hooks swap pointers back to real files. Server-side, LFS stores file contents separately from the Git packfiles.\nWhen to use: repos with PSDs, videos, ML weights, firmware images, or other binaries you need in VCS, not in object storage alone.\nWhen to skip: generated artifacts that should never be committed; assets better served from a registry or CDN; repos where git lfs is not enabled on the host (fix hosting first).\nPair with: git as the base VCS; .gitattributes patterns via git lfs track; git lfs migrate to rewrite history when adding LFS to an existing repo.\nDetails Setup (once per machine):\n1 git lfs install Per repository:\nTrack patterns: git lfs track \"*.psd\" (writes/updates .gitattributes) Commit .gitattributes with the patterns Add and commit large files normally; git push uploads LFS objects to the remote LFS API Mental model:\nLayer Behavior Working tree Real file bytes you edit Git commit Pointer file in the tree for tracked extensions LFS server Content-addressed blob storage (GitHub/GitLab/self-hosted) History migration: Tracking in .gitattributes does not retroactively convert old commits. Use git lfs migrate import (or related subcommands) when adopting LFS on a repo that already committed large files.\nHosting: GitHub and GitLab ship LFS endpoints and quotas; self-hosted Git needs an LFS-compatible server. Same branch protections and access controls apply to LFS objects as to the rest of the repo.\nOperational notes: clones need the LFS CLI installed or fetches omit real file content; CI runners must install git-lfs and run git lfs pull where needed; monitor LFS bandwidth/storage quotas on SaaS hosts.\nSecurity: keep the client updated (e.g. 3.7.1+. For known advisories).\nNot the same as: submodule-only binary repos without LFS; artifact registries (npm, OCI) for release binaries; git itself.\nReferences\nGit LFS git-lfs/git-lfs documentation ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"git lfs"},"/garden/git-merge-queues":{"content":"Git Merge Queues. A merge queue serializes merges into a busy default branch.\nBlurb You can increase development velocity with a merge queue for pull requests in your repository.\nSummary Garden stance: We trial Git Merge Queues for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Enable on GitHub:\nBranch protection on the target branch: Require merge queue. Keep Require status checks to pass before merging with the same checks you trust on PRs. Update CI workflows to listen for merge_group (GitHub Actions) or pushes to gh-readonly-queue/<base_branch>. GitHub Actions trigger (minimal):\n1 2 3 4 5 on: pull_request: branches: [main] merge_group: branches: [main] Operator flow: author opens a PR, checks pass, clicks Merge when ready. The host enqueues the change, runs integration CI, merges on green, or removes the PR and notifies the author on failure.\nQueue settings worth tuning:\nSetting Tradeoff Merge method (squash vs merge commit) Team policy; document once Build concurrency Higher throughput vs runner cost Jump to top of queue Rebuilds in-flight work; use sparingly Failure modes: CI not wired to merge_group leaves the queue stuck waiting for checks. Third-party CI must explicitly trigger on the readonly queue branch pattern. A failed queued PR is dropped; the author fixes and re-enqueues.\nAlternatives: strict “branch must be up to date” without a queue (more author toil). Third-party bots (e.g. Mergify) where the host has no native queue. GitLab merge trains for GitLab-only estates.","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Git Merge Queues"},"/garden/git-worktree":{"content":"Git Worktree\nGit worktrees let one git repository hold several checked-out branches at once, each in its own directory. We trial it under Technique in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Versus alternatives:\nApproach Trade-off git stash Fast, but only one checkout; easy to lose context in a deep stash stack Second git clone Fully isolated, but doubles fetch/storage and drift between clones Worktree Shared objects, one remote config; must respect one-branch-per-tree rule Detached HEAD trees: git worktree add --detach ../experiment gives a throwaway checkout for spikes or reproducing a bug at a specific commit without creating a branch.\nLock and move: git worktree lock prevents accidental removal (useful on shared machines). git worktree move relocates a tree if you reorganize directories.\nCleanup: If you delete a worktree folder by hand, run git worktree prune. Use git worktree repair after path moves or corrupted admin metadata.\nGarden stance: Trial on any repo where you already adopt git and regularly switch branches mid-task. Promote to adopt once worktrees are part of your default local workflow.\nReferences\ngit-worktree Pro Git: Git Tools - Worktrees ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Git Worktree"},"/garden/github":{"content":"GitHub. Is the default Platform for hosting git repos, collaboration, and the surrounding delivery toolchain.\nBlurb Join the world’s most widely adopted, AI-powered developer platform where millions of developers, businesses, and the largest open source community build software that advances humanity.\nSummary Garden stance: We adopt GitHub for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Capability Garden link / note Version control git remotes; forks; default branch policies Review & merge Pull Request, required reviewers, CODEOWNERS CI/CD GitHub Actions (.github/workflows/) Large files git lfs (hosting quotas apply) Delivery pattern GitOps, repo as truth; Actions build, cluster tools sync Security Dependabot, secret scanning, branch protection; pair with Shift Left / DevSecOps checks Org practices we expect:\nRepos under the org (not personal accounts) for team work Protected main / release/*; no direct pushes; required status checks Least-privilege GitHub Apps or fine-grained PATs; prefer OIDC from Actions to cloud over long-lived keys .github org templates for workflows, issue forms, and security policy where it helps consistency Document exceptions when a repo must live elsewhere (customer fork, mirror, legacy host) Enterprise / compliance: GitHub Enterprise Cloud or Server when SSO, audit log retention, or data residency requires it; align with customer identity (SAML/OIDC) and IP allow lists as needed.\nReferences\nGitHub GitHub Docs About GitHub ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"GitHub"},"/garden/github-actions":{"content":"GitHub Actions. Is GitHub’s built-in CI/CD engine: event-driven workflows defined in .github/workflows/*.yml, executed on GitHub-hosted or self-hosted runners.\nBlurb Automate, customize, and execute your software development workflows right in your repository with GitHub Actions. You can discover, create, and share actions to perform any job you’d like, including CI/CD, and combine actions in a completely customized workflow.\nSummary Role: Continuous Integration on every push and pull request (build, test, lint, security scans); optional Continuous Delivery steps (artifacts, releases, environment promotions) without leaving the repo.\nWhen to use: code lives on GitHub; you want branch protection, required checks, and workflow-as-code next to the application; you need marketplace actions, reusable workflows, or org-wide workflow templates.\nWhen to skip: primary forge is GitLab (use GitLab CI instead); heavy Kubernetes-native pipeline CRDs are a deliberate platform choice (Tekton, assess); long-lived pet CI servers (Jenkins, hold) when Actions plus OIDC can replace them.\nPairs with: Shift Left and DevSecOps gates on the PR path; Policy as Code and third-party scanners (e.g. Codacy, assess) as required checks; cursor-agent for headless agent jobs in workflows when you are on Cursor billing.\nNot the same as: ArgoCD (GitOps deploy controller for Kubernetes); Argo Workflows (in-cluster DAG workflows). Actions runs the pipeline; Argo CD reconciles desired cluster state after merge.\nDetails Topic Notes Workflows Triggers: push, pull_request, schedule, workflow_dispatch, labels, releases Reuse Callable workflows and composite actions; pin third-party actions to full SHAs Runners ubuntu-latest for most jobs; self-hosted only when hardware, network, or compliance requires it Secrets Repo/org secrets and environments; prefer OIDC (id-token: write) to cloud roles over static cloud keys in YAML Permissions Least-privilege permissions: at workflow or job level; avoid blanket contents: write Environments Protection rules and required reviewers for staging/production deploy jobs Artifacts & caches Pass build outputs between jobs; cache dependencies with stable keys Concurrency concurrency groups to cancel superseded PR runs and avoid deploy races Practices we expect: required status checks on main; no secrets in logs; dependabot or renovate for action and dependency bumps; separate workflows for PR validation vs release/deploy.\nReferences\nGitHub Actions documentation Security hardening OpenID Connect ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"GitHub Actions"},"/garden/github-next-repo-visualization":{"content":"GitHub Next Repo Visualization. Is an experimental GitHub project that graphs codebase structure and dependencies for exploration in the browser.\nBlurb How can we “fingerprint” a codebase to see its structure at a glance? Let’s explore ways to automatically visualize a GitHub repo, and how that could be useful.\nSummary When to use: large unfamiliar repos; demos for stakeholders; comparing module coupling before a refactor.\nWhen to skip: need committed diagrams in git (Mermaid, Draw.io); air-gapped code that cannot call GitHub APIs; long-term support requirements (experiment may stall).","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"GitHub Next Repo Visualization"},"/garden/github-spec-kit":{"content":"GitHub Spec Kit is an intent-driven harness that scaffolds specifications, plans, tasks, and agent commands for SDD. We trial it as a structured way to apply SDD across different AI coding agents.\nBlurb Spec Kit is an extensible, intent-driven harness that pushes any coding agent beyond code, guiding it across your SDLC or any business process.\nSummary Spec Kit packages an SDD workflow into templates, scripts, and agent-specific commands. It keeps specification artifacts in the repository and supports many coding-agent integrations without making one agent the permanent choice.\nUse when: a team wants a repeatable SDD workflow with generated project scaffolding. Value: standard phases make requirements, plans, tasks, and implementation easier to inspect and review. Trade-off: the full workflow adds ceremony and generated files. Small changes may need only a subset of the phases. Trial goal: use it on a real multi-file feature and evaluate artifact quality, agent portability, and maintenance cost. Related garden notes: Spec-Driven Development (SDD), Specification, and AI Agent.\nDetails Install the Specify CLI and initialize a project:\n1 2 uv tool install specify-cli specify init my-project --integration copilot The standard workflow exposes ordered agent commands:\nPhase Command Purpose Constitution /speckit.constitution Define project principles and guardrails Specify /speckit.specify Describe the what and why Clarify /speckit.clarify Resolve material ambiguity Plan /speckit.plan Establish the technical approach Tasks /speckit.tasks Create actionable work items Implement /speckit.implement Implement against the tasks and spec Analyze /speckit.analyze Check consistency across artifacts Converge /speckit.converge Reconcile implementation with intent A shorter path can use specify, plan, tasks, implement, and converge. Production work can add constitution, clarify, checklist, and analyze phases when the extra controls provide value.\nSpec Kit supports many coding-agent integrations and includes a generic integration. This allows teams to keep the workflow while changing the agent that executes it.","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"GitHub Spec Kit"},"/garden/gitlab":{"content":"GitLab. Is an all-in-one DevSecOps Platform for git hosting, merge requests, built-in CI/CD, registry, and security scanning.\nBlurb Your intelligent orchestration platform for DevSecOps\nSummary Garden stance: We trial GitLab for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Capability Notes Version control git remotes; forks; protected branches Review Merge requests (same role as Pull Request on GitHub) CI/CD GitLab CI pipelines in .gitlab-ci.yml; includes, rules, environments Registry Container and package registry in-platform Security SAST, dependency scanning, secrets, DAST in MR; DevSecOps / Shift Left alignment Large files git lfs supported; quota per tier Self-hosted Common for public sector, telecom, and air-gap Practices when GitLab is required:\nMirror GitHub norms: no direct pushes to main; required pipeline success; CODEOWNERS / approval rules Prefer CI/CD variables and OIDC/job tokens over long-lived deploy keys where available Use merge request templates and security scan results in the MR, not email-only review Keep git workflows portable, branch naming, conventional commits, and GitOps repos work the same; only the forge and CI YAML differ GitLab vs GitHub (quick map):\nGitHub GitLab Pull request Merge request GitHub Actions GitLab CI GitHub Packages GitLab registry Dependabot Dependency scanning / Renovate-style bots References\nGitLab GitLab Docs About GitLab ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"GitLab"},"/garden/gitops":{"content":"GitOps uses pull-request workflows to drive deployment pipelines for infrastructure, policy, and security as code. We adopt it under Technique in the garden.\nBlurb GitOps is Continuous Deployment for cloud native applications\nSummary Overview: GitOps is a key part of ShiftLeft. The Pull Request process common for developers is an ideal way to handle *-as-code items like IaC, PaC, and SaC. A GitOps PR kicks off a deployment pipeline the same way an application PR kicks off a build pipeline.\nWhen to use: Teams already standardized on Git, PR review, and CI/CD who need traceable, attributable changes to config and environments.\nDetails Benefits of GitOps GitOps:\nIs able to describe complex multi-part pipelines in a single place Is able to track changes to config over time Is able to fully attribute change source (i.e., committer) and approvals Is able to design complex branching and merging behaviors easily Has readily available tooling Challenges with GitOps Even the best tool makes certain assumptions that have to be solved before the tool can be used to its full potential.\nGitOps:\nAssumes things can be described via code. This is getting better with tools like Terraform, Ansible, and Kubernetes but there are a lot of legacy out there. Separates identity from actions. Again mostly a legacy thing where the legacy attributes a human user to each action. CD pipelines are always triggered by machine so there is an extra step needed for attribution. Must have permissions checking and review at the file/directory level to ensure triggering by only correct folks. This is related to the separation of actions and identity. Since the CI will run using its identity and permissions GitOps can be a means to escalate privileges. The solution might be as simple as a CODEOWNERS files, or using a branch permission model. Must have a good means of handling sensitive info outside of Git. Should have a policy engine to check compliance. Something like Terrascan, or OpenPolicyFramework which can lint the change before it applied. Makes it difficult (but not impossible) for machines to effect change. Humans are good at handling conflicts, but machines are not. Also, adding a git repo mid-stream might be unnecessary as there are usually better ways to handle state between CD stages. ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"GitOps"},"/garden/gmail-automata":{"content":"Gmail Automata. Is a Google Apps Script project that replaces native Gmail filters with spreadsheet-defined rules.\nBlurb Automate your Gmail. Contribute to ranmocy/gmail-automata development by creating an account on GitHub.\nSummary Garden stance: We assess Gmail Automata for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Runtime: Google Apps Script bound to a spreadsheet; optional CLASP deploy from the GitHub repo (TypeScript, Yarn). Rule model: configs and rules sheets; conditions as S-expressions; staged evaluation stops after the first matching stage unless you design otherwise. Gmail setup: Minimal native filters route mail into 0unprocessed; urgent bypass uses +urgent in the address. Inbox type “Important first” is optional. Limits: Each run processes up to 50 threads; very old threads may only evaluate the latest message (2x interval default). Failure mode: Errors label threads error, move them to the inbox, and email the script owner. Activity: Last push April 2024; ~112 GitHub stars; MIT-style open source from ranmocy. Contrast: Native Gmail filters (UI-only, no version control); gog (CLI and JSON for search and mutations, not declarative filter sheets). ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Gmail Automata"},"/garden/go":{"content":"GoLang. > Build simple, secure, scalable systems with Go We adopt it under Code in the garden.\nBlurb Go is an open source programming language that makes it simple to build secure, scalable systems.\nSummary Overview: > [!NOTE] Search tip\nUse “GoLang” when searching , “Go” is too generic to get useful results.\nDetail 1: Go is a language Google created to handle its unique scaling needs. Designing for those needs eliminates the performance and scale cliff that almost everyone eventually hits. Because the language itself is fairly simple, it has become the defacto language for DevOps tooling , anywhere large-scale and/or highly concurrent programming is needed.\nDetail 2: One of its core strengths is an active community of maintainers and a Special Interest Group (SIG) that requires a working reference implementation before anything can be added to the language. Unlike many languages where a theoretical feature is added only to be poorly thought out, the SIG process forces a working fork implementation before a feature can be merged. This makes Go move slowly, but the solutions are almost always correct and well-considered.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"GoLang"},"/garden/go-script":{"content":"go script. The go script pattern (often ./go at repo root) is a small GoLang program that replaces Make for project tasks: build, test, lint, and release with one cross-platform entrypoint.\nBlurb My step-dad is a cabinet-maker by trade. We chat about his work from time to time. I’ve often been struck by the similarities between building furniture and building software. Take tooling for example. Choosing high quality tools and learning how to use them correctly is of course a very important part of woodworking.\nSummary How it works: developers run ./go test or go run ./go test (depending on shebang and execute bits). Subcommands map to functions; flags use flag or cobra if the script grows.\nWhen to use: polyglot teams need identical commands on macOS, Linux, and Windows; tasks need real code (API calls, code gen) not just shell pipelines.\nWhen to skip: the repo is already standardized on Dagu, Nx, or a monorepo tool; a thin Makefile plus documented scripts is enough.\nReference: ThoughtWorks write-up linked in url; pair with git hooks or GitHub Actions calling the same ./go targets in CI.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"go script"},"/garden/go-template":{"content":"Go Template. If you are a Go programmer then Go Templates makes a lot of sense.\nBlurb Package template implements data-driven templates for generating textual output.\nSummary Garden stance: We assess Go Template for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Things to know The language is fully described in the programming documentation. Basically, it reads text for embeds. Anytime you want to drop to code you use {{ ... }}. The output of that block is then inserted in place. Data can be accessed with $ (main object), or . (current scope). There are a relatively small set of built-ins like range, or block.\nThe main object ($) and all functions have to be registered directly in the go code. Meaning that different usages have very different behaviors. Sprig is a very common library of template functions that should be loaded to make the templates really useful.\nExample 1 2 3 4 5 6 7 8 9 10 import ( \"github.com/Masterminds/sprig/v3\" \"html/template\" ) // This example illustrates that the FuncMap *must* be set before the // templates themselves are loaded. tpl := template.Must( template.New(\"base\").Funcs(sprig.FuncMap()).ParseGlob(\"*.html\") ) template.FuncMap is a map[string]any and can be used to add any functions to the list, including internally developed ones.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Go Template"},"/garden/go-version":{"content":"go-version. Is a GoLang library from HashiCorp for parsing, comparing, and constraining SemVer strings.\nSummary What it does: Parses SemVer (including prerelease and metadata), compares versions, sorts collections, and evaluates constraint expressions (=, !=, >, >=, <, <=, pessimistic ~>).\nWhen to use: Go CLI or operator that must gate upgrades, pick compatible chart or module versions, or validate user input before install.\nWhen to skip: pure string equality is enough; you already depend on a larger framework that ships its own semver helper; non-SemVer version schemes (date-based, custom).\nTypical call sites: Terraform providers, Helm-related tooling, internal release automation written in Go.\nDetails API surface Notes version.NewVersion Parse a single version string version.NewConstraint Parse constraint sets (\">= 1.0, < 2.0\") Constraints.Check Test whether a version satisfies constraints WithPrefix Strip custom prefixes (e.g. v1.2.3) before parse Practices: reject non-SemVer input at the boundary; log the normalized form you compared; pin the module in go.mod like any other library dependency.\nReferences\ngo-version on pkg.go.dev SemVer spec ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"go-version"},"/garden/gocd":{"content":"GoCD. Is an open source continuous delivery server from ThoughtWorks.\nBlurb GoCD is an open source build and release tool originally conceived and built by Thoughtworks. GoCD supports modern infrastructure and helps enterprise businesses get software delivered faster, safer, and more reliably.\nSummary When to use: maintaining an existing GoCD server; need visual pipeline DAG and artifact promotion semantics teams already understand.\nWhen to skip: greenfield repos; preference for pipeline-as-code in git without a central CD server; GitOps models where cluster state is the source of truth.\nNote: operational burden similar to other pet CD servers; treat the server as infrastructure with backups and upgrades planned.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"GoCD"},"/garden/gog":{"content":"gog. Is a single-binary CLI for Google Workspace (Gmail, Calendar, Drive, Docs, Sheets, Slides, Contacts, Tasks, Chat, and Workspace Admin).\nSummary Garden stance: We assess gog for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Install: brew install per Quickstart. On gogcli.sh; MIT license; active development (steipete/gogcli on GitHub). Output: --json envelope on stdout; --plain TSV for awk; stderr for prompts and warnings (pipe-safe). Agent safety: Safety profiles and bundled agent skill documented on site; read-only audit modes (Drive tree, du, Contacts dedupe preview). Fit: Tool / AI Agent - Google Workspace CLI for humans, scripts, and agents. Contrast: Official Gmail MCP (Gmail Access); Composio managed MCP; raw curl + Google REST APIs. Caveats: Not affiliated with Google; Workspace accounts may block personal OAuth apps (e.g. john.kamenik@gomboc.ai in gmail-access research). History ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"gog"},"/garden/goodcheck":{"content":"goodcheck is a tool we use to limit standing privilege and grant audited, time-bound access instead. We hold it under Tool in the garden.\nSummary When it was useful: enforce house style (“do not call X”, “prefer Y over Z”) without standing up a full SAST platform; fast feedback in CI.\nWhen to skip now: greenfield adoption. Prefer Semgrep-class rule runners or language-native linters with active maintenance.\nStill available (frozen): Ruby gem goodcheck 3.1.0 on RubyGems (last release 2021-07-15). Docs at sider.github.io/goodcheck. Docker image sider/goodcheck appears removed from Docker Hub.\nAlternatives: Semgrep, custom grep/regex CI steps, Conftest / OPA for policy on IaC (not a drop-in for app-source YAML rules).\nDetails History Era Org / repo Notes 2014-2018 SideCI Tokyo-based automated PR review product 2018+ Sider (sider/goodcheck) Rebrand; goodcheck open-sourced as AGPL Ruby gem 2022-09 Service shutdown sider.review end-of-service (see Web Archive) 2025-03 Company liquidation 株式会社 Sider wound up; GitHub org repos deleted Rule shape (for comparison) Rules are YAML lists with id, pattern (regex), message, optional glob, pass/fail examples. Same niche as lightweight custom Semgrep rules, but with a smaller ecosystem.\nStatus Abandoned, not renamed. Sider ended its code-review service in September 2022. The company (株式会社 Sider) completed liquidation on 2025-03-04. github.com/sider/goodcheck and the earlier sideci/goodcheck both return 404. There is no official successor repo or maintained fork with comparable traction.","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"goodcheck"},"/garden/goodharts-law":{"content":"Goodhart’s Law is the principle that once a metric becomes a target it stops measuring what it was meant to measure. We adopt it because experience shows it explains why dashboards and incentives quietly drift from real goals.\nBlurb “When a measure becomes a target, it ceases to be a good measure.”\nSummary Use Goodhart’s Law as a check when picking KPIs, SLAs, post-incident metrics, or any number that people get rewarded for. The risk is that teams optimize to the number, not the outcome, and the number goes up while the goal goes sideways.\nThe insight can be freeing: do not stress over finding the perfect metric, because it does not exist. So rather than chasing one ideal number, pick several metrics and read them together. How the metrics behave relative to each other matters more than any raw number alone.\nKey trade-offs:\nNumbers are easy to observe but easy to game. Blunt proxies invite Goodhart drift. Collecting perfect measures is impossible. The trick is not to turn imperfect measures into fiat targets. Correlate metrics against each other instead of reading each one alone. Example: rising Error rate with nothing else changed points to bad requests. Rising Error rate and Latency together points to a resource problem somewhere. The signal comes from the relationship, not the numbers.\nRelated garden notes: DORA Metrics, SLAs, Continuous Delivery, Incident Management.\nDetails Goodhart’s Law is attributed to economist Charles Goodhart, first stated in a 1975 paper on monetary policy. It is closely related to the observer effect and to game theory ideas about incentives and perverse outcomes. In software it is cited most often around delivery metrics, on-call metrics, and any metric tied to a reward.\nCommon mitigating practices:\nReview chosen targets with the “does this still measure the outcome” question each quarter. Prefer scorecards with several measures over one headline number. Keep an eye on metric whores: numbers that rise without outcome improving are a signal of Goodhart drift. ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-08-11T00:00:00-04:00","tags":null,"title":"Goodhart's Law"},"/garden/google-cloud-platform":{"content":"Google Cloud Platform. (GCP) is Google’s hyperscale Cloud offering.\nBlurb Meet your business challenges head on with AI and cloud computing services from Google, including security, data management, and hybrid & multi-cloud.\nSummary Garden stance: We adopt Google Cloud Platform for our estate.\nKey points:\nTopic Notes Position Third-largest hyperscaler by market share; strongest fit for K8s-native and data/AI greenfield Compute Decoupled vCPU, RAM, and GPU pricing vs fixed instance families on AWS K8s Google GKE is the default managed cluster choice; Anthos for multi-cloud fleet ops Observability Cloud Operations integrates metrics, logging, and tracing; GCP metrics included Security BeyondCorp lineage; org/folder/project IAM; policy and IaC-first setup patterns Data BigQuery, Spanner, and shared storage layer for analytics and global consistency Multi-cloud Hybrid Cloud pattern: GCP spearhead, not full migration from AWS/Azure Tooling Terraform and Google-native deployment tools; GoLang ecosystem alignment Details Topic Notes Position Third-largest hyperscaler by market share; strongest fit for K8s-native and data/AI greenfield Compute Decoupled vCPU, RAM, and GPU pricing vs fixed instance families on AWS K8s Google GKE is the default managed cluster choice; Anthos for multi-cloud fleet ops Observability Cloud Operations integrates metrics, logging, and tracing; GCP metrics included Security BeyondCorp lineage; org/folder/project IAM; policy and IaC-first setup patterns Data BigQuery, Spanner, and shared storage layer for analytics and global consistency Multi-cloud Hybrid Cloud pattern: GCP spearhead, not full migration from AWS/Azure Tooling Terraform and Google-native deployment tools; GoLang ecosystem alignment ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Google Cloud Platform"},"/garden/google-gke":{"content":"Google GKE is Google’s managed Kubernetes control plane on Google Cloud Platform. We trial it as the default cluster choice for greenfield K8s when GCP is in scope.\nBlurb Google Kubernetes Engine (GKE) is a managed, production-ready environment for deploying containerized applications.\nSummary What it is: Managed K8s from the team that open-sourced Kubernetes. GKE runs the control plane, integrates with GCP IAM and networking, and offers Standard (you manage node pools) or Autopilot (GKE provisions and bills per pod).\nWhen to use:\nGreenfield container platforms on Google Cloud Platform Teams that want lower day-2 ops than AWS EKS Workloads that benefit from Autopilot’s nodeless scaling Fleets that need Config Sync, Policy Controller, or multi-cluster management without extra SKUs (included on Standard since late 2025) When to skip: Hard AWS or Azure lock-in; on-prem-only mandates without Anthos; tiny footprints where K3d or a single VM is enough; cost models where per-pod Autopilot pricing loses to reserved Standard nodes at steady utilization.\nMode Best for Trade-off Standard Predictable baselines, custom node shapes, GPU pools, existing Terraform modules You own node patching, pool sizing, and add-on compatibility Autopilot Variable traffic, small platform teams, fast scale-out Pod resource requests drive cost; some DaemonSets and privileged patterns restricted Autopilot workloads on Standard (2025+) Mix managed and self-managed pools in one cluster Qualifying cluster version and release channel required Pairs with: Terraform or Google Config Connector for cluster IaC; ArgoCD or GitOps for delivery; Policy as Code via GKE Policy Controller or Gatekeeper-compatible admission.\nDetails Pricing and Operations (2025) Google simplified GKE pricing in late 2025:\nCluster management fee: $0.10/hour per cluster (all modes and topologies). Free tier: $74.40/month in credits per billing account (covers one zonal Standard or Autopilot cluster fee). Standard compute: pay for underlying Compute Engine nodes in your pools. Autopilot: pay per pod based on CPU, memory, and ephemeral storage requests. Fleet features: Fleets, Teams, Config Management, Policy Controller, and Fleet dashboard ship on Standard at no extra charge (previously tier-gated). Check the GKE pricing page before capacity planning. Extended release channel clusters may incur additional fees during extended support windows.\nStandard vs Autopilot Topic Standard Autopilot Node management You define node pools GKE provisions nodes per scheduled pods Scaling Cluster autoscaler on pools; HPA/VPA on workloads Built-in horizontal and vertical pod scaling Security baseline You harden node images and OS Hardened, Google-managed node OS by default Flexibility Full K8s feature surface Opinionated; some pod specs rejected at admission Since September 2025, Autopilot’s container-optimized compute platform can run on qualifying Standard clusters for selected workloads. You do not need a dedicated Autopilot-only cluster for every use case.\nComparison to AWS EKS Parent Google Cloud Platform and sibling AWS EKS (hold) share the same garden stance: prefer GKE for new K8s unless AWS coupling is fixed.\nTopic GKE EKS Control-plane ops Flat per-cluster fee; strong GCP integration Per-cluster fee; more IAM/VPC wiring Node lifecycle Autopilot option or managed node auto-upgrade on Standard Managed node groups or Fargate; more assembly required Day-2 burden Lower for Autopilot; Fleet policy tools included Higher: CNI, add-ons, ingress, and patching often bespoke Garden rating trial (default on GCP) hold (containment on AWS) Related Garden Links Google Cloud Platform: parent platform (adopt) Kubernetes: orchestrator reference (adopt) Kustomize, Helm: manifest packaging on cluster Keda, Karpenter: event-driven and node autoscaling patterns (compare to GKE’s built-in autoscaler stack) ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"Google GKE"},"/garden/grafana":{"content":"Grafana. Is the open and composable observability platform.\nSummary Garden stance: We trial Grafana for our estate.\nKey points:\nTopic Notes Deploy Single binary, Docker, Helm, or Grafana Cloud; separate scale paths for query frontends vs alert workers Data model Metrics-first; SQL and logs via datasource plugins, not a built-in warehouse Auth OAuth, SAML, RBAC; map teams to folder and datasource permissions Practices: Prefer Grafana OSS or self-hosted deploys when lock-in risk matters; keep dashboard JSON in git; label alert routes by severity. Avoid using Grafana as the only BI layer for finance or product analytics without a semantic layer elsewhere.\nReferences\nGrafana OSS GitHub repository Details Topic Notes Deploy Single binary, Docker, Helm, or Grafana Cloud; separate scale paths for query frontends vs alert workers Data model Metrics-first; SQL and logs via datasource plugins, not a built-in warehouse Auth OAuth, SAML, RBAC; map teams to folder and datasource permissions Practices: Prefer Grafana OSS or self-hosted deploys when lock-in risk matters; keep dashboard JSON in git; label alert routes by severity. Avoid using Grafana as the only BI layer for finance or product analytics without a semantic layer elsewhere.\nReferences\nGrafana OSS GitHub repository ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Grafana"},"/garden/grafana-k6":{"content":"Grafana k6. Is an open source load testing and synthetic monitoring tool for API and browser performance checks.\nSummary Garden stance: We trial Grafana k6 for our estate.\nKey points:\nTopic Notes Fit Monitoring synthetics/load; pairs with Grafana dashboards Contrast Kuberhealthy for in-cluster checker pods; Upptime for GHA status pages References\nGrafana k6 documentation Details Topic Notes Fit Monitoring synthetics/load; pairs with Grafana dashboards Contrast Kuberhealthy for in-cluster checker pods; Upptime for GHA status pages References\nGrafana k6 documentation ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Grafana k6"},"/garden/graphql":{"content":"GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. We hold it under Technique in the garden.\nSummary Published by Facebook in 2015, it solves a problem that is unique to them that really only existed for a short period of time. Namely, requests were coming in so fast that it was wasting a lot of bandwidth, since not all clients needed the same information.\nOpenAPI is a much lighter weight solution, which solves far more use-cases, until you really do hit the hyper-scale of Facebook. Until you do it is best if you avoid GraphQL.","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"GraphQL"},"/garden/graphviz":{"content":"Graphviz renders directed and undirected graphs from DOT text using layout engines such as dot, neato, and fdp. We hold it for legacy DOT pipelines. Prefer Mermaid for new docs-as-code diagrams.\nBlurb Graphviz is open source graph visualization software. Graph visualization is a way of representing structural information as diagrams of abstract graphs and networks.\nSummary What it is: A CLI and library suite (originally AT&T Labs) that turns DOT language files into PNG, SVG, PDF, and other outputs. Strong at automatic layout of node-edge graphs. Weak at modern software diagram types and author ergonomics compared to Mermaid.\nWhen to use (hold, not banned):\nSituation Notes Existing DOT in repos or CI Maintain what you have; do not rewrite without cause Tools that emit DOT terraform graph, profilers, codegen, or analysis pipelines Large abstract graphs fdp / sfdp layouts for hundreds of nodes where Mermaid chokes Library embedding Apps that call Graphviz C APIs for programmatic layout When to skip (default for new work):\nArchitecture docs in Markdown, ADRs, or Hugo posts (Mermaid adopt) Stakeholder polish, cloud icons, manual layout (Draw.io trial) Disposable chat sketches (AsciiFlow hold) Trade-offs: DOT is verbose. Default styling looks dated. Custom icons often need HTML-like labels or post-processing. Scope is graphs and digraphs only. No native sequence, ER, or Gantt diagram types.\nDetails DOT Language and Layout Engines Engine Best for dot Hierarchical directed graphs (layered layouts) neato Undirected graphs; spring-model layouts up to ~1k nodes fdp Force-directed layouts for medium undirected graphs sfdp Multiscale fdp for large graphs circo Circular layouts for cyclic structures twopi Radial layouts from a root node Author a .gv or .dot file, then run dot -Tsvg input.gv -o output.svg. Other binaries (neato, fdp, etc.) share the same DOT input with different layout algorithms.\nOutput and Integration Topic Notes Formats PNG, SVG, PDF, PS, plain text, JSON-like graph dumps Obsidian / Hugo No first-class DOT fence; render to SVG and embed, or use a plugin GitHub No native DOT preview in Markdown (unlike Mermaid) Libraries C core with bindings in many languages for programmatic graph build Compared to Mermaid Topic Graphviz Mermaid Diagram types Graphs and digraphs Flowchart, sequence, class, ER, Gantt, and more Author UX Low-level attributes and layout tuning Markdown-adjacent blocks in docs Git / PR diffs Works if DOT is source Adopt default for repo-native diagrams Visual polish Dated defaults; heavy styling effort Cleaner defaults for software docs Garden stance hold adopt See Diagramming for the full garden matrix.\nReferences Graphviz documentation DOT language Drawing graphs with dot (PDF guide) ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"Graphviz"},"/garden/grpc":{"content":"gRPC. A high-performance, open source universal RPC framework We assess it under Technique in the garden.\nSummary Key points:\nTopic Notes Transport HTTP/2; binary Protobuf payloads Strengths Streaming, strong contracts, efficient internal calls Risks RPC impedance across teams; debugging and versioning tax Local / IPC Docker, Terraform, and similar tools use gRPC-shaped local APIs Alternatives REST (default), GraphQL (hold for new greenfield) Details Topic Notes Transport HTTP/2; binary Protobuf payloads Strengths Streaming, strong contracts, efficient internal calls Risks RPC impedance across teams; debugging and versioning tax Local / IPC Docker, Terraform, and similar tools use gRPC-shaped local APIs Alternatives REST (default), GraphQL (hold for new greenfield) ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"gRPC"},"/garden/hammerspoon":{"content":"Hammerspoon is a macOS automation bridge that exposes system APIs to Lua scripts through bundled extensions. We adopt it for keyboard-driven window management, menu bar utilities, and local glue that Shortcuts or AppleScript handle poorly.\nBlurb This is a tool for powerful automation of macOS. At its core, Hammerspoon is just a bridge between the operating system and a Lua scripting engine. What gives Hammerspoon its power is a set of extensions that expose specific pieces of system functionality, to the user.\nSummary When to use:\nUse Notes Window and app control Move, resize, focus, and tile windows with hotkeys Menu bar utilities Small scripts with hs.menubar for status and quick actions Local glue Wire CLI tools, notifications, USB events, and app launches together Personal macOS setup Version-controlled Lua in ~/.hammerspoon/ you reload on save When to skip:\nCross-platform automation (Linux or Windows targets) Team-wide policies that need MDM-managed profiles Workflows Shortcuts or AppleScript already cover with less code Trade-offs: Config is code, not clicks. Power users love it; shared machines need discipline so hotkeys do not surprise other users.\nDetails Topic Notes Entry point ~/.hammerspoon/init.lua; reload with hs.reload() or the menu bar item Extensions hs.window, hs.hotkey, hs.application, hs.menubar, hs.notify, and many more in the docs Debug Built-in console and hs.printf() for printf-style tracing Distribution No app bundle to ship; each user maintains their own config folder Example config Public reference: jkamenik/.hammerspoon References\nHammerspoon documentation Getting Started ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"Hammerspoon"},"/garden/harness-io":{"content":"Harness.io. We assess it under Platform in the garden.\nBlurb Harness is a unified, end-to-end AI software delivery platform to manage the SDLC using purpose-built AI agents.\nSummary When to use: centralized governance for many teams; need vendor support for regulated industries; evaluating feature flags and deployment governance in one SKU.\nWhen to skip: cost-sensitive startups; teams already standardized on Actions plus ArgoCD; preference for composable OSS over suite pricing.\nPairs with: existing Kubernetes clusters, secret managers, and policy tools (Policy as Code, Conftest) rather than replacing them.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Harness.io"},"/garden/hcl":{"content":"HCL. We trial it under Code in the garden.\nBlurb HCL is the HashiCorp configuration language. Contribute to hashicorp/hcl development by creating an account on GitHub.\nSummary HCL grew out of a practical constraint: when HashiCorp moved its tools to GoLang, embedding Go as an end-user DSL was awkward. They built a small declarative language tuned for blocks, attributes, and references. Those patterns map cleanly to infrastructure resources. It is intentionally not Turing-complete in the same way as a general programming language; expressions and functions exist, but the model stays declarative, which keeps diffs reviewable and state plans predictable.\nFor greenfield work outside Terraform/OpenTofu, YAML (plus optional templating via Helm or YAMLScript) or imperative/semantic IaC via Pulumi often wins on hiring surface area and license clarity. Inside an existing Terraform or OpenTofu estate, learning HCL is non-optional.\nDetails Syntax families: Native HCL (.tf, .hcl), JSON syntax as an alternate encoding for the same Terraform schema, and HCL2 as the current generation used by modern Terraform. Ecosystem: Tied to Terraform; OpenTofu maintains compatible HCL. Other HashiCorp products consume HCL-shaped config but are separate adoption decisions. License context: HashiCorp’s BSL shift does not change HCL’s technical role but affects how aggressively to standardize on HashiCorp-only stacks versus forks or YAML-native tools. When to prefer alternatives: Kubernetes and cloud-native config (YAML), cross-cloud app-centric IaC (Pulumi), or policy expressions embedded in APIs (CEL) rather than full resource graphs. ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"HCL"},"/garden/helm":{"content":"Helm. Quadrant:: Tool Ring:: #adopt URL:: https://helm.sh/ Category:: #category/devops/provisioner Related:: Kubernetes We adopt it under Tool in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Helm"},"/garden/helm-chart":{"content":"Helm Charts are the artifact that Helm reads and installs in a Kubernetes cluster. We assess it under Code in the garden.\nSummary Key points: While Helm itself is a MUST if you are in the Kubernetes ecosystem that doesn’t extend to maintaining your own Helm Charts. They are nessessity to understand but there are limited use cases where you should maintain them your selves. The real only reason to do that is if you are providing customers the ability to install on their own clusters. For all other cases Kustomize is a better choice.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Helm Chart"},"/garden/helm-unittest":{"content":"Helm Unittest is a code we adopt in the garden.\nBlurb BDD styled unit test framework for Kubernetes Helm charts as a Helm plugin. - helm-unittest/helm-unittest\nSummary Chart authors encode scenarios as test files under tests/ (or similar): set values, render templates, and compare output to expected YAML or snapshots. This is far faster and more deterministic than only testing in a live cluster, and it documents expected behavior for reviewers.\nDetails Workflow: install the plugin (helm plugin install https://github.com/helm-unittest/helm-unittest); run helm unittest in the chart directory in CI. Assertions: document presence, equals, match regex, snapshot files, and suite-level setup/teardown for values files. Fit: essential when you ship Helm Chart artifacts to customers or run many value permutations (dev/stage/prod). Limits: tests template output, not cluster behavior, pair with integration tests for admission, CRDs, and hooks. Note: superseded the earlier quintush/helm-unittest fork; use the helm-unittest org repository. ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Helm Unittest"},"/garden/herdr":{"content":"herdr is an agent-native terminal multiplexer where coding agents run in real panes and keep working after you disconnect. We adopt it as the multiplexer in the TUI IDE stack.\nBlurb Herdr is where your coding agents live. However many you run, across however many projects, each in its own terminal. Walk away and they keep working. Come back from any machine and they’re where you left them.\nSummary Use herdr on the VPS to run the OpenCode TUI and any number of agents in workspaces, tabs, and panes. It marks each pane as working, blocked, idle, or done, which matters on a phone screen where you cannot babysit every pane.\nIt replaced tmux as the multiplexer of choice because of mouse support, agent state at a glance, and a similar experience to Supacode. Sessions live in a background server, so they survive laptop close and network drops.\nTheming follows the outer terminal with [theme] name = \"terminal\".\nDetails Upstream: https://herdr.dev Role: terminal multiplexer and agent runtime in the TUI IDE stack Model: workspaces, tabs, and panes; lifecycle states for agents Transport: SSH bootstrap over Mosh; herdr --remote is SSH-only today Integration: first-class OpenCode lifecycle hooks via herdr integration install opencode Related: tmux, Supacode, Mosh, OpenCode, NeoVim ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-09-18T00:00:00-04:00","tags":null,"title":"herdr"},"/garden/hermes-agent":{"content":"Hermes. We hold it under Tool in the garden.\nBlurb The agent that grows with you. Contribute to NousResearch/hermes-agent development by creating an account on GitHub.\nSummary Hermes targets the same problem space as OpenClaw: an always-available assistant across chat surfaces (Telegram, Slack, CLI, etc.) with memory, cron-style scheduling, and skill extensibility. It integrates Agent Client Protocol so editors like Obsidian can use the agent via plugins (e.g. obsidian-agent-client). On Apple Silicon, local runs via Ollama with models such as deepseek and qwen are practical.\nOriginally a credible competitor in the personal-agent wave; our position is that broad tool-and-shell access without tight policy boundaries is unsafe for most setups. Prefer IDE-bound agents (Claude Code, Cursor-class tools) or pipelines that emit reviewable scripts on a schedule.\nDetails Strengths: skill learning loop, multi-channel gateway, Agent Skills Framework portability, ACP for IDE clients, flexible model routing (cloud or Ollama). Risks: persistent credentials, messaging exfiltration, autonomous cron/subagent actions, treat as high-trust workload only with explicit sandboxing. When hold is OK: isolated experimentation, local-only models, single-user machine with clear data boundaries. When to avoid: production secrets on the same host, multi-tenant boxes, or “set and forget” automation without human review. Install: upstream documents quick install via install.sh on macOS/Linux; verify signing and update channel before production use. ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Hermes"},"/garden/honeycomb":{"content":"Honeycomb. Is an observability platform optimized for high-cardinality event data and fast iterative debugging.\nBlurb Honeycomb is the observability platform built for AI-era software. Fast queries, unified telemetry, and LLM observability. Used by Slack, Intercom, and Dropbox.\nSummary What it is: Event store and UI for wide events, traces, and metrics with fast filters across many dimensions.\nWhen to use: Microservices with rich attributes; teams outgrow pre-aggregated metric dashboards for incident triage.\nWhen to skip: Small teams with simple RED metrics needs. Cost-sensitive estates without event-volume discipline.\nKey features: BubbleUp diffs, Service Level Objectives, OpenTelemetry ingest, boards (dashboard-like views).\nDetails Topic Notes Fit Monitoring with exploratory UI; pairs with OpenTelemetry instrumentation Contrast Datadog for full-suite SaaS; Jaeger for OSS trace-only backends References\nHoneycomb documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Honeycomb"},"/garden/hybrid-cloud":{"content":"Hybrid Cloud is a technique we adopt in the garden.\nSummary Key points: It is important that you bridge your cloud accounts securely either via SDWAN, VPN Gateway, or Beyond Corp.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Hybrid Cloud"},"/garden/iac":{"content":"Infrastructure as code (IaC) manages and provisions environments through versioned, machine-readable definitions instead of manual console changes. We adopt it as the foundation for Shift Left, DevSecOps, and GitOps delivery.\nBlurb Infrastructure as code (IaC), also known as software-defined infrastructure (SDI), is the process of managing and provisioning computer data centers through machine-readable definition files, rather than physical hardware configuration or interactive configuration tools.\nSummary When to use:\nUse Notes Repeatable environments Dev, staging, and prod share the same definitions with parameter differences Reviewable change PRs show diffs before apply; auditors get Git history Drift control Reconcilers detect and correct config that drifted from declared state Security gates Pair with Policy as Code scanners on every PR When to skip:\nEphemeral sandboxes you tear down in hours and never reproduce One-off experiments where a console click is faster than codifying Teams with no Git or PR culture yet (fix process before scaling IaC) Garden split: Declarative IaC (adopt) for desired-state files; Imperative IaC (hold) for generators that hide side effects. See child notes for tool tables and anti-patterns.\nRelated practices: GitOps applies IaC through merge workflows. Shift Left and DevSecOps expect infra changes in the same pipeline as application code.\nDetails Declarative vs Imperative Style Artifact Garden stance Declarative IaC Desired end state (HCL, YAML, JSON) adopt Imperative IaC Programs that call cloud APIs hold Declarative IaC lets reviewers see what should exist. Engines compute diffs and handle ordering. Imperative generators can be smaller but make blast radius harder to predict.\nCommon Surfaces Surface Examples Cloud accounts Terraform / OpenTofu Kubernetes manifests, Helm charts Cluster delivery GitOps controllers reconcile Git state Policy Policy as Code lint before merge Operating Discipline Topic Notes State Remote backends or cluster etcd; lock and back up Secrets Never in Git; use secret managers and external data sources Modules DRY through modules and variables, not imperative codegen Import Bootstrap tools like terraformer can help; refactor into modules after References\nWikipedia: Infrastructure as code Declarative IaC for expanded tool matrix and reconciliation notes ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"IaC"},"/garden/iceberg":{"content":"Apache Iceberg is an open table format for huge analytic datasets on object storage. We trial it as the default multi-engine lakehouse table format when the estate needs Spark, Trino, Flink, and friends on the same tables.\nBlurb The open table format for analytic datasets.\nSummary What it is: High-performance table format with SQL-friendly semantics: schema evolution, hidden partitioning, time travel, rollback, and compaction. Engines (Trino, Spark, Flink, Hive, Impala, and others) can share tables safely. Data files are typically Parquet (or similar) on the lake.\nWhen to use:\nSituation Notes Multi-engine lakes Several query engines on one catalog of tables Large mutable analytics Merge, update, delete with snapshots Open lakehouse standard Broad vendor and OSS adoption When to skip:\nSingle-engine embedded lakes where DuckLake SQL metadata is simpler Tiny datasets that never leave DuckDB or a warehouse No appetite for catalog services and compaction ops Trade-offs: Mature ecosystem and engine support; metadata design still involves file-based snapshots plus a catalog for atomicity. Ops and planning latency are the usual pain points vs SQL-catalog formats.\nDetails Capabilities (short) Feature Notes Schema evolution Add, rename, reorder without rewrite zombies Hidden partitioning Engines skip files without manual partition filters Time travel Query by snapshot or timestamp Compaction Rewrite strategies built in Vs DuckLake Iceberg keeps much metadata in files and uses a catalog for version pointers. DuckLake puts all metadata in SQL. Prefer Iceberg for multi-engine interoperability today; assess DuckLake when the stack is DuckDB/Postgres-centric and early-format risk is acceptable.\nReferences iceberg.apache.org ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"Iceberg"},"/garden/ide":{"content":"Under Tool, IDE covers integrated development environments and editor platforms where you write, debug, and refactor code, often with LSP, terminals, and increasingly agent panels. This is the bounded workspace we prefer over always-on messaging agents: tools stay inside your repo and session policies.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"IDE"},"/garden/imperative-iac":{"content":"Imperative IaC is a technique we hold in the garden.\nSummary Key points: However, the two main goals of IaC are decreased blast radius and security over time, which imperative IaC makes impossible. Almost all clients we have worked with have regretted the choice of Imperative IaC tools like Pulumi and AWS CDK. While imperative IaC code might be smaller, the side effects of simple changes are vastly more complicated to understand, which makes responding to change risky, and error prone.","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Imperative IaC"},"/garden/inbox-pattern":{"content":"Inbox Pattern is a technique we adopt in the garden.\nSummary Overview: ```mermaid sequenceDiagram actor User\nDetail 1: box Service participant API participant TaskExecutor end\nDetail 2: participant DB as Database## Personal Experience","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Inbox Pattern"},"/garden/incident-management":{"content":"Incident Management is the practice of detecting, responding to, resolving, and learning from unplanned disruptions to production systems. We adopt it under Technique in the garden.\nSummary Every team shipping to production should adopt incident management, even if lightly. Start with severity definitions (P1-P3), an on-call schedule, and a postmortem template. The investment pays back immediately the first time a P1 hits and everyone knows their role. Tools like PagerDuty, Opsgenie, or even a simple Slack workflow can carry you a long way. The process matters more than the tooling.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Incident Management"},"/garden/inetsim":{"content":"INetSim simulates DNS, HTTP, SMTP, and other internet services in an isolated lab so samples can run without reaching the real internet. We assess it for malware analysis and blue-team lab work.\nBlurb INetSim is a software suite for simulating common internet services in a lab environment, e.g. for analyzing the network behaviour of unknown malware samples.\nSummary What it is: A GPL Perl suite that binds fake services, logs requests and replies, and produces session reports. One process replaces a patchwork of Apache, Postfix, dnsmasq, and custom scripts with unified logging.\nWhen to use:\nSituation Notes Malware dynamic analysis Observe DNS, download, SMTP, and C2 callback attempts safely Offline or air-gapped lab VLAN Give samples plausible “internet” without egress Blue-team training Show how droppers beacon and exfiltrate in a controlled net Gateway VM in analysis topology Pair with a sample host whose DNS resolves to the INetSim IP When to skip:\nProduction service simulation or integration testing (use real stubs or Docker compose instead) Cloud-native security pipelines that already include a commercial sandbox Greenfield labs that need active maintenance and modern TLS interception (evaluate newer stacks first) Teams with no malware analysis mandate Trade-offs: Last upstream release is 1.3.2 (May 2020). Still packaged in Debian and widely cited in lab guides. Perl dependency tree is dated but stable. TLS support exists for several modules; deep HTTPS inspection often needs a separate proxy in front.\nDetails Simulated Services Service Role in malware labs DNS Fake forward and reverse lookups; static and default answers HTTP / HTTPS Serve canned pages or capture download requests SMTP / POP3 Log mail exfiltration and spam-bot behavior FTP / TFTP File pull and drop patterns NTP / Time / Daytime Trigger time-based malware logic IRC, Finger, Ident, Syslog Legacy bot and beacon protocols Dummy Log traffic to odd ports when paired with redirection See the features page for the full module list.\nNotable Features Feature Use Faketime Return configured timestamps so time-bomb samples activate on demand Connection redirection IP and port rules (Linux netfilter queue) to steer traffic between modules or external sinks Session logging Per-connection request and reply logs plus end-of-session summary report NAT-style routing Make redirected traffic look like varied upstream hops (TTL tuning) Typical Lab Layout Isolate a sample VM on a lab VLAN with no default route to the public internet. Run INetSim on a gateway host (Debian package or tarball install). Point sample DNS at the INetSim IP so common hostnames resolve locally. Execute the sample; collect INetSim logs and PCAP from the gateway. Tear down the VLAN or revert snapshots between runs. Run the daemon as an unprivileged dedicated user after install. Do not run the service as root.\nLimitations Stale upstream: No release since 2020; verify Perl modules and OS packages still install on your base image. Scope: Simulates protocols; it does not execute samples or replace a full sandbox VM. HTTPS depth: May need an external TLS proxy for realistic cert behavior on modern malware. Platform: Connection redirection requires Linux netfilter queue support. Related Garden Links DevSecOps: broader secure SDLC context; INetSim is analyst-lab tooling, not CI Shift Left: complementary axis (pre-merge scanning vs runtime sample behavior) Docker: optional packaging for lab hosts; INetSim itself is traditionally systemd on a gateway VM ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"INetSim"},"/garden/influxdb":{"content":"InfluxDB. Is a time-series database platform (InfluxDB 3 / IOx lineage) for metrics, events, and IoT-style telemetry.\nSummary What it is: Columnar TSDB with SQL/InfluxQL/Flux query paths (version-dependent), retention policies, and Telegraf ingest.\nWhen to use: Existing Influx estates; IoT or industrial telemetry already on Telegraf; Grafana dashboards over Influx.\nWhen to skip: Standard Kubernetes app metrics without legacy Influx investment.\nKey features: Buckets and retention, downsampling, InfluxDB Cloud Serverless, Telegraf plugin ecosystem.\nDetails Topic Notes Versions Confirm whether estate runs 1.x, 2.x, or 3.x; APIs differ Pairing Common Grafana datasource; compare with Prometheus for new services References\nInfluxDB documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"InfluxDB"},"/garden/infracost":{"content":"Infracost is a tool we assess in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Infracost"},"/garden/insecurebank-v2":{"content":"InsecureBank v2. Is a deliberately vulnerable Android banking app with a Python 2 AndroLab back-end server.\nBlurb Vulnerable Android application for developers and security enthusiasts to learn about Android insecurities - dineshshetty/Android-InsecureBankv2\nSummary Garden stance: We trial InsecureBank v2 for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Vulnerability Coverage The README lists flaws across Android components, storage, crypto, and transport. Representative categories:\nArea Examples Components Flawed broadcast receivers, intent sniffing and injection, vulnerable activities, insecure content providers Client hardening Root and emulator detection bypass, application patching, runtime manipulation, debuggable flag Data handling Local encryption issues, insecure SD card storage, pasteboard and keyboard cache leaks, backup exposure Network and auth Insecure HTTP, weak authorization, parameter manipulation, username enumeration, hardcoded secrets Other Insecure WebView, weak cryptography, insecure logging, developer backdoors, weak change-password flow Work-in-progress items (per upstream) include path traversal, local SQL injection, lock-screen bypass, and location spoofing.\nLab Topology Install InsecureBankv2.apk on an emulator or rooted lab device. Start AndroLabServer from AndroLabServer/ on a host the emulator can reach. Confirm host-to-emulator networking (adb shell, netcat) before debugging app login failures. Log in with demo accounts from the README (for example dinesh / Dinesh@123$ or jack / Jack@123$). The repo includes Walkthroughs/ and Usage Guide.pdf for guided exploitation paths.\nCompared to Web Labs Lens InsecureBank v2 Juice Shop / DVWA Surface Android APK plus mobile API Browser and HTTP APIs Skills Reverse engineering, Frida, adb Burp, Zed Attack Proxy (Zap), browser devtools Server Python 2 AndroLabServer (lab only) PHP/Node stack in container or VM Best fit Mobile AppSec and MASTG drills OWASP Top 10 web fundamentals Deployment Guardrails Use a dedicated emulator or lab phone, not a daily driver with personal data. Keep AndroLabServer on a host-only or lab VLAN interface. Treat demo credentials and hardcoded secrets as intentional; never reuse those patterns in real apps. Expect Python 2 and older Android SDK assumptions; pin emulator images that match upstream docs. Reset app data and server DB between teaching sessions for repeatable scores. Install Sketch 1 2 3 4 5 git clone https://github.com/dineshshetty/Android-InsecureBankv2.git cd Android-InsecureBankv2/AndroLabServer pip install -r requirements.txt # Python 2 environment python app.py # start back-end; note bind address for emulator adb install ../InsecureBankv2.apk See Usage Guide.pdf in the repo for full server and emulator networking steps.","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"InsecureBank v2"},"/garden/integration-testing":{"content":"Integration Testing. Verifies that modules, services, and infrastructure boundaries work together correctly.\nSummary What it is: Tests that exercise real collaborators: databases, queues, HTTP APIs, filesystems, or containers, often slower and fewer than unit tests.\nWhen to use: Service boundaries, repository layers, Terraform modules with live providers (carefully), and CI smoke paths after build.\nWhen to skip: Pure logic with no IO (keep Unit Testing). Full production E2E suites that belong in staged environments only.\nPractices: Prefer TestContainer or ephemeral dependencies over shared staging DBs; keep tests deterministic; tag slow suites separately in CI.\nDetails Layer Garden tools API / browser Playwright, Cypress, Selenium Containers TestContainer, Container Structure Test Policy / config Conftest, Helm Unittest (template-level) Contrast: Code Scanner items analyze static artifacts; integration tests execute behavior.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Integration Testing"},"/garden/interface-segregation-principle":{"content":"Interface Segregation Principle is a technique we adopt in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Signs of Violation Signal Likely fix Implementer leaves methods empty or throwing Split interface by role Callers import a type but use one method Extract a narrower port Interface name contains “And” or “Manager” Decompose by change driver Every new feature adds to the same interface Group by client, not by entity Segregation Tactics Role interfaces: Reader and Writer instead of one Repository with unused CRUD Consumer-defined ports: Go-style small interfaces at the call site Adapter per client: One facade per use case, not one mega-service contract Composition: A type may implement multiple small interfaces when it truly plays every role Common Failure Modes One interface per class reflex (ceremony without consumer-driven design) Splitting so fine that discovery and navigation suffer ISP used to justify duplicate DTOs with no shared core Breaking Liskov Substitution Principle when a “segregated” subtype drops required behavior Related Garden Items Open-Closed Principle for extension points that should stay small at the boundary Dependency Inversion Principle for depending on abstractions once ports are right-sized Common Reuse Principle for component-level “depend only on what you use” Design Pattern for Facade and Adapter when bridging segregated contracts ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Interface Segregation Principle"},"/garden/internal-developer-platform":{"content":"Internal Developer Platform is a technique we adopt in the garden.\nSummary This is not so much a platform itself, but rather the realization that a platform is needed for every team. This is a loose collection of items that are glued together to lessen developer cognitive burden.\nDetails The IDP The IDP isn’t a single thing. And there is no off-the-shelf solution to cover every case. Instead it is a mental framework for getting the right tooling glued together in a way that facilitates developers.\nThe Ops team specify the resources and templates used, when the developers trigger certain actions. The Ops team has to treat the IDP like any product team would and build it based on user research, maintain it, and continually improve it.\n3 Panes of Glass Everyone using the IDP needs 3 panes of glass:\nThe IDE to code git to merge/push the IDP to ship 5 Core Components The IDP needs to have at least 1 solution in each of the 5 areas. While multiple tools are possible in each area a goal should be the minimal set of useful tools.\nApplication Configuration Management Manage config in a dynamic, scalable, and reliable way\nStore app config in git repos Reference template by Version (stored elsewhere as an artifact) Reference Secrets by name (not stored in git) Scope should encompass all aspects of the app (external and internal) External: DNS, DBs, Platform Internal: Helm chart Infrastructure Orchestration Orchestrate based on context\nThis is the pipeline tool. It has to support configuration of all the following: Pipeline - build and deployment pipelines Compute / Clusters - Setting up and making ready any compute resources 2nd touch App setup - Setting up any additional things on top of the compute Artifact Registry - Push and Pull artifacts DNS - DNS should be real Certs - Certs should be real and tied to DNS Other Resources - Anything else that might be critical Environment Management Enable devs to create full envs\nEnvs should be setup the following ways: Automatic for review - It is often useful, if feasible, for an testing ENV to automatically be setup based on standard actions like a PR. This will allow the developer to have a dedicated system during development, and allow the reviewer to use that env during reviews. Self service - Next best thing where the Devs can setup their own envs as they need them. By type / Shared - Ops needs to manage a static set of envs that are maintained over time. Deployment Management CD\nIdeal development process Git push - Developer pushing code is the start CI which usually ends in Artifacts being created Automated deploy - Newly built artifacts trigger automatic deployment Trigger next steps - After the deployment is successful it should be possible to trigger the next step. That might be: Run acceptance tests Deploy to another environment Notify 3rd parties (i.e., close a maintenance window) Role-based Access Control RBAC\nManage users and permissions\nRBAC ties into Enterprise SSO. The following would be org level roles Member - any member of the team, usually they can access the stuff they setup Service Account - machine level access manager - manage other users Admin - DevOps role Additionally the app or env usually has roles like Viewer - read-only access Contributor - can update config (usually also a “Member”) Owner - full admin (usually the one that deployed the env) Tooling https://internaldeveloperplatform.org/platform-tooling/","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"Internal Developer Platform"},"/garden/ipc":{"content":"Inter-process Communication (IPC). Is how cooperating processes on one host exchange data and synchronize work.\nSummary Garden stance: We assess Inter-process Communication (IPC) for our estate.\nKey points:\nMechanism Typical use Garden note Pipes / FIFOs Simple parent-child or shell pipelines Lowest ceremony; narrow contracts Shared memory High-throughput same-host data sharing Needs strict synchronization discipline Unix domain sockets Local daemon APIs, container runtimes Common when processes must stay isolated Language channels In-process goroutines or actor mailboxes Prefer when all logic shares one runtime Local gRPC Plugin or tooling control planes assess; see gRPC and RPC notes Accept vs Avoid Situation Stance Single host, need process isolation Pipes, channels, Unix domain sockets, local gRPC Single host, same runtime Language-native channels first Cross-network or cross-team service calls Not IPC; design explicit APIs; RPC is hold Network protocol reused locally for convenience OK on one machine; do not copy the pattern to remote peers Decision Checklist Are both peers guaranteed to run on one machine (or one tightly coupled host group)? Can you use a language-native channel instead of a wire protocol? If you need sockets, is a documented local API enough without full RPC semantics? If the answer to (1) is no, stop treating the problem as IPC and design an explicit service boundary. Failure Modes Stretching local gRPC patterns to remote services without versioning or failure semantics Treating any socket protocol as IPC even when peers live on different networks Picking shared memory or signals when a simpler pipe or channel would suffice Details Mechanism Typical use Garden note Pipes / FIFOs Simple parent-child or shell pipelines Lowest ceremony; narrow contracts Shared memory High-throughput same-host data sharing Needs strict synchronization discipline Unix domain sockets Local daemon APIs, container runtimes Common when processes must stay isolated Language channels In-process goroutines or actor mailboxes Prefer when all logic shares one runtime Local gRPC Plugin or tooling control planes assess; see gRPC and RPC notes Accept vs Avoid Situation Stance Single host, need process isolation Pipes, channels, Unix domain sockets, local gRPC Single host, same runtime Language-native channels first Cross-network or cross-team service calls Not IPC; design explicit APIs; RPC is hold Network protocol reused locally for convenience OK on one machine; do not copy the pattern to remote peers Decision Checklist Are both peers guaranteed to run on one machine (or one tightly coupled host group)? Can you use a language-native channel instead of a wire protocol? If you need sockets, is a documented local API enough without full RPC semantics? If the answer to (1) is no, stop treating the problem as IPC and design an explicit service boundary. Failure Modes Stretching local gRPC patterns to remote services without versioning or failure semantics Treating any socket protocol as IPC even when peers live on different networks Picking shared memory or signals when a simpler pipe or channel would suffice ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Inter-process Communication (IPC)"},"/garden/iterm2":{"content":"iTerm2 is the long-time macOS terminal replacement and the resolved Mac client for the TUI IDE stack. We adopt it because it is the only candidate whose custom URL schemes stay clickable.\nBlurb iTerm2 is a replacement for Terminal and the successor to iTerm. It works on Macs with macOS 10.14 or newer. iTerm2 brings the terminal into the modern age with features you never knew you always wanted.\nSummary Use iTerm2 on macOS as the primary terminal. It won the Mac terminal decision over Ghostty and Supacode because Ghostty recognizes only a hard-coded list of clickable URL schemes, and the fix for custom schemes was closed as not planned upstream.\nConfigure it manually: custom prefs folder, Nerd Font, warm-burnout theme, Shift+Enter binding. It pairs with herdr and Mosh for the remote VPS half of the stack.\nIts roughly 12 ms input latency versus Ghostty’s 2 ms is invisible when waiting for an Agent or at VPS round-trip distances.\nDetails Upstream: https://iterm2.com Role: Mac terminal client in the TUI IDE stack Deciding factor: handles obsidian:// and onepassword:// links; Ghostty does not Input latency: about 12 ms vs Ghostty 2 ms, invisible at VPS round-trip distances Manual setup: custom prefs folder, Nerd Font, warm-burnout, Shift+Enter Related: Ghostty, Supacode, herdr, Mosh ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-09-18T00:00:00-04:00","tags":null,"title":"iTerm2"},"/garden/jaeger":{"content":"Jaeger. Is an open source distributed tracing backend and UI, originally from Uber and now a CNCF graduated project.\nBlurb Monitor and troubleshoot workflows in complex distributed systems\nSummary What it is: Collectors, storage (Cassandra, Elasticsearch, Badger, etc.), query service, and Jaeger UI for trace search.\nWhen to use: Need self-hosted tracing without Tempo; existing Jaeger instrumentation or OTel pipelines.\nWhen to skip: Grafana-all-in-one stack already standardized on Tempo. SaaS trace analytics (Honeycomb, Datadog).\nKey features: Service dependency graphs, adaptive sampling, OTLP ingest, operator deployment on Kubernetes.\nDetails Topic Notes Pairing Instrument with OpenTelemetry SDKs; export OTLP to Jaeger collectors Storage Plan retention and index backend cost for high-QPS services References\nJaeger documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Jaeger"},"/garden/javascript":{"content":"JavaScript. We hold it under Code in the garden.\nSummary What it is: ECMAScript defines the language; “JavaScript” is the practical name in browsers and on the server. It is dynamic, prototype-based, and garbage-collected. TC39 ships yearly language updates. Host environments add APIs (DOM in browsers, fs and HTTP in Node.js).\nWhen to use: Maintaining existing plain-JS codebases. Tiny browser snippets where a TypeScript build step adds no value. Learning ECMAScript fundamentals before layering types.\nWhen to skip: New application code where TypeScript is viable. Large teams without static types. Backend services where GoLang or another language fits better than the JS toolchain.\nNot the same as: Node.js or Bun (runtimes), npm (package manager), or JSON (data format).\nDetails Topic Notes Standard ECMA-262 (ECMAScript); proposals public on tc39 Modules ESM (import/export) is the modern default; CommonJS persists in older Node code Typing Plain JS is dynamically typed; prefer TypeScript (assess) for new typed work Runtimes Node.js (adopt) for server and tooling; Bun (trial) as a faster alternative engine Default for new code: TypeScript over plain JS when the team accepts the JS ecosystem tradeoffs (see that note for supply-chain and runtime cost).\nEcosystem: npm registry holds millions of packages. Most frontend and test tooling (Playwright, bundlers, frameworks) assumes TypeScript or JavaScript source.\nAlternatives: TypeScript for greenfield work in the same runtime family. GoLang or Python when leaving the browser/Node toolchain entirely.\nReferences\nJavaScript on MDN ECMAScript language specification JavaScript technologies overview ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"JavaScript"},"/garden/jenkins":{"content":"Jenkins. > [!DANGER] Security Blackhole!\nBlurb Jenkins - an open source automation server which enables developers around the world to reliably build, test, and deploy their software\nSummary Garden stance: We hold Jenkins for our estate.\nOverview: Jenkins is the OSS version of Hudson and Hudson was originally designed to build Java projects. It predates DevOps and DevSecOps by a wide margin. While over the years there have been many attempts to make it compatible with the change in mindset, there are too many existing installations of it to make this possible. It is software that is best avoided, and other proper CI-CD tools used.\nDetail 1: If you must use Jenkins then you MUST treat it as a Pet / Snowflake and manually manage it. I cannot tell you the number of Jenkins instances that either die on reboot, die on upgrade, or fail in a disaster recovery (DR) situation. By the time the issue is identified it is often easier to rebuild the entire pipeline using an appropriate tool than trying to make Jenkins work again.\nDetail 2: Additionally, absolutely DO NOT use the internal sensitive information store. First, it isn’t actually secure, and is easily reversed. Second, the information there cannot be properly managed, tokens cannot be rotated, etc… Finally, the ID of the sensitive info is tied to machine ID. If the machine fails and you need to restore to a different machine then none of the ID will match. All the pipelines will have to be rebuilt by hand even if the pipeline was defined by Declarative IaC.","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Jenkins"},"/garden/jenkins-x":{"content":"Jenkins X. Yet another option for using Jenkins places it doesn’t belong.\nBlurb Documentation, guides and support for JayeX\nSummary Garden stance: We hold Jenkins X for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Jenkins X"},"/garden/jq":{"content":"jq. Is a lightweight command-line JSON processor: the default tool for slicing, filtering, mapping, and transforming JSON in shell pipelines, CI, and ad hoc debugging.\nSummary jq (jqlang/jq) is a portable C binary with zero runtime dependencies: filter expressions, pretty-printing, arithmetic, objects/arrays, and streaming for large inputs. The project revived under the jqlang org (1.7+ after a long hiatus); current stable is 1.8.x per jqlang.org.\nUse in one-liners (curl … | jq '.items[]'), policy checks (parse terraform show -json), and log wrangling. Prefer yq when you need YAML round-trips with comments preserved; prefer jq when JSON is the native format or you want the de facto query dialect.\nDetails Install: download (static binary), Homebrew (jq), apt/dnf packages; verify with jq --version. Docs: tutorial, manual. License: MIT (upstream). CI / ops: pipe API and tool JSON output through jq for assertions and field extraction; combine with curl, gh api, kubectl … -o json. Fit: Tool: CLI JSON query/processor. Contrast: yq for YAML-first workflows; language-native JSON APIs when a shell one-liner is not enough. ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"jq"},"/garden/json":{"content":"JSON is the de facto standard for data interchange on the web and in configuration files. We adopt it under Code in the garden.\nSummary JSON is universally supported , every language has a parser, every HTTP client speaks it, and every developer knows it. The only reasons to consider alternatives are size/performance (Protobuf, MessagePack) or richer type systems (JSON Schema for validation). Adopt without hesitation for any API or config surface.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"JSON"},"/garden/json-schema":{"content":"JSON Schema is the standard vocabulary for describing and validating the structure of JSON documents. We adopt it under Code in the garden.\nSummary JSON Schema is effectively required knowledge in any DevSecOps or API-first context , OpenAPI 3.x uses it natively, Kubernetes uses it for CRD validation, and most linting/validation tools in the CI pipeline speak it. The spec is stable (Draft 2020-12) and tooling support is broad across all major languages. Adopt without reservation anywhere you need to validate or document a JSON structure.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"JSON Schema"},"/garden/juice-shop":{"content":"Juice Shop. (OWASP Juice Shop) is a modern Node.js/Angular e-commerce app packed with deliberate security flaws.\nBlurb Probably the most modern and sophisticated insecure web application for security trainings, awareness demos and CTFs. Also great voluntary guinea pig for your security tools and DevSecOps pipelines!\nSummary Garden stance: We trial Juice Shop for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Challenge Model Hundreds of categorized challenges span injection, broken auth, sensitive data exposure, XXE, access control, security misconfiguration, XSS, insecure deserialization, vulnerable components, and logging/monitoring gaps. Difficulty tiers (one star through six stars) and a scoreboard support self-paced labs and team CTFs.\nCompared to DVWA Lens Juice Shop DVWA Stack Node.js, Express, Angular PHP, Apache, MariaDB UX Modern e-commerce SPA Minimal module menu Scoring Built-in CTF scoreboard and hints Per-module low/medium/high/impossible Best fit API/SPA and pipeline guinea pig Classic web vuln fundamentals Deployment Guardrails Use NAT, host-only networking, or a dedicated lab VLAN. Prefer official Docker images or a throwaway VM over a daily driver install. Reset instance state between teaching sessions when you need repeatable scores. Pair manual solves with DAST runs from Zed Attack Proxy (Zap) to compare human and scanner coverage. Install Sketch 1 2 docker run --rm -p 3000:3000 bkimminich/juice-shop # Or clone https://github.com/juice-shop/juice-shop and follow README ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Juice Shop"},"/garden/k3d":{"content":"K3d is a CLI that runs k3s clusters inside Docker containers for fast local Kubernetes development. We assess it when you need a production-like API on a laptop without provisioning cloud control planes.\nBlurb k3d is a lightweight wrapper to run k3s(Rancher Lab’s minimal Kubernetes distribution) in docker.\nSummary When to use:\nUse Notes Local K8s dev Spin up single- or multi-node k3s clusters in seconds CI smoke tests Ephemeral clusters in GitHub Actions via k3d-action Helm and manifest work Exercise charts and YAML against a real API before cloud apply Low resource footprint k3s targets edge and dev; lighter than full distro clusters When to skip:\nProduction or shared staging (use managed Kubernetes such as Google GKE) Teams standardized on kind or minikube with existing docs and scripts Environments without Docker (k3d requires a Docker engine) GUI-first Mac/Windows dev where Rancher Desktop k3s mode is already adopted Trade-offs: Community-driven, not an official Rancher/SUSE product. k3s differs slightly from upstream Kubernetes; validate CRDs and APIs you depend on.\nDetails Quick Start 1 2 k3d cluster create dev kubectl cluster-info Add agents with --agents N or extra servers with --servers N for multi-node topology tests.\nRequirements Topic Notes Docker Required; k3d v5.x needs Docker 20.10.5+ (runc 1.0.0-rc93+) kubectl Separate install; k3d writes kubeconfig context Ports API exposed on a host port chosen by k3d; load balancer container fronts server nodes Features Worth Knowing Feature Notes Image import Load local images into cluster without a registry push Registry mirror Run an embedded registry for fast iteration Config file Reproduce cluster shape from YAML for team sharing Multi-cluster Several k3d clusters on one Docker host Compared to Alternatives Option When k3d wins When the alternative wins Rancher Desktop Scriptable CLI, CI, disposable clusters GUI k3s toggle and integrated engine on Mac/Windows kind (not in garden) k3s footprint, Rancher ecosystem familiarity Upstream conformance testing against vanilla K8s minikube (not in garden) Faster multi-node in Docker Built-in drivers for VM-based local clusters CI and Tooling k3d-action for GitHub Actions vscode-k3d VS Code extension References\nk3d documentation k3d-io/k3d on GitHub k3s project ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"K3d"},"/garden/k9s":{"content":"K9s. Is a terminal-based console for Kubernetes.\nBlurb K9s provides a terminal UI to interact with your Kubernetes clusters. The aim of this project is to make it easier to navigate, observe and manage your Kuber…\nSummary Garden stance: We adopt K9s for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"K9s"},"/garden/kaggle":{"content":"Kaggle is a platform we assess in the garden. This provides a set of challenges including required data. It allows you to design models, agents and processes to compete and be ranked.\nBlurb The World’s AI Proving Ground\nSummary When to use: If you are a model or tool developer and what to see how your tool compares to others. Or if you are evaluating models and AI tooling and want to evaluate various options.\nWhen to skip: If you are anyone else.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"Kaggle"},"/garden/karpenter":{"content":"Karpenter. Just-in-time Nodes for Any Kubernetes Cluster We assess it under Tool in the garden.\nSummary Karpenter is an open source Kubernetes node autoscaler that provisions just-in-time compute from pod constraints. It consolidates workloads, replaces underused nodes, and uses declarative NodePool resources instead of fixed node groups.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Karpenter"},"/garden/keda":{"content":"Keda. Application autoscaling made simple We assess it under Tool in the garden. It monitors external systems and internal CRDs for triggering events. Once triggered it recacluates scale requirements and updates the Deployments, or HPAs accordingly.\nBlurb Kubernetes Event-driven Autoscaling\nSummary When to use: When your application that doesn’t scale based on items measurable by an HPA.\nWhen to skip: When a simpler alternative already covers the need like an HPA.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"Keda"},"/garden/keel":{"content":"Keel. Kubernetes Operator to automate Helm, DaemonSet, StatefulSet & Deployment updates We hold it under Tool in the garden.\nSummary A lightweight version of Argo built on ChatOps. I have detailed elsewhere common issues with ChatOps in the radar. But suffice it to say there is no path to production for ChatOps. Thus, this tool would be a long term dead-end.","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"Keel"},"/garden/kerckhoffs-s-principle":{"content":"Kerckhoffs’s principle says a secure system stays secure when its design is public and only key material stays secret. We adopt it as the baseline for crypto choices, threat modeling, and security review.\nBlurb It must not be required to be secret, and it should be able to fall into the hands of the enemy without inconvenience.\nSummary What it is: A design rule from Auguste Kerckhoffs (1883). Security must not depend on hiding the mechanism. Secrecy belongs in keys, credentials, and other rotatable secret material.\nWhen to use: Any time you pick or review encryption, signing, authentication, or access controls. Treat full design disclosure as the threat-model default. Claude Shannon’s shorthand applies: assume the enemy knows the system.\nWhen to skip: Never as a principle. You may still layer operational controls (firewalls, access logging, least privilege). Those are defense in depth, not a substitute for a secret algorithm.\nSituation Garden stance Choosing TLS ciphers, password hashes, or token formats Adopt public, peer-reviewed algorithms Vendor offers a proprietary cipher you cannot audit Hold until they publish specs or you can verify independently Hiding an API path or admin URL as the main control Reject. That is security through obscurity, not Kerckhoffs Pairs with: Zero Trust Network Architecture (verify every request; do not trust network location). Policy as Code and SARIF for repeatable gates in DevSecOps pipelines.\nDetails Origin and Formulation Auguste Kerckhoffs published six desiderata for military ciphers in 1883. The principle above is the second. Modern crypto restates it as: only the key should be secret; the algorithm may be public.\nWhat Counts as the Key Secret material Role Symmetric encryption key Protects confidentiality Private signing key Proves origin and integrity API token, session secret, password Authenticates a caller or user Salt (password storage) Not a key. May be public; it slows rainbow tables Operational secrecy still matters. You do not publish live key material. Kerckhoffs asks what happens if the mechanism is exposed, not whether you should leak keys on purpose.\nModern Applications TLS and messaging: AES, ChaCha20, RSA, and ECDSA are public algorithms. Security rests on key length and correct implementation. Password storage: bcrypt, scrypt, and Argon2 are public. The hash output can leak; the password must not. App secrets: Rotate API keys and signing secrets. Do not rely on an obscure endpoint path as the control. Common Violations Custom or “military grade” ciphers with no public specification Hard-coded secrets in source control (the secret became part of a brittle, non-rotatable design) Security reviews that assume attackers will never see your architecture diagrams Treating “no one knows our URL” as equivalent to authentication Related Ideas (Not the Same) Security through obscurity: Hiding design or implementation instead of using sound crypto. Fragile when the secret leaks once. Defense in depth: Multiple independent controls. Compatible with Kerckhoffs when each layer does not depend on hidden mechanics. Zero Trust Network Architecture: Architectural stance that complements algorithmic openness. Assume breach; verify explicitly. ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"Kerckhoffs's principle"},"/garden/keto":{"content":"Keto is Ory’s Zanzibar-style authorization server for relationship-based permission checks. We assess it under Tool when comparing ReBAC engines, especially if an estate already runs Ory.\nBlurb Authorization server based on Google Zanzibar — supporting RBAC and ReBAC patterns at scale.\nSummary What it is: Open-source permission server from Ory. Apps write relation tuples, define permission models (including Ory Permission Language), and call check APIs over HTTP or gRPC.\nWhen to use: You need Zanzibar-style ReBAC and already standardize on the Ory stack (identity and OAuth beside permissions). Managed Ory Network or self-hosted OSS/OEL are acceptable deployment paths.\nWhen to skip: Simple RBAC matrices or static policy bundles are enough. Prefer Open Policy Agent with Policy as Code for config and admission gates. Prefer SpiceDB when you want a standalone ReBAC datastore with strong consistency tooling and are not tied to Ory.\nKey features: Relation tuples and graph checks, RBAC and ReBAC from one API, Ory Permission Language, SDKs for major languages, deploy as OSS, Ory Enterprise License, or Ory Network.\nDetails Topic Notes Model ReBAC tuples and permission checks; complements policy engines rather than replacing them Ops Self-host Apache 2.0 OSS, Ory Enterprise License with support, or managed Ory Network Ecosystem Fits beside Ory Kratos (identity) and Ory Hydra (OAuth2/OIDC); headless API-first Compared to SpiceDB\nBoth implement Google Zanzibar-style relationship authorization. SpiceDB emphasizes schema language, ZedTokens, and AuthZed Cloud. Keto is strongest when the estate already runs Ory components and wants one vendor story for identity plus permissions.\nCompared to Open Policy Agent\nOPA evaluates Rego against JSON inputs. Keto persists relationships and answers object-level permission queries at runtime. Many estates use both: OPA for infrastructure policy, Keto for application ReBAC.\nReferences\nOry Keto product page Ory Keto documentation ory/keto on GitHub ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"Keto"},"/garden/kibana":{"content":"Kibana. We assess it under Tool in the garden.\nBlurb Explore and visualize data stored in Elasticsearch with Kibana. Build dashboards, run queries, set alerts, and manage your deployment - all in one UI….\nSummary What it is: Web UI for search, visualizations, dashboards, and Elastic-specific features (APM, SIEM modules in commercial tiers).\nWhen to use: Committed Elastic Cloud or self-hosted Elasticsearch; security analytics on Elastic data; teams standardized on KQL and Elastic dashboards.\nWhen to skip: New stacks without Elastic lock-in. Prefer Grafana plus Prometheus, Loki, or vendor-neutral stores.\nKey features: Lens visualizations, saved objects, role-based spaces, alerting tied to Elastic indices.\nDetails Topic Notes Deploy Bundled with Elastic Stack or Elastic Cloud Pairing Requires Elasticsearch (or serverless Elastic) as the data layer Auth Elastic native, SAML, OIDC in commercial tiers References\nKibana documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Kibana"},"/garden/kilo-ai":{"content":"Kilo.ai. (Kilo Code) is an open-source (Apache 2.0) AI coding agent for VS Code, JetBrains, CLI, and cloud surfaces.\nSummary Garden stance: We assess Kilo.ai for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Install: VS Code extension kilocode.kilo-code; JetBrains plugin; CLI; also on Open VSX. For VS Code-compatible editors. Docs: https://kilo.ai/docs/getting-started License: Apache 2.0 (open source). Models: 500+ via Kilo Gateway (zero markup per marketing) or bring your own API keys. Modes: Code, Architect, Debug, Ask, plus custom modes. Extras: Cloud agents, MCP, leaderboard for model rankings, KiloClaw for hosted OpenClaw. Fit: Tool / AI Agent: open-source, multi-model coding agent. Contrast: OpenCode (similar open multi-provider story); Cursor + cursor-agent (default adopt stack); Claude Code, Codex, Gemini for single-vendor CLIs. ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Kilo.ai"},"/garden/kube-bench":{"content":"kube-bench. Runs CIS Kubernetes Benchmark checks against the control plane and nodes.\nBlurb Checks whether Kubernetes is deployed according to security best practices as defined in the CIS Kubernetes Benchmark - aquasecurity/kube-bench\nSummary Lens kube-bench Kubescape Focus CIS benchmark sections per K8s version Broader frameworks (NSA, MITRE, signed controls) Run model Job on node or master; JSON reports CLI, operator, CI on manifests Best fit CIS audit evidence for regulated K8s Multi-framework posture and PR checks When to use: auditors ask for CIS-aligned evidence; you need a well-known benchmark mapping per K8s minor version.\nWhen to skip: only application-level security matters; already standardized on Kubescape with overlapping CIS coverage.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"kube-bench"},"/garden/kubecost":{"content":"Kubecost is a tool we assess in the garden.\nSummary Kubecost is IBM’s commercial Kubernetes cost monitoring and optimization platform. It extends the OpenCost lineage with rightsizing, alerts, governance, and optional SaaS management.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Kubecost"},"/garden/kuberhealthy":{"content":"Kuberhealthy is a tool we assess in the garden.\nBlurb A Kubernetes operator for running synthetic checks as pods. Works great with Prometheus! - kuberhealthy/kuberhealthy\nSummary What it does: Admins define KuberhealthyCheck custom resources; the operator schedules checker containers (built-in or custom) that prove APIs, DNS, storage, or cluster mechanics still work.\nWhen to use: you want proactive “can we still schedule a pod?” checks; custom HTTP/TCP probes packaged as containers; Prometheus alerting on synthetic failure rates.\nWhen to skip: external SaaS synthetics already cover user journeys; tiny clusters where CronJob scripts are enough; rewrite churn on main is a concern (upstream notes active rewrite).\nBuilt-in checks: daemonset deployment, DNS, storage, and other registry entries documented upstream; write checks in any language as container images.\nDetails Surface Purpose Status page JSON aggregate of check pass/fail /metrics Prometheus scrape endpoint InfluxDB Optional metric forwarding Helm / YAML Install on Kubernetes 1.16+ Versus kube-bench / Kubescape: those tools audit configuration; Kuberhealthy exercises live behavior on a timer.\nPractices: keep check runtime short; isolate check RBAC; alert on consecutive failures, not single blips; version-pin checker images.\nReferences\nKuberhealthy README Check creation guide ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Kuberhealthy"},"/garden/kubernetes":{"content":"Kubernetes is a platform we adopt in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Kubernetes"},"/garden/kubernetes-goat":{"content":"Kubernetes Goat is a tool we trial in the garden.\nBlurb Kubernetes Goat is a “Vulnerable by Design” cluster environment to learn and practice Kubernetes security using an interactive hands-on playground 🚀 - madhuakula/kubernetes-goat\nSummary Kubernetes Goat extends the Goat tradition (DVWA, Juice Shop, TerraGoat) into live cluster security. Bridgecrew goats target IaC files; this lab targets running pods, RBAC, and cluster misconfigurations.\nWhen to use: teaching DevSecOps and K8s red-team basics; walking through 20+ documented scenarios (RBAC abuse, container escape, SSRF, registry attacks); pairing manual exploits with Kubescape or kube-bench CIS modules in the curriculum.\nWhen to skip: you cannot provision an isolated lab cluster (KIND, K3s, minikube, or disposable cloud); you only need static manifest scanning (use Checkov on repos); you need web-app vuln labs only (use DVWA or Juice Shop).\nSetup: clone repo, run setup-kubernetes-goat.sh, then access-kubernetes-goat.sh for local UI at http://127.0.0.1:1234. Full guide at madhuakula.com/kubernetes-goat.\nDetails Compared to IaC Goats Lens Kubernetes Goat TerraGoat / Bridgecrew goats Target Running Kubernetes cluster IaC files (Terraform, CFN, Bicep, CDK) Skills RBAC, escapes, SSRF, runtime abuse Misconfiguration detection pre-deploy Scanner pairing Kubescape, kube-bench, Checkov on manifests Checkov on IaC Best fit Cluster security and exploitation labs Cloud template scanning labs Scenario Highlights Upstream documents 20+ modules, including sensitive keys in repos, docker-in-docker abuse, container escape, private registry attacks, RBAC misconfiguration, CIS Docker/K8s benchmark analysis, and policy engine hardening exercises.\nDeployment Guardrails Use a dedicated lab cluster with no production namespaces or data. Requires cluster admin and kubectl; Helm for install scripts. Read upstream disclaimer before setup: vulnerabilities are intentional. Tear down the lab when finished; do not co-locate with real workloads. Prefer KIND, K3s, or a sandbox EKS/GKE/AKS account per upstream docs. Install Sketch 1 2 3 4 5 6 git clone https://github.com/madhuakula/kubernetes-goat.git cd kubernetes-goat bash setup-kubernetes-goat.sh kubectl get pods # wait until ready bash access-kubernetes-goat.sh # UI: http://127.0.0.1:1234 ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Kubernetes Goat"},"/garden/kubernetes-resource-orchestrator-kro":{"content":"Kubernetes Resource Orchestrator (KRO). We assess it under Tool in the garden.\nBlurb Build declarative, secure, and verifiable Kubernetes abstractions\nSummary What it does: A ResourceGraphDefinition (RGD) describes multiple Kubernetes resources, dependencies between them, and a SimpleSchema for the instance API. kro validates the RGD, materializes a CRD, and runs dedicated controllers to reconcile instances. Wiring uses CEL expressions, validated at creation time.\nWhen to use: platform teams publishing internal building blocks (app + IAM + networking); compositions that mix core resources with third-party CRDs; EKS shops that want managed kro via EKS Capabilities.\nWhen to skip: a single Deployment/Service pair (Kustomize overlays are enough); packaged third-party charts (Helm); complex admission or multi-step imperative logic (a full operator or Shell Operator hooks may fit better).\nEcosystem notes: kro lives in kubernetes-sigs/kro and is a SIG Cloud Provider subproject. AWS, Azure, and Google Cloud collaborate on it. EKS documents kro for composing ACK-managed AWS resources into higher-level APIs.\nDetails Core CRDs: ResourceGraphDefinition defines the graph; instances of the generated CRD create the underlying objects.\nInstall: Helm chart or raw manifests from the kro release artifacts; on EKS, optional EKS Capability for a managed controller.\nDocs: kro.run, kubernetes-sigs/kro, EKS kro guide.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Kubernetes Resource Orchestrator (KRO)"},"/garden/kubescape":{"content":"Kubescape is a tool we assess in the garden.\nBlurb Kubescape is an open-source Kubernetes security platform for your IDE, CI/CD pipelines, and clusters. It includes risk analysis, security, compliance, and misconfiguration scanning, saving Kubernet…\nSummary Modes: CLI scans on manifests; in-cluster operator; CI hooks for Pull Request checks on changed YAML.\nWhen to use: need a single CLI for posture reporting across many clusters; evaluating ARMO’s control catalog without buying a full CNAPP yet.\nWhen to skip: already standardized on another CNAPP or admission policy stack (Policy as Code, OPA Gatekeeper) with overlapping coverage.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Kubescape"},"/garden/kustomize":{"content":"Kustomize is a Kubernetes-native configuration management tool built directly into kubectl (kubectl apply -k). We trial it under Tool in the garden.\nSummary Kustomize shines for teams managing a small number of Kubernetes environments with predictable variance (namespace, replica count, image tag). The overlay model keeps base manifests clean and diffs readable. However, it lacks Helm’s packaging, dependency management, and release lifecycle , for anything that needs to be distributed or versioned as a unit, Helm is still the stronger choice. Trial it on a new service before adopting broadly.","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Kustomize"},"/garden/kustomizegoat":{"content":"KustomizeGoat. Is Bridgecrew’s “Vulnerable by Design” Kustomize manifest repository.\nBlurb Vulnerable Kustomize Kubernetes templates for training and education - bridgecrewio/kustomizegoat\nSummary Garden stance: We trial KustomizeGoat for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Compared to Kubernetes Goat Lens KustomizeGoat Kubernetes Goat Format Kustomize bases and overlays Full vulnerable cluster lab Primary use Checkov scan calibration Hands-on cluster exploitation Deploy risk Manifest apply to a lab cluster only Intentionally vulnerable running workloads Best fit Overlay-aware static scanning drills Runtime K8s security training Overlay Scan Results (Typical) Overlay Posture base Insecure NGINX deployment (many policy failures) test Partial hardening; still fails most checks dev Same as base (empty overlay merge) prod Compliant additions; clean Checkov scan Lab Guardrails Treat rendered manifests as lab artifacts; apply only in disposable namespaces or clusters. Prefer scan-only workflows unless the exercise requires a live deploy. Compare overlay results to explain inherited vs environment-specific misconfigurations. Scan-First Lab Sketch 1 2 3 4 git clone https://github.com/bridgecrewio/kustomizegoat.git cd kustomizegoat checkov --framework kustomize -d . # Optional: checkov --framework kustomize -d . --check CKV_K8S_11 --compact ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"KustomizeGoat"},"/garden/language":{"content":"Under Code, Language covers notations and domain-specific languages used to describe configuration, schemas, contracts, and structured data; not every general-purpose programming language. Examples include YAML, JSON, HCL, CEL, OpenAPI, and Protobuf. These artifacts are usually consumed by tools and runtimes rather than compiled alone like GoLang or Ruby.\nSibling subcategories: Library (reusable code modules) and Framework (opinionated application skeletons). Tag an item here when the primary artifact is the syntax or spec itself.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Language"},"/garden/lazygit":{"content":"LazyGit is a simple terminal UI for git commands and the TUI git client in the stack. We adopt it for git work that stays inside the terminal.\nBlurb A simple terminal UI for git commands.\nSummary Use LazyGit for staging individual lines, interactive rebase, cherry-pick, bisect, worktrees, and undo. It earns a dedicated tab beside the editor and the agent, whether that lives inside Supacode or herdr.\nDetails Upstream: https://github.com/jesseduffield/lazygit Role: TUI git client in the terminal stack Key features: line staging, interactive rebase, cherry-pick, bisect, worktrees, reflog undo Related: git, Supacode, herdr ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-09-18T00:00:00-04:00","tags":null,"title":"LazyGit"},"/garden/lens":{"content":"Lens is a desktop IDE for browsing and troubleshooting Kubernetes clusters. We hold it because k9s and managed-cloud consoles cover the useful workflows without another commercial desktop application.\nBlurb Power tools for Kubernetes and AI agents.\nSummary Why hold: The GUI is convenient, but it does not justify another tool in the standard workflow. k9s provides a capable terminal experience, while managed services such as Google GKE include adequate native cluster views.\nWhen Lens is still useful: Teams that strongly prefer a desktop GUI, manage many clusters, and value integrated resource views, logs, shells, and Helm workflows.\nLicensing note: Lens Desktop is a Mirantis commercial product. FreeLens is the actively maintained MIT-licensed continuation of the original open-source codebase. OpenLens is effectively legacy.\nDetails Topic Notes Model Electron desktop app; connects through local kubeconfig and respects cluster RBAC Free path FreeLens is the maintained free fork; OpenLens is legacy; Lens Desktop is commercial Preferred paths Use k9s for terminal operations or a Cloud provider console for managed clusters ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"Lens"},"/garden/library":{"content":"Under Code, Library covers reusable packages you import into an application (logging, parsing, clients, utilities) not a full runtime stack. A library gives you an API; it does not own your process lifecycle, routing, or project layout the way a Framework does.\nSibling subcategories: Language (syntax and specs like YAML) and Framework (opinionated app skeletons). Tag an item here when the primary artifact is a dependency you link or install, often per-language (e.g. Zap for GoLang, tree-sitter for parsers).","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Library"},"/garden/librenms":{"content":"LibreNMS. Is an open source network monitoring system focused on SNMP discovery, device health, and alerting for switches, routers, and firewalls.\nSummary What it is: PHP application with MySQL/MariaDB backend, polling via SNMP, and a device-centric UI for ports, sensors, and wireless links.\nWhen to use: Existing LibreNMS install with device credentials and port maps already tuned. Dedicated network ops team that lives in SNMP OIDs and needs minimal setup for common vendors.\nWhen to skip: Greenfield monitoring where apps and infra share one observability plane. Prefer Prometheus node/snmp exporters plus Grafana, or cloud-native network telemetry when available.\nKey features: Auto-discovery, alerting rules, API, billing reports, and distributed pollers for large networks.\nDetails Topic Notes Deploy Web server, database, cron/poller workers; optional distributed pollers per site Data model Device and port inventory from SNMP; graphs and alerts per entity Auth Local users, LDAP, and API tokens Practices: Treat as a niche network tool, not the company-wide monitoring platform. Keep SNMP read-only communities scoped and document vendor MIB gaps before relying on alerts.\nReferences\nLibreNMS documentation GitHub repository ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"LibreNMS"},"/garden/lightdash":{"content":"Lightdash. Is an open source BI layer that turns dbt-core models into explorable metrics and dashboards.\nBlurb Lightdash is the AI-first, open-source BI platform for modern data teams. Connect to dbt, define metrics once, and get instant, trustworthy insights.\nSummary What it is: Web app plus CLI that syncs dbt schema.yml metrics and dimensions into self-serve charts and dashboards.\nWhen to use: Warehouse analytics owned by dbt; want OSS BI without rebuilding metrics in Metabase or Apache Superset.\nWhen to skip: No dbt discipline in the warehouse. Prefer Redash for ad hoc SQL only.\nKey features: dbt-native metrics, Git-backed definitions, Slack/email alerts on charts, optional Lightdash Cloud.\nDetails Topic Notes Deploy Docker or Lightdash Cloud; connects to warehouse dbt already targets Fit Pairs with dbt-core and BigQuery, Snowflake, or Postgres References\nLightdash documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Lightdash"},"/garden/linuxkit":{"content":"LinuxKit builds minimal, immutable Linux images from container components. We hold it as an implementation choice, while retaining it as a useful reference for embedded and edge-system design.\nBlurb A toolkit for building secure, portable and lean operating systems for containers.\nSummary Why hold: LinuxKit demonstrates strong ideas for immutable, purpose-built systems, but it is not a viable default tool for current projects. Managed node images and established distributions cover most container and Kubernetes deployments with less custom engineering.\nReference value: Its minimal base, read-only root, digest-pinned components, and container-based assembly remain useful patterns when researching embedded or edge operating systems.\nWhen LinuxKit may fit: A product requires a custom appliance OS and accepts ownership of the image build, kernel, update, security, and hardware-support lifecycle.\nDetails Topic Notes Model Immutable initramfs; read-only root; system containers baked in at build time Build Uses Docker, GNU Make, and optionally QEMU; outputs bootable image formats Use Reference architecture for appliances and edge systems, not a general-purpose OS recommendation References\nlinuxkit/linuxkit on GitHub LinuxKit security documentation ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"LinuxKit"},"/garden/liskov-substitution-principle":{"content":"Liskov Substitution Principle. The Liskov Substitution Principle (LSP) requires subtypes to honor the contract of their base type.\nSummary Garden stance: We adopt Liskov Substitution Principle for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Contract Checklist Expectation Violation signal Preconditions Subtype requires stricter inputs than the base Postconditions Subtype returns weaker guarantees Invariants Subtype breaks rules the base always maintained Exceptions Subtype throws errors callers did not expect Behavior Subtype ignores or no-ops base operations Classic Examples Square/rectangle: A square subtype of rectangle that breaks independent width/height setters Read-only collection: A subtype that throws on add when the base promised mutability Null returns: A subtype that returns null where the base never did Safer Alternatives Prefer composition and small interfaces over deep inheritance Use Design Pattern Strategy or Adapter when behavior varies without an is-a relationship Keep base contracts explicit in tests (contract tests for each implementation) Common Failure Modes Subclassing for reuse only (inherits API the child cannot honor) Empty overrides that silently disable base behavior instanceof or type switches in callers to paper over bad hierarchies Framework base classes that encourage override hooks with unclear contracts Related Garden Items Open-Closed Principle for extension without modifying stable core code Object-Oriented Programming for the paradigm where LSP applies most often SOLID Principles for the full mnemonic and remaining principles ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Liskov Substitution Principle"},"/garden/lisp":{"content":"LISP is the family of list-processing languages built on S-expressions, macros, and interactive development. We assess it as background for Lisp dialects we evaluate (especially Clojure), not as a default platform language.\nBlurb Welcome to the amazing world of Common Lisp, the programmable programming language.\nSummary What it is: A language family (Common Lisp, Scheme, Emacs Lisp, Clojure, and others) where code is data and macros extend the language. Common Lisp is the ANSI-standardized multi-paradigm descendant used as the practical reference dialect.\nWhen to use:\nSituation Notes Learning macros and homoiconicity Concepts transfer to Clojure and other dialects Long-lived interactive systems REPL-driven evolution; Common Lisp and Clojure excel here Domain-specific languages Macro systems make embedded DSLs natural When to skip:\nDefault CLIs, ops tooling, and greenfield services (Go) Teams without Lisp appetite or REPL culture Hiring-sensitive product work where Clojure or Common Lisp depth is thin Trade-offs: Deep expressive power and interactive tooling. Ecosystem and hiring are narrower than Go, Python, or Java. Prefer a concrete dialect note (Clojure) when evaluating project use.\nDetails Dialects Worth Tracking Dialect Notes Common Lisp ANSI standard; SBCL and others; see common-lisp.net Clojure Hosted Lisp on the JVM (and other hosts); our primary Lisp dialect under assessment Scheme / Racket Smaller core; strong teaching and research use Emacs Lisp Extension language for Emacs; not a general app runtime choice Related Garden Items Clojure - practical Lisp dialect we assess for services Functional Programming - paradigm Lisp dialects often pair with GoLang - default systems language; contrast for ops and CLIs References common-lisp.net lisp-lang.org Wikipedia: Lisp (programming language) ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"LISP"},"/garden/litmus":{"content":"Litmus (LitmusChaos) is a cloud-native chaos engineering platform for Kubernetes. Teams inject controlled faults to find weaknesses before they cause outages. We assess it under Chaos Tools for resilience testing.\nBlurb Litmus is a CNCF-hosted, open-source Chaos Engineering platform that helps teams identify infrastructure weaknesses through safe, controlled chaos tests, simple for developers and SREs, built on modern practices, and powered by the community.\nSummary What it is: Kubernetes-native chaos engineering platform. Experiments are defined as custom resources and shared through ChaosHub, a central catalog of reusable fault injections.\nWhen to use: You run workloads on Kubernetes and want to validate resilience with repeatable, controlled fault injection. Good fit for SRE practices and pre-production reliability testing.\nWhen to skip: You are not on Kubernetes, or chaos experiments are premature because basic observability and recovery paths are not yet in place.\nStatus: CNCF Incubating project (since January 2022), Apache 2.0, actively maintained with a steady monthly release cadence.\nDetails Topic Notes Model ChaosExperiment CRs on Kubernetes; ChaosCenter UI orchestrates runs ChaosHub Central hub of shared, reusable chaos experiments at hub.litmuschaos.io Governance CNCF Incubating; broad multi-org contributor base References\nLitmusChaos site litmuschaos/litmus on GitHub Litmus on CNCF ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Litmus"},"/garden/llm-wiki":{"content":"LLM Wiki is Andrej Karpathy’s pattern for an LLM-maintained markdown knowledge base that compounds between queries instead of re-deriving answers via RAG. We trial it under Technique as the abstract idea behind agent-curated vaults like this one.\nBlurb A pattern for building personal knowledge bases using LLMs.\nSummary When to use: You want knowledge to accumulate across sessions: ingest sources once, maintain entity and concept pages, and query a compiled wiki rather than raw RAG every time.\nWhen to skip: One-shot Q&A over a fixed corpus is enough, or you will not keep sources and a schema (AGENTS.md / CLAUDE.md) under version control.\nCore loop:\nOperation Role Ingest Read a source; update summaries, entities, index, and log Query Answer from wiki pages; file good answers back as new pages Lint Find contradictions, orphans, stale claims, missing pages Three layers: immutable raw sources; LLM-owned wiki markdown; a schema doc that disciplines the agent.\nVs related notes: gbrain is an opinionated implementation of similar ideas. Open Knowledge Format (OKF) is an interchange spec that formalizes markdown knowledge bundles. This note is the pattern itself.\nDetails Architecture (From the Gist) Raw sources - curated, immutable inputs the agent reads but never edits. The wiki - LLM-generated markdown (summaries, entities, concepts, synthesis). Humans read; the agent writes. The schema - conventions and workflows in AGENTS.md, CLAUDE.md, or equivalent. Co-evolved with the agent. Indexing and Logging index.md - content catalog (links, one-line summaries, categories). Agent reads it first on query. log.md - append-only chronology of ingests, queries, and lint passes. Why It Differs From RAG RAG rediscovers fragments on every question. An LLM wiki compiles once and keeps synthesis current: cross-links, contradictions, and topic pages are already maintained. Obsidian (or similar) is the IDE; the LLM is the programmer; the wiki is the codebase.\nOptional Tooling Called Out in the Gist Local markdown search (e.g. qmd), Obsidian Web Clipper, graph view, Dataview over frontmatter, Marp for slides. All optional; the pattern stays file-based.","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-20T00:00:00-04:00","tags":null,"title":"LLM Wiki"},"/garden/llmkube":{"content":"LLMKube is a Kubernetes operator for self-hosted LLM inference. It runs vLLM, llama.cpp, and TGI on NVIDIA, Apple Silicon, and AMD hardware. We assess it because it promises production-grade orchestration for local models, which our estate lacks.\nBlurb Run production LLMs on your own hardware. A Kubernetes operator for self-hosted LLM inference: vLLM, llama.cpp, and TGI on NVIDIA, Apple Silicon, and AMD.\nSummary LLMKube positions itself as the orchestration layer for self-hosted LLM inference, filling the gap between Docker Compose setups and full SaaS inference providers. It models LLM workloads as Kubernetes CRDs (Model, InferenceService) and supports HPA autoscaling driven by real inference metrics, multi-GPU sharding, and Grafana dashboards. Its companion harness, Foreman, runs agentic coder/verifier/reviewer agents on the same fleet with a “honest-verdict” gate.\nWhen to use: you already run Kubernetes and want reproducible, autoscaled inference across a heterogeneous fleet (NVIDIA + Apple Silicon + AMD) under a single model key. When to skip: single-machine or minimal setups where Ollama or Docker Compose is simpler, or when you want managed inference.\nKey trade-offs: it adds Kubernetes operational overhead for the autoscaling and multi-runtime benefits. It is open source (Apache-2.0) and community-built by Defilan Technologies. Related garden notes: Kubernetes, Ollama.\nDetails LLMKube supports GGUF models from HuggingFace with automatic download and caching. It ships a CLI (llmkube deploy) that renders deployment as YAML. Runtime support: vLLM, TGI, llama.cpp, plus a bring-your-own path. Hardware: CUDA 13 and NVIDIA Blackwell, Apple Silicon (MLX/mlx-server), AMD (Vulkan). The Foreman harness is a Kubernetes-native control plane that dispatches coding agents across the fleet and has agents open their own pull requests.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-08-08T00:00:00-04:00","tags":null,"title":"LLMKube"},"/garden/logseq":{"content":"Logseq is a privacy-first, open-source outliner and knowledge base that works on local plain-text Markdown and Org-mode files. We assess it for agent-compatible workflows and its outliner-first approach.\nBlurb A local-first, non-linear, outliner notebook for organizing and sharing your personal knowledge base. Use it to organize your todo list, write your journals, or record your unique life.\nSummary When to use: Choose Logseq when you prefer an outliner-first workflow with daily journals, block-level linking, and open file format (Markdown/Org).\nWhen to skip: Opt for Obsidian if you want a richer plugin ecosystem, or simpler tools if outliner structure feels foreign.\nKey trade-offs:\nPros: Outliner-first, block references, daily journals, open source, local files, whiteboard feature Cons: Smaller plugin ecosystem than Obsidian, steeper learning curve for non-outliners, mobile app still maturing Related: PKM Obsidian Outliner Zettelkasten\nDetails Topic Notes File Format Plain text Markdown or Org-mode files Structure Outliner with block-level granularity and references Journals Built-in daily journal pages with automatic creation Graph Knowledge graph visualization Whiteboard Visual spatial canvas for arranging notes Plugins Growing plugin ecosystem (less mature than Obsidian) Mobile iOS and Android apps available ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-08-25T00:00:00-04:00","tags":null,"title":"Logseq"},"/garden/loki":{"content":"Loki. Is Grafana Labs’ horizontally scalable log aggregation system inspired by Prometheus labels.\nSummary What it is: Log ingest (Promtail, Alloy, or OTel), label-based indexing, LogQL queries in Grafana.\nWhen to use: Grafana-centric observability stack; cost-aware log retention with object storage backends.\nWhen to skip: Full-text SIEM requirements (Splunk, Elasticsearch). Teams without label discipline on logs.\nKey features: LogQL, multi-tenancy, boltdb/TSDB schema evolution, Grafana correlations with metrics and traces.\nDetails Topic Notes Deploy Helm on Kubernetes; microservices or simple scalable modes Pairing Default companion to Prometheus and Grafana in LGTM stacks References\nLoki documentation ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Loki"},"/garden/looker":{"content":"Looker. Is Google Cloud’s enterprise BI platform built around LookML semantic models, governed metrics, and embedded analytics.\nBlurb Looker is an enterprise platform for BI, data applications, and embedded analytics that helps you explore and share insights in real time.\nSummary What it is: LookML-defined models, explores, dashboards, and embed SDKs integrated with BigQuery and other warehouses.\nWhen to use: GCP enterprise deal includes Looker; strong governance and embedded customer analytics are requirements.\nWhen to skip: Multi-cloud OSS BI mandate or small teams without LookML maintainers.\nKey features: LookML git workflow, row-level access in models, scheduled deliveries, embed and API surfaces.\nDetails Topic Notes Fit Natural with BigQuery and Google Cloud Platform estates Contrast Power BI and Tableau for Microsoft- or Salesforce-centric buyers References\nLooker documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Looker"},"/garden/lua":{"content":"Lua is a lightweight, high-level, embeddable scripting language designed for extending applications. We trial it for agent-scriptable tools like SilverBullet’s Space Lua.\nBlurb Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.\nSummary When to use: Choose Lua for embedding scripting in applications, configuration, or when you need a small, fast, easily embeddable language with minimal runtime.\nWhen to skip: Opt for Python or JavaScript when you need large ecosystems, heavy libraries, or general-purpose application development.\nKey trade-offs:\nPros: Tiny footprint (~200KB), fast execution, simple C API, portable, coroutines, tables as only data structure Cons: Minimal standard library, smaller ecosystem, 1-based indexing, no built-in classes/modules Related: SilverBullet Markdown PKM Agent Skills Framework\nDetails Topic Notes Runtime ~200KB, ANSI C, runs everywhere Embedding Designed for C/C++ host applications Data Model Tables (associative arrays) as sole composite structure Concurrency Cooperative coroutines (not threads) Variants LuaJIT (fast JIT), MoonSharp (.NET), GopherLua (Go) Notable Uses Redis, Nginx (OpenResty), Wireshark, SilverBullet Space Lua ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-08-24T00:00:00-04:00","tags":null,"title":"Lua"},"/garden/markdown":{"content":"Markdown is a lightweight markup language for creating formatted text using a plain-text syntax. We adopt it as the universal language for agent-maintained vaults and knowledge bases.\nBlurb Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).\nSummary When to use: Always use Markdown for agent-maintained vaults, documentation, and knowledge work - it’s the universal lingua franca of plain-text formatting.\nWhen to skip: Nearly never - avoid only when complex document layout or proprietary formatting is strictly required.\nKey trade-offs:\nPros: Simple syntax, human-readable, widely supported, converts cleanly to HTML, minimal lock-in Cons: Limited formatting vs. rich text, flavor inconsistencies, no single official standard (CommonMark helps) Related: Obsidian SilverBullet PKM Lua YAML Frontmatter\nDetails Topic Notes Syntax Headers (#), lists (-), links (text), emphasis (text) Extensions Tables, task lists, footnotes, definition lists (via flavors) Flavors CommonMark, GitHub Flavored Markdown (GFM), Markdown Extra Processing Pandoc, marked, remark, showdown, various parsers Tooling Linters (markdownlint), formatters (prettier), converters (pandoc) Vault Use Native format for Obsidian, SilverBullet, Logseq, most PKM tools ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-08-24T00:00:00-04:00","tags":null,"title":"Markdown"},"/garden/mech":{"content":"Mech is a Python command-line tool for managing VMware and VirtualBox VMs, built as a Vagrant alternative. We hold it because its main reason to exist went away.\nSummary Why hold: Mech filled a gap when the Vagrant VMware plugin was paid. Once HashiCorp made that plugin free, the reason to use Mech disappeared. The project has not seen meaningful updates in years.\nUse instead: Vagrant with the now-free VMware provider covers the same workflow with far broader community support and maintenance.\nWhen Mech is OK: Existing scripts that already depend on it can keep running. Do not start new work with it.\nDetails Topic Notes Origin Python alternative to Vagrant when the VMware plugin cost money Status Effectively unmaintained; superseded by free Vagrant VMware provider Successor Vagrant ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"Mech"},"/garden/meercode":{"content":"Meercode. Is a build monitor for CI systems.\nSummary When to use: reference only if an existing Meercode deployment still runs and you are planning migration off it.\nWhen to skip: any net-new adoption. Use vendor dashboards (GitHub Actions workflow views, GitLab pipeline boards) or a small internal status board instead.\nStatus: Service appears defunct. meercode.io shows a domain parking page. The meercodeio GitHub org last updated public repos in early 2021.\nDetails Meercode launched as a SaaS build dashboard (public beta circa 2020). It aggregated CI status across several providers for team rooms and wall displays.\nTopic Notes Status Product no longer maintained; domain parked Last GitHub activity Public repos updated early 2021 Upstream github.com/meercodeio (inactive) For multi-pipeline visibility today, prefer each CI vendor’s native dashboard or a maintained open-source status board you can own.","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Meercode"},"/garden/meerkat":{"content":"Meerkat is Cloudflare Research’s experimental global consensus service built on QuePaxa. We assess it as a watch item for WAN control-plane consensus, not something you can adopt today.\nBlurb Meerkat is an experimental consensus service that is still in development.\nSummary What it is: A replicated log service for small control-plane state across many data centers. Applications (KV store, leases) sit atop the consensus log. Any replica can accept client requests. Powered by QuePaxa instead of Raft to avoid leader-timeout outages on Cloudflare’s noisy WAN.\nWhen to use:\nSituation Notes Track industry SMR Follow Cloudflare Research posts and papers Design WAN control planes Mine requirements: linearizability, majority live, any-replica writes Compare to managed stores Contrast with FoundationDB-style CP metadata products When to skip:\nNeed a product you can run or buy now (Meerkat is internal-only, not production) Stable single-region clusters where Raft already works General-purpose databases (explicitly out of scope) Trade-offs:\nStrength Cost Targets global linearizable control plane Still experimental; no public service QuePaxa avoids Raft leader stalls Consensus RTT cost remains; global placement adds latency Batching, local stale reads, CAS/transactions planned Best for infrequent writes, not hot data paths Pairs with: QuePaxa (protocol), Raft (baseline they rejected for WAN), CAP Theorem (CP quorum goals), TLA+ (they plan formal verification of a Rust implementation).\nDetails Target Properties (Cloudflare) Strong consistency (linearizability for the KV example; serializability planned). Available for reads and writes while a majority of replicas can communicate. Crash faults only (not Byzantine). Same broad threat model class as Raft systems. Why Not Raft (Their Argument) Authoritative leader blocks writes during elections and when the leader is merely slow. WAN RTT variance makes election timeouts hard to tune. Concurrent leadership campaigns can thrash. Cloudflare reports Raft-related incidents from these failure modes. Limits They State Not a general database. Aimed at small, infrequently written control-plane data. Decision latency tracks majority RTT. Global replica placement trades availability for latency. Not deployed to production as of the introduction post. Proofs-of-concept up to ~50 worldwide replicas. References Introducing Meerkat (Cloudflare Blog) QuePaxa paper ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Meerkat"},"/garden/mermaid":{"content":"Mermaid is a JavaScript library that renders Markdown-inspired text into flowcharts, sequence diagrams, ER diagrams, and more. We adopt it for git-backed docs, ADRs, research pages, and Hugo posts where diagrams should diff in PRs.\nBlurb JavaScript based diagramming and charting tool that renders Markdown-inspired text definitions to create and modify diagrams dynamically.\nSummary When to use:\nUse Notes Markdown and Hugo Fenced mermaid blocks render in many static sites and Git hosts Architecture docs Flowcharts, sequence, class, C4-style, and ER views in repo text Living research gbrain pages and ADRs where the diagram evolves with prose Quick reviews Mermaid Live Editor for paste-and-share drafts When to skip:\nFine-grained layout, layers, or cloud icon libraries (Draw.io trial fits better) Legacy DOT pipelines you already maintain (Graphviz hold) One-off chat sketches that will never be committed (AsciiFlow hold) Trade-offs: Syntax is learnable but strict. Typos break renders. Layout is automatic, so dense diagrams can get crowded. Prefer small, focused diagrams over kitchen-sink canvases.\nDetails Diagram Types Declaration Diagram type flowchart / graph Flowchart sequenceDiagram Sequence diagram classDiagram Class diagram erDiagram Entity relationship stateDiagram-v2 State diagram gantt Gantt chart gitGraph Git graph mindmap Mindmap timeline Timeline quadrantChart Quadrant chart Every diagram starts with a type declaration, then node and edge definitions. Line comments use %%.\nDeployment Topic Notes npm / CDN mermaid package or jsDelivr for browser rendering GitHub Native Mermaid in Markdown (README, issues, PR bodies) Hugo Goldmark or dedicated shortcode; this site’s garden pages support fenced blocks Obsidian Core Mermaid plugin renders fenced blocks in preview Syntax Tips Wrap reserved words like end in quotes when they appear as node labels. Avoid {} inside %% comments; the parser can confuse them with directives. Test in Mermaid Live Editor before committing complex syntax. Compared to Alternatives Tool When Mermaid wins When the alternative wins Draw.io Text diffs, docs-as-code, CI-rendered Markdown Manual layout, vendor icon stencils, stakeholder polish Graphviz Broader diagram types, simpler author UX for common software diagrams Existing DOT tooling or graph algorithms you already depend on See Diagramming for the full garden matrix.\nReferences\nMermaid documentation Mermaid Live Editor npm: mermaid ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"Mermaid"},"/garden/metabase":{"content":"Metabase. Is open source business intelligence and embedded analytics.\nBlurb Query in natural language and give your team AI-powered analytics built on your metrics and permissions. Deploy in minutes.\nSummary Garden stance: We hold Metabase for our estate.\nKey points:\nTopic Notes Deploy Hold path: Docker/JAR self-hosted (prefer Grafana OSS instead for new work). SaaS path: Metabase Cloud when federated data or ops cost dominates Data model Live queries against connected databases; extracts optional via caching settings Auth Google, LDAP, SAML; row-level sandboxing on supported plans Practices: Use read-only DB credentials; separate analytics replicas from OLTP; audit public links and embedded iframe origins.\nReferences\nMetabase documentation GitHub repository Details Topic Notes Deploy Hold path: Docker/JAR self-hosted (prefer Grafana OSS instead for new work). SaaS path: Metabase Cloud when federated data or ops cost dominates Data model Live queries against connected databases; extracts optional via caching settings Auth Google, LDAP, SAML; row-level sandboxing on supported plans Practices: Use read-only DB credentials; separate analytics replicas from OLTP; audit public links and embedded iframe origins.\nReferences\nMetabase documentation GitHub repository ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Metabase"},"/garden/microservices":{"content":"Microservices is a technique we hold in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Compared to a Modular Monolith A modular monolith proves module seams inside one process before you accept network failure modes. Microservices force those seams on day one. Wrong seams mean duplicated logic, sagas, and cross-service refactors that cost more than the original split saved.\nUse microservices when independent scaling, failure isolation, or polyglot stacks are documented requirements. Use a modular monolith when the pain is ownership and coupling inside one codebase.\nOrg and Conway’s Law Microservices work best when team boundaries already match service boundaries. A siloed org can absorb the coordination cost. A cross-functional product team on a fresh microservice stack often replicates data, fights shared concerns, and loses velocity on platform glue.\nDeveloper Experience Local development needs many services, stubs, or heavy compose stacks. Debugging spans traces and repos. Contract changes ripple through consumers. These costs are real even when each service looks simple alone.\nBoundary Discipline Pair service splits with Common Closure Principle thinking. Split on change drivers, not technical layers. If a boundary cannot survive as a module inside one deployable, it is unlikely to survive as a service without pain.\nRelated Garden Items Modular Monolith (trial) as the default shape before distribution Software Architecture subcategory for sibling structural techniques First Principles when debating monolith vs microservices defaults RPC (hold) and gRPC (assess) for integration style after you already chose distribution References Martin Fowler, Microservices Sam Newman, Building Microservices (O’Reilly) Kamil Grzybek, Modular Monolith: A Primer ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"Microservices"},"/garden/middleman":{"content":"Middleman is a Ruby static-site generator with flexible templates, data files, asset processing, and extension support. We assess it for inherited Ruby documentation sites or teams already committed to that ecosystem.\nBlurb Hand-crafted frontend development\nSummary When to use: Maintain an existing Middleman site, or build a content site where Ruby, ERB, Haml, Sass, and custom extensions match the team’s skills. It remains maintained, with version 4.6.3 released in February 2026.\nWhen to skip: Starting a new documentation site without a Ruby requirement. More common static-site ecosystems offer broader themes, integrations, and contributor familiarity.\nWhy it is here: HashiCorp historically used Middleman for documentation. That makes it useful context when examining older HashiCorp documentation repositories, but not an automatic recommendation for new work.\nDetails Topic Notes Runtime Ruby gem; projects use Bundler and a config.rb configuration file Content Supports ERB, Haml, Slim, Markdown, YAML data, Sass, and other frontend tools Workflow middleman server for local development; middleman build for static output Status Long-lived MIT project with active 4.6.x maintenance through 2026 References\nMiddleman documentation middleman/middleman on GitHub Middleman on RubyGems ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"Middleman"},"/garden/mise":{"content":"mise. (formerly rtx) is a polyglot runtime manager: one CLI installs and pins Node, Python, Terraform, Go, and many other tools from .mise.toml or .tool-versions.\nBlurb mise-en-place documentation\nSummary What it is: Fast shim-based version switching with task runner hooks and env var support.\nWhen to use: Many repos with different runtime pins; want one entrypoint instead of nvm plus pyenv plus tfenv.\nWhen to skip: Team already standardized on Dev Container only.\nKey features: mise install, global and local config, CI-friendly, compatible with asdf plugin ecosystem patterns.\nDetails Topic Notes Pairing Works with direnv to activate env on cd Contrast asdf where legacy plugin investment dominates References\nmise documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"mise"},"/garden/mob":{"content":"Mob is a command-line tool that coordinates Git handovers for remote mob programming. We assess it for distributed teams that rotate the active driver and need clean, repeatable handoffs.\nBlurb Tool for smooth git handover.\nSummary When to use: A remote mob rotates drivers through Git rather than shared-screen control. Mob automates temporary WIP branches, commits, pushes, pulls, timers, and the final squash back to the working branch.\nWhen to skip: The team is co-located, uses live collaborative editing, or rarely rotates drivers. Plain Git commands are enough when handoffs are infrequent and everyone understands the branch protocol.\nTrade-offs: It standardizes handoffs and keeps WIP commits off the main branch. It also adds a team-specific CLI and remote-branch convention that every participant must learn.\nDetails Topic Notes Workflow mob start, edit, mob next, then mob done to return work to the base branch Coordination Temporary remote WIP branches, optional shared timer and goal room Implementation MIT-licensed Go CLI with macOS, Linux, and Windows releases Status Actively maintained; version 5.4.2 released in January 2026 References\nMob website Remote mob programming guide remotemobprogramming/mob on GitHub ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"Mob"},"/garden/model-context-protocol":{"content":"Model Context Protocol (MCP) is an open standard that connects AI apps to tools, data sources, and workflows through clients and servers. We adopt it as the default tool-connectivity layer for coding agents in this estate.\nBlurb MCP (Model Context Protocol) is an open-source standard for connecting AI applications to external systems.\nSummary When to use:\nSituation Notes Shared tools across hosts One server; many clients (Claude Code, Cursor, Codex, Gemini) Vault / local integrations Obsidian, Reminders, Gmail, and similar via local stdio servers Remote product APIs Prefer a vendor-hosted server over a locally installed package When to skip:\nOne-off scripts where a CLI or SDK call is enough Untrusted third-party servers without review (treat tool surface as code execution) Vendor-provided Node.js packages when a maintained hosted endpoint is practical Replacing portable behavior that belongs in Agent Skills Framework (SKILL.md) Trade-offs: MCP standardizes what tools an agent can call. Skills standardize how the agent reasons. Prefer MCP for actions and data access; prefer skills for reusable procedures.\nLocally installed MCP packages add a software supply-chain risk to every client machine. Prefer vendor-hosted endpoints when available. Pair local servers with dependency controls, least privilege, and Claw Patrol or equivalent safeguards.\nContrast: Agent Client Protocol is about treating an agent as a service. MCP is about plugging tools and context into an agent host.\nDetails Shape Role Responsibility Host / client Agent app that discovers tools, prompts, and resources Server Exposes tools, resources, and prompts over stdio or HTTP Transport Local stdio is common for desktop agents; remote HTTP/SSE for hosted servers Estate Notes This vault declares MCP servers in .mcp.json (Obsidian vault access and related tooling). Coding agents in the garden (Claude Code, cursor-agent, Codex, Gemini) all speak MCP for extensions. Agent Skills - Sources treats MCP servers as the complement to skills: tools vs reasoning. Security Every connected server expands the agent’s blast radius (files, shell, cloud APIs). Vendor-distributed Node.js servers create a supply-chain path through package installation and transitive dependencies. Prefer vendor-hosted endpoints. Report locally packaged servers to vendors when a hosted service is practical. Prefer least privilege, allowlists, and human approval for destructive tools. See Claw Patrol when evaluating egress and protocol-aware interception for agent workloads. ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"Model Context Protocol"},"/garden/modular-monolith":{"content":"Modular Monolith. Kamil Grzybek Personal Site We adopt it under Technique in the garden.\nSummary What it is: One deployment unit organized into independent modules. Each module owns its business logic and data access behind a public interface. Other modules call that interface only.\nWhy it matters: You keep monolith ops simplicity (one build, one deploy, one runtime). You still get boundaries that support team ownership and future extraction if a module truly needs its own service.\nWhen to use: Single product or platform teams, greenfield apps, and rewrites where microservices would add cost before you have proof of separate scaling or release cadences.\nWhen to skip: Large orgs with many unrelated offerings, hard isolation requirements, or teams that already operate mature platform tooling for distributed systems.\nShape Deploy units Boundaries Typical trade-off Traditional monolith One Often implicit Fast start; coupling grows in shared code Modular monolith One Explicit modules and contracts Enforced design; refactor stays in-process Microservices Many Network and service contracts Independent scale and release; distributed complexity Module checklist (Grzybek): independent and interchangeable; contains everything needed for its capability; exposes a well-defined contract; resists cross-module internal access.\nDetails Compared to Microservices Microservices split deployables and force network boundaries early. A modular monolith keeps one process and one release pipeline while you prove module seams. Moving code between modules is a refactor. Promoting a module to a service is a migration with new failure modes.\nUse microservices when independent scaling, failure isolation, or polyglot stacks are proven requirements. Use a modular monolith when the main pain is unclear ownership inside one codebase, not cross-service traffic.\nBoundary Enforcement Module boundaries erode under deadline pressure unless tooling backs them. Common guards:\nMechanism Role Architecture tests (ArchUnit, NetArchTest, custom lint) Fail CI on illegal cross-module imports Module-local persistence No direct queries into another module’s tables Public API packages or facades Only exported types are callable Event or message contracts Async integration without shared domain models Related Garden Items Common Closure Principle for grouping code that changes together into modules Single Responsibility Principle for class-level discipline inside each module First Principles when debating monolith vs microservices defaults Software Architecture subcategory for sibling structural techniques References Kamil Grzybek, Modular Monolith: A Primer Kamil Grzybek, Modular Monolith: Architectural Drivers ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"Modular Monolith"},"/garden/monitoring":{"content":"Under Tool, Monitoring groups products that watch infrastructure or services and raise alerts when checks fail or thresholds breach. This is the collect-and-notify layer. Dashboarding is the visualize-and-share layer. OpenTelemetry is the telemetry standard and SDK layer under Code.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Monitoring"},"/garden/mosh":{"content":"Mosh is the mobile shell for interactive remote sessions that survive roaming and flaky links. We adopt it for interactive TUI IDE sessions over the tailnet.\nBlurb Mosh is a replacement for interactive SSH terminals. It’s more robust and responsive, especially over Wi-Fi, cellular, and long-distance links.\nSummary Use Mosh when the interactive session must survive IP changes, Wi-Fi to cellular handoffs, client sleep, or packet loss. It authenticates through SSH once, then runs a UDP session on ports 60000 to 61000.\nMosh has no scrollback because it syncs visible screen state. herdr holds the buffer server-side, so the stack is covered.\nOver the tailnet, Mosh’s UDP addresses the Tailscale IP and rides inside Wireguard, so the VPS never publicly exposes the mosh ports.\nKeep SSH for bootstrap and file transfer.\nDetails Upstream: https://mosh.org Role: interactive transport in the TUI IDE stack Bootstrap: mosh-server new runs over SSH command execution, so real OpenSSH is required Locales: mosh-server refuses to run without a UTF-8 locale Caveat: no scrollback; herdr owns the buffer Related: SSH, herdr, Tailscale, Wireguard ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-09-18T00:00:00-04:00","tags":null,"title":"Mosh"},"/garden/mvc":{"content":"Model-View-Controller (MVC). Splits UI applications into model (data and rules), view (presentation), and controller (input and flow).\nSummary What it is: separation of concerns for interactive apps. The model holds domain state. The view renders state. The controller translates user actions into model updates and view refreshes.\nWhen it fits: server-rendered web apps, desktop UI toolkits, and frameworks that enforce clear template vs logic splits (Rails, Django, ASP.NET MVC-style stacks).\nWhen to reassess: SPAs where the “view” is a component tree and “controller” logic bleeds into front-end state managers; micro-frontends; or backends that are pure APIs with no server-side view. In those cases, explicit Software Architecture layers beat literal MVC folder names.\nGarden link: ORM often backs the model layer in database-backed web apps. Keep persistence mapping out of views and thin controllers.\nDetails Layer Responsibility Common mistake Model Domain state, validation, persistence rules Fat models that know HTTP or UI details View Presentation and formatting Business logic embedded in templates Controller Request routing, orchestration God controllers that skip the model Variants and Neighbors MVP / MVVM: common in desktop and mobile UI stacks; same separation goal, different binding direction. API-only backends: often drop the view; do not force MVC naming when the system is REST resources plus services. ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Model-View-Controller (MVC)"},"/garden/mysql":{"content":"MySQL. Is the world’s most popular open source relational database, now led by Oracle.\nSummary What it is: Open source RDBMS with InnoDB as the default transactional engine, replication, and a large hosting ecosystem. Commercial and community builds share the same SQL surface most developers know.\nWhen to use: Maintaining existing MySQL schemas, vendor contracts, or frameworks locked to MySQL. Short-term parity during a migration plan to Postgres.\nWhen to skip: Greenfield OLTP or new microservices (use Postgres). Warehouse-scale analytics on GCP (BigQuery). Choosing MySQL only because it was the default a decade ago.\nHold rationale: Postgres matches or exceeds MySQL on features, extensions, and licensing clarity for new work. Existing MySQL remains supported; plan moves when touch cost is low.\nDetails Topic Notes Deploy Oracle MySQL, MariaDB fork, RDS, Cloud SQL Ops Replication lag monitoring; charset and collation audits on legacy schemas BI Supported by Redash, Metabase, and most SQL BI tools Practices: Treat MySQL as legacy unless a hard constraint blocks migration; document schema diffs before cutover to Postgres; avoid new stored-procedure-heavy designs that increase lock-in.\nReferences\nMySQL documentation What is MySQL (Oracle) ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"MySQL"},"/garden/nagios":{"content":"Nagios. Is a long-running open source monitoring system built around host and service checks with plugin scripts.\nBlurb Prevent IT downtime before it impacts your systems with Nagios Core - the free, open source monitoring solution trusted by 1M+ users worldwide. Monitor severs, networks & applications with powerful community-driven tools.\nSummary What it is: Core scheduling engine, check plugins, notification commands, and optional Nagios XI commercial UI. The model is periodic synthetic checks from a central poller.\nWhen to use: Maintaining an existing Nagios deployment with years of custom plugins and on-call docs. Short-term bridge while migrating checks to Prometheus exporters or OTel.\nWhen to skip: Any greenfield monitoring project. Plugin sprawl, config drift, and host-centric alerting do not scale cleanly for ephemeral cloud workloads.\nKey features: Flexible plugins, escalation chains, downtime scheduling, and a large community check library.\nDetails Topic Notes Deploy Central server, NRPE or remote plugins, flat config files or Nagios XI config UI Data model Host and service objects with hard/soft states; not a metrics time-series store Auth Basic UI auth; enterprise features in Nagios XI Practices: Plan exit early if you inherit Nagios. Export check intent as code, then reimplement as OTel metrics or synthetic probes in Grafana alerting.\nReferences\nNagios Core documentation Nagios plugins ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Nagios"},"/garden/neo-tree-nvim":{"content":"neo-tree.nvim is the file and project tree plugin in the NeoVim stack. We trial it as the project management surface beside Telescope.nvim and which-key.nvim.\nBlurb Neovim plugin to manage the file system and other tree like structures.\nSummary Use neo-tree.nvim to browse the file system and keep project structure visible inside NeoVim. Open as a sidebar, floating window, or netrw-style split with :Neotree.\nIt has multiple sources: filesystem, buffers, git_status, and an experimental document_symbols view. It hijacks netrw so opening a directory shows the tree. Built on nui.nvim and plenary.nvim, it ships built-in git status and LSP diagnostics indicators.\nDetails Upstream: https://github.com/nvim-neo-tree/neo-tree.nvim Open: :Neotree (left sidebar is the default) Sources: filesystem, buffers, git_status, document_symbols (experimental) Dependencies: nui.nvim, plenary.nvim Related: NeoVim, Telescope.nvim ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-09-19T00:00:00-04:00","tags":null,"title":"neo-tree.nvim"},"/garden/neon":{"content":"Neon is serverless Postgres with separated storage and compute, scale-to-zero, and instant database branching. We trial it for app and agent backends that need real Postgres without always-on capacity planning.\nBlurb Neon is the Postgres backend designed for apps and agents.\nSummary What it is: Managed (and open-source) Postgres platform. Compute is ephemeral; storage is distributed and versioned. Copy-on-write branches give isolated DBs in seconds. Founded by Postgres committers. Databricks company since May 2025. Full Postgres compatibility for drivers, ORMs, and extensions.\nWhen to use:\nSituation Notes Agent / CI databases Branch per agent, PR, or test run; tear down cheaply Variable traffic Autoscaling and scale-to-zero vs fixed RDS-sized instances Shared logical catalogs Many small Postgres roles/DBs on shared infra (e.g. DuckLake metadata) Dev/prod parity Branch from prod-like data without full clones When to skip:\nStrict on-prem or air-gapped Postgres only Workloads that need a specific cloud’s proprietary Postgres fork features Teams already happy on a single always-on Postgres (RDS/Cloud SQL) with stable load Trade-offs: True Postgres wire protocol and SQL. Cold starts and branch semantics need app awareness. Vendor is now under Databricks; watch pricing and roadmap coupling to the lakehouse stack.\nDetails Architecture (short) Piece Role Compute Stateless Postgres nodes Pageserver Durable page storage Safekeepers Redundant WAL until durable in storage Scaling starts more compute; it does not resize a monolithic VM the classic way. Serverless, scale-to-zero Postgres fits many logical catalogs on shared infra without a dedicated instance per tenant.\nRelated Garden Items Postgres - underlying engine and garden adopt default DuckLake - SQL catalog format that can sit on Neon-hosted Postgres FoundationDB - heavier distributed metadata alternative when you need a shared multi-tenant KV control plane References Neon homepage Why Neon? (docs) GitHub: neondatabase/neon ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"Neon"},"/garden/neovim":{"content":"Neovim is the hyperextensible Vim-based editor that won the editor slot in the TUI IDE stack. We adopt it for fast edits and file manipulation, not as an AI chat surface.\nBlurb Hyperextensible Vim-based text editor.\nSummary Use NeoVim for fast edits and file manipulation while the coding agent lives in an OpenCode TUI inside a herdr pane. It won over the other terminal editors because it is extensible via Lua and has the best agent integration among TUI editors.\nKey plugins in the stack: Telescope.nvim for fuzzy search, neo-tree.nvim for project management, and which-key.nvim for keybinding help.\nThe mental-model cost is Vim’s verb-object order, inverted from Helix’s object-verb. Keep the config hand-rolled and minimal to avoid the maintenance tax that ruled out Emacs.\nDetails Upstream: https://neovim.io Role: terminal editor for fast edits and file manipulation Config language: Lua with init.lua Stack plugins: Telescope.nvim, neo-tree.nvim, which-key.nvim Agent surface: OpenCode TUI in a herdr pane; no in-editor chat panel Related: Vim, Emacs, Lua, tree-sitter ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-09-18T00:00:00-04:00","tags":null,"title":"NeoVim"},"/garden/netbox":{"content":"NetBox is an open-source network source of truth for IPAM, DCIM, and automation APIs. We assess it for on-premises and data-center estates, where provider-native Cloud inventory does not already cover the need.\nBlurb The cornerstone of every automated network\nSummary When to use: You need an intended-state model for sites, racks, devices, cables, prefixes, VLANs, and VRFs. Pair it with Ansible, Terraform, or other controllers that consume authoritative network data.\nWhen to skip: A Cloud provider already owns the network inventory and IP address lifecycle. Also skip it for small estates where a spreadsheet or lighter IPAM is adequate, or for general application CMDB needs.\nTrade-offs: The Apache 2.0 community edition has a strong data model and plugin ecosystem. Self-hosting adds PostgreSQL, upgrades, and plugin management. NetBox Cloud and Enterprise provide commercial deployment paths.\nRelated garden: Use IaC and Ansible as automation consumers. Use LibreNMS to observe live state. NetBox defines intended state rather than discovering or enforcing it by itself.\nDetails Topic Notes Role Defines intended network state; does not push configuration to devices itself Stack Python, Django, PostgreSQL, REST and GraphQL APIs, and a plugin architecture Core domains IPAM for prefixes, addresses, VLANs, and VRFs; DCIM for sites, racks, devices, cables, and circuits Editions Community open source, NetBox Cloud, and NetBox Enterprise Alternatives Nautobot for automation-heavy workflows; lighter IPAM tools; commercial DDI and CMDB suites References\nNetBox documentation NetBox Community on GitHub NetBox Labs product page ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"Netbox"},"/garden/netlify":{"content":"Netlify is a platform we assess in the garden.\nSummary Key points:\nTopic Notes Deploy paths Git push, Netlify CLI, drag-and-drop, or dashboard prompts Config netlify.toml for build command, publish dir, redirects, headers, and plugins Previews Unique URL per branch and PR; one-click production deploy or rollback Primitives Functions, Edge Functions, Background and Scheduled Functions, Blobs, Netlify Database Edge Global CDN with HTTPS and DDoS protection on by default; High-Performance Edge on Enterprise Pricing Credit-based tiers; Free includes limited monthly credits; Pro and Enterprise add seats, SLAs, and support Typical workflow: connect a GitHub (or GitLab/Bitbucket) repo, set build command and output directory, enable deploy previews on PRs, add env vars per context (production vs preview), and use redirects for SPA routing or legacy paths.\nPairs with: static site generators (Hugo, Astro, Next.js static export), headless CMS webhooks for rebuild-on-publish, and light API routes via functions when a full Kubernetes service is overkill.\nReferences\nNetlify Netlify Docs Platform primitives Netlify Build## Personal Experience Details Topic Notes Deploy paths Git push, Netlify CLI, drag-and-drop, or dashboard prompts Config netlify.toml for build command, publish dir, redirects, headers, and plugins Previews Unique URL per branch and PR; one-click production deploy or rollback Primitives Functions, Edge Functions, Background and Scheduled Functions, Blobs, Netlify Database Edge Global CDN with HTTPS and DDoS protection on by default; High-Performance Edge on Enterprise Pricing Credit-based tiers; Free includes limited monthly credits; Pro and Enterprise add seats, SLAs, and support Typical workflow: connect a GitHub (or GitLab/Bitbucket) repo, set build command and output directory, enable deploy previews on PRs, add env vars per context (production vs preview), and use redirects for SPA routing or legacy paths.\nPairs with: static site generators (Hugo, Astro, Next.js static export), headless CMS webhooks for rebuild-on-publish, and light API routes via functions when a full Kubernetes service is overkill.\nReferences\nNetlify Netlify Docs Platform primitives Netlify Build ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Netlify"},"/garden/nip-io":{"content":"NIP.io is a public wildcard DNS service that resolves hostnames containing an IP address to that address. We trial it for disposable development, demo, and Kubernetes ingress environments.\nBlurb Dead simple wildcard DNS for any IP Address\nSummary When to use: A temporary environment needs human-readable hostnames without editing /etc/hosts or managing a DNS zone. It is particularly convenient for local clusters, short-lived demos, and ingress testing.\nWhen to skip: Production, private environments with DNS rebinding protection, or any system that cannot depend on a public DNS service. Use a controlled domain and DNS zone for durable infrastructure.\nCurrent status: nip.io is operational but is now hosted by sslip.io. Both services resolve embedded IPv4 addresses. sslip.io also supports IPv6 and custom domains.\nTLS limitation: Individual public hostnames can use ACME HTTP-01 certificates. The service does not support wildcard certificates, and shared-domain certificate rate limits can affect users.\nDetails Hostname Result 10.0.0.1.nip.io Resolves to 10.0.0.1 app.10.8.0.1.nip.io Resolves to 10.8.0.1 app-192-168-1-10.nip.io Resolves to 192.168.1.10 Constraint Impact Public dependency Resolution depends on third-party nameservers and Internet access DNS rebinding protection Some routers and resolvers block answers for private addresses Shared certificate domain ACME issuance may encounter shared rate limits No wildcard certificates Issue certificates for individual externally reachable hostnames References\nnip.io service sslip.io service and operational status nip.io source ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"NIP.io"},"/garden/nix":{"content":"Nix. Is a reproducible package and environment system using the Nix language, flakes, and dev shells.\nBlurb Nix is a tool that takes a unique approach to package management and system configuration. Learn how to make reproducible, declarative and reliable systems.\nSummary What it is: Store-based packages, flake.nix / shell.nix dev shells, optional NixOS Linux distribution.\nWhen to use: Strong reproducibility requirements; teams already fluent in Nix flakes.\nWhen to skip: Short onboarding windows. Prefer Dev Container or mise for simpler pins.\nKey features: Binary cache, dev shell hooks, use flake in direnv, cross-platform Nix installer.\nDetails Topic Notes Cost Steeper learning curve than version managers Pairing direnv use flake auto-loads shell on cd References\nNix manual ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Nix"},"/garden/nodejs":{"content":"Node.js. Is a cross-platform runtime that executes JavaScript outside the browser, built on V8.\nBlurb Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.\nSummary Garden stance: We adopt Node.js for our estate.\nKey points:\nTopic Notes LTS releases Even-numbered majors get long-term support; pin versions in production Modules ESM (import) is default in new projects; CommonJS (require) still common in older code Package manager npm ships with Node; pnpm and yarn remain popular for monorepos Testing Jest, Vitest, and node:test cover unit and integration layers Observability OpenTelemetry and structured logging integrate well with REST services Ecosystem: largest registry for web and automation libraries. Playwright, bundlers, and frontend tooling all target Node first.\nProcess management: PM2 daemonizes Node apps on bare metal. Prefer Docker when you need reproducible images and orchestration.\nAlternatives: Bun as a faster drop-in JavaScript runtime for many workloads.\nReferences\nNode.js documentation About Node.js Node.js GitHub repository Details Topic Notes LTS releases Even-numbered majors get long-term support; pin versions in production Modules ESM (import) is default in new projects; CommonJS (require) still common in older code Package manager npm ships with Node; pnpm and yarn remain popular for monorepos Testing Jest, Vitest, and node:test cover unit and integration layers Observability OpenTelemetry and structured logging integrate well with REST services Ecosystem: largest registry for web and automation libraries. Playwright, bundlers, and frontend tooling all target Node first.\nProcess management: PM2 daemonizes Node apps on bare metal. Prefer Docker when you need reproducible images and orchestration.\nAlternatives: Bun as a faster drop-in JavaScript runtime for many workloads.\nReferences\nNode.js documentation About Node.js Node.js GitHub repository ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Node.js"},"/garden/nomad":{"content":"Nomad. Is a Platform Orchestrator that bills itself as an orchestration system that is easier than Kubernetes.\nBlurb Explore Nomad product documentation, tutorials, and examples.\nSummary Garden stance: We assess Nomad for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Nomad"},"/garden/nono-sh":{"content":"nono.sh is a platform for ephemeral micro sandboxes for AI agents with kernel-level isolation. We assess it for secure tool execution in our agent workflows.\nBlurb Ephemeral micro sandboxes for AI agents, with zero setup and zero latency. Kernel isolation for Linux, macOS & Windows with per-tool sandboxing, credential protection, and fully auditable execution.\nSummary What it is: A sandbox platform that provides isolated, scoped execution environments for AI agent tool calls. Each tool invocation runs inside a micro sandbox with only the selected capabilities: read-only workspace, bounded I/O, and proxy-only network access.\nWhen to use: You need secure tool execution with credential protection and audit trails for AI agents in production or sensitive environments.\nWhen to skip: Single-agent development workflows where direct tool execution without sandboxing suffices. You already have a gateway governance product that meets step-level needs, such as Agent Control.\nKey features: Kernel-level isolation, per-tool sandboxing with least-privilege capabilities, credential injection at the boundary, cryptographic audit trail, composable JSON profiles, and a TypeScript SDK. MIT licensed.\nEnforcement model, from vendor documentation:\nPlatform Mechanism Linux Landlock LSM with seccomp macOS Seatbelt Windows WSL2 Enforcement happens at the kernel rather than in the language runtime, so native addons, N-API modules, and WASM cannot bypass it. Once applied, a sandbox cannot be loosened, not by the agent, not by a child process, and not by nono itself. Restrictions are inherited, so an npm install postinstall script runs under the same allow-list as the agent that started it.\nDetails Package: nono CLI, current release 0.62\nSource: https://github.com/nolabs-ai/nono\nRegistry: https://registry.nono.sh\nSandbox providers: OS Sandbox (kernel isolation), Python, Node.js, Go\nIntegrations: Claude Code, OpenCode, Codex, Antigravity, GitHub Copilot, and registry agents\nArchitecture: Supervisor to resolve, authorize, spawn, execute, audit, and destroy. Every tool call crosses the supervisor boundary with policy-enforced capabilities.\nSecurity advisory worth reading. CVE-2026-47128, published July 2026 and rated moderate at CVSS 6.1, was a complete sandbox escape on Linux. Landlock and seccomp policies permitted access to local Unix domain sockets, so a sandboxed process could reach the per-user systemd D-Bus socket and spawn an unsandboxed sibling that writes anywhere the invoking user can write. Version 0.55.0 patched it. The advisory names the realistic threat as an agent tricked into invoking systemd-run. Not in the CISA KEV catalog.\nEcosystem adoption. Microsoft documents nono as a sandbox provider in its Agent Governance Toolkit, mapped against OWASP ASI, the LLM and MCP Top 10, NSA MCP guidance, NIST AI RMF, and the EU AI Act. Other projects wrapping it include agent-sandbox for Go and local-only agent setups.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-10-15T00:00:00-04:00","tags":null,"title":"nono.sh"},"/garden/nosql":{"content":"NoSQL (“Not Only SQL”) names data stores that model and scale outside classic relational tables. We assess it under Technique in the garden.\nSummary What it is: A design space, not one product. Examples include MongoDB (document), Redis (key-value), Cassandra (wide-column), and Neo4j (graph). usql and BI tools may connect to several of these alongside SQL engines.\nWhen to use: Schema churn or nested documents dominate; extreme horizontal write scaling; TTL-heavy caches; graph traversals are the core query pattern.\nWhen to skip: Most business apps with joins, transactions, and reporting on a stable schema (Postgres). Analytics warehouses (BigQuery) when SQL over huge columnar data is the real need, not document flexibility.\nKey tradeoffs: Eventual consistency models, operator skill split, and operational sprawl when every service picks a different engine.\nDetails Style Typical use Relational alternative Document CMS, catalogs Postgres JSONB Key-value Session cache Redis with Postgres source of truth Wide-column High-ingest time series Partitioned Postgres or warehouse Graph Identity graphs Postgres recursive CTEs or dedicated graph DB Practices: Prove you outgrew Postgres JSONB or replicas before adding a second datastore; standardize on one document store per org if you must; keep Redash queries read-only.\nReferences\nNoSQL (Wikipedia) MongoDB NoSQL explained ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"NoSQL"},"/garden/notion":{"content":"Notion is a collaborative, cloud-based workspace for teams and individuals to organize knowledge, projects, and processes in a flexible, visual format.\nBlurb A collaborative, cloud-native workspace for building and sharing knowledge, projects, and team workflows.\nSummary When to use: Choose Notion for team collaboration, real-time co-editing, and integrating with other tools. Ideal for organizations needing a centralized knowledge hub with rich media support.\nWhen to skip: Opt for local-first tools (Obsidian, SilverBullet) when data sovereignty and offline access are priorities.\nKey trade-offs:\nPros Cons Real-time collaboration Cloud dependency Rich media embedding Subscription cost Extensive integrations Less control over data Related: PKM Obsidian\nDetails Topic Notes Collaboration Real-time co-editing, comments, and activity streams Media Embedded images, videos, and interactive elements Integrations Deep links to GitHub, Jira, Slack, and many other tools Offline Limited offline support compared to local-first tools Security Data stored in Notion’s cloud infrastructure Mobile Fully functional mobile app with limited offline capability ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-08-25T00:00:00-04:00","tags":null,"title":"Notion"},"/garden/npm":{"content":"npm. Is the default package manager and public registry for the JavaScript ecosystem.\nSummary Garden stance: We trial npm for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Command Role npm install Add or update dependencies; writes lockfile when configured npm ci Clean install from lockfile (preferred in CI) npm run Execute scripts entries in package.json npm publish Push a package version to a registry npm audit Report known vulnerabilities in the dependency tree Ships with Node: installing Node.js includes npm. Version bumps track Node releases; use corepack if you enable pnpm or Yarn officially.\nRegistry: largest public JavaScript package index. Complexity scales with transitive dependencies; monorepos need workspace discipline.\nRating note: garden default is trial because npm alone is not grounds to enter JS/TS. Once committed to that stack, treat npm as adopt for installs and scripts.\nAlternatives: Bun as an npm-compatible install client. pnpm and Yarn (not in garden) for stricter monorepo layouts and deduplicated stores.\nNot the acronym you think: npm officially expands to “npm is not an acronym.”\nReferences\nAbout npm npm CLI documentation npm Registry ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"npm"},"/garden/npx":{"content":"npx. Runs executables from npm packages without a global install.\nBlurb Run a command from a local or remote npm package\nSummary Garden stance: We trial npx for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Pattern Role npx webpack Run a locally installed binary from node_modules/.bin npx --package=foo@1.2.3 -- foo Pin version when binary name differs from package name npx -c 'eslint .' Run a shell string with package binaries on PATH npm exec -- ... Same capability; use -- to pass flags to the child command vs npm: npm installs and declares dependencies. npx executes them. Most projects should declare tools in devDependencies and call them via npm run, not one-off remote npx in CI.\nRating note: garden default is trial for the same reason as npm. Once on JS/TS, adopt npx for local binary execution; avoid casual remote runs without Shift Left review.\nAlternatives: npm exec and run scripts. Bun bunx for Bun-first repos. Global installs (discouraged for rarely used tools).\nReferences\nnpx command npm exec About npm ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"npx"},"/garden/nvm":{"content":"nvm. (Node Version Manager) installs and switches Node.js versions per shell session from .nvmrc.\nBlurb Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions - nvm-sh/nvm\nSummary What it is: Bash/zsh script managing Node installs under ~/.nvm with nvm use and nvm install.\nWhen to use: JavaScript-heavy laptops with simple Node pinning needs.\nWhen to skip: Need fast switching or Windows-first ergonomics (fnm). Multiple runtimes beyond Node.\nKey features: .nvmrc, LTS aliases, npm global packages per Node version.\nDetails Topic Notes CI Prefer explicit Node version in GitHub Actions over relying on nvm in runners Contrast fnm for Rust-based speed; mise for all-in-one pins References\nnvm README ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"nvm"},"/garden/object-oriented-programming":{"content":"Object-Oriented Programming. (OOP) organizes code around objects that bundle data with the behavior that operates on it.\nSummary What it is: A paradigm where state and behavior live together in objects, usually behind interfaces or classes. Objects collaborate through messages (method calls) rather than shared mutable globals.\nCore ideas: encapsulation (hide internals), abstraction (expose a stable surface), inheritance or subtyping (reuse and polymorphism), and polymorphism (one interface, many implementations). Modern style stresses composition over inheritance and small objects with clear contracts.\nDiscipline: OOP pairs naturally with indirect control flow. Factories, interfaces, and dependency injection move callers away from concrete types. Treat Dependency Inversion Principle as required when objects collaborate across module boundaries.\nOOP is not one shape: Languages implement objects differently. Classical OOP uses explicit classes and encapsulation (the Java and Python mental model). Composable or duck-typed OOP accepts substitutes when behavior matches (GoLang, Ruby). Prototypal OOP chains objects through prototypes rather than class templates (JavaScript).\nWhen to use: Business domains with rich entities, UI models, SDKs, and services where boundaries map naturally to nouns and lifecycles. Strong fit when the language and ecosystem assume OOP (Spring, .NET, enterprise Java).\nWhen to pull back: Pipelines, ETL, and data transforms often read clearer as functions over immutable data. Infrastructure glue and one-off scripts rarely need class hierarchies. If a Design Pattern adds layers without removing duplication, simplify first.\nGarden links: First Principles for architecture reviews before pattern shopping. Design Pattern for named structural choices after constraints are clear. Dependency Inversion Principle for stable boundaries between layers.\nDetails Pillars (Practical Reading) Pillar Practice Encapsulation Expose behavior; keep invariants inside the object Abstraction Depend on interfaces, not concrete types, at boundaries Polymorphism Swap implementations without rewriting callers Composition Prefer has-a over is-a when behavior mixes OOP Flavors Style Mechanism Typical languages Classical Classes, encapsulation, inheritance Java, Python Composable Structs or objects plus interfaces; duck typing GoLang, Ruby Prototypal Prototype chains; instances inherit from objects JavaScript Classical OOP is what most teams picture first. Composable styles still use objects but swap implementations when behavior fits, without a shared class hierarchy. In prototypal JavaScript, built-ins such as Array are constructor functions. Literal arrays are instances whose prototype chain includes Array.prototype.\nCommon Failure Modes God objects that know every subsystem Deep inheritance chains that encode business rules in parent classes Anemic models (data bags with logic scattered in services) Pattern-first design (factories and abstract factories before a second use case exists) Skipping Dependency Inversion Principle and wiring callers directly to concrete types Language Notes Java / C# / TypeScript: OOP is the default idiom; lean on interfaces and small classes. Python: OOP is available but optional; use classes when they clarify state, not by reflex. Go: Structs and interfaces favor composition; avoid forcing Java-style hierarchies. Ruby: Duck typing and modules mix behavior without deep inheritance trees. JavaScript: Prototypal inheritance and object literals; prefer composition and factory functions over class sprawl when ES classes are not required. Related Garden Items Single Responsibility Principle for one-reason-to-change module boundaries Dependency Inversion Principle for stable abstractions at module boundaries Design Pattern subcategory for GoF-style and idiomatic pattern items Declarative Programming for desired-state and query-style problems where OOP is a poor fit Functional Programming for immutable pipelines and transforms where shared mutable objects add risk ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Object-Oriented Programming"},"/garden/obsidian":{"content":"Obsidian is a local-first, markdown-based knowledge management system that stores notes as plain text files with bidirectional linking capabilities. We assess it for integration with agent-maintained vaults and its programmable nature.\nBlurb A powerful knowledge base that works on top of a local folder of plain text Markdown files.\nSummary When to use: Choose Obsidian for building a local-first knowledge base with rich linking and extensibility through plugins, particularly when building an agent-maintained second brain.\nWhen to skip: Opt for simpler tools if you need real-time collaboration or prefer a SaaS solution with minimal setup.\nKey trade-offs:\nPros: Local storage (data sovereignty), powerful linking, extensible via plugins, markdown-based, excellent graph view Cons: No built-in sync (requires third-party services), learning curve for advanced features, mobile app limitations Related: PKM Markdown\nDetails Topic Notes Storage Format Plain text Markdown files in a local folder Linking Bidirectional wiki-links (Note Name) with autocomplete Extensibility Rich plugin ecosystem (community and official plugins) Graph View Visual representation of note connections Mobile Available on iOS and Android with some limitations Sync Requires Obsidian Sync (paid) or third-party solutions (iCloud, Dropbox, etc.) Templates Supports note templates for consistent formatting Search Full-text search with tag and property filtering ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-08-25T00:00:00-04:00","tags":null,"title":"Obsidian"},"/garden/octopus-deploy":{"content":"Octopus Deploy. Is a deployment automation platform for releases to IIS, Windows services, Kubernetes, and cloud targets.\nBlurb Deploy software to multi-cloud, hybrid, and on-premises environments with Octopus Deploy, the continuous deployment software. Save 2000 hours per rollout, ensure reliable deployments, and automate routine tasks.\nSummary When to use: Octopus is already the system of record for releases; need guided deployments with approvals and audit trails across heterogeneous targets.\nWhen to skip: container-only shops on ArgoCD; teams that want all deploy logic in git with no external release server.\nNote: Reminder title was “Octopus CD”; product name is Octopus Deploy.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Octopus Deploy"},"/garden/ohmyzsh":{"content":"Oh My Zsh is a community framework for managing the Zsh configuration. We adopt it as the shell setup on top of Zsh.\nBlurb Oh My Zsh is a delightful, open source, community-driven framework for managing your Zsh configuration.\nSummary Use Oh My Zsh to manage aliases, plugins, and themes on top of Zsh. It has been the setup since Apple switched the default shell, and its config ships through the stowed dotfiles.\nDetails Upstream: https://ohmyz.sh Role: framework for the Zsh configuration in the TUI IDE stack Bundled: 300+ plugins and 150+ themes Related: Zsh, Dotfiles in Version Control ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-09-18T00:00:00-04:00","tags":null,"title":"Oh My Zsh"},"/garden/olap":{"content":"OLAP (Online Analytical Processing) is the approach of answering multi-dimensional analytical queries fast over large historical datasets. We adopt it as the default vocabulary for warehouses, lakes, and embedded analytic engines versus OLTP.\nBlurb In computing, online analytical processing (OLAP) (/ˈoʊlæp/), is an approach to quickly answer multi-dimensional analytical (MDA) queries.\nSummary What it is: Read-heavy analytics pattern for BI, forecasting, and ad-hoc SQL over fact data. Classic ops include roll-up, drill-down, and slice/dice across dimensions (time, product, region, and so on). Contrasts with OLTP, which optimizes high-volume insert/update/delete of current records.\nWhen to use:\nSituation Notes Warehouses and lakes Snowflake, BigQuery, Trino, Iceberg / DuckLake Embedded analytics DuckDB and similar in-process engines Columnar storage Parquet, Arrow layouts favor scan and aggregate Reporting and planning Sales, finance, ops metrics over history When to skip:\nHigh-throughput transactional systems of record (Postgres as OLTP, payment ledgers) Low-latency single-row lookups as the primary workload Calling every SQL database “OLAP” when the real need is CRUD Trade-offs: Excellent for aggregates and historical analysis; poor fit as the system of record for mutable operational state. Modern “cloud OLAP” often uses columnar SQL engines rather than classic MOLAP cubes alone.\nDetails OLAP Vs OLTP Topic OLAP OLTP Workload Complex reads, aggregates Many small transactions Data shape Historical, denormalized or star/cube Current, normalized Optimization Scan, compress, columnar Indexes, write path, integrity Garden examples DuckDB, Snowflake, BigQuery Postgres as app DB Classic Vs Modern Shapes Shape Notes MOLAP Multidimensional cubes (classic OLAP servers) ROLAP Analytical SQL over relational stores HOLAP Hybrid of cube and relational Cloud / lake OLAP Separated storage/compute; Parquet + table formats Related Garden Items Engines: DuckDB, Snowflake, BigQuery, Trino Formats: Parquet, Arrow, Iceberg, DuckLake Contrast: OLTP / Postgres for transactional systems of record References Wikipedia: Online analytical processing IBM: What is OLAP? ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"OLAP"},"/garden/ollama":{"content":"Ollama. Is a local runtime for pulling, serving, and chatting with open-weight LLMs on your machine (macOS, Linux, Windows).\nBlurb Ollama is the easiest way to automate your work using open models, while keeping your data safe.\nSummary Ollama packages model weights, GPU/Metal acceleration, and a simple CLI (ollama run, ollama pull) behind a local HTTP API. Most integrations use its OpenAI-compatible endpoints so tools can swap base_url to http://localhost:11434 without bespoke SDKs, aligned with our OpenAI-compat provider approach for pipelines.\nStrong fit on Apple Silicon and Linux workstations for iterative prompt work, offline use, and agent loops that should not send data to a hosted model. Less ideal as the sole backend for high-volume batch jobs unless you size hardware and accept latency.\nDetails Workflow: install Ollama → ollama pull <model> → run server (often automatic) → point clients/agents at local API. Models: catalog includes Llama, Mistral, Qwen, DeepSeek, and others; tags vary by hardware (e.g. Hermes notes deepseek and qwen on Apple Silicon). Integrations: Hermes and other AI Agent platforms; any OpenAI-shaped HTTP client. Limits: single-machine scale, model RAM/VRAM caps, no managed HA. Use cloud providers when you need SLA, burst capacity, or centralized billing. Security: keeps prompts on-box; still vet models and plugins; not a substitute for enterprise model governance. ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-15T00:00:00-04:00","tags":null,"title":"Ollama"},"/garden/oltp":{"content":"OLTP (Online Transaction Processing) is the approach of processing many short, concurrent read/write transactions against current operational data. We adopt it as the default vocabulary for systems of record versus OLAP.\nBlurb Online transaction processing (OLTP) is a type of database system used in transaction-oriented applications, such as many operational systems.\nSummary What it is: Write-heavy (and mixed) workloads that keep the live business state correct: orders, payments, inventory, sessions, tickets. Queries are usually simple, selective, and latency-sensitive. Integrity, concurrency control, and durability matter more than multi-dimensional roll-ups.\nWhen to use:\nSituation Notes System of record App databases, ledgers, booking, auth stores High concurrency writes Many users mutating small rows at once Strong consistency needs ACID transactions on current state (Postgres, Neon) Operational APIs CRUD backends behind product features When to skip:\nHistorical analytics, BI, and large scans (OLAP, warehouses, lakes) Calling a warehouse an OLTP store when writes are rare batch loads Using an analytic engine as the primary mutable app database Trade-offs: Excellent for correct, concurrent updates; poor fit for heavy aggregations over years of history without a separate analytic path.\nDetails OLTP Vs OLAP Topic OLTP OLAP Workload Many small transactions Complex reads, aggregates Data shape Current, often normalized Historical, denormalized or columnar Optimization Indexes, write path, integrity Scan, compress, columnar Garden examples Postgres, Neon DuckDB, Snowflake, BigQuery Design Notes Topic Notes Transactions Prefer clear ACID boundaries over ad-hoc multi-statement hope Scaling Vertical + careful sharding; or serverless Postgres (Neon) for bursty apps Consistency Pair with CAP Theorem when the store is multi-region Escape hatches NoSQL when the access pattern is not relational CRUD Related Garden Items Engines: Postgres, Neon Contrast: OLAP for analytic workloads Distributed trade-offs: CAP Theorem References Wikipedia: Online transaction processing Companion technique: OLAP ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"OLTP"},"/garden/omlx":{"content":"oMLX is a macOS-native MLX inference server with tiered KV cache persistence to SSD, built for coding-agent workloads on Apple Silicon. We assess it as a potential Ollama alternative when cache reuse and multi-model serving matter more than the broadest model catalog.\nBlurb macOS-native MLX server with smart caching. Claude Code, OpenClaw, and Cursor respond in 5 seconds, not 90.\nSummary oMLX targets the pain point where coding agents invalidate KV cache often and force long recomputes. It persists cache blocks to SSD so overlapping prefixes restore in milliseconds instead of recomputing from scratch. That can cut time-to-first-token on long contexts from tens of seconds to a few seconds.\nWhen to consider\nApple Silicon Mac running macOS 15+ with enough unified memory (64 GB+ for larger models). Local OpenAI- or Anthropic-shaped clients: Claude Code, Cursor, OpenClaw, or custom agents. Multi-model setups (LLM, VLM, embeddings, rerankers) with LRU eviction from one server. When to skip\nNon-macOS hosts or the simplest install path with the largest model library (Ollama still wins on reach). Workloads that never reuse prefixes; SSD cache adds less value. Need peak single-user interactive speed without caring about cache persistence (benchmarks often favor Rapid-MLX for that profile). Key trade-offs vs Ollama\nArea oMLX Ollama Platform macOS 15+, Apple Silicon macOS, Linux, Windows KV cache Hot memory + cold SSD tiers In-memory; full recompute on invalidation Model source MLX weights from HuggingFace Large curated library + pulls Ops surface Menu bar app + admin dashboard CLI-first, very approachable Details Upstream: omlx.ai, jundot/omlx (Apache 2.0). Evolved from vllm-mlx with multi-model serving, tiered caching, VLM support, and a macOS menu bar app. Requirements: macOS 15 (Sequoia)+, Python 3.10+, Apple Silicon (M1+). 16 GB RAM minimum; 64 GB+ recommended for larger models. API: OpenAI-compatible HTTP on localhost:8000; native /v1/messages Anthropic endpoint. Dashboard generates client config snippets. Models: MLX-format HuggingFace models (Qwen, LLaMA, Mistral, Gemma, DeepSeek, and others). Built-in HuggingFace downloader in the admin UI. Features: Continuous batching, concurrent requests, multi-model LRU management, reasoning-tag handling, vision-language models since v0.2.0. Ecosystem: Other Apple Silicon MLX servers include Rapid-MLX (speed-focused) and Apple’s mlx-lm reference server. Ollama 0.19+ adds an experimental MLX backend that narrows the native-MLX gap. ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"oMLX"},"/garden/open-closed-principle":{"content":"Open-Closed Principle is a technique we adopt in the garden.\nSummary What it is: A stability rule. You extend behavior by adding new code (subtypes, plugins, handlers) rather than changing working implementations. Callers depend on abstractions that new variants plug into.\nWhy it matters: Every edit to shared core code risks regressions across the system. OCP localizes change to new types or modules and keeps proven paths untouched.\nWhen to use: Pricing rules, notification channels, auth providers, export formats, and policy engines where product adds variants regularly. Natural fit with Design Pattern choices like Strategy, Template Method, and Decorator.\nWhen to pull back: Code with one implementation and no forecast of variation. Do not add plugin frameworks before a second behavior exists. YAGNI still applies.\nRelation to siblings: Single Responsibility Principle narrows units first. Dependency Inversion Principle supplies the abstractions OCP extends. Apply OCP after you can name the variation axis.\nDetails Extension Mechanisms Mechanism Fit Interface + new implementation Swappable backends (storage, payment) Registry of handlers Event types, CLI subcommands Configuration-driven behavior Feature flags, rule tables Subclassing Use sparingly; favor composition Common Failure Modes Abstract factories before a second concrete type exists Deep inheritance trees where each new feature edits a base class “Closed” code that is actually frozen because nobody dares to touch it Plugin systems with no isolation (extensions break the core) Practical Checklist Name the axis of change (what varies vs what stays stable). Introduce an abstraction callers already need for Dependency Inversion Principle. Add the new behavior as a new type or module, not a branch in the old one. Keep extension points small; fat interfaces violate Interface Segregation Principle. Related Garden Items SOLID Principles for the full mnemonic and sibling principles Design Pattern for Strategy, Decorator, and Template Method after the extension point is clear Object-Oriented Programming for the paradigm OCP most often applies to ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Open-Closed Principle"},"/garden/open-container-initiative":{"content":"Open Container Initiative. We adopt it under Platform in the garden.\nSummary Key points:\nSpec / piece Role OCI Image Spec Layered filesystem bundles, manifests, config JSON OCI Runtime Spec config.json + rootfs bundle executed by a runtime runc Reference low-level runtime implementing the runtime spec containerd / CRI-O Higher-level runtimes used by Kubernetes nodes Registries Distribution of manifests and layers by digest Garden Tooling Stance Concern Direction Format adopt OCI images everywhere Build Dockerfile/BuildKit, buildah, kaniko (all target OCI) Local run Podman, Rancher Desktop, or engine of choice that consumes OCI Orchestration adopt Kubernetes at scale; compose-style only for local/dev Details Spec / piece Role OCI Image Spec Layered filesystem bundles, manifests, config JSON OCI Runtime Spec config.json + rootfs bundle executed by a runtime runc Reference low-level runtime implementing the runtime spec containerd / CRI-O Higher-level runtimes used by Kubernetes nodes Registries Distribution of manifests and layers by digest Garden Tooling Stance Concern Direction Format adopt OCI images everywhere Build Dockerfile/BuildKit, buildah, kaniko (all target OCI) Local run Podman, Rancher Desktop, or engine of choice that consumes OCI Orchestration adopt Kubernetes at scale; compose-style only for local/dev ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Open Container Initiative"},"/garden/open-knowledge-format":{"content":"Open Knowledge Format (OKF) is a vendor-neutral spec that packages organizational knowledge as markdown plus YAML frontmatter for humans and agents. We assess it under Technique while v0.1 and ecosystem producers are still early.\nBlurb OKF is an open, human- and agent-friendly format for representing knowledge — the metadata, context, and curated insight that surrounds data and systems. It is designed to be authored by people, generated by agents, exchanged across organizations, and consumed by both.\nSummary When to use: You want a portable, git-friendly knowledge bundle (tables, metrics, runbooks, APIs) that multiple agents and catalogs can read without a proprietary SDK.\nWhen to skip: A single closed catalog already covers the estate and you have no need to exchange knowledge across tools or orgs. Skip also if you only need a private vault pattern such as gbrain with no interchange goal.\nTrade-offs:\nUpside Cost Just files: markdown + YAML frontmatter; cat and git work Spec is v0.1 draft; fields and conventions will evolve Only type is required; producers stay lightly opinionated Interoperability depends on voluntary producers and consumers Formalizes the LLM Wiki pattern many teams already reinvent Reference tooling today centers on Google Cloud Knowledge Catalog Related garden notes: LLM Wiki (Karpathy pattern), gbrain (opinionated implementation), Agent Skills Framework (portable agent instructions), Specification / AI Techniques (taxonomy home).\nDetails What It Is OKF v0.1 defines a knowledge bundle: a directory of concept markdown files. Path (minus .md) is the concept ID. Reserved names: index.md (progressive disclosure) and log.md (changelog).\nEach concept has YAML frontmatter plus a free-form markdown body. Required field: type. Recommended: title, description, resource, tags, timestamp. Extra keys are allowed; consumers must tolerate unknowns.\nCross-links use normal markdown (bundle-root absolute paths preferred). The format does not replace domain schemas such as OpenAPI or Protobuf; it references them.\nSources Resource URL Announcement (2026-06-12) https://cloud.google.com/blog/products/data-analytics/how-the-open-knowledge-format-can-improve-data-sharing Spec + samples + reference agent/visualizer https://github.com/GoogleCloudPlatform/knowledge-catalog Spec document https://github.com/GoogleCloudPlatform/knowledge-catalog/blob/main/okf/SPEC.md Design Principles (From Spec) Minimally opinionated (only type required). Producer and consumer independence. Format, not platform (no required SDK or account). Fit With This Vault This second-brain already uses markdown, frontmatter, and gbrain two-layer pages. OKF is the interchange layer for that shape of knowledge, not a replacement for PARA or the tech garden. Promote usefulness when a real producer or consumer (catalog export, agent ingest) lands in the estate.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-20T00:00:00-04:00","tags":null,"title":"Open Knowledge Format (OKF)"},"/garden/open-policy-agent":{"content":"Open Policy Agent. We adopt it under Tool in the garden.\nSummary What it is: Policy decision point with Rego language, bundle distribution, and integrations as sidecar, admission webhook, or CLI library.\nWhen to use: Same policy must run in CI (Conftest), admission (Gatekeeper), and API authorization layers.\nWhen to skip: Trivial one-off checks better served by CEL native validation or linters without Rego ops.\nKey features: opa test, bundle signing, decision logs, WASM compilation for embedded checks.\nDetails Topic Notes Runners Conftest for files on disk; Gatekeeper for live cluster admission Practice Version policy bundles; test Rego in CI; avoid unbounded policy complexity References\nOPA documentation Rego language ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Open Policy Agent"},"/garden/open-source-software-oss":{"content":"Open Source Software grants rights to inspect, use, modify, and redistribute software under an open-source license. We adopt an OSS-first approach because modern software depends on it, with mandatory license inventory and compliance review.\nBlurb Open source doesn’t just mean access to the source code.\nSummary Why adopt: OSS powers modern operating systems, infrastructure, development tools, libraries, and applications. Prefer viable open-source components when their license, health, security, support, and operating model satisfy the requirement.\nRequired guardrails: Maintain an up-to-date inventory of packages, versions, licenses, copyright notices, and distribution obligations. Review it continuously rather than waiting for a release or customer audit.\nWhen to skip: The license conflicts with distribution or business requirements. Also skip projects with weak maintenance, unclear governance, unacceptable security posture, or lifecycle costs that exceed a supported alternative.\nKey distinction: Source-available software is not automatically open source. An OSI-conformant license must permit redistribution, source access, derived works, and use without discrimination against people or fields of endeavor.\nCost model: No license fee does not mean no cost. Adoption still carries evaluation, integration, upgrades, vulnerability response, support, compliance, and exit costs.\nDetails Decision Area Questions License Is it OSI-approved? Are attribution, copyleft, patent, or network-use obligations acceptable? Health Are releases, maintainers, reviews, and issue response sufficient for the workload? Security Are advisories, patches, provenance, and vulnerability reporting handled responsibly? Governance Can one vendor unilaterally relicense, restrict, or abandon the project? Operations Who owns deployment, upgrades, backups, observability, and incident response? Exit Can data, configuration, and integrations move to another implementation? License Families Family Practical Guidance Permissive Apache 2.0, MIT, and BSD usually allow broad reuse with notices and other limited conditions LGPL Proprietary applications may link to LGPL libraries under conditions; modifications to the library remain covered GPL Internal use differs from distribution; distributing even unmodified binaries can require corresponding source and notices AGPL Modified network services can trigger source-availability obligations for remote users Source-available Code may be visible while the license restricts use, competition, or redistribution A conservative company policy may require legal approval or prohibit LGPL, GPL, and AGPL components. Apply the actual license version, linking model, modification status, deployment model, and distribution path. This note is operational guidance, not legal advice.\nMinimum Compliance Record Package name, exact version, source, and checksum License identifier, text, copyright notices, and attribution Direct and transitive dependency relationship Modification status and corresponding source location Distribution and deployment context Approval, exception, owner, and review date References\nThe Open Source Definition OSI-approved licenses GNU GPL FAQ ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"Open Source Software (OSS)"},"/garden/openapi":{"content":"OpenAPI. Is a specification and tool set to make designing and documenting APIs easier.\nSummary Garden stance: We trial OpenAPI for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"OpenAPI"},"/garden/openclaw":{"content":"OpenClaw. Is an open-source, self-hosted personal AI Agent that runs continuously on your hardware and connects to messaging apps (WhatsApp, Telegram, Slack, Discord, and others) with skills, shell access, and persistent memory.\nBlurb OpenClaw - The AI that actually does things. Your personal assistant on any platform.\nSummary OpenClaw targets always-on assistance: ingest messages from chat surfaces, call cloud or local models (Ollama via OpenRouter-style routing), execute skills/plugins, and remember context in local files. The GitHub project (openclaw/openclaw) gained massive attention for automating real workflows; not just chat.\nDetails Strengths: broad channel support, skill ecosystem, self-hosted narrative, multi-model flexibility. Risks: broad system/shell access, credential sprawl across chat networks, hard to secure; operational burden rivals the task. vs Hermes: same product category; Hermes adds learning loops and ACP; both are hold for greenfield personal automation here. Preferred pattern: deterministic scripts + Dagu (or cron) on each machine; LLM only where reasoning is required; agents inside IDE when interactive help is needed. ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"OpenClaw"},"/garden/opencode":{"content":"OpenCode. Is an open-source AI coding agent (terminal TUI, desktop app, and IDE extension) that connects to 75+ LLM providers (Claude, GPT, Gemini, local models, GitHub Copilot, ChatGPT accounts) with LSP-aware context and multi-session parallelism.\nSummary Garden stance: We trial OpenCode for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Install: curl -fsSL https://opencode.ai/install | bash, npm install -g opencode-ai, Homebrew (anomalyco/tap/opencode), Docker image ghcr.io/anomalyco/opencode. Auth: Provider API keys via /connect, OpenCode Zen billing, or reuse ChatGPT Plus / GitHub Copilot logins where supported. Models: Any provider in the Models.dev directory; Zen subset for validated coding-agent performance. Surfaces: terminal (primary), desktop beta (macOS/Windows/Linux), IDE extension. Fit: Tool / AI Agent, open, multi-model coding agent. Contrast: Cursor + cursor-agent for default IDE workflow; vendor CLIs when you stay in one ecosystem. ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"OpenCode"},"/garden/opencost":{"content":"OpenCost is a tool we assess in the garden.\nSummary OpenCost is a CNCF incubating project for Kubernetes and multi-cloud cost monitoring. It allocates spend by namespace, workload, and container using billing API integrations and optional Prometheus exports.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"OpenCost"},"/garden/opengrep":{"content":"OpenGrep. Is a community fork of Semgrep CE, created in January 2025 after Semgrep moved several engine capabilities behind a commercial license.\nBlurb 🔎 Static code analysis engine to find security issues in code. - opengrep/opengrep\nSummary When to use:\nYou already run Semgrep rules and want CE-era engine features without a login You need cross-function taint, restored SARIF fingerprints, or native Windows support in OSS You prefer a multi-vendor consortium over a single vendor’s open-core split When to skip: you want managed triage, SCA reachability, secrets validation, or AI autofix (stay on Semgrep AppSec Platform); you need the widest rule registry and vendor support today (Semgrep still leads mindshare).\nGreenfield: either engine is fine; pilot both on the same rule pack.\nFork context: branched from Semgrep v1.100.0 (December 2024). Backers include Aikido, Endor Labs, Jit, Orca Security, and others. Goal is a foundation-governed engine with pro-only CE gaps reopened (cross-function analysis, extended languages, fingerprint metadata).\nPairs with: existing Semgrep CI configs (often drop-in); GitHub Actions; Shift Left gates on **Pull Request**s.\nDetails Topic Notes Compatibility Semgrep rule syntax; common CLI flags; JSON and SARIF outputs Engine focus OCaml 5 parallelism, faster taint, extra languages (VB, Apex, Elixir) Distribution GitHub releases; also bundled in tools like Codacy (opengrep engine) License LGPL-2.1 Governance Consortium-backed; roadmap toward foundation stewardship vs Semgrep: Semgrep ships faster platform features (AI detection, supply chain, secrets). OpenGrep optimizes for OSS engine depth and rule portability. Semgrep has since added OCaml 5 and Windows support too; treat performance claims as benchmark-dependent.\nReferences\nopengrep/opengrep on GitHub OpenGrep site ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"OpenGrep"},"/garden/opentelemetry":{"content":"OpenTelemetry. (OTel) is the CNCF-standard way to collect traces, metrics, and logs with vendor-neutral APIs and SDKs.\nSummary OTel defines semantic conventions, context propagation, and collectors so telemetry is consistent across languages and runtimes. Most teams start with auto-instrumentation or lightweight SDK hooks, run the OpenTelemetry Collector for routing and redaction, then wire exporters to existing analysis tools.\nDetails Signals: traces (distributed requests), metrics (aggregates), logs (events), often correlated via shared trace context. Neutrality: avoids the “three proprietary agents” problem; switching vendors should not require re-instrumenting applications. Collector: optional pipeline for batching, sampling, PII scrubbing, and fan-out to multiple backends. Maturity: widely supported in Kubernetes workloads, GoLang, Java, .NET, Python, and major cloud APM products. ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"OpenTelemetry"},"/garden/opentelemetry-genai-semantic-conventions":{"content":"OpenTelemetry GenAI Semantic Conventions is the OTel repo for GenAI and MCP telemetry conventions (spans, metrics, events). We assess it for standardizing agent and LLM observability before vendor schemas lock in.\nBlurb Semantic Conventions for Generative AI (GenAI), including spans, metrics, and events for GenAI clients, MCP (Model Context Protocol), and provider-specific conventions (OpenAI, etc.).\nSummary When to use: instrumenting LLM clients, agents, embeddings, retrieval, or Model Context Protocol servers/clients with OpenTelemetry. Prefer these attribute names when backends or SDKs already expose gen_ai.* / mcp.*.\nWhen to skip: pure classic service telemetry with no GenAI path. Stay on core semantic-conventions until you emit model or agent signals.\nTrade-offs: docs mark GenAI conventions Development, so names and required fields can still change. The GenAI model lives in this repo (Weaver-managed) and links a pinned core semconv version for shared attributes.\nPairs with: OTel SDKs and Collector pipelines; provider-specific docs (OpenAI, Anthropic, Bedrock, Azure AI Inference); MCP host observability.\nDetails Signals: GenAI events, exceptions, metrics, model spans, and agent spans; plus MCP-specific conventions. Providers: technology-specific pages for Anthropic, Azure AI Inference, AWS Bedrock, and OpenAI. Layout: human docs under docs/; YAML model under model/; reference implementations under reference/. Upstream: extends core OpenTelemetry semantic conventions; not a replacement for the main semconv repo. Status: document status is Development as of note creation (2026-07-29). Re-check before treating attribute sets as stable contracts. ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"OpenTelemetry GenAI Semantic Conventions"},"/garden/orbstack":{"content":"OrbStack. Is a native macOS app for Docker containers, local Kubernetes, and full Linux machines.\nBlurb Say goodbye to slow, clunky containers and VMs. The fast, light, and easy way to run containers and Linux. Develop at lightspeed with our Docker Desktop alternative.\nSummary Garden stance: We assess OrbStack for our estate.\nKey points:\nTopic Notes Install https://orbstack.dev/download or brew install --cask orbstack Migration One-click import from Docker Desktop per OrbStack docs CLI docker, docker compose, kubectl, and orb commands Kubernetes Optional local cluster; compare feature depth to Rancher Desktop Networking localhost forwarding, IPv6, VPN-friendly DNS Compare OrbStack vs Docker Desktop References\nOrbStack Documentation GitHub Details Topic Notes Install https://orbstack.dev/download or brew install --cask orbstack Migration One-click import from Docker Desktop per OrbStack docs CLI docker, docker compose, kubectl, and orb commands Kubernetes Optional local cluster; compare feature depth to Rancher Desktop Networking localhost forwarding, IPv6, VPN-friendly DNS Compare OrbStack vs Docker Desktop References\nOrbStack Documentation GitHub ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"OrbStack"},"/garden/orchestrator":{"content":"An orchestrator handles the scheduling and monitoring of processes on a host or across hosts.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Orchestrator"},"/garden/orm":{"content":"Object-Relational Mapping (ORM). Bridges Object-Oriented Programming domain objects and relational database tables.\nSummary What it is: a library or framework that maps classes to tables, relationships to joins, and object graphs to queries (Hibernate, Entity Framework, SQLAlchemy, ActiveRecord, Prisma-style layers, and similar).\nWhen it helps: CRUD services, admin apps, and MVC models where schema and object model align and teams value productivity over hand-tuned SQL.\nWhen to pause: hot paths with complex joins, batch/reporting workloads, heavy aggregation, or teams that cannot explain generated SQL. Leaky abstractions (N+1 queries, lazy-load surprises, migration drift) are the usual failure mode.\nGarden stance: ORM is a technique choice, not a moral default. Pair with migrations, query review in CI, and escape hatches to raw SQL where needed.\nDetails Topic Notes Strengths Faster feature work, typed models, migration tooling in mature stacks Risks Hidden queries, schema/object drift, difficult performance tuning Mitigations Explicit fetch plans, query logging in dev, DTOs at API boundaries Alternatives Query builders, repository + raw SQL, dbt-core for analytics paths Common pairing MVC model layer; Postgres as typical backing store Decision Checklist Can the team read and optimize the SQL the ORM emits? Are relationships stable enough to map cleanly to objects? Is most access CRUD-shaped rather than analytic? If any answer is no, prefer thinner mapping or SQL-first access for that bounded context. ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Object-Relational Mapping (ORM)"},"/garden/outliner":{"content":"Outliner tools organize information in a hierarchical, tree-like structure with collapse/expand functionality. We assess them for planning and structured knowledge work.\nBlurb An outliner is a type of computer program used to create and edit hierarchically organized text, with a tree structure that allows the user to collapse and expand sections of text.\nSummary When to use: Choose an outliner when you need hierarchical organization, collapsing/expanding sections, and structured outlines for planning, writing, or knowledge management.\nWhen to skip: Opt for flat note-taking (Obsidian with tags) if you prefer non-hierarchical linking, or mind-mapping tools for visual thinkers.\nKey trade-offs:\nPros: Hierarchical structure, easy navigation, collapse/expand, good for planning and outlining Cons: Less flexible than bi-directional linking tools, can become too rigid, learning curve for tree navigation Related: PKM Logseq Checkvist WorkFlowy Dynalist Mind Mapping\nDetails Topic Notes Structure Tree hierarchy with collapse/expand Examples WorkFlowy, Dynalist, Checkvist, Logseq (outliner mode) Best For Planning, outlining, structured writing, task management Linking Limited bi-directional linking vs. graph tools Mobile Most have iOS and Android apps ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-08-25T00:00:00-04:00","tags":null,"title":"Outliner"},"/garden/oz-warp":{"content":"Oz. Is Warp’s cloud agent orchestration platform.\nSummary Garden stance: We assess Oz for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Deployment: Warp-managed cloud or self-hosted Oz on your infrastructure. Harnesses: Warp Agent, Claude Code, Codex (multi-harness beta); model routing per task. Orchestration: subagent parallelism, long-running migrations, PR workflows, webhook and cron triggers. Governance: centralized permissions, usage reporting, credit caps, SOC 2 posture per Warp enterprise docs. Integration: SDK/CLI launch, native handoff from Warp Terminal, shared MCP and Warp Drive with local agents. Fit: Platform for cloud coding-agent orchestration (not a repo-bounded CLI itself). Contrast: running agents only via cursor-agent or Claude Code without a fleet control plane. ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Oz"},"/garden/parquet":{"content":"Apache Parquet is an open columnar file format for bulk analytic storage and retrieval. We adopt it as the default on-disk columnar format for lakes and interchange.\nBlurb Apache Parquet is an open source, column-oriented data file format designed for efficient data storage and retrieval. It provides high performance compression and encoding schemes to handle complex data in bulk and is supported in many programming languages and analytics tools.\nSummary What it is: Column-oriented layout with compression and encoding suited to analytics. Wide language and tool support (DuckDB, Spark, Trino, warehouses). Common data layer under Iceberg and DuckLake.\nWhen to use:\nSituation Notes Analytic datasets Prefer over row-oriented dumps for scan-heavy SQL Lake / lakehouse tables Standard file format under Iceberg, DuckLake, Delta Interchange Share large tables without a live database When to skip:\nTiny tables and human editing (CSV, JSON) Frequent single-row updates (OLTP files or a database) Streaming event payloads better kept as JSON/Avro messages Trade-offs: Excellent read efficiency and compression; not ideal for random row updates or hand editing.\nDetails Related Formats Format Role vs Parquet CSV Human-friendly exchange; worse for large analytic scans Arrow In-memory columnar; Parquet is the common on-disk cousin Iceberg / DuckLake Table formats that point at Parquet (and kin) data files References parquet.apache.org ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"Parquet"},"/garden/pgvector":{"content":"pgvector adds exact and approximate vector similarity search to Postgres. We assess it when embeddings should share transactions, joins, backups, and access controls with relational application data.\nBlurb Open-source vector similarity search for Postgres\nSummary When to use:\nVector search belongs beside relational data and SQL filters. Existing Postgres operations, backups, replication, and security should cover embeddings too. One system is preferable to a separate vector service. Exact search or HNSW is enough for the target corpus and latency. When to skip:\nVector search dominates the workload and needs a specialized local library such as FAISS or TurboVec. The corpus, query rate, or distribution model exceeds the practical limits of one Postgres deployment. You need an ANN algorithm or compressed index that pgvector does not provide. Trade-offs: pgvector keeps vectors close to business data and supports transactional updates. HNSW offers better speed-recall behavior but costs memory and build time. IVFFlat builds faster and uses less memory, but it requires training and careful list/probe tuning.\nDetails Capabilities Area Support Search Exact nearest neighbor, HNSW, IVFFlat Types vector, halfvec, bit, sparsevec Distances L2, inner product, cosine, L1, Hamming, Jaccard Database features ACID transactions, joins, WAL, PITR, replication, SQL filters Clients Any language with a Postgres client Index Choice Index Strength Cost None Exact results and simple writes Full scan cost grows with table size HNSW Strong speed-recall trade-off; no training step Slower builds and higher memory use IVFFlat Faster builds and lower memory use Training plus list and probe tuning Create one index per distance operator class. Filtering can reduce ANN recall because filtering is applied during index scans. Iterative scans can widen the search when the first pass does not return enough matching rows.\nBasic Shape 1 2 3 4 5 6 CREATE EXTENSION vector; CREATE TABLE items ( id bigserial PRIMARY KEY, embedding vector(1536) ); CREATE INDEX ON items USING hnsw (embedding vector_cosine_ops); Query nearest neighbors with the operator matching the index. For cosine distance, use ORDER BY embedding <=> $1 LIMIT $2.\nComparison Points Choose pgvector when relational consistency and SQL filters dominate. Choose FAISS for a broad embedded ANN toolkit or GPU search. Assess TurboVec when compact online ingest and local deployment dominate. References pgvector repository pgvector README ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-24T00:00:00-04:00","tags":null,"title":"Pgvector"},"/garden/phoronix-test-suite":{"content":"Phoronix Test Suite automates reproducible hardware and system benchmarks. We adopt it in deployable appliances to separate product performance problems from customer-environment constraints with comparable evidence.\nBlurb The Phoronix Test Suite is the most comprehensive testing and benchmarking platform available that provides an extensible framework for which new tests can be easily added. The Phoronix Test Suite is focused on providing completely automated, reproducible, and turn-key deployment benchmarking.\nSummary When to use: Include a focused benchmark set in downloadable or deployable appliances. Run the same profiles in known-good and customer environments to identify CPU, memory, storage, cache, or system-level constraints.\nWhy adopt: Automated dependency handling, test installation, execution, logs, and result aggregation make comparisons repeatable. The resulting evidence helps distinguish appliance defects from environmental bottlenecks.\nWhen to skip: A synthetic benchmark does not represent the workload, or production constraints prohibit the test’s resource use. Do not treat one score as a substitute for application-level profiling and observability.\nTest source: OpenBenchmarking.org supplies hundreds of test profiles and suites. It also stores results and supports side-by-side comparisons.\nDetails Profile Signal RAMspeed Memory bandwidth Flexible I/O Tester Storage throughput, latency, and I/O behavior Gzip Compression CPU compression performance CacheBench Memory and cache hierarchy performance stress-ng Broad CPU, memory, I/O, and kernel stress Capability Notes Automation Manages dependencies, downloads, installation, execution, and result collection Evidence Archives system, test, and installation logs alongside benchmark results Comparison Produces local web reports and can compare or upload results through OpenBenchmarking.org Orchestration Phoromatic schedules tests and manages multiple systems from a web interface Platforms Supports Linux, Windows, macOS, BSD, Solaris, and GNU Hurd References\nPhoronix Test Suite OpenBenchmarking.org Phoronix Test Suite on GitHub ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"Phoronix Test Suite"},"/garden/pkm":{"content":"Personal Knowledge Management (PKM) covers tools and methods for capturing, organizing, and retrieving personal knowledge. This subcategory includes note-taking apps, knowledge bases, and methodologies like Zettelkasten.","garden":{"kind":"subcategory"},"lastmodified":"2026-08-25T00:00:00-04:00","tags":null,"title":"PKM"},"/garden/planning-poker":{"content":"Planning Poker is a technique we assess in the garden.\nSummary Overview: At its most basic, everyone on the team gets a vote. They vote with cards they pull from their hand. Their hand is made up of Story Point cards for each valid set of points in the system being used. Everyone shows their cards. If the cards shown are all similar then the story is updated and folks move on. If the cards are different then debate is done and another vote is had. Continue until everything is scoped.\nDetail 1: It is better than having no structure, but it doesn’t scale well. In many cases, much of the debate will center around what a “point” actually means. Older tickets often have to be rescoped as the session moves forward. We are cautious about using this technique.\nDetail 2: While not perfect we find that 3 Point Estimation is usually a better solution to estimation.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Planning Poker"},"/garden/platform":{"content":"A platform is something you build on top of. For example: Android or Cloud","garden":{"kind":"category"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Platform"},"/garden/playwright":{"content":"Playwright. Is Microsoft’s end-to-end test framework for modern web apps.\nSummary What it is: Node-first test runner (Python, Java, .NET ports exist) plus browser automation library, codegen, trace viewer, and UI mode for debugging.\nWhen to use: default choice for web E2E on greenfield or migrated repos; cross-browser regression in Continuous Integration (especially GitHub Actions); API plus browser tests in one project; flaky-test reduction via auto-wait and trace replay.\nWhen to skip: mobile-native apps (use dedicated mobile frameworks); simple smoke tests where a lightweight HTTP check suffices; legacy Cypress suites with no cross-browser requirement and no plan to consolidate.\nKey capabilities: locators, network mocking, auth state reuse, visual comparisons, component testing (experimental), Docker images for CI.\nDetails Topic Notes Install npm init playwright@latest scaffolds config and sample tests Run npx playwright test; --ui for interactive debug CI Official GitHub Action; shard and retry built in Traces trace: 'on-first-retry' captures repro artifacts Versus Selenium: Playwright ships browsers and waits; Selenium needs driver management and explicit sleeps more often. Prefer Playwright for new work; migrate Selenium incrementally.\nVersus Cypress: Playwright runs multiple tabs/contexts and all major engines; Cypress historically centered Chromium and in-browser execution. Standardize on Playwright unless a team has a strong Cypress-only constraint.\nGarden stance: Adopt for web E2E in the Test Pyramid layer above Unit Testing; wire into GitHub Actions required checks on pull requests.\nReferences\nPlaywright documentation GitHub repository ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Playwright"},"/garden/pluscal":{"content":"PlusCal is Leslie Lamport’s algorithm language for verifiable pseudocode that translates into TLA+. We assess it for complex workflows whose state transitions and invariants are precise enough to model.\nBlurb PlusCal is an algorithm language that can be used right now to replace pseudo-code, for both sequential and concurrent algorithms. It is based on the TLA+ specification language, and a PlusCal algorithm is automatically translated to a TLA+ specification that can be checked with the TLC model checker and reasoned about formally.\nSummary What it is: A formally defined, imperative-style algorithm language with verbose P-syntax and compact C-syntax. The TLA+ Toolbox translates PlusCal into a specification that TLC can explore across possible states and interleavings.\nWhen to use:\nSituation Notes Finite state machines State transitions are explicit, but invocation paths are complex Kubernetes operators Reconcile loops, retries, stale reads, and partial failures create interleavings Durable execution Multi-step workflows need invariants across retries, crashes, and recovery Teaching or onboarding Algorithm syntax is often easier to approach than raw TLA+ When to skip:\nThe system cannot be reduced to bounded state and meaningful invariants The specification is already a mathematical relation rather than an algorithm Refinement or fairness needs require raw TLA+ The team expects a drop-in Test Framework or native test generator Testing role: PlusCal checks a model, not the implementation. TLC produces explored behaviors, simulation traces, and counterexamples. A separate adapter must translate selected traces and invariants into tests for the implementation language.\nTrade-offs: PlusCal makes algorithm-shaped specifications approachable. The translation must stay synchronized, and the model can diverge from production code. Pair model checking with implementation-level property and integration tests.\nDetails Relationship to TLA+ Layer Role PlusCal Write labeled processes, actions, and state changes Translator Emit TLA+ Init, Next, and control-state definitions TLC Explore reachable states, check invariants, and produce traces Raw TLA+ Express refinement, advanced fairness, and proofs beyond PlusCal Native tests Exercise the implementation through a project-specific adapter From Model to Native Tests Model operations, state, failure points, and invariants in PlusCal. Translate to TLA+ and check bounded models with TLC. Save representative simulation traces and counterexample traces. Map model actions and state values to the system’s public API. Replay selected traces through a language-specific test adapter. Assert the same invariants against implementation state and outputs. TLC can generate or display traces, but PlusCal does not directly emit native test code. The adapter and trace-selection policy are project work. Start with counterexamples and high-risk interleavings rather than attempting to replay the full state graph.\nFit With Control Loops PlusCal fits labeled steps, processes, and shared state. A useful pattern models a reconcile loop, checks it with TLC, then mirrors the invariants in tests against Kubernetes controllers or Modular Monolith orchestration.\nReferences Leslie Lamport, The PlusCal Algorithm Language (PDF) PlusCal tutorial: examining TLC error traces P-syntax manual (PDF) Parent technique: TLA+ ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"PlusCal"},"/garden/pm2":{"content":"PM2. Is a production process manager for Node.js and Bun with a built-in load balancer.\nSummary Garden stance: We trial PM2 for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Feature Notes Process control pm2 start, stop, restart, reload, delete; list with pm2 ls Cluster mode -i max or a fixed instance count; use reload (not restart) for zero-downtime Logs pm2 logs, rotation via pm2-logrotate; files under ~/.pm2/logs Monitoring pm2 monit for CPU, memory, and request stats in the terminal Boot persistence pm2 save plus pm2 startup generates OS startup hooks Containers pm2-runtime replaces node as PID 1 friendly foreground runner Deploy Built-in multi-host deploy (Git-based); lighter than Capistrano but overlaps 12-factor fit: aligns with disposability and logs-as-streams from 12 Factor App. Pair with env-based config, not checked-in secrets.\nPM2+: optional hosted monitoring from the Keymetrics team. The open-source runtime stands alone without a subscription.\nAlternatives: Docker plus Compose or Swarm for packaging and restart policy. Kubernetes for multi-node scheduling. Plain systemd units when you want no extra dependency and only one or two services.\nReferences\nPM2 Runtime overview PM2 GitHub repository Ecosystem file ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"PM2"},"/garden/podman":{"content":"Podman. Is a daemonless OCI container engine with a Docker-compatible CLI and rootless-by-default security model.\nSummary Garden stance: We trial Podman for our estate.\nKey points:\nTopic Notes Install https://podman.io/getting-started/installation (Linux primary; Podman Desktop for macOS/Windows) Rootless Needs /etc/subuid and /etc/subgid; pasta or slirp4netns for networking Compose podman compose for Compose files; verify against Docker Compose features you use Builds Image builds delegate to Buildah; Dockerfile workflow is familiar Remote podman --remote and API service for tools that expect a Docker socket Dev Containers Works when the IDE can reach a compatible socket; test with your stack References\nPodman Documentation GitHub Rootless tutorial Details Topic Notes Install https://podman.io/getting-started/installation (Linux primary; Podman Desktop for macOS/Windows) Rootless Needs /etc/subuid and /etc/subgid; pasta or slirp4netns for networking Compose podman compose for Compose files; verify against Docker Compose features you use Builds Image builds delegate to Buildah; Dockerfile workflow is familiar Remote podman --remote and API service for tools that expect a Docker socket Dev Containers Works when the IDE can reach a compatible socket; test with your stack References\nPodman Documentation GitHub Rootless tutorial ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Podman"},"/garden/policy-as-code":{"content":"Policy as Code is the practice of expressing compliance, security, and operational rules as version-controlled, machine-executable code , enforced automatically in the pipeline rather than reviewed manually after the fact. We adopt it under Technique in the garden.\nSummary Policy as Code is a strong adopt in any DevSecOps or regulated environment. Manual compliance reviews don’t scale and introduce human error; codified policies run on every PR, in every environment, consistently. Start with the highest-risk surface (Kubernetes admission, IaC security rules) and expand from there. OPA + Conftest is the recommended starting point , the learning curve for Rego is real but the payoff in automated governance is significant. Pairs well with GitOps: policy checks become just another gate in the pull request pipeline.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Policy as Code"},"/garden/postgres":{"content":"Postgres. (Postgres) is the world’s most advanced open source relational database.\nSummary What it is: Object-relational engine with SQL, JSONB, extensions (PostGIS, pgvector, and many others), logical replication, and permissive licensing. Same project whether self-hosted, on RDS/Aurora/AlloyDB, or embedded.\nWhen to use: New application databases, warehouses that still speak SQL, extensions for geo or vectors, teams that want one engine for transactional and moderate analytics workloads on a replica.\nWhen to skip: Petabyte-scale warehouse analytics where a columnar EDW (BigQuery) is already standard. Document-only workloads with no relational joins (NoSQL patterns). Legacy MySQL apps you are not migrating yet.\nKey features: MVCC, robust indexing, foreign data wrappers, row-level security, mature backup and HA patterns.\nDetails Topic Notes Deploy Managed (RDS, Cloud SQL, Neon, Supabase) or self-hosted; Helm charts for K8s Ops pg_dump, PITR, connection pooling via PgBouncer or pooler in managed offerings BI Native connector in Grafana, Metabase, Redash, Apache Superset Practices: Migrations with Flyway or similar; read replicas for BI; separate roles for app vs analyst; prefer Postgres over MySQL for greenfield relational work.\nReferences\nPostgreSQL documentation PostgreSQL License ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Postgres"},"/garden/power-bi":{"content":"Power BI. Is Microsoft’s self-service BI suite for reports, dashboards, and semantic models in Microsoft 365 and Azure estates.\nSummary Garden stance: We assess Power BI for our estate.\nKey points:\nTopic Notes Governance Premium capacity for large models and paginated reports Contrast Tableau and Looker in competitive enterprise evals References\nPower BI documentation Details Topic Notes Governance Premium capacity for large models and paginated reports Contrast Tableau and Looker in competitive enterprise evals References\nPower BI documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Power BI"},"/garden/powerfulseal":{"content":"PowerfulSeal injects controlled failure into Kubernetes (and other clouds) so teams find weaknesses early. We assess it under Chaos Tools for chaos experiments described as YAML policies.\nBlurb PowerfulSeal injects failure into your Kubernetes clusters, so that you can detect problems as early as possible. It allows for writing scenarios describing complete chaos experiments.\nSummary What it is: Chaos engineering CLI and runner from Bloomberg. Scenarios kill pods, probe HTTP health, and collect metrics. Policies are YAML; modes cover interactive and autonomous runs.\nWhen to use: You run Kubernetes workloads and want repeatable fault injection with HTTP probes and metrics hooks (Prometheus, Datadog). Good fit for SRE resilience drills in non-production first.\nWhen to skip: Basic observability and recovery paths are not in place yet. Prefer a CNCF-hosted platform with a larger ChaosHub-style catalog if you need broad community experiments (Litmus).\nTrade-offs: Focused and policy-driven; lighter than full Chaos platforms. Smaller active community than Litmus; evaluate maintenance and cloud-provider coverage before standardizing.\nDetails Topic Notes Model YAML policies with scenarios, filters, and actions (e.g. kill pod, probeHTTP) Targets Kubernetes, OpenStack, AWS, Azure, GCP, and local machines Metrics Prometheus and Datadog collection supported Docs powerfulseal.github.io/powerfulseal References\nGitHub: powerfulseal/powerfulseal PowerfulSeal documentation Bloomberg: PowerfulSeal testing tool for Kubernetes ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"PowerfulSeal"},"/garden/presentation":{"content":"Under Tool, Presentation groups products for building and delivering slide decks and talks. Prefer Git-friendly Markdown or HTML when the audience is technical and the content is mostly text, images, and diagrams.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Presentation"},"/garden/preset":{"content":"Preset. Is a managed Apache Superset platform from Superset’s original creators.\nBlurb AI-native business intelligence built on Apache Superset™. Dashboards, embedded analytics, self-service exploration, and conversational AI - all open source, enterprise-grade, and built for the AI era.\nSummary What it is: SaaS control plane and hosting for Superset instances with SSO, permissions, and managed releases.\nWhen to use: Superset feature set is the goal; team wants managed uptime and faster onboarding vs DIY Helm.\nWhen to skip: Strict data residency that forbids third-party BI SaaS. Self-host Apache Superset or assess Lightdash with dbt-core instead.\nKey features: Managed Superset, API access, role-based workspaces, changelog parity with upstream Apache releases.\nDetails Topic Notes Relationship Commercial layer on Apache Superset; same chart and dataset concepts Contrast Metabase Cloud for simpler self-serve; Redash for SQL-first minimal BI References\nPreset documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Preset"},"/garden/presto":{"content":"Presto. (PrestoDB) is a distributed SQL query engine for federated analytics across data lakes and warehouses.\nSummary What it is: Coordinator/worker cluster executing ANSI SQL over connectors (Hive, Iceberg, RDBMS, etc.).\nWhen to use: Maintaining existing PrestoDB clusters and connectors tied to that lineage.\nWhen to skip: Greenfield federated SQL. Start with Trino or warehouse-native engines (BigQuery, Snowflake).\nKey features: Connector plugin model, interactive queries, integration with Apache Superset and Metabase.\nDetails Topic Notes History Trino forked from PrestoDB; names and vendors diverged BI Apache Superset lists Presto/Trino as first-class datasources References\nPresto documentation ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Presto"},"/garden/prometheus":{"content":"Prometheus is the CNCF metrics database and scraper ecosystem for time-series monitoring and alerting. We hold it for new work: custom metrics effort belongs in OpenTelemetry, and self-hosted Prom stacks rarely stay correct or used.\nBlurb An open-source monitoring system with a dimensional data model, flexible query language, efficient time series database and modern alerting approach.\nSummary What it is: Pull-based scraper, TSDB storage, PromQL, alert rules, and federation patterns for Kubernetes and services. Still fine as a storage/query target behind an OTel pipeline.\nWhen to use (existing only):\nSituation Notes Inherited kube-prometheus-stack Keep running; do not expand custom Prom client metrics Prom-compatible remote store Accept remote write from OpenTelemetry Collector When to skip (new work):\nGreenfield metrics: instrument with OpenTelemetry, not Prometheus client libraries as the primary model Multi-cloud / hybrid estates: prefer Datadog (trial) over a DIY Prom + Grafana stack Long-term log archival: Loki or Elasticsearch, not Prometheus Trade-offs: “Just enough” scrape-and-PromQL is attractive early. Teams usually mis-model metrics and under-use what they collect. Time spent on custom metrics is better spent on OTel conventions and exporters.\nDetails Topic Notes Deploy Single binary, Operator on Kubernetes, or managed compatible (Mimir, Cortex, AMP) Pairing Prefer OpenTelemetry for instrumentation; remote-write into Prometheus-compatible stores if needed Successor path New custom metrics → OTel; multi-cloud ops → Datadog; dashboards may still use Grafana References\nPrometheus documentation ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Prometheus"},"/garden/protobuf":{"content":"Protobuf. Protocol Buffers (Protobuf) is Google’s language-neutral binary serialization format.\nBlurb Protocol Buffers are language-neutral, platform-neutral extensible mechanisms for serializing structured data.\nSummary Garden stance: We trial Protobuf for our estate.\nKey points: The tradeoff is observability: binary payloads aren’t human-readable without tooling, which complicates debugging and log inspection. For this reason Protobuf is best suited to high-throughput internal service-to-service communication where performance matters , not for public-facing APIs or anywhere humans need to read the wire format directly.","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Protobuf"},"/garden/provisioner":{"content":"Under Tool, Provisioner groups products that configure or converge hosts and services after (or beside) foundation infra. Typical examples are agentless config managers and CM tools such as Ansible. Tag a product here when the note is about the tool you run to apply desired state on targets, not about the practice itself.\nSibling techniques: First Touch Provisioning (accounts, networks, clusters as code) and second touch provisioning (host and app configuration). Prefer golden images, Declarative IaC, and GitOps for day-two production where possible; keep provisioner tools for bootstrap, brownfield, and migration.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Provisioner"},"/garden/pull-request":{"content":"Pull Request. A pull request (PR) proposes merging a branch into a shared mainline.\nBlurb Pull requests let you propose, review, and merge code changes.\nSummary What a PR is: a durable thread for a proposed diff (description, commits, file changes, checks, comments) before merge. It is not a Git primitive; hosts (GitHub, GitLab, Gerrit, Bitbucket) implement the workflow on top of git branches.\nWhat belongs on the PR:\nLayer Examples Garden links Human Design, risk, operability, product fit Code Review Machine Lint, unit tests, SAST, IaC policy Code Linting, Conftest, Semgrep, GitHub Actions When to use: every change to shared repos (app code, GitOps config, Policy as Code bundles). Draft PRs are fine for work-in-progress without requesting review.\nWhen to skip: none for team repos. For throwaway local branches, still mirror the same checks before push if you truly merge without a host PR (discouraged).\nPairs with: protected default branch; required status checks; Shift Left (find defects before production); DevSecOps (security findings are PR backlog, not a separate audit).\nNot the same as: Code Review (the human practice); Continuous Integration (the verify-on-merge discipline). The PR is where both meet.\nDetails Topic Notes Size Small, reviewable diffs; one logical change per PR when possible Description What changed, why, how to test, links to tickets Checks tab Required green CI before merge; see Continuous Integration CODEOWNERS Route sensitive paths to qualified reviewers Merge strategies Squash vs merge commit is a team policy choice; document it IaC / GitOps Same PR pattern for Terraform, K8s, and policy repos Vendor terms:\nHost Name GitHub Pull request (PR) GitLab Merge request (MR) Gerrit Change References\nGitHub: About pull requests Atlassian: Making a pull request ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Pull Request"},"/garden/pulumi":{"content":"Pulumi. Generates IaC based a programming language of your choice.\nBlurb Pulumi is an open-source infrastructure as code platform that helps humans and agents build and manage cloud infrastructure with real programming languages.\nSummary Garden stance: We assess Pulumi for our estate.\nOverview: As with many Imperative IaC it suffers from serious drawbacks. However, for quick-hack lab environments - where the maintainer has little operational experience - it proves a compelling approach.\nDetail 1: If you are in a company that cannot or will not use Terraform and you have a mature enough team to actively avoid the pitfalls of Imperative IaC then this is a very competent solution. Otherwise steer clear because you are going to end up in a worst place than just building by hand.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Pulumi"},"/garden/pyenv":{"content":"pyenv. Installs and selects Python versions per project via .python-version.\nBlurb Simple Python version management. Contribute to pyenv/pyenv development by creating an account on GitHub.\nSummary What it is: Shim-based Python version manager, often paired with pyenv-virtualenv.\nWhen to use: Python-heavy local dev without containers; legacy repos with .python-version committed.\nWhen to skip: Dev Container defines Python for the team. Use mise when Node and Terraform share the same repo pins.\nKey features: pyenv install, global/local version files, plugin ecosystem.\nDetails Topic Notes Pairing direnv + layout python patterns in .envrc CI Pin Python explicitly in GitHub Actions References\npyenv documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"pyenv"},"/garden/pygoat":{"content":"PyGoat. Is a deliberately vulnerable Django web app for OWASP Top 10 style training.\nBlurb intentionally vuln web Application Security in django - adeyosemanputra/pygoat\nSummary PyGoat packages common web flaws in a Django project with challenge metadata in challenge/challenge.json and upstream solution write-ups. It targets teams that want a Python stack lab instead of PHP (DVWA) or Node/Angular (Juice Shop).\nWhen to use: teaching Django-specific mistakes alongside generic OWASP classes; practicing fixes in Python view code, ORM usage, and middleware; running a quick Docker lab on port 8000; pairing manual solves with Zed Attack Proxy (Zap) or Burp.\nWhen to skip: you need a polished CTF scoreboard and hint tiers (prefer Juice Shop); you want the simplest LAMP module menu (prefer DVWA); you cannot isolate the host from your network.\nStack: Django, Python 3.10 or 3.11 (per upstream). Official paths include source install (installer.sh or requirements.txt), docker pull pygoat/pygoat, and docker-compose.\nDetails Challenge Model Challenges map to OWASP Top 10 themes. Definitions live in challenge/challenge.json and load into the database via python manage.py populate_challenges (documented for docker-compose as docker compose exec web python manage.py populate_challenges). Upstream publishes solutions under Solutions/solution.md.\nCompared to Sibling Labs Lens PyGoat Juice Shop DVWA Stack Django, Python Node.js, Angular PHP, Apache, MariaDB UX Django lab modules Modern e-commerce SPA Minimal module menu Scoring Challenge JSON plus solutions doc Built-in CTF scoreboard Per-module difficulty tiers Best fit Python/Django AppSec drills API/SPA and pipeline guinea pig Classic web vuln fundamentals Deployment Guardrails Use NAT, host-only networking, or a dedicated lab VLAN. Prefer official Docker images or a throwaway VM over a daily driver install. Reset database state between teaching sessions when you need repeatable challenge progress. Treat upstream install docs as Linux/macOS first; on Windows use Docker Desktop or WSL2. Install Sketch 1 2 3 4 5 6 7 8 9 10 # Fastest path: official image docker run --rm -p 8000:8000 pygoat/pygoat:latest # Browse http://127.0.0.1:8000 # From source git clone https://github.com/adeyosemanputra/pygoat.git cd pygoat bash installer.sh python3 manage.py migrate python3 manage.py runserver After first boot with compose, populate challenges if the UI lists none (see README populate_challenges step).","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"PyGoat"},"/garden/python":{"content":"Python. Is a general-purpose language with dominant libraries in automation, data, and ML.\nSummary Python grew out of academia and scripting culture: batteries-included stdlib, readable syntax, and a huge PyPI ecosystem made it the default glue for DevOps (Ansible controllers), scientific computing (NumPy, pandas), and ML tooling. That ubiquity is both strength and trap, teams often reach for Python because a library exists, then inherit GIL limits, packaging drift, and runtime cost at scale.\nTreat Python as a toolchain language: adopt it where the framework or community is Python-first; for new backend services, compare GoLang (ops and concurrency), Ruby (legacy web), or typed stacks before defaulting to Python for convenience alone.\nDetails Where it wins: config management controllers, data/ML notebooks, quick automation, teaching and prototypes, AWS CDK / Pulumi when you already committed to imperative IaC (see CDKs and garden notes on Imperative IaC). Where it hurts: CPU-bound APIs, tight tail latency, and large multi-process deployments without careful architecture (async, workers, native extensions). Operations: virtualenv/uv/poetry discipline matters; pin dependencies in CI; avoid sprawling monoliths without type hints or tests. Pair with: Ansible (adopt tool, Python on control node); contrast GoLang for infra CLIs and long-running services. ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Python"},"/garden/quepaxa":{"content":"QuePaxa is a crash-fault consensus protocol with Raft-class normal-case speed that does not depend on timeouts for liveness. We assess it for WAN and hostile-network state machine replication.\nBlurb We present QuePaxa, the first protocol offering state-of-the-art normal case efficiency without depending on timeouts.\nSummary What it is: SOSP 2023 protocol from Tennage, Basescu, Ford, and coauthors. Randomized asynchronous consensus core plus a one Round-Trip Time (RTT) fast path for a preferred leader. Concurrent proposers cooperate instead of thrashing. Hedging delays replace conservative election timeouts.\nWhen to use:\nSituation Notes Unstable WAN RTTs Avoid Raft-style false timeouts and long failover DoS or slow-leader risk Async core stays live when a single leader is targeted Research / greenfield SMR Compare before defaulting to Raft When to skip:\nStable LAN clusters where Raft already meets SLOs Need for off-the-shelf libraries with long production track records Teams that will not operate a less common protocol Trade-offs:\nStrength Cost Liveness without timeout tyranny Newer; fewer battle-tested libraries than Raft Normal-case Multi-Paxos-class throughput Non-leader proposals may take more RTTs Adaptive leader and hedging (bandit-style) Operational mental model is harder than Raft Pairs with: Raft as the industry baseline. Meerkat as the first known industrial QuePaxa deployment experiment (Cloudflare Research). CAP Theorem for CP quorum framing. TLA+ / SPIN-style verification culture from the paper appendices.\nDetails Design Highlights Async core - Guarantees progress under asynchrony with high probability via randomized priorities (FLP workaround). Fast path - Designated leader can commit in one round trip by priority selection. Hedging - Later proposers wait short delays instead of firing costly view changes. Adaptation - Leader choice and hedge schedule adjust to measured conditions. Reported Results (Paper) LAN ~584k cmd/sec; WAN ~250k cmd/sec under normal conditions (prototype vs Multi-Paxos class). Remains live under attacks and misconfigurations that stall Raft / Multi-Paxos. Hedging can be set aggressively short without losing liveness from false triggers. References QuePaxa PDF (SOSP 2023) Cloudflare, Introducing Meerkat (industrial interest) ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"QuePaxa"},"/garden/raft":{"content":"Raft is a leader-based consensus algorithm for replicated state machines. We adopt it as the default mental model for quorum logs, leader election, and CP control planes.\nBlurb Raft is a consensus algorithm that is designed to be easy to understand.\nSummary What it is: Consensus decomposed into leader election, log replication, and safety. Equivalent to Multi-Paxos in fault tolerance. A majority of 2f+1 replicas must be alive to make progress. Designed by Diego Ongaro and John Ousterhout (USENIX ATC 2014).\nWhen to use:\nSituation Notes Learn consensus Clearest teaching path before reading Paxos papers Review etcd, Consul, or similar Most implementations follow Raft shapes Design CP metadata Matches CAP Theorem CP quorum stores When to skip:\nWide-area clusters with wild RTT variance (timeouts and single-leader stalls hurt) Need for any healthy replica to drive writes without election windows Prefer researching QuePaxa / Meerkat for timeout-light SMR Trade-offs:\nStrength Cost Understandable decomposition Leader is a temporary single point of write progress Broad industry implementations Liveness depends on partial synchrony and tuned timeouts Formal TLA+ specs exist Mis-tuned election timeouts cause thrashing or slow failover Pairs with: CAP Theorem for CP vocabulary. TLA+ for checking membership and safety. Contrast with QuePaxa when WAN or adversarial networks matter.\nDetails Core Pieces Leader election - One leader per term. Followers time out and campaign if heartbeats stop. Log replication - Clients write through the leader. Entries commit when a majority replicates them. Safety - Committed entries never change. Election restrictions keep logs consistent. Practical Notes Cluster size is usually odd (3, 5, 7) so majority quorums remain clear after failures. Reads served only by the leader need leases or linearizable read paths. Stale follower reads are a separate product choice. Membership changes are a sharp edge. Prefer the dissertation’s simpler joint-consensus variant when changing voters. References The Raft Consensus Algorithm Diego Ongaro and John Ousterhout, In Search of an Understandable Consensus Algorithm (extended version) Ongaro Ph.D. dissertation (includes TLA+ specification) ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Raft"},"/garden/rancher-desktop":{"content":"Rancher Desktop. Is SUSE’s open-source desktop app for containers and local Kubernetes on macOS, Windows, and Linux.\nBlurb Open source desktop application that provides Kubernetes, Container Management, bundled utilities on the desktop\nSummary Garden stance: We trial Rancher Desktop for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Topic Notes Install https://rancherdesktop.io/ (macOS, Windows, Linux) Runtime containerd + nerdctl or Moby + docker CLI Kubernetes k3s; pick version; reset from GUI CLI rdctl for app control; bundled kubectl and Helm Compare Rancher vs Docker Desktop References\nRancher Desktop GitHub SUSE docs ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Rancher Desktop"},"/garden/rbac":{"content":"RBAC is a technique we adopt in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"RBAC"},"/garden/rbenv":{"content":"rbenv. Manages Ruby versions per project with .ruby-version and lightweight shims.\nBlurb Manage your app’s Ruby environment. Contribute to rbenv/rbenv development by creating an account on GitHub.\nSummary Garden stance: We assess rbenv for our estate.\nKey points:\nTopic Notes Fit Common in legacy Ruby on Rails shops Contrast mise when Ruby is one of many pinned runtimes References\nrbenv documentation Details Topic Notes Fit Common in legacy Ruby on Rails shops Contrast mise when Ruby is one of many pinned runtimes References\nrbenv documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"rbenv"},"/garden/reasoning-by-analogy":{"content":"Reasoning by analogy. Applies a known pattern from one context to a new problem by mapping similarities between them.\nSummary Most learning in software is analogical. You hold the source pattern in memory and track only the differences in the new domain. Over time, several analogs collapse into a generalization. That consolidation is where durable knowledge forms.\nWhen to use Signal Adopt (default) You can name a credible source analogue and list how the target differs Assess first Load, compliance, team shape, or failure modes differ from the source Switch to First Principles Review debate centers on unstated assumptions, not pattern fit Worked mental model: Continuous Integration pipelines are step graphs with explicit or implicit dependencies. That maps to DAGs, then to graphs and trees used across low-level programming. One familiar domain bootstraps several others.\nSibling technique: First Principles deconstructs when analogy copies the wrong shape (microservices-by-default, cargo-cult Design Pattern).\nDetails How to Apply Deliberately Name the source you know well (prior job, GitHub Actions pipeline, Design Pattern). Name the target problem in one sentence. List matches (structure, constraints, failure modes). List mismatches explicitly. Mismatches are where bugs and bad architecture hide. Revisit after delivery. Merge several analogs into a general rule when the pattern repeats. CI Pipelines as a Bridge Pattern Pipeline tools express work as ordered or dependent steps. That shape appears elsewhere:\nDomain Analog to CI steps Dagu / Apache Airflow YAML DAG definitions Argo Workflows Kubernetes-native workflow graphs Compiler / linker stages Ordered transforms with dependencies Parse trees / ASTs Tree structures over graph problems You do not need full mastery of each target on day one. You need the analog plus the delta.\nWhen Analogy Fails False analogy Why it breaks “We need microservices” (copied from a unicorn) Different load, team count, and ops maturity “Use this Design Pattern because the book says so” Forces don’t match; ceremony without payoff “Same as last project” Compliance, data class, or SLA differ When the mismatch list grows faster than the match list, switch to First Principles and an Assumptions section in the design doc.\nGeneralization Path Single analog → several analogs → named pattern → garden item or design rule Capture recurring generalizations as Design Pattern items or team standards when the same mapping appears three or more times.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Reasoning by analogy"},"/garden/redash":{"content":"Redash. Is an open source data exploration and visualization platform.\nBlurb Use Redash to connect to any data source (PostgreSQL, MySQL, Redshift, BigQuery, MongoDB and many others), query, visualize and share your data to make your company data driven.\nSummary What it is: Web UI plus workers that connect to databases (Postgres, MySQL, BigQuery, MongoDB, and many others), run scheduled queries, and publish dashboards.\nWhen to use: internal ops metrics and ad hoc SQL; democratize read-only access to warehouse or replica data; embed charts via URL for runbooks.\nWhen to skip: metrics already live in Grafana with datasources wired; need governed semantic layers or ML features; SaaS-only BI mandate.\nKey features: schema browser, query snippets, visualization types, alerts on query results, API access.\nDetails Topic Notes Deploy Docker Compose or Helm; workers scale query load Auth SSO and row-level access via data source credentials Queries Parameterized SQL with schedule and alert hooks Practices: read-only DB users; separate prod vs analytics replicas; audit shared dashboard links.\nReferences\nRedash help GitHub repository ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Redash"},"/garden/regula":{"content":"Regula is an OPA/Rego CLI that scans IaC for cloud and Kubernetes misconfigurations before deploy. We assess it as one path under Policy as Code, beside Checkov and raw Open Policy Agent.\nBlurb Regula is a tool that evaluates infrastructure as code files for potential AWS, Azure, Google Cloud, and Kubernetes security and compliance violations prior to deployment.\nSummary What it is: Single Go binary (and Docker image) that loads Terraform, CloudFormation, Kubernetes YAML, and preview ARM into OPA. Ships CIS-mapped rule packs and custom Rego.\nWhen to use:\nSituation Notes Pre-merge IaC gate Fail CI on CIS-style findings before apply Multi-format repos One scanner across TF, CFN, and k8s manifests Custom Rego already Reuse OPA skills with Regula’s IaC loaders When to skip:\nYou already standardize on Checkov or Conftest with a working pack Need deep SaaS policy management rather than a CLI report Project activity and rule freshness matter more than feature fit (confirm maintenance before adopt) Trade-offs: Strong OPA alignment and CIS mapping. Fugue-origin OSS; weigh against Checkov’s broader IaC coverage and ecosystem before promoting.\nDetails Topic Notes Inputs Terraform source/plan, CloudFormation, Kubernetes YAML, ARM (preview) Policy language Rego via Open Policy Agent Outputs JSON, JUnit, TAP for CI Pairing Terraform / Kubernetes repos; GitHub Actions example upstream References\nRegula docs fugue/regula on GitHub ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Regula"},"/garden/remark":{"content":"Remark is an in-browser Markdown slideshow: one HTML file, CSS, and JS. We trial it under Presentation when slides should live in Git as plain text instead of PowerPoint or Keynote.\nBlurb A simple, in-browser, Markdown-driven slideshow tool targeted at people who know their way around HTML and CSS.\nSummary What it is: Browser-rendered decks from Markdown. Slide breaks are --- lines. Presenter mode, clone view, syntax highlighting, and CSS-based styling.\nWhen to use:\nSituation Notes Info-heavy talks Text, images, and Mermaid with low tooling overhead Tech talks in Git Version slides next to the code you demo Offline / simple hosting Single HTML file; Dropbox or GitHub Pages Custom look Style with normal CSS and content classes When to skip:\nNon-technical authors who need WYSIWYG slide apps Heavy animation or corporate template lock-in Teams already standardized on Reveal.js or Marp with shared themes Trade-offs: Low effort when the deck is mostly information, not spectacle. Layout power is CSS skill, not a slide designer. Project is mature and quiet; expect DIY maintenance.\nDetails Slide Properties Initial key-value lines on a slide become properties:\nname and class for naming and styling template and layout for reuse {{ property }} expands to property values See the slide properties wiki.\nOther Extensions Content classes: .footnote[.red[*] note] wraps spans with CSS classes Fenced code blocks with language tags for highlighting ??? separates slide body from presenter notes (P toggles presenter mode; C clones the view) References\nremarkjs.com gnab/remark ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Remark"},"/garden/remnote":{"content":"RemNote is a note-taking and spaced repetition system that combines hierarchical note-taking with active recall flashcards for learning and memory retention. We assess it for its integration of knowledge management and cognitive science-based memorization.\nBlurb RemNote is a spaced-repetition wiki that helps you remember everything you write using AI-powered scheduling and hierarchical note-taking.\nSummary When to use: Choose RemNote when you need integrated note-taking with spaced repetition for learning, studying, or memorizing facts embedded in your knowledge base.\nWhen to skip: Opt for Obsidian or Logseq if your primary need is general knowledge management without spaced repetition integration.\nKey trade-offs:\nPros: Integrated SRS (spaced repetition), hierarchical notes, AI scheduling, free tier available Cons: Less mature than dedicated tools, learning curve for SRS concepts, smaller community than Obsidian Related: PKM Anki Logseq spaced repetition Obsidian\nDetails Topic Notes Core Concept Notes and flashcards combined SRS SM-2 algorithm with AI scheduling Structure Hierarchical notes (Rem -> Sub-Rem) Export Markdown, PDF, Anki-compatible formats Mobile iOS and Android apps Free Tier Available with basic features ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-10-19T00:00:00-04:00","tags":null,"title":"RemNote"},"/garden/replicated":{"content":"Replicated. Quadrant:: Platform Ring:: #hold URL:: https://www.replicated.com/ Related:: Kubernetes We hold it under Platform in the garden.\nBlurb Replicated is the platform leading software companies use to ship and manage self-hosted software at scale.\nSummary Provides a license service and proxy in front of the OSS items kURL, and KOTs. However, those OSS are still pretty immature often leading to breaking changes and the Replicated commercial costs does not reduce these issues or reduce effort on their customers.\nBest to review kURL and KOTs vs Rancher and determine what your direct customers would be able handle, and implement your own solution on top.\nMost customers are not going to be able to take Replicated and manage it as well the underlying product. So in the end it does more harm then good.","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Replicated"},"/garden/rest":{"content":"REST is a technique we adopt in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"REST"},"/garden/reuse-release-equivalence-principle":{"content":"Reuse-Release Equivalence Principle. The Reuse-Release Equivalence Principle (REP) says the unit of reuse is the unit of release.\nSummary Garden stance: We adopt Reuse-Release Equivalence Principle for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Component Cohesion Context REP is one of three classic component cohesion principles (Robert C. Martin). Siblings are Common Closure Principle (CCP) and Common Reuse Principle (CRP). Teams cannot maximize all three at once; pick the pain you are solving.\nPrinciple Gist REP Release components as a unit when reused CCP Group classes that change together (Common Closure Principle) CRP Group classes reused together (Common Reuse Principle) Practical Signs Signal Likely fix Teams copy source files instead of depending on a package Publish a versioned artifact (REP) Shared code changes without semver or release notes Add release process and version pins Consumers on different commits of the same folder Cut releases; document upgrade path One repo folder, many implicit “versions” Tag releases; treat the folder as one component Versioning Requirement REP is not satisfied by grouping code in a shared folder. Consumers must depend on released, versioned artifacts (semver tags, package registry entries, or equivalent). A release bundles a cohesive unit; consumers choose when to adopt each version.\nCommon Failure Modes Reuse without versioning (every consumer tracks main) Semver on paper but breaking changes in patch releases One giant release train for unrelated modules (REP without CCP or CRP thought) Release process so heavy that teams bypass it with duplication Related Garden Items Common Closure Principle and Common Reuse Principle for the other cohesion principles Acyclic Dependencies Principle, Stable Dependencies Principle, and Stable Abstractions Principle for component coupling rules Dependency Inversion Principle for stable seams between released components ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Reuse-Release Equivalence Principle"},"/garden/rg":{"content":"rg is a fast, line-oriented code search tool that respects .gitignore by default. We trial it for replacing plain grep in day-to-day repository search.\nBlurb ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern. By default, ripgrep will respect gitignore rules and automatically skip hidden files/directories and binary files.\nSummary Use rg for fast recursive code search that honors ignore files, skips binaries and hidden files, and outputs colored matches with line numbers. Supports file-type filters (-tpy), context (-C), --json, and opt-in PCRE2 (-P) for lookaround. Current stable: 14.1.1. Skip when a POSIX-ubiquitous tool is required; grep remains the portable standard.\nDetails Install: brew install ripgrep (or static binaries per release). License: MIT / UNLICENSE (dual). Language: Rust; regex via the regex crate (DFA + SIMD). Contrast: supersedes ag (The Silver Searcher, unmaintained) and ack; outperforms GNU grep on Unicode and large repos. Vim/Emacs use rg as the grep backend by default. ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-31T00:00:00-04:00","tags":null,"title":"rg"},"/garden/roam-research":{"content":"Roam Research is a note-taking tool that uses a block-based, bi-directional linking system designed for networked thought and knowledge management. We trial it for its unique approach to graph thinking and backlinking.\nBlurb Roam Research is a note-taking tool for networked thought. A graph database that works in the browser and stores data as plain text, allowing you to link ideas across pages and discover unexpected connections.\nSummary When to use: Choose Roam Research when you want bi-directional linking, graph visualization, and a block-based approach to knowledge work that emphasizes connections over hierarchy.\nWhen to skip: Opt for Obsidian if you prefer local-first control and a richer plugin ecosystem, or simpler tools if you don’t need networked thought.\nKey trade-offs:\nPros: Bi-directional links, graph view, block references, daily notes, web-based with local export Cons: Cloud-first (data stored on Roam servers), subscription pricing, limited offline support, not local-first Related: PKM Obsidian Logseq Networked Thought\nDetails Topic Notes Storage Cloud-based (Roam servers) Linking Bi-directional, backlinks, transclusion Structure Block references, hierarchical pages Daily Notes Built-in daily note system Graph Interactive knowledge graph visualization Mobile iOS and Android apps with limited functionality Pricing Subscription-based model ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-08-25T00:00:00-04:00","tags":null,"title":"Roam Research"},"/garden/rpc":{"content":"Remote Procedure Call (RPC). Exposes local function calls across process or network boundaries.\nSummary Why hold: RPC hides latency, partial failure, and contract evolution behind a synchronous function shape. Teams inherit tight coupling, brittle client stubs, and debugging pain when services move or scale independently. Prefer resource-oriented REST with OpenAPI for most HTTP services.\nWhen RPC anyway: local IPC-shaped control planes, plugin hosts, or tooling protocols where both sides share a lifecycle (for example a CLI talking to a co-located daemon). gRPC is assess in those bounded cases, not a greenfield default for product APIs.\nRelationship to IPC: same-machine RPC is often just IPC with a serializer. Treat cross-host RPC as a service boundary design problem, not a convenience wrapper.\nDetails Topic Notes Default alternative REST + explicit DTOs and error models High-performance internal assess gRPC with strict schema and ownership Local tooling IPC primitives or local gRPC before remote RPC Failure handling Timeouts, retries, and idempotency must be designed; RPC stubs do not provide them Garden link API subcategory stance: adopt REST, assess gRPC, hold RPC as default ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Remote Procedure Call (RPC)"},"/garden/rtk":{"content":"RTK. (Rust Token Killer) is an open-source CLI proxy that compresses shell command output before it reaches an AI Agent context window, typically cutting token use by 60-90% with transparent hooks for Claude Code, Cursor, and other coding assistants.\nBlurb RTK reduces Claude Code token usage by 60-90% - measured across 2,900+ real commands. 89% avg noise removed, 3x longer sessions, zero config. Apache 2.0 licensed.\nSummary RTK sits between your agent and the shell. A PreToolUse-style hook rewrites commands like git status to rtk git status before execution; the model sees a compact summary instead of verbose boilerplate, progress bars, and repeated lines. Upstream reports ~89% average noise reduction across 2,900+ real commands (e.g. cargo test ~92%, git status ~81%, find ~78%).\nUse when long agent sessions burn context on test runners, git diffs, linters, and container/k8s CLI output. rtk init -g wires Claude Code and Copilot; rtk init -g --agent cursor targets Cursor. rtk gain tracks per-command savings. Built-in agent tools (Read, Grep, Glob in Claude Code) bypass the hook unless you use shell equivalents or explicit rtk read / rtk grep calls.\nDetails Install: curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh, Homebrew (brew install rtk), or cargo install --git https://github.com/rtk-ai/rtk. Setup: rtk init -g (Claude Code / Copilot), rtk init -g --agent cursor (Cursor), plus flags for Gemini, Windsurf, Cline, OpenCode, and others per GitHub README. Analytics: rtk gain, rtk gain --graph, rtk discover (commands that ran without RTK), rtk session (adoption rate). License: MIT; source at github.com/rtk-ai/rtk. Scope: 100+ commands across Git, Rust/Cargo, JS/TS, Python, Go, Docker, kubectl, and more. Fit: Tool / AI Agent adjunct, not a replacement for the agent runtime itself. Contrast: manual output truncation or narrower tool permissions; pairs with Claude Code and cursor-agent rather than competing with them. ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"RTK"},"/garden/ruby":{"content":"Ruby. Is a dynamic, expressive language optimized for developer ergonomics and metaprogramming.\nSummary In the 2000s Ruby stood out for treating the programmer as the customer, readable syntax, blocks, and open classes made it feel like a DSL you could shape in place. That flexibility powered the Rails era but also encouraged “magic” (monkey patches, implicit requires, metaprogramming) that is hard to audit in large teams.\nOutside the Rails corridor, Ruby sees less investment in performance (GIL, interpreter overhead) and tooling compared to GoLang for infra or Python for data/ML. Keep Ruby when you inherit a mature app or a team that already ships it; do not default to it for new platforms.\nDetails Sweet spot: long-lived web monoliths on Ruby on Rails; scripting and glue where team expertise already exists. Friction: slow cold starts and CPU-bound workloads vs compiled or JIT languages; global interpreter lock limits naive threading models. Ecosystem: gems are plentiful but quality varies; operations patterns often trace to Capistrano-era deploys rather than modern container-native defaults. Pair with: Ruby on Rails (framework, also hold for greenfield); prefer Python or GoLang when starting net-new services without a Ruby mandate. ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Ruby"},"/garden/ruby-on-rails":{"content":"Ruby on Rails. Is a full-stack web framework built on Ruby that popularized convention-over-configuration, ActiveRecord as an ORM, and MVC for server-rendered apps.\nBlurb A full-stack web application framework written in Ruby, following the Model View Controller pattern, that includes everything you need to build modern database-backed web apps.\nSummary Rails proved that productive frameworks could ship real products quickly, scaffolding, migrations, and a cohesive standard library lowered the bar for web startups. That same cohesion becomes a liability when you need independent scaling of read/write paths, strict performance budgets, or polyglot services. Teams often discover too late that the fastest path forward is a partial strangler off Rails rather than incremental tuning inside it.\nDetails Strengths (historical): rapid prototyping, strong conventions, batteries-included auth/jobs/mailers, large gem ecosystem. Weaknesses (today): global state and “magic” complicate reasoning; ActiveRecord encourages fat models; multi-process scaling and background work add operational cost compared to lighter stacks. Operations: legacy deployments often paired Rails with Capistrano When hold is OK: maintaining an existing Rails monolith with a committed team; greenfield work should default to stacks that match your expected scale and hiring pool (often not Ruby). ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"Ruby on Rails"},"/garden/ruckstack":{"content":"Ruckstack packages an app stack into a self-contained installable built on embedded Kubernetes (k3s). We assess it for ISV / on-prem delivery where customers need one installer, not a full cluster ops story.\nBlurb The modern application server\nSummary What it is: Builder plus system-control CLI. Declare services via Dockerfiles, Helm, or Kubernetes configs in ruckstack.yaml. Output is a single installable that runs the stack locally with k3s under the hood.\nWhen to use:\nSituation Notes On-prem ISV install One artifact for customers who will not run your Helm chart Dev parity Same packaged stack for local services while you code against proxies Small machine count App-centric packaging, not datacenter fleet management When to skip:\nCustomers already run managed Kubernetes and want charts or Operators Pure SaaS delivery with no on-prem installer requirement Project maintenance risk outweighs the packaging win (confirm activity before trial) Trade-offs: Hides kube complexity behind an application-server model. Couples you to Ruckstack’s packaging lifecycle and Linux/k3s constraints for builds.\nDetails Topic Notes Config ruckstack.yaml; Dockerfiles, Helm, or k8s defs Runtime Embedded Kubernetes via k3s Dev flow Proxy packaged services to a local process under development Docs site Historical ruckstack.org / ruckstack.com; GitHub is the durable entry References\nruckstack/ruckstack The New Stack overview ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Ruckstack"},"/garden/rust":{"content":"Rust is a systems language with ownership-based memory safety and no garbage collector. We trial it for performance-critical services, CLIs, and WASM modules where Go or Python are not enough.\nBlurb Empowering everyone to build reliable and efficient software.\nSummary What it is: Compiled language with a strong type system, fearless concurrency story, and Cargo tooling (build, test, publish). Used for network services, embedded, CLI tools, and WASM targets.\nWhen to use:\nSituation Notes Memory-safe systems code Replace C/C++ hotspots without GC pauses High-performance services Predictable latency and small footprint WASM modules Compile to WASM for browser or edge Shared library boundaries FFI into Python/Node where safety matters When to skip:\nFast CRUD apps and scripts (Python, Node.js) Teams without Rust ramp budget (ownership learning curve) Greenfield platform tooling where Go already fits Trade-offs: Excellent safety and speed; slower to write and hire for than Go or Python. Compile times and borrow-checker friction are real.\nDetails Tooling Tool Role rustup Toolchain install and channel management Cargo Build, test, doc, publish to crates.io rustfmt / Clippy Format and lint rust-analyzer Editor LSP Related Garden Items GoLang - default systems/DevOps language we adopt WASM - common compile target for Rust on the web DuckDB - ships a Rust client among others References rust-lang.org GitHub: rust-lang/rust ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"Rust"},"/garden/sandcastle":{"content":"Sandcastle is a TypeScript library for orchestrating AI coding agents in isolated sandboxes. You invoke agents with a single sandcastle.run(), and it handles sandboxing, branch strategy, and merging commits back. We assess it for parallelizing AFK coding agents in our own repos.\nBlurb A TypeScript library for orchestrating AI coding agents in isolated sandboxes.\nSummary What it is: A provider-agnostic orchestrator that runs coding agents (Claude Code, Codex, and more) inside isolated sandboxes. Built-in providers cover Docker, Podman, and Vercel, plus a no-sandbox option. A configurable branch strategy controls how agent commits land, from writing directly to the working tree to merging from a dedicated branch.\nWhen to use: You want to run multiple AFK agents in parallel, build review pipelines, or orchestrate your own coding agents safely without touching the host working tree.\nWhen to skip: Single interactive agent sessions where a plain IDE panel or terminal already suffices. You need tight control-plane policy enforcement rather than sandbox orchestration.\nKey features: sandcastle.run() one-shot API, createSandbox() for reuse across runs, createWorktree() for independent worktrees, three branch strategies (head, merge-to-head, branch), structured output with schema validation, prompt templating with {{KEY}} and !`command` expansion, and lifecycle hooks. MIT licensed.\nDetails Package: @ai-hero/sandcastle\nSandbox providers: Docker, Podman, Vercel (@vercel/sandbox), no-sandbox, plus custom via createBindMountSandboxProvider or createIsolatedSandboxProvider.\nSource: https://github.com/mattpocock/sandcastle","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-08-14T00:00:00-04:00","tags":null,"title":"Sandcastle"},"/garden/sarif":{"content":"SARIF. (Static Analysis Results Interchange Format) is an OASIS JSON schema for exchanging output from Code Scanner tools in CI and IDEs.\nSummary Why it matters: one schema lets CodeQL, Semgrep, Conftest, and vendor scanners feed the same PR comment bots, dashboards, and policy gates.\nWhen to use: any pipeline that aggregates multiple scanners; GitHub Advanced Security code scanning; internal security portals that ingest findings.\nWhen to skip: a single proprietary scanner with no export and no plan to unify findings (still prefer SARIF export if available).\nPairs with: sarif artifacts uploaded as workflow artifacts; GitHub upload-sarif action; Policy as Code rules that count severities per run.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"SARIF"},"/garden/scrum":{"content":"Scrum is a technique we trial in the garden.\nSummary Overview: The good:\nDetail 1: - Sprint Planning\nScrum Team Definition of Done / Acceptance Criteria Retrospective Detail 2: The bad:## Personal Experience","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Scrum"},"/garden/second-touch-provisioning":{"content":"Under Technique, Second Touch Provisioning is the practice of configuring hosts, packages, users, and app runtime after foundation infra exists. It pairs with the Provisioner tool subcategory (products such as Ansible) and sits beside First Touch Provisioning (accounts, networks, clusters, managed data).\nPrefer immutable images, cloud-init once, and GitOps on Kubernetes when cattle-style delivery works. Keep second-touch playbooks for bootstrap, brownfield repair, and one-time migrations. Pair provisioner products under Provisioner (for example Ansible) rather than growing long-lived pet fleets.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Second Touch Provisioning"},"/garden/selenium":{"content":"Selenium. Is the long-standing browser automation stack (WebDriver, Grid, IDE) that drives real browsers through language bindings and separate driver binaries.\nSummary Garden stance: We hold Selenium for our estate.\nKey points:\nTopic Notes WebDriver Language binding talks to a browser-specific driver (ChromeDriver, geckodriver, etc.) Grid Hub/node layout for parallel browsers; ops overhead versus Playwright sharding IDE Quick script capture; export to code; not a substitute for maintained test suites CI Works in GitHub Actions and other Continuous Integration runners with driver install steps Versus Playwright: Selenium separates browser, driver, and binding versions. Playwright bundles browsers, auto-waits, and trace artifacts. Prefer Playwright for new Test Pyramid E2E layers.\nVersus Cypress: Cypress targets JavaScript in-browser runs with a dedicated runner. Selenium is language-neutral and WebDriver-native. Both are hold for net-new work here.\nMigration path: identify critical paths; port specs to Playwright with parallel runs; retire Grid nodes when Playwright parallelism and flake metrics match or beat the old stack.\nReferences\nSelenium documentation GitHub organization Details Topic Notes WebDriver Language binding talks to a browser-specific driver (ChromeDriver, geckodriver, etc.) Grid Hub/node layout for parallel browsers; ops overhead versus Playwright sharding IDE Quick script capture; export to code; not a substitute for maintained test suites CI Works in GitHub Actions and other Continuous Integration runners with driver install steps Versus Playwright: Selenium separates browser, driver, and binding versions. Playwright bundles browsers, auto-waits, and trace artifacts. Prefer Playwright for new Test Pyramid E2E layers.\nVersus Cypress: Cypress targets JavaScript in-browser runs with a dedicated runner. Selenium is language-neutral and WebDriver-native. Both are hold for net-new work here.\nMigration path: identify critical paths; port specs to Playwright with parallel runs; retire Grid nodes when Playwright parallelism and flake metrics match or beat the old stack.\nReferences\nSelenium documentation GitHub organization ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Selenium"},"/garden/semgrep":{"content":"Semgrep. Is a fast static analysis platform for SAST, dependency scanning, and secrets detection across 30+ languages.\nBlurb An extensible developer-friendly application security platform that scans source code to surface true and actionable security issues with AI-assisted SAST, SCA, and Secrets Detection solutions.\nSummary Garden stance: We trial Semgrep for our estate.\nKey points:\nTopic Notes Rule format YAML rules with metavariables; patterns mirror target language syntax Run modes IDE, pre-commit, semgrep scan, semgrep ci with managed rules Languages 30+ including Python, Go, Java, JavaScript, TypeScript, Terraform, YAML Registry semgrep.dev/r community and vendor rules License Engine LGPL-2.1; some rules and platform features are commercial References\nSemgrep documentation semgrep/semgrep on GitHub Details Topic Notes Rule format YAML rules with metavariables; patterns mirror target language syntax Run modes IDE, pre-commit, semgrep scan, semgrep ci with managed rules Languages 30+ including Python, Go, Java, JavaScript, TypeScript, Terraform, YAML Registry semgrep.dev/r community and vendor rules License Engine LGPL-2.1; some rules and platform features are commercial References\nSemgrep documentation semgrep/semgrep on GitHub ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Semgrep"},"/garden/shell-operator":{"content":"Shell Operator is a tool we assess in the garden.\nBlurb Shell-operator is a tool for running event-driven scripts in a Kubernetes cluster - flant/shell-operator\nSummary When to use: small integrations (notify, label, trigger jobs) where a compiled operator is overkill; teams comfortable maintaining hook scripts and images.\nWhen to skip: complex reconciliation loops, admission webhooks, or production controllers that need strong typing and tests in Go.\nOps note: treat hook scripts like production code: pin images, limit RBAC, and log hook failures to OpenTelemetry or cluster logging.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Shell Operator"},"/garden/shift-left":{"content":"Quadrant:: Technique Ring:: #adopt URL:: Category:: Related:: Terraform, Pulumi\nBlurb Shift left is the practice of moving testing, quality, and performance evaluation early in the development process, often before any code is written\nSummary The idea is that if you can write it as code then you can move testing to it and things move from Pets to Cattle.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-05-18T00:00:00-04:00","tags":null,"title":"Shift Left"},"/garden/shiftleft":{"content":"Shift Left. Quadrant:: Technique Ring:: #adopt URL:: Category:: Related:: Terraform, Pulumi We adopt it under Technique in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Shift Left"},"/garden/shodan":{"content":"Shodan. Is a search engine for Internet-connected devices and services.\nSummary What it is: Continuous crawler plus query UI and API for finding hosts by product, CVE, country, org, certificate, and other facets.\nWhen to use: the default external recon index for teams with authorized scope. Validate what attackers can see on your public IPs. Hunt forgotten dev endpoints after M&A. Run threat intel on exposed industrial or IoT gear (with legal clearance).\nWhen to skip: Purely internal apps with no Internet footprint. Orgs that forbid third-party recon data. Needs that require active authenticated testing instead of passive index lookup.\nAPI: paid plans unlock automated queries, alerts when new hosts match a filter, and integrations into SIEM or SOAR playbooks.\nDetails Use case Notes Asset discovery Compare Shodan results to CMDB or cloud inventory CVE exposure Search by product version after advisory drops Monitoring Saved searches + alerts when new services appear on your netblocks Compliance Document authorized use; restrict API keys Ethics and policy: only query assets you own or have written permission to assess; pair external recon with internal Shift Left scanning.\nAlternatives: Censys and ZoomEye overlap on host lookup. Pick one primary index to avoid alert fatigue.\nReferences\nShodan Shodan API documentation ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Shodan"},"/garden/silverbullet":{"content":"SilverBullet is a programmable, browser-based knowledge database for personal and team use. We assess it for data sovereignty and extensibility.\nBlurb SilverBullet is a Programmable, Private, Browser-based, Open Source, Self Hosted, Personal Knowledge Database.\nSummary When to use: Use SilverBullet for privacy-sensitive knowledge management and programmable note-taking where you control the data.\nWhen to skip: Choose simpler tools when you prefer hosted solutions with automatic backups and updates.\nKey trade-offs:\nPros: Maximum privacy, programmable with Lua, self-hosted, offline capability Cons: Requires self-hosting setup, learning curve for Lua scripting, manual backups Related: PKM Lua\nDetails Topic Notes Architecture Single self-contained server; runs on Raspberry Pi or VPS Scripting Space Lua dialect for commands, templates, widgets, and queries Features Live preview, wiki links, tasks, objects, and integrated query language (SLIQ) Deployment Binary or Docker; SilverBullet+ offers a desktop experience License Open source (MIT) ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-08-25T00:00:00-04:00","tags":null,"title":"SilverBullet"},"/garden/single-responsibility-principle":{"content":"Single Responsibility Principle is a technique we adopt in the garden.\nSummary What it is: A coupling rule. Each unit of code owns a single concern. A data transformer should not also handle I/O. A config parser should not also validate business rules.\nWhy it matters: SRP is not about making things small for its own sake. When code changes for two different reasons, those reasons eventually conflict. Every change risks breaking the other concern.\nWhen to use: Functions, classes, services, and microservice boundaries wherever reviewers can name two unrelated change drivers. Foundational for maintainable, testable code.\nWhen to pull back: Do not split a cohesive algorithm into artificial micro-functions with no reuse. Size is a side effect; separation of reasons is the goal.\nSigns of violation: Functions with “and” in the name, classes with unrelated method clusters, modules that import from two unrelated domains. The fix is usually extract: move the second concern behind a clear interface.\nDetails Granularity Level Example split Function Parse config vs validate business rules Class Repository vs HTTP handler Service Billing vs notifications Microservice One bounded context per deployable unit Common Failure Modes God classes that accumulate every feature touching one noun Premature extraction that fragments a single algorithm “Single responsibility” used to justify one-method classes with no cohesion Splitting by technical layer only (all SQL in one giant module) Application Order Apply SRP first when refactoring tangled modules. Introduce Dependency Inversion Principle after responsibilities are narrow enough to define ports. Name Design Pattern choices only after the split surfaces a real extension point. Related Garden Items SOLID Principles for the full mnemonic and sibling principles Object-Oriented Programming for the paradigm SRP most often supports Unit Testing as a forcing function for narrow, mockable units ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Single Responsibility Principle"},"/garden/single-sign-on":{"content":"Single Sign-on Single sign-on (SSO) lets a user authenticate once with an identity provider (IdP) and access multiple applications without separate passwords per app. We adopt SSO for B2B Software as a Service and internal tools: it is Enterprise Ready table stakes, pairs with RBAC, and reduces password sprawl when implemented with standard protocols.\nSummary Protocols (prefer standards):\nProtocol Typical use OIDC Modern SaaS, SPAs, mobile; built on OAuth 2.0 SAML 2.0 Enterprise IdP connections (Okta, Entra ID, Google Workspace) OAuth 2.0 Delegated API access (not full SSO by itself) When adopt applies:\nSelling to enterprises that mandate their IdP (Enterprise Ready) Workforce apps (dashboards, ArgoCD, Boundary (Hashicorp)) via corporate OIDC Customer orgs with “login with your company’s SSO” on your product Implementation paths:\nApproach Garden notes Embedded IdP Auth0 / FrontEgg (assess) for product login + SAML/OIDC connections Cloud-native Cognito, Entra, Google Identity for simpler estates Self-hosted Keycloak-class when residency or control demands it Security expectations: MFA at the IdP, short session lifetimes, audit logs, and Access on Demand for privileged production access (SSO is not the same as standing admin).\nDetails Topic Notes SP vs IdP Your app is the service provider; customer brings the IdP metadata JIT provisioning Map SAML/OIDC claims to users and RBAC roles SCIM Optional next step for directory sync (not required for basic SSO) Testing Staging IdP connection per customer; document clock skew and cert expiry Break-glass Local emergency accounts outside SSO, vaulted and audited References\nWikipedia: Single sign-on Enterprise Ready ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Single Sign-on"},"/garden/skaffold":{"content":"Skaffold. Reports itself as “Fast.\nBlurb Easy and Repeatable Container & Kubernetes Development\nSummary Garden stance: We trial Skaffold for our estate.\nKey points: As a developer tool for a certain type of org it is clearly categorized as “adopt”. However, despite Google’s insistence to the contrary, it is not a good Continuous Deployment tool. It will always need to be replaced eventually, but we find that the same mindset choose skaffold for CD has often taken other shortcuts that make migration harder than one would expect. Thus we are cautious.","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Skaffold"},"/garden/slack":{"content":"Slack. Is a team messaging and collaboration platform (channels, DMs, search, apps).\nBlurb Boost productivity and save time with Slack‌ - ‌the AI work platform for managing projects, automating workflows, and connecting teams securely. Start working smarter today.\nSummary Use Slack for: team chat, incident coordination rooms, lightweight notifications, and linking out to real systems (tickets, dashboards, runbooks).\nAvoid Slack for: ChatOps-style bot commands against prod, mixing pager-grade alerts with casual channels, or granting integrations broad cloud/API scopes because “it’s convenient.”\nGarden alignment: ChatOps is hold; Slack’s app marketplace encourages patterns we reject for DevSecOps. Prefer dedicated on-call (Incident Management) and audited automation outside chat.\nDetails Topic Notes Alerting Mirror critical alerts into a dedicated channel; do not rely on Slack alone for paging Integrations Review OAuth scopes and retention; treat bots like production software Agents Omnichannel agents (OpenClaw, hermes-agent) can attach here; same hold caution applies Alternatives Microsoft Teams, Google Chat, or matrix-style tools when customers mandate them ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Slack"},"/garden/slas":{"content":"SLAs Service level agreements (SLAs) are measurable commitments between a provider and a customer: availability, response time, support windows, and remedies when targets are missed. We adopt defining SLAs (and the SLO/SLI machinery behind them) for Software as a Service and managed platforms so sales, engineering, and ops share the same numbers.\nSummary SLA vs SLO vs SLI:\nTerm Meaning SLI What you measure (e.g. successful requests / total) SLO Internal target (e.g. 99.9% over 30 days) SLA Customer-facing promise, often with credits or termination rights Why adopt:\nEnterprise Ready procurement expects written uptime and support tiers Aligns product and DevOps on error budgets before Continuous Deployment pace outruns reliability Forces honest capacity planning (see SRE practices) Common SLA metrics:\nMetric Example commitment Availability 99.9% monthly API uptime Latency p95 < 300ms for core APIs Support P1 response within 1 hour (business hours) RTO/RPO Recovery objectives for disaster scenarios What to avoid: marketing “five nines” without instrumentation; SLAs you cannot measure from production telemetry; unlimited liability without error-budget policy.\nDetails Topic Notes Measurement SLIs from real probes and RED metrics; no manual spreadsheet honesty Exclusions Document maintenance windows, customer-caused outages, force majeure Credits Tie remedies to repeatable formulas; legal review Internal SLO Set SLO stricter than SLA so you miss the customer line rarely Incidents Postmortems when SLO burn rate spikes; feed back to architecture References\nWikipedia: Service-level agreement Google SRE: SLI, SLO, SLA ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"SLAs"},"/garden/snowflake":{"content":"Snowflake. Is a cloud-native analytics data platform with separated storage and compute, standard SQL, and multi-cloud deployment.\nSummary What it is: Virtual warehouses, micro-partition storage, role-based access, data sharing, and Snowpark for app logic.\nWhen to use: Enterprise analytics standardizing on Snowflake; cross-org data sharing; dbt-core models targeting Snowflake.\nWhen to skip: GCP-only strategy (BigQuery). Small datasets on Postgres replicas.\nKey features: Time travel, clones, streams/tasks, marketplace listings, native Apache Superset / Metabase connectors.\nDetails Topic Notes Cost Monitor warehouse idle time and query patterns BI Pairs with Looker, Tableau, Power BI, and OSS BI tools References\nSnowflake documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Snowflake"},"/garden/software-architecture":{"content":"Under Technique, Software Architecture groups ideas and methods for structuring systems and making design decisions at module, service, and application boundaries. These are reasoning tools and vocabulary for review and trade-offs, not vendor products or cloud topology diagrams.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Software Architecture"},"/garden/software-as-a-service":{"content":"Software as a Service. Software as a Service (SaaS) means the vendor runs the software; customers use it over the network on a subscription or consumption model.\nSummary When SaaS fits: multi-tenant products, frequent releases, Continuous Deployment, per-tenant Feature Flags, and teams that can live by 12 Factor App / Cattle Not Pets assumptions (stateless app tiers, managed data stores).\nWhen to hesitate: regulated data on shared infrastructure, air-gapped customers, heavy customization per tenant, or “SaaS” as an excuse to skip DevSecOps (shared responsibility is still yours).\nB2B SaaS stack: identity (Auth0, FrontEgg), observability (OpenTelemetry), and GitOps delivery (ArgoCD) are common companions; each has its own garden rating.\nDetails Topic Notes Tenancy Single-tenant vs multi-tenant affects cost, isolation, and compliance story Security You own app-layer controls; vendor owns platform; map both in contracts and architecture Delivery Prefer Continuous Deployment over manual releases when uptime SLAs allow Naming Also referenced as SaaS throughout the garden ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Software as a Service"},"/garden/solid-principles":{"content":"SOLID Principles. We adopt it under Technique in the garden.\nSummary Key points: is a mnemonic for five object-oriented design principles from Robert C. Martin. Together they reduce coupling, clarify change boundaries, and keep modules testable. We adopt the set as baseline discipline in application code, not as a checklist to apply in one refactor. Start with Single Responsibility Principle and Dependency Inversion Principle where coupling hurts tests or vendor swaps.\nDetails The Five Principles (Short Form) Principle One-line gist Single Responsibility One reason to change per module Open/Closed Open for extension, closed for modification Liskov Substitution Subtypes must honor the base contract Interface Segregation Many small interfaces beat one fat interface Dependency Inversion Depend on abstractions, not concretions Application Order (Practical) SRP first: split mixed concerns so each unit has a clear job. DIP next: introduce ports where tests or vendors force seams. OCP / LSP / ISP when extension points, inheritance, or interface bloat show up in review. Common Failure Modes Renaming a god class without splitting responsibilities (SRP violation remains) Interface-per-class with no consumer need (fake DIP) Subclasses that weaken preconditions or strengthen postconditions (LSP violation) “SOLID refactor” that delays delivery without a coupling metric Related Garden Items Single Responsibility Principle, Open-Closed Principle, Liskov Substitution Principle, Interface Segregation Principle, and Dependency Inversion Principle for per-principle guidance Design Pattern for named solutions after structure is clear Unit Testing as a forcing function for inversion and narrow modules ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"SOLID Principles"},"/garden/sops-secret-operations":{"content":"SOPS encrypts structured secret files (YAML, JSON, ENV, INI, binary) while leaving keys readable for review. We assess it when you have no password manager and need Git-friendly secrets under GitOps or IaC. If you already have a vault, stay in that ecosystem.\nBlurb SOPS is an editor of encrypted files that supports YAML, JSON, ENV, INI and BINARY formats and encrypts with AWS KMS, GCP KMS, Azure Key Vault, HuaweiCloud KMS, age, and PGP.\nSummary What it is: Encrypts leaf values only so diffs stay reviewable. Backends include cloud KMS, age, and PGP. CNCF Sandbox; community under getsops. Beats rolling your own file encryption when you need committed secret shapes without a vault product.\nRule of thumb: No password manager → assess SOPS. Password manager already chosen → stay there (for 1Password: op inject / op run).\nWhen to use:\nSituation Notes No password manager Structured secrets in Git without inventing crypto Multi-cloud KMS recipients Same file encrypted to KMS ARNs or age keys IaC / k8s config Pair with Terraform vars or Kubernetes manifests When to skip:\nAny mature password manager already in use; prefer its CLI and inject patterns Platform secret stores only (Vault, cloud SM, sealed-secrets) Team cannot manage .sops.yaml and key distribution Trade-offs: Excellent for PR-visible secret shape without a vendor vault. Do not stack SOPS beside a password-manager CLI for the same job. Not a full secret manager; it is an encrypted-file editor.\nDetails Topic Notes Config .sops.yaml creation rules by path regex Model Random DEK encrypts values; master keys wrap the DEK Ops Decrypt in CI with IAM/age; never commit plaintext History Started at Mozilla (2015); CNCF Sandbox (2023) With a password manager Stay in that ecosystem; e.g. 1Password op inject / op run References\ngetsops.io docs getsops/sops on GitHub 1Password CLI ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"SOPS (Secret OPerationS)"},"/garden/spacemacs":{"content":"Spacemacs is a community Emacs distribution centered on Evil (Vim) keys, mnemonic leader bindings, and curated layers. We assess it when Vim muscle memory should drive an Emacs stack.\nBlurb Emacs advanced Kit focused on Evil\nSummary Use Spacemacs when you want discoverable SPC-leader mnemonics and a crowd-configured layer system on top of Emacs. Skip it if you want stock Emacs keybindings (Emacs Prelude) or a non-Emacs AI IDE (Cursor).\nTrade-off: strong ergonomics and consistency vs a heavy, opinionated configuration. Pairs conceptually with Vim habits while still living inside Emacs.\nDetails Upstream: https://www.spacemacs.org/ Source: https://github.com/syl20bnr/spacemacs Core idea: Evil editing + mnemonic prefixes (b buffer, p project, s search) + layers Fit: Tool / IDE as an Emacs kit, not a separate editor binary Contrast: Centaur Emacs (GUI polish, not Evil-first), Emacs Prelude (closer to vanilla Emacs) ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"Spacemacs"},"/garden/spec-driven-development-sdd":{"content":"Spec-driven development makes a reviewed specification the source of truth for planning, implementation, and validation. We adopt it as the working successor to TDD and BDD: the agent is part of the spec, and the spec still carries testable behavior in plain text.\nSummary SDD extends BDD, which extended TDD. TDD locked behavior in tests first. BDD required those tests to describe desired behavior in plain text. SDD keeps that content and adds the agent as a first-class participant in the specification.\nLineage: TDD (hold) → BDD (hold) → SDD (adopt).\nWhat a good SDD spec must include (from TDD/BDD):\nFrom Carry into the spec TDD Concrete cases, edge variants, and acceptance that Unit Testing can lock BDD Plain-text behavior and scenarios (who, when, then), not jargon-only checks SDD Agent role, constraints, exclusions, and how the agent validates against the spec When to use:\nSituation Notes Multi-file or architectural work Agree on intent before agents or people code Ambiguous requirements Grill assumptions before a plan exists Living product direction Update the spec when truth changes; keep history in ADRs When to skip:\nTrivial, easily reversed changes that are already fully understood Documentation cost exceeds the value of the change Keep it living: Update the specification when requirements change. Record significant architectural changes with ADRs instead of silently rewriting history.\nStay tool-independent: The practice matters more than any template, command set, or coding agent. GitHub Spec Kit is one scaffold, not the definition of SDD.\nRelated: Specification, AI Techniques, GitHub Spec Kit, Unit Testing, TDD, BDD.\nDetails A practical SDD loop has five stages:\nSpecify: define the problem, desired outcomes, constraints, exclusions, and acceptance criteria. Include plain-text behaviors and testable cases (BDD/TDD content). Clarify: challenge assumptions and resolve questions that would materially change the solution. Plan: choose an implementation approach and record significant architectural decisions. Implement: break the plan into verifiable tasks, then execute them against the specification (agent and/or people). Validate: compare the result with the acceptance criteria; use Unit Testing where logic belongs. Specifications should describe intent without prematurely locking every implementation detail. Plans and ADRs capture technical decisions while the specification stays on behavior and constraints.\nThe specification is a living artifact, but it should not erase decision history. When a requirement or architecture changes, update the current truth and preserve the rationale in an ADR or timeline.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Spec-Driven Development (SDD)"},"/garden/specification":{"content":"Under Technique, Specification groups externally defined standards, formats, and reference models that teams adopt by reference. These are not in-repo Language artifacts under Code and not vendor Tool products.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Specification"},"/garden/spicedb":{"content":"SpiceDB. We assess it under Tool in the garden.\nBlurb SpiceDB is an open source, Google Zanzibar-inspired database for creating and managing security-critical application permissions.\nSummary What it is: Authorization datastore and API from AuthZed. Developers define a SpiceDB schema, write relationships from app code, and call Check, Lookup, and Expand APIs.\nWhen to use: Product needs relationship-based access control modeled after Zanzibar. You want schema validation, ZedTokens for consistency, and a mature OSS core with optional AuthZed Cloud.\nWhen to skip: Simple role matrices or static policy bundles are enough. Use RBAC patterns or Open Policy Agent with Policy as Code instead. Keto may fit if you already standardize on Ory.\nKey features: SpiceDB schema language, gRPC and HTTP APIs, pluggable backends (PostgreSQL, CockroachDB, Spanner, MySQL), Prometheus and OpenTelemetry hooks.\nDetails Topic Notes Model ReBAC tuples and graph traversal; complements policy engines rather than replacing them Ops Self-host SpiceDB or use AuthZed managed service; pick datastore per scale and HA needs Ecosystem Client libraries, zed CLI, schema playground, and CI validation for authz schemas Compared to Open Policy Agent\nOPA evaluates Rego policies against JSON inputs. SpiceDB persists relationships and answers permission queries at runtime. Many estates use both: OPA for config and admission gates, SpiceDB for application-level object permissions.\nReferences\nSpiceDB product page SpiceDB documentation SpiceDB on GitHub ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"SpiceDB"},"/garden/spinnaker":{"content":"Spinnaker. Is an open source multi-cloud continuous delivery platform.\nSummary Strengths: mature deployment strategies (red/black, canary); broad provider support; strong fit when teams already invested in Spinnaker ops.\nWeaknesses: heavy operational footprint (multiple microservices); steep learning curve; many orgs now prefer Git-declared desired state plus ArgoCD or managed CD.\nWhen to use: existing Spinnaker estate; complex multi-account AWS/GCP promotion with battle-tested runbooks.\nWhen to skip: new platforms; small teams; Kubernetes-only shops that can standardize on Argo CD or GitHub Actions deploy workflows.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Spinnaker"},"/garden/splunk":{"content":"Splunk. Is an enterprise log analytics and SIEM platform for search, dashboards, and security operations at large event volume.\nBlurb Splunk is the key to enterprise resilience. Our platform enables organizations around the world to prevent major issues, absorb shocks and accelerate digital transformation.\nSummary What it is: Indexer/search head architecture (Splunk Enterprise/Cloud) for SPL queries, reports, alerts, and SOAR-adjacent workflows.\nWhen to use: Existing Splunk license and skill base; compliance mandates centralized log retention and SIEM.\nWhen to skip: Startup-scale cost and ops overhead. Prefer OTel collectors feeding OpenTelemetry-friendly backends.\nKey features: SPL, apps marketplace, HEC ingest, role-based knowledge objects, ITSI and ES modules (commercial).\nDetails Topic Notes Fit Monitoring / security analytics; dashboards are a feature, not standalone BI Contrast Elasticsearch + Kibana for OSS/elastic alternative References\nSplunk documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Splunk"},"/garden/sqitch":{"content":"Sqitch. Is a standalone database change management tool.\nSummary Garden stance: We assess Sqitch for our estate.\nKey points:\nTopic Notes Engines Postgres, SQLite, MySQL, Oracle, Firebird, Vertica, Exasol, Snowflake, ODBC (feature flags at build time) Layout sqitch.plan, deploy/, revert/, verify/ directories per project Config sqitch.conf at project, user, or system scope (Git-like layering) CI Run sqitch deploy and sqitch verify against ephemeral or staging targets Practices: Keep DDL and DML in separate changes when verify tests need an empty schema. Declare cross-project dependencies when shared libraries ship their own plans. Tag before release so deployed hashes lock and scripts stop being editable.\nReferences\nSqitch documentation About Sqitch Sqitch tutorial Details Topic Notes Engines Postgres, SQLite, MySQL, Oracle, Firebird, Vertica, Exasol, Snowflake, ODBC (feature flags at build time) Layout sqitch.plan, deploy/, revert/, verify/ directories per project Config sqitch.conf at project, user, or system scope (Git-like layering) CI Run sqitch deploy and sqitch verify against ephemeral or staging targets Practices: Keep DDL and DML in separate changes when verify tests need an empty schema. Declare cross-project dependencies when shared libraries ship their own plans. Tag before release so deployed hashes lock and scripts stop being editable.\nReferences\nSqitch documentation About Sqitch Sqitch tutorial ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Sqitch"},"/garden/sre":{"content":"SRE. Site Reliability Engineer (SRE) is a very specific implementation of DevOps that Google uses.\nBlurb Site reliability engineering: Explore key sre principles & practices. Learn how reliability engineers enhance system\nSummary Garden stance: We assess SRE for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Reference https://sre.google/ ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"SRE"},"/garden/ssh":{"content":"OpenSSH is the ubiquitous secure remote login protocol and tool suite. We adopt it as the bootstrap, key management, and file transfer layer beneath the TUI IDE stack.\nBlurb OpenSSH is the premier connectivity tool for remote login with the SSH protocol. It encrypts all traffic to eliminate eavesdropping, connection hijacking, and other attacks.\nSummary Use real OpenSSH (sshd) on the VPS, not Tailscale SSH. Mosh bootstraps by running mosh-server new over SSH command execution, which Tailscale’s built-in SSH does not replicate. OpenSSH also covers the scp and sftp file transfer paths.\nOver the tailnet, OpenSSH traffic rides inside Wireguard with no public exposure of port 22.\nDetails Upstream: https://www.openssh.com Suite members: ssh, scp, sftp, ssh-keygen, sshd, ssh-agent Role: transport bootstrap and file transfer in the TUI IDE stack Required: real sshd alongside the tailnet for Mosh bootstrap Related: Mosh, Tailscale, Wireguard ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-09-18T00:00:00-04:00","tags":null,"title":"SSH"},"/garden/stable-abstractions-principle":{"content":"Stable Abstractions Principle is a technique we adopt in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Abstraction Metric Abstraction (A) for a package:\nA = N_i / (N_i + N_c)\nWhere N_i is the count of interfaces (and abstract types) and N_c is the count of concrete classes. A ranges from 0 (fully concrete) to 1 (fully abstract). SAP expects stable packages to score higher on A.\nStability vs Abstraction Quadrants Profile Risk Stable + concrete Zone of pain: hard to change, many dependents hurt Stable + abstract Target: extend via new implementations Unstable + abstract Zone of uselessness: abstractions nobody uses Unstable + concrete Normal for feature and adapter code at the leaves Component Coupling Context SAP is one of three classic component coupling principles (Robert C. Martin). Siblings are Acyclic Dependencies Principle (ADP) and Stable Dependencies Principle (SDP).\nPrinciple Gist ADP No cycles (Acyclic Dependencies Principle) SDP Depend toward stability (Stable Dependencies Principle) SAP Stable components stay abstract Practical Signs Signal Likely fix Shared library is concrete classes with wide import fan-in Extract interfaces; move concretions to unstable packages Subclassing stable types breaks invariants (Liskov Substitution Principle) Prefer composition and ports over deep inheritance Interface-only jar with no implementations Merge with a consumer or add reference impl (avoid uselessness zone) Stable API changes require editing the same file weekly Split volatile concretions per Common Closure Principle Common Failure Modes Abstract stable packages with no real extension points (speculative SAP) Concrete stable god modules that every team imports Confusing SAP with “never put code in stable packages” (stable still needs some abstraction) Deep inheritance hierarchies in stable layers instead of small interfaces Related Garden Items Dependency Inversion Principle and Open-Closed Principle for class-level abstraction discipline Stable Dependencies Principle for keeping volatile code from anchoring the graph Liskov Substitution Principle when stable abstractions use inheritance Acyclic Dependencies Principle when abstraction moves require new package edges ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Stable Abstractions Principle"},"/garden/stable-dependencies-principle":{"content":"Stable Dependencies Principle is a technique we adopt in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails Stability Metrics Martin uses fan-in and fan-out at the package level. High fan-in (many importers) increases stability because many teams feel each change. High fan-out (many imports) increases instability.\nInstability (I) for a package:\nI = Ce / (Ca + Ce)\nWhere Ce is efferent coupling (outgoing dependencies) and Ca is afferent coupling (incoming dependents). I ranges from 0 (maximally stable) to 1 (maximally unstable). SDP means edges should point from higher I toward lower I.\nPackage profile Typical role High fan-in, low fan-out Stable foundation (types, ports, policy) Low fan-in, high fan-out Volatile leaf (features, adapters, experiments) Stable depending on unstable SDP violation; invert or relocate code Component Coupling Context SDP is one of three classic component coupling principles (Robert C. Martin). Siblings are Acyclic Dependencies Principle (ADP) and Stable Abstractions Principle (SAP).\nPrinciple Gist ADP No cycles (Acyclic Dependencies Principle) SDP Depend toward stability SAP Stable means abstract (Stable Abstractions Principle) Practical Signs Signal Likely fix Shared kernel imports feature flags from webapp Move flags behind a port; invert dependency Platform library release blocked by one product team Peel product-specific code out of the library “Utils” package grows because everything imports it Check whether utils became an unstable dumping ground Frequent breaks in widely used internal SDK SDP review plus Common Closure Principle split Common Failure Modes Treating “stable” as “old” instead of measuring fan-in and fan-out Inverting dependencies with empty interfaces (fake stability) Freezing the wrong layer because it has a good name (core, common) Ignoring SDP while enforcing folder-based layer rules that code bypasses Related Garden Items Dependency Inversion Principle for abstraction seams that fix inverted dependencies Stable Abstractions Principle for keeping stable packages extensible Acyclic Dependencies Principle as the first check on the same graph Common Closure Principle for grouping volatile code so it stays at the leaves ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Stable Dependencies Principle"},"/garden/stateright":{"content":"stateright is a model checking library for Rust to formally verify the correctness of concurrent and distributed systems. We are assessing it as a tool for ensuring the correctness and robustness of complex concurrent and distributed systems.\nBlurb Model-based testing for systems with concurrent, distributed behavior.\nSummary stateright allows developers to define a system’s state machine and then exhaustively explores all possible execution paths to find bugs like deadlocks, race conditions, or other property violations. It is best used to gain high confidence in a system’s design by providing a systematic approach to bug detection, offering formal verification to uncover deep logical flaws before deployment.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"Stateright"},"/garden/steampipe":{"content":"Steampipe. Is an open source engine that queries cloud APIs and SaaS services with SQL via plugins.\nBlurb Instantly query your cloud, code, logs & more with SQL. Build on thousands of open-source benchmarks & dashboards for security & insights.\nSummary What it is: Postgres interface over steampipe plugins (AWS, Azure, GCP, GitHub, etc.) plus mod benchmarks.\nWhen to use: Engineers want SQL over cloud inventory; quick compliance mods before buying a CSPM suite.\nWhen to skip: Need persistent graph API and packaged posture product (CloudGraph, Kubescape). No SQL-friendly operators.\nKey features: steampipe query, mods pack, dashboard snapshots, CI-friendly JSON output.\nDetails Topic Notes Contrast CloudGraph for GraphQL posture graph; Steampipe for SQL-first exploration Ops Runs locally or in CI; not a long-lived multi-tenant SaaS References\nSteampipe documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Steampipe"},"/garden/stern":{"content":"Stern tails logs across multiple pods and containers in Kubernetes with label and regex selectors. We assess it as a CLI companion when kubectl logs on one pod is not enough.\nBlurb Multi pod and container log tailing for Kubernetes.\nSummary What it is: Friendly fork of the original wercker/stern. Streams combined logs from matching pods; useful during rollouts and multi-replica debugging.\nWhen to use:\nSituation Notes Multi-replica debug Follow all pods for a Deployment or label set Init / sidecar noise Filter containers while keeping one stream Ad-hoc cluster ops Faster than scripting kubectl logs -f loops When to skip:\nCentralized logging already answers the question (Loki, Datadog, CloudWatch) Need historical search, not live tail Cluster policy blocks broad log access from workstations Trade-offs: Great for live incident and deploy watching. Does not replace a log backend. Prefer the stern/stern fork over the archived wercker repo.\nDetails Topic Notes Upstream Active fork: stern/stern Legacy URL Older notes pointed at wercker/stern Pairing Local kubeconfig; same RBAC as kubectl logs References\nstern/stern ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Stern"},"/garden/stow":{"content":"GNU Stow is a symlink farm manager that makes dotfiles appear installed in place. We adopt it as the dotfile mechanism in the tui-ide repo.\nBlurb GNU Stow is a symlink farm manager which takes distinct packages of software and/or data located in separate directories on the filesystem, and makes them appear to be installed in the same place.\nSummary Use Stow with the Homebrew Bundle in the tui-ide repo. install.sh detects the OS, runs brew bundle, backs up conflicting files, then stows dotfiles on macOS and Linux.\nIt currently stows zsh, git, nvim, and herdr configs, with git identity kept in a git-ignored local file.\nDetails Upstream: https://www.gnu.org/software/stow/ Role: dotfile deployment in the TUI IDE stack Companion: Homebrew Bundle in the same repo Stowed configs: zsh, git, nvim, herdr Related: Dotfiles in Version Control, git, Zsh ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-09-18T00:00:00-04:00","tags":null,"title":"Stow"},"/garden/super-linter":{"content":"Super-Linter runs many language linters from one Docker image, as a GitHub Actions job or standalone. We adopt it for free, tunable multi-language quality gates in CI.\nBlurb Combination of multiple linters to run as a GitHub Action or standalone.\nSummary What it is: Detects file types in the repo and enables matching linters. Tunable via in-repo config. Practical OSS alternative to commercial multi-language scanners for style and static checks.\nWhen to use:\nSituation Notes Polyglot repos One Action covers many languages without N separate jobs Bootstrap quality Fast first gate before deeper SAST/SCA products Local + CI parity Same image locally and in GitHub Actions When to skip:\nSingle-language repos already covered by one well-tuned linter Need deep security/SCA findings (pair with dedicated tools; do not expect Super-Linter alone) Image size / cold start dominates a tiny pipeline Trade-offs: Engineers resist lint noise; start with a narrow allowlist and grow. Free and flexible, but you own rule hygiene. Complements, does not replace, Codacy-class platforms when those are already paid for.\nDetails Topic Notes Runtime Docker image; GitHub Action or CLI Config Per-linter files and env flags in-repo Home Org moved to super-linter/super-linter (was github/super-linter) References\nsuper-linter/super-linter ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Super-Linter"},"/garden/supplygoat":{"content":"SupplyGoat. We trial it under Tool in the garden.\nBlurb \"Vulnerable by Design\" supply chain is a learning and training project that demonstrates how common configuration errors can find their way into production cloud environments. - bridgecre…\nSummary SupplyGoat extends Bridgecrew’s Goat family beyond pure IaC templates (TerraGoat, KustomizeGoat, etc.) into software composition analysis (SCA). The repo mixes vulnerable lockfiles, a **Docker**file, Terraform, and Kubernetes manifests in one lab checkout.\nWhen to use: teaching Checkov SCA and image scanning; demoing CVE findings in npm, Python, Ruby, Java, and PHP dependency trees under package-files/; pairing dependency drills with IaC goats in DevSecOps curriculum.\nWhen to skip: you need a full interactive vulnerable web app (use Juice Shop); you only scan Terraform or K8s YAML (use IaC goats); the upstream repo stays too sparse for your exercise without custom additions.\nRepo surfaces: package.json / lockfiles, requirements.txt, Dockerfile, main.tf, deployment-kind.yaml, eks.yaml, and multi-language samples under package-files/.\nDetails Compared to IaC and Web Goats Lens SupplyGoat TerraGoat Juice Shop Focus Vulnerable dependencies and images Cloud IaC misconfigs Deliberately vulnerable web app Primary scanner Checkov SCA / image checks Checkov IaC policies DAST, manual exploitation Ecosystems npm, pip, Ruby, Java, PHP, Go mod AWS/Azure/GCP templates Node.js SPA Best fit Supply chain and CVE gate calibration Pre-deploy cloud compliance App-layer CTF labs Deployment Guardrails Treat the repo as scan-first lab material; deploy only in isolated sandboxes if required. The **Docker**file uses outdated base images and vulnerable npm dependencies by design. Do not push built images to shared registries without explicit lab labeling. Tear down any Kubernetes or cloud resources when the exercise ends. Scan-First Lab Sketch 1 2 3 4 5 git clone https://github.com/bridgecrewio/supplygoat.git cd supplygoat checkov -d . --framework sca_image,sca_package # Also scan IaC surfaces alongside SCA: checkov -d . ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"SupplyGoat"},"/garden/system-initiative":{"content":"System Initiative. Is a visual DevOps tool.\nSummary Garden stance: We hold System Initiative for our estate.\nOverview: When it started in 2019, we were optimistic about its novel approach of using a hypergraph to perform all the work on a digital twin before applying it to the underlying infrastructure. We appreciate that it is an open source project, but the source reveals that the hypergraph is essentially JSON objects, and the digital twin is just JSON transformers that are applied to the in-memory version of that objects.\nDetail 1: We are 5 years on, and novelty of that approach has waned as it struggles to implement useful features like support for anything but AWS, templates of reusable code, basic linting, or 3rd party integrations. Unless you are already invested in this solution we recommend avoiding this platform.","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"System Initiative"},"/garden/tableau":{"content":"Tableau. Is Salesforce’s enterprise visualization and analytics platform for analysts and business users.\nSummary Garden stance: We assess Tableau for our estate.\nKey points:\nTopic Notes Deploy Tableau Cloud, Server, or Desktop plus Server for sharing Cost Per-user licensing; factor embed and refresh capacity References\nTableau documentation Details Topic Notes Deploy Tableau Cloud, Server, or Desktop plus Server for sharing Cost Per-user licensing; factor embed and refresh capacity References\nTableau documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Tableau"},"/garden/tailscale":{"content":"Tailscale. Is a software defined VPN platform which uses Wireguard under the hood.\nBlurb The connectivity platform for devs, IT, and security teams. Zero Trust identity-based access that deploys in minutes and scales to every resource. Start free.\nSummary Garden stance: We assess Tailscale for our estate.\nWhen to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Tailscale"},"/garden/tailwind-css":{"content":"Tailwind CSS. We assess it under Tool in the garden.\nBlurb Tailwind CSS is a utility-first CSS framework for rapidly building modern websites without ever leaving your HTML.\nSummary When to use: React/Vue/Next sites where designers want fast iteration; teams comfortable with class-heavy HTML and a build step (PostCSS).\nWhen to skip: no customer-facing CSS; design system already locked on another stack; email templates and PDFs that cannot use utility pipelines.\nPairs with: component libraries (Headless UI, shadcn); design tokens via tailwind.config; purge/content paths in CI for small bundles.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Tailwind CSS"},"/garden/tdd":{"content":"Test-driven development (TDD) is the red-green-refactor loop: write failing automated test, make it pass, then clean up. We hold it for new process design: BDD extended it, and Spec-Driven Development (SDD) replaced both as the working practice.\nBlurb Test-driven development is a software development process relying on software requirements being converted to test cases before software is fully developed, and tracking all software development by repeatedly testing the software against all test cases.\nSummary What it is: A programming workflow popularized by Kent Beck. List expected behavior variants, write one automated test, make it pass, optionally refactor.\nLineage: TDD → BDD (plain-text behavior) → Spec-Driven Development (SDD) (spec includes agent). Do not start new work as classic TDD-only. Carry TDD’s testable cases into the SDD specification and still ship Unit Testing.\nWhen to use (existing only):\nSituation Notes Inherited TDD culture Keep green suites; migrate process toward SDD Teaching history Explain red-green-refactor as the root of BDD/SDD When to skip (new work):\nGreenfield delivery process: use Spec-Driven Development (SDD) Intent and acceptance belong in the spec, not only in programmer-facing tests Trade-offs: TDD taught fast feedback and test-first design. Alone it under-serves agent workflows and shared plain-text behavior. Those jobs moved up the lineage.\nDetails Canonical loop (Beck-style):\nList expected variants of the new behavior Write one failing automated test Change the system until the test passes Optionally refactor; keep green What SDD must still capture from TDD: concrete, testable cases and edge variants that units can lock.\nReferences\nTest-driven development (Wikipedia) Kent Beck: Canon TDD ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"TDD"},"/garden/technique":{"content":"Technique is the garden quadrant for how you work: practices, patterns, delivery methods, and interface styles. It is not Tool (vendor products), Code (repo artifacts), or Platform (what you run on).","garden":{"kind":"category"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Technique"},"/garden/telescope-nvim":{"content":"Telescope.nvim is the fuzzy finder over lists for NeoVim. We trial it as the search surface in the editor config.\nBlurb telescope.nvim is a highly extendable fuzzy finder over lists. Built on the latest awesome features from neovim core.\nSummary Use Telescope for file finding, live grep, buffers, help tags, and the other built-in pickers. It pairs with ripgrep for live_grep and grep_string, and with the LSP pickers for go-to-definition and references.\nDetails Upstream: https://github.com/nvim-telescope/telescope.nvim Role: fuzzy finder in the NeoVim stack Requirements: NeoVim 0.11+ with LuaJIT; plenary.nvim Nice to have: ripgrep, fd, a native sorter extension Related: NeoVim, which-key.nvim ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-09-18T00:00:00-04:00","tags":null,"title":"Telescope.nvim"},"/garden/tensor9":{"content":"Tensor9 is an any-prem platform for software vendors. It lets a vendor deploy its full cloud-native stack into a customer’s own VPC or on-prem environment, keeping data in the customer boundary while the vendor keeps centralized control and observability. We assess it because its install-into-customer-env, control-plane, and audited-execution model is a strong pattern for governing AI-driven execution.\nBlurb “Tensor9 is an enterprise any-prem platform. We enable AI vendors to deliver their product inside customer infrastructure.”\nSummary When to use: As a reference architecture for deploying AI and agents into customer-controlled environments, and for any-prem or private-SaaS delivery where data sovereignty is a blocker. Useful wherever AI agents process sensitive data that cannot leave the customer’s boundary.\nWhen to skip: When delivery is purely SaaS and no customer-boundary install is needed. Tensor9 is a deployment platform, not a product on its own.\nKey trade-offs:\nVendor keeps update velocity and centralized control while customer data stays in-boundary Control plane lives in vendor’s own account; appliances reach it via outbound-only mTLS tunnel Fully logged, authenticated day-2 operations (remote shell, one-off commands, secrets, restarts) Complements Kubernetes rather than replacing it Related garden notes: Agent Client Protocol (registering agent harnesses), Model Context Protocol.\nDetails Control Plane Model Tensor9’s control plane is provisioned in the vendor’s own account. It orchestrates the lifecycle of every customer appliance: compile origin stack to deployable artifact, deploy, then run day-2 operations. Appliances establish an outbound-only, mutual-TLS authenticated tunnel back to the control plane, so there is no inbound network access to customer environments. Every operational action is authenticated via a permissions model and fully logged, giving an audit trail of who did what and when.\nGovernance and Observability Tensor9 aggregates metrics, logs, and traces from all distributed deployments and forwards them to existing tools (Datadog, Prometheus). Only metadata leaves customer environments; customer data never touches the control plane. This makes it a template for delivering AI observability, governance, and policy enforcement where the data lives.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-08-06T00:00:00-04:00","tags":null,"title":"Tensor9"},"/garden/termdock":{"content":"Termdock. Is a terminal-centric AI development environment for macOS and Windows.\nBlurb The only terminal supporting drag-drop to curl, ffmpeg, git + 10+ workspaces with independent Git status. Built-in Monaco Editor, Git Blame, AST analysis. Works offline.\nSummary Termdock targets developers juggling many repos and CLI tools at once. Each workspace gets its own root directory, terminal tabs, and Git state. You can split up to four terminals on one screen, drag files or images into any shell, and jump between projects without losing context.\nBuilt-in Tree-sitter search spans 13 languages for definitions, references, and call graphs without grep. The app also ships a Monaco editor, file tree with preview, Git blame and branch views, prompt templates, and session restore after restarts.\nv1.6 adds agent-controlled terminals through a local HTTP API with cursor-based output streaming. It also supports remote control via Discord and Telegram bots. Pricing is free according to the product schema on the site.\nDetails App Profile Field Value Category Tool / IDE Platforms macOS, Windows (site lists Linux as supported; homepage notes other platforms coming soon) License / price Free (per site schema) Upstream https://www.termdock.com/en GitHub https://github.com/termdock Releases https://github.com/termdock/termdock-issues/releases Core Capabilities Workspaces: 10+ independent project contexts with per-repo Git status. Layout: Multi-terminal splits, picture-in-picture, drag-and-drop paths into any CLI (curl, ffmpeg, git, etc.). Code intelligence: Tree-sitter AST search across 13 languages; built-in Monaco editor. Files and Git: File tree, preview, full-text search, Git visualization and blame. Agents: Local HTTP API for agent-controlled terminal sessions; Discord and Telegram remote control (v1.6). Local-first: Works offline; no plugin stack required per marketing. Fit and Contrast Choose Termdock when terminal-native multi-repo workflows matter more than an IDE shell. Compare Warp Terminal for a mature agentic terminal ADE with open-source client and third-party harness wrapping. Compare Cursor when LSP-heavy editing and our default agent stack should stay inside a VS Code fork. Roadmap items on the site include an AI work agent and deeper code search marked coming soon. ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Termdock"},"/garden/terraform":{"content":"Terraform. Quadrant:: Tool Ring:: #adopt URL:: https://www.terraform.io/ Category:: Related:: Pulumi We adopt it under Tool in the garden.\nBlurb Explore Terraform product documentation, tutorials, and examples.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Terraform"},"/garden/terragoat":{"content":"TerraGoat. We trial it under Tool in the garden.\nBlurb TerraGoat is Bridgecrew's \"Vulnerable by Design\" Terraform repository. TerraGoat is a learning and training project that demonstrates how common configuration errors can find their wa…\nSummary TerraGoat follows the Goat tradition (DVWA, Juice Shop) for cloud infrastructure: real IaC files with CIS, PCI, and provider-specific misconfigurations baked in.\nWhen to use: calibrating Checkov or other IaC scanners; teaching Policy as Code and DevSecOps gates on **Pull Request**s; demoing how misconfigurations reach prod if scans are skipped.\nWhen to skip: you cannot isolate a disposable cloud account; you need app-layer vuln labs only (use DVWA or Juice Shop); you lack budget to tear down AWS/Azure/GCP resources after the lab.\nCloud modules: separate Terraform roots under terraform/aws/, terraform/azure/, and terraform/gcp/. Use remote state (S3 backend documented upstream) and terraform destroy when finished.\nDetails Compared to Web Goat Projects Lens TerraGoat DVWA / Juice Shop Surface Terraform for AWS, Azure, GCP Deliberately vulnerable web apps Risk Real cloud resources in your account Local VM or container Scanner pairing Checkov, pre-commit, CI IaC gates Zed Attack Proxy (Zap), DAST Best fit IaC and cloud misconfiguration training OWASP-style app exploitation Deployment Guardrails Use a dedicated sandbox account or subscription with no production data. Set TF_VAR_environment to isolate multiple stacks in one account. Read upstream warnings before terraform apply: resources are intentionally insecure. Run terraform destroy when the lab ends; verify the account is clean. Scan the repo locally with Checkov before any apply to practice catch-before-deploy. Scan-First Lab Sketch 1 2 3 4 git clone https://github.com/bridgecrewio/terragoat.git cd terragoat checkov -d terraform/aws/ # Optional: apply in sandbox only after reviewing findings ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"TerraGoat"},"/garden/test-framework":{"content":"Under Code, Test Framework covers libraries and tools whose primary job is to author, organize, and run automated tests, runners, assertion libraries, mocks, and chart/template testers. This is not Unit Testing or Integration Testing themselves (those are Technique notes); it is the concrete software you pick to implement them.\nSibling subcategories: Language, Library, and Framework (application stacks). Tag an item here when the product exists mainly to support test execution (e.g. Helm Unittest for Helm Chart templates, TestContainer for integration dependencies) not when testing is a side feature of a larger platform.","garden":{"kind":"subcategory"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Test Framework"},"/garden/test-pyramid":{"content":"Test Pyramid is a technique we adopt in the garden.\nSummary Key points: is a testing technique that places a higher emphasis on smaller, faster, and more isolated testing (i.e., unit testing). It is the testing equivalent of shift-left and results in better overall quality and faster shipment. It should be a key component of your testing strategy, if not the entire strategy.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Test Pyramid"},"/garden/testcontainers":{"content":"TestContainer. Is a family of libraries that start real service dependencies (databases, brokers, etc.) in Docker containers during automated tests, then tear them down.\nBlurb Testcontainers is an opensource library for providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.\nSummary Tests declare dependencies in code (for example, a PostgreSQL or Redis container), Testcontainers pulls images, waits for readiness, exposes connection URLs to the test, and cleans up via its Ryuk sidecar. This replaces hand-rolled docker run scripts and reduces flakiness from shared test environments.\nDetails vs Container Structure Test: Container Structure Test validates image layout; Testcontainers runs services for application tests, complementary, not interchangeable. Strengths: realistic integration coverage, repeatable local and CI runs, large module catalog (Postgres, Kafka, LocalStack, etc.). Requirements: a container runtime on the host/CI agent (Docker or compatible); plan image caching and parallelism to keep pipelines fast. Trade-offs: slower than pure unit tests; not a substitute for contract tests or production-like staging environments. When to trial: microservices with external state, data access layers, or messaging, especially when mocks have drifted from production behavior. ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"TestContainer"},"/garden/testkube":{"content":"Testkube is a Kubernetes-native platform that orchestrates existing test tools inside your clusters. We assess it under Tool for cluster-local runs decoupled from CI runners.\nBlurb The Open Testing Platform for AI-Driven Engineering Teams\nSummary What it is: Control plane plus in-cluster agents. Agents run your existing suites (k6, Playwright, Cypress, and more) as Kubernetes workloads. Results sync to one dashboard.\nWhen to use: Tests should run where the app runs, across many clusters, without rewriting suites for each CI system. You want triggers from CI, GitOps, schedules, or Kubernetes events.\nWhen to skip: You lack Kubernetes, or a single CI pipeline already covers test execution and result visibility well enough.\nTrade-offs: Agents are open source and stay in your infra. The full control plane (dashboard, RBAC, SSO) is Pro/Enterprise. Testkube orchestrates tests; it does not author them for you (AI authoring is still emerging).\nSee also: CI-CD Tools, Kubernetes, Grafana k6, Playwright, Cypress.\nDetails Topic Notes Model Control plane + Agents; Agents can run standalone Execution Test Workflows as Kubernetes-native runs Integrations GitHub Actions, GitLab, Jenkins, Argo CD, webhooks, CDEvents Deployment Cloud or on-prem control plane; air-gapped supported References\nTestkube site Testkube docs kubeshop/testkube on GitHub ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-24T00:00:00-04:00","tags":null,"title":"TestKube"},"/garden/the-update-framework-tuf":{"content":"The Update Framework (TUF) is a specification for securing software update systems against repo and key compromise. We assess it when we ship or consume signed updates and need compromise-resilient metadata roles.\nBlurb A framework for securing software update systems. The Update Framework (TUF) maintains the security of software update systems, providing protection even against attackers that compromise the repository or signing keys.\nSummary What it is: Flexible roles, thresholds, and metadata so clients can detect freeze, mix-and-match, and key-compromise attacks. CNCF graduated. Implemented in libraries and used by package/update ecosystems.\nWhen to use:\nSituation Notes Custom update channel You control a client updater and need more than a single signing key Supply-chain hardening Layer TUF (or TUF-derived designs) under artifact distribution Evaluating in-toto / Sigstore stacks Understand TUF roles when designing verification When to skip:\nConsuming only vendor ecosystems that already embed TUF for you Simple HTTPS + checksum downloads with no threat model for repo compromise No bandwidth to operate root/targets/snapshot/timestamp key ceremonies Trade-offs: Strong threat model and production track record. Operational cost of key roles and metadata publishing is real. Prefer adopting an existing TUF-backed channel over inventing one.\nDetails Topic Notes Kind Specification + reference implementations Status CNCF graduated Related ideas Often discussed with in-toto, Sigstore, and package-manager security References\ntheupdateframework.io TUF specification ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"The Update Framework (TUF)"},"/garden/tilt":{"content":"Tilt. Is a local development tool for teams running services on Kubernetes.\nSummary Garden stance: We trial Tilt for our estate.\nKey points:\nTopic Notes Config Tiltfile at repo root; docker_build, k8s_yaml, local_resource Run tilt up starts UI at localhost; tilt down cleans up CI Tilt Cloud (optional) for shared dev env telemetry Practices: keep Tiltfiles in git next to manifests; limit live-update to interpreted languages; document memory/CPU for local clusters.\nReferences\nTilt documentation GitHub repository Details Topic Notes Config Tiltfile at repo root; docker_build, k8s_yaml, local_resource Run tilt up starts UI at localhost; tilt down cleans up CI Tilt Cloud (optional) for shared dev env telemetry Practices: keep Tiltfiles in git next to manifests; limit live-update to interpreted languages; document memory/CPU for local clusters.\nReferences\nTilt documentation GitHub repository ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Tilt"},"/garden/tla-plus":{"content":"TLA+ is Leslie Lamport’s formal language for modeling concurrent and distributed systems with mathematics. We assess it when control loops or protocols are small enough to specify, and design bugs would be expensive in code.\nBlurb TLA+ is a language for writing and checking “specifications”, or system designs. Once you have your specification, you can then test the specification directly for bugs, even before you’ve written any code.\nSummary What it is: Spec language based on set theory, first-order logic, and the Temporal Logic of Actions. Typical form is Init ∧ □Next ∧ Liveness. Checked with TLC (model checker) and TLAPS (proof system). Industry use at AWS, Microsoft, and others for protocol design.\nWhen to use:\nSituation Notes Small orchestration surfaces Reconcilers, consensus, failover with few CRDs or state machines Safety and liveness proofs Exhaustive check of interleavings humans miss Agent-driven infra Specs become harnesses agents and CI can re-run on every change When to skip:\nSpecs larger than the implementation (wrong abstraction level) Teams unwilling to learn math-style modeling Code already covered by property tests alone with no concurrent design risk Trade-offs: Catches design errors before code. Steep learning curve. Best paired with PlusCal for algorithm-shaped models, then raw TLA+ for refinement and fairness.\nDetails Tools Tool Role TLC Explicit-state model checker TLAPS Machine-checked proofs TLA Toolbox / VS Code extension IDE for specs and tools Fit With Small Surfaces TLA+ pays off when the orchestration surface is small enough to model. Examples: a few custom resources, a short state machine, or a consensus protocol. Pair TLC with property tests in the implementation language so the same invariants show up in CI.\nWorks well next to Modular Monolith designs and Kubernetes controllers whose reconcile loops stay finite and explicit.\nRelated Garden Items PlusCal - imperative algorithm language that translates to TLA+ Specification - subcategory for external specs and formal models Modular Monolith - architectures small enough to verify References Leslie Lamport TLA+ home Learn TLA+ FAQ (Blurb source) TLA+ community / tlapl.us (currently Lamport’s personal site; Foundation transition noted there) ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"TLA+"},"/garden/tool":{"content":"Tool is the garden quadrant for products you operate during delivery: editors, CI runners, scanners, observability platforms, and agent tools. These are systems you run or subscribe to, not repo dependencies (Code), runtime estates (Platform), or work patterns (Technique).","garden":{"kind":"category"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Tool"},"/garden/travis-ci":{"content":"Travis CI. Is a hosted continuous integration service tied closely to GitHub (historically the default for OSS .travis.yml builds).\nBlurb Travis CI is the most simple and flexible ci/cd tool available today. Find out how Travis CI can help with continuous integration and continuous delivery.\nSummary Role: Continuous Integration on push and pull request via .travis.yml; optional deploy stages for Continuous Delivery to cloud or static hosts.\nWhen to use: an existing Travis pipeline still runs and migration cost exceeds near-term value; enterprise Travis.com matches compliance or billing requirements you cannot meet on Actions.\nWhen to skip: new repositories; need OIDC to cloud deploys, reusable workflows, org-wide templates, or monorepo path filters (GitHub Actions and GitLab CI cover this better).\nNot the same as: GitHub Actions (native GitHub workflows); Jenkins (self-hosted pet server, hold). Travis is hosted SaaS with YAML in-repo.\nDetails Topic Notes Config .travis.yml at repo root; language matrix, script, before_install, optional deploy History Travis CI Org (travis-ci.org) ended free public builds; Travis.com is the supported product Pricing Paid usage-based tiers only since 2021; no standing free tier for open source Secrets Encrypted variables in Travis settings; no first-class OIDC to AWS/GCP/Azure like Actions Runners Hosted Linux/macOS/Windows workers; concurrency limits depend on plan Integrations GitHub App or OAuth; Bitbucket and Perforce on enterprise Server tier Migration off Travis: use GitHub Actions Importer. For a dry-run, or hand-port matrix jobs to .github/workflows/*.yml. Remove .travis.yml and rotate any secrets that lived only in Travis.\nPractices for legacy repos: pin base images; avoid long-lived cloud keys in Travis vars; set a migration deadline when credits or contract terms end.\nReferences\nTravis CI documentation Migrating from Travis CI to GitHub Actions ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Travis CI"},"/garden/tree-sitter":{"content":"tree-sitter. We assess it under Code in the garden.\nSummary Unlike batch parsers that assume valid input, tree-sitter is designed for interactive use: partial parses stay useful, grammars are maintained per language, and the same core powers syntax highlighting in Neovim, Helix, GitHub, and Zed. You get fast, error-tolerant CSTs suitable for highlighting, structural search, and simple transforms.\nWhen requirements grow into cross-node semantic graphs (data flow, control flow, security models), add tree-sitter-graph on top. For one language and a stable compiler front-end, a native parser or generator like ANTLR may be simpler than adopting the tree-sitter ecosystem.\nDetails Strengths: incremental updates, robust parsing of incomplete code, broad grammar catalog, bindings for Rust/C/Node/Wasm/Python/Go and more. Workflow: define or reuse a grammar → generate parser → run queries (pattern match on syntax nodes) in your tool. Typical uses: editor syntax highlighting, code outline/folding, lightweight lint rules, test runners that need structure-aware selection. Heavier uses: static analysis pipelines, often paired with tree-sitter-graph (CodeQL-style stacks). Category: Code / Library, a dependency you link, not a standalone service. Pair with: tree-sitter-graph when CST queries are not enough; contrast language-specific compiler APIs when you only target one language. ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"tree-sitter"},"/garden/tree-sitter-graph":{"content":"tree-sitter-graph. Is a Rust library and CLI that layers a graph DSL on top of tree-sitter parse trees, turning syntax nodes into arbitrary graphs with nodes, edges, and attributes.\nBlurb Construct graphs from parsed source code. Contribute to tree-sitter/tree-sitter-graph development by creating an account on GitHub.\nSummary tree-sitter gives you fast, incremental concrete syntax trees; tree-sitter-graph adds stanzas, tree-sitter query patterns plus statements that emit graph nodes, link edges, and attach attributes. That separation lets tools map many languages through shared grammar work while encoding language-specific semantics in the graph rules (control flow, data flow, name resolution, etc.).\nTypical consumers are security analyzers, linters with cross-file models, and language tooling that outgrows ad hoc AST visitors. You need comfort with tree-sitter queries and the graph DSL before committing; most application teams should depend on a finished analyzer rather than embed this directly.\nDetails Depends on: tree-sitter parsers and grammars for each language you target. Delivery: Rust crate with optional CLI (cargo install --features cli tree-sitter-graph); graphs can serialize to JSON for downstream tools. Mental model: syntax nodes (from the parse) vs graph nodes (your derived model); stanzas bridge the two. When to skip: one-off scripts, simple formatters, or projects where tree-sitter alone plus hand-written visitors is enough. Pair with: tree-sitter (parser foundation); lives under Library in the Code category. ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"tree-sitter-graph"},"/garden/trino":{"content":"Trino. Is the community fork of Presto: a distributed SQL query engine for interactive analytics across lakes, warehouses, and RDBMS sources.\nSummary What it is: Coordinator plus workers, connector plugins (Iceberg, Delta, Hive, PostgreSQL, etc.), ANSI SQL with MPP execution.\nWhen to use: Query data in object storage without copying everything into one warehouse; multi-source joins for analytics teams.\nWhen to skip: Simple single-warehouse BI. Ops team cannot run another stateful cluster.\nKey features: Fault-tolerant execution, dynamic filtering, role-based access via connectors, Kubernetes Helm charts.\nDetails Topic Notes Contrast Presto (hold) for legacy PrestoDB only BI First-class datasource for Apache Superset, Metabase, Redash References\nTrino documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Trino"},"/garden/turboquant":{"content":"TurboQuant is an online, data-oblivious vector-quantization technique for preserving geometry at low bit widths. We assess it for compact vector search and KV-cache compression without data-specific codebook training.\nSummary When to use:\nHigh-dimensional vectors must fit within a tight memory budget. Data arrives online and a separate quantizer-training phase is impractical. Inner-product or nearest-neighbor quality matters after compression. An implementation such as TurboVec makes the technique operationally accessible. When to skip:\nExact vectors fit comfortably in memory and compression adds no operational value. The workload is low-dimensional and has not been validated against representative data. The chosen runtime lacks a mature TurboQuant implementation. Trade-offs: The paper provides strong distortion bounds and reports near-zero indexing time. Real systems still need optimized kernels, persistence, filtering, deletion, and careful recall benchmarks. FAISS remains a practical comparison baseline.\nDetails Core Idea TurboQuant applies a random rotation to each vector. The rotated coordinates follow a concentrated Beta distribution and become nearly independent in high dimensions. A precomputed Lloyd-Max scalar quantizer can then encode each coordinate without learning a dataset-specific codebook.\nThe MSE-oriented form minimizes reconstruction distortion. The inner-product form adds a 1-bit Quantized Johnson-Lindenstrauss transform over the residual. This second stage removes the inner-product bias introduced by an MSE-only quantizer.\nClaimed Properties Property Notes Online No corpus-specific codebook training or indexing pass Data-oblivious Quantizer does not depend on the input distribution Near-optimal Proven distortion within a small constant factor of the information-theoretic lower bound Accelerator-friendly Rotation and scalar quantization map to vectorized execution Dual use KV-cache compression and nearest-neighbor search The paper reports a distortion gap of about 2.7 times the lower bound. It also reports quality neutrality at 3.5 bits per channel for tested KV-cache workloads. These are research results, not universal production guarantees.\nRelationship to Garden Items TurboVec applies TurboQuant to a Rust vector index with Python bindings. FAISS provides mature PQ and ANN baselines for recall, speed, and memory comparisons. References TurboQuant paper ICLR 2026 OpenReview Google Research overview ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"TurboQuant"},"/garden/turbovec":{"content":"TurboVec is a Rust vector index with Python bindings built on Google Research TurboQuant. We assess it for local RAG where memory, online ingest, and no separate train step matter.\nBlurb A 10 million document corpus takes 31 GB of RAM as float32. turbovec fits it in 4 GB - and searches it faster than FAISS.\nSummary What it is: Local approximate nearest-neighbor index. Implements data-oblivious quantization so you add vectors without a codebook train or rebuild as the corpus grows. Ships as pip install turbovec and cargo add turbovec. Drop-in stores exist for LangChain, LlamaIndex, Haystack, and Agno.\nWhen to use:\nSituation Notes Local or air-gapped RAG Keep embeddings on-box; pair with open embedding models and Ollama Memory-bound corpora Roughly 8x smaller than float32 for the headline 10M-doc example Growing indexes Online ingest; no PQ-style train/rebuild cycle Hybrid retrieval search(..., allowlist=...) filters inside the SIMD kernel When to skip:\nManaged multi-tenant vector DBs with ops already paid for Workloads that already trust FAISS PQ FastScan and need its exact toolchain Needs beyond a local index (distributed serving, rich metadata query language) Trade-offs: Strong ARM speed vs FAISS IndexPQFastScan in project benches; x86 is closer and sometimes slightly behind on 2-bit. Young solo-maintained project; watch API and release stability before betting a production path on it. FAISS remains the usual baseline to beat.\nDetails Stack Fit Piece Notes Core Rust crate + Python bindings (maturin) Algorithm TurboQuant (ICLR 2026) Bit widths 2-bit and 4-bit scalar quantization after random rotation APIs TurboQuantIndex, IdMapIndex (stable external ids + O(1) remove) Persistence .tv / .tvim write/load How It Differs From Classic PQ TurboQuant rotates vectors so coordinates follow a known marginal, then quantizes with a Lloyd-Max codebook derived from that math. No data-dependent codebook training. TQ+ adds a light per-coordinate calibration on first add. Length renormalization corrects inner-product bias at score time.\nIntegrations LangChain: replaces in-memory vector store (turbovec[langchain]) LlamaIndex: replaces SimpleVectorStore (turbovec[llama-index]) Haystack: replaces in-memory document store (turbovec[haystack]) Agno: replaces LanceDB-backed store (turbovec[agno]) References GitHub: RyanCodrai/turbovec PyPI: turbovec TurboQuant paper (arXiv:2504.19874) ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"TurboVec"},"/garden/typescript":{"content":"TypeScript. Is a typed superset of JavaScript that compiles to plain JS.\nBlurb TypeScript extends JavaScript by adding types to the language. TypeScript speeds up your development experience by catching errors and providing fixes before you even run your code.\nSummary What it is: Microsoft-maintained language that extends JavaScript with types, interfaces, enums, and generics. The tsc compiler (or Bun / esbuild / swc in transpile-only mode) emits JavaScript. Strict mode catches null, implicit any, and API drift at build time.\nWhen to use: Large frontends or libraries where static types clearly reduce defect rate. Monorepos with many contributors and a disciplined DevSecOps / Shift Left dependency review. Public APIs that ship .d.ts contracts to consumers already on the JS stack.\nWhen to skip: One-off scripts, CLIs, and glue where build and type overhead exceed benefit. Latency-sensitive services where interpreted JS runtime cost matters. Teams that want a small dependency footprint and cannot absorb registry risk.\nBefore you commit: map transitive npm dependencies, lockfile policy, and audit cadence. TypeScript does not remove supply-chain risk; it often expands it via tooling packages. Benchmark hot paths on Node.js or Bun, not just compile-time ergonomics.\nOutput: always JavaScript. Pick a target (ES2022, etc.) and module format (ESM vs CommonJS) to match your Node.js or bundler pipeline.\nDetails Topic Notes Config tsconfig.json controls strictness, paths, and emit Gradual adoption allowJs and checkJs migrate legacy JavaScript incrementally Tooling VS Code and most editors use the language service for autocomplete and refactors Runtime Types erase at compile time; no TypeScript VM exists Relationship to JS: valid JavaScript is valid TypeScript (with any where types are omitted). New syntax (e.g. interface, type) does not exist at runtime. Plain JavaScript remains hold for new work; TS is not a free upgrade.\nRisks to weigh\nRisk Notes Package sprawl tsc, eslint plugins, framework typings, and test stacks balloon node_modules Supply chain public registry incidents; pin lockfiles, audit in CI, prefer verified publishers Runtime speed still JS at execution; CPU-bound work loses to GoLang and similar Alternatives: plain JavaScript with JSDoc for light typing without a compile step. GoLang or Python when the problem does not need a browser or npm ecosystem.\nReferences\nTypeScript handbook TypeScript playground TypeScript GitHub repository ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"TypeScript"},"/garden/unit-testing":{"content":"Unit testing verifies the smallest testable pieces of software in isolation. We adopt it as the default fast feedback layer. Process defaults to Spec-Driven Development (SDD); TDD and BDD are hold predecessors whose testable cases still belong in the spec.\nSummary What it is: Automated checks on functions, classes, or modules with controlled dependencies (fakes, stubs, mocks). Fast, deterministic, and owned by the same team that writes the code.\nWhen to use:\nSituation Notes Business logic and pure functions Highest ROI; few collaborators Regression safety on refactors Lock behavior before structural change Agent-written code SDD spec + units catch drift early Cases called out in the SDD spec Implement the TDD/BDD content as real tests When to skip (or de-emphasize):\nBehavior only meaningful across process or network boundaries (use Integration Testing) UI chrome with no logic (prefer fewer brittle tests) Prototypes you will throw away the same day Trade-offs: Too many mocks hide integration bugs. Too few units leave slow suites as the only safety net. Aim for a pyramid: many units, fewer integrations, sparse end-to-end.\nRelated practices: Spec-Driven Development (SDD) (adopt) owns intent and includes the agent. TDD / BDD (hold) describe the lineage; their plain-text behaviors and cases should appear in the SDD spec, then land as units here.\nDetails Related practice Role Spec-Driven Development (SDD) Spec intent (incl. agent); units verify logic TDD (hold) Historical test-first loop; cases still belong in the spec BDD (hold) Historical plain-text behavior; scenarios still belong in the spec Integration Testing Verify seams units intentionally fake References\nUnit testing (Wikipedia) ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Unit Testing"},"/garden/up-time-monitoring":{"content":"Up-time Monitoring\nUp-time monitoring measures whether a system is reachable and behaving acceptably from a user’s perspective. Raw uptime percentage is a lagging summary; we adopt measuring the underlying SLIs (latency, errors, saturation) via OpenTelemetry and Monitoring tools, then derive uptime for SLAs and Incident Management.\nSummary What it is: Synthetic probes, RUM, and SLO-based alerts that answer “can customers use the product?” rather than “is the host up?”\nWhen to use: Public services with SLAs; status pages (Upptime); synthetic checks (Grafana k6, Kuberhealthy) complementing metrics.\nWhen to skip: Batch-only internal jobs with no user-facing window (monitor job success instead).\nPractices: Define SLOs on user journeys; avoid host-only ping alerts in cloud-native estates; page on burn rate, not single blips.\nDetails Approach Garden items Public status Upptime on GitHub Actions Load / synthetics Grafana k6 In-cluster checks Kuberhealthy Metrics + SLOs Prometheus, Grafana, OpenTelemetry ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Up-time Monitoring"},"/garden/upptime":{"content":"Upptime. Is an open source uptime monitor that runs on GitHub Actions and stores status in the repo itself.\nSummary Garden stance: We assess Upptime for our estate.\nKey points:\nTopic Notes Deploy Fork template repo, enable Actions and Pages, configure targets in config YAML Data model Commit history and issues as the incident record; graphs generated in-repo Auth Public probes only; secrets limited to GitHub token scopes for Actions Practices: Useful as a reference pattern for “monitoring as code” on GitHub. Pair with real Grafana alerting when downtime must wake an on-call rotation.\nReferences\nUpptime repository Upptime documentation Details Topic Notes Deploy Fork template repo, enable Actions and Pages, configure targets in config YAML Data model Commit history and issues as the incident record; graphs generated in-repo Auth Public probes only; secrets limited to GitHub token scopes for Actions Practices: Useful as a reference pattern for “monitoring as code” on GitHub. Pair with real Grafana alerting when downtime must wake an on-call rotation.\nReferences\nUpptime repository Upptime documentation ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Upptime"},"/garden/usql":{"content":"usql. Is a single binary that speaks the psql-style command line to many SQL and NoSQL databases.\nSummary What it is: Go-based CLI with \\ meta-commands, variables, syntax highlighting, context completion, and optional copy between connections.\nWhen to use: daily ad hoc queries across heterogeneous data stores; jump hosts or bastion workflows where installing every native client is painful; scripting with -c and -f like psql.\nWhen to skip: deep admin features tied to one vendor (e.g. \\copy parity gaps); GUI-first analysts; teams standardized on a single cloud console.\nCovers: relational engines (Postgres, MySQL, SQL Server, SQLite, Oracle) plus Cassandra, ClickHouse, MongoDB, Redis, and more (see upstream database support table).\nDetails Feature Notes Install brew install usql or release binaries from GitHub Connect usql pg://..., usql mysql://..., DSN-style URLs Copy \\copy between databases (cross-engine data moves) Output CSV, JSON, vertical, HTML table formats Practices: store credentials in env vars or .usqlrc, not on the command line in shell history; test \\d / describe behavior per engine before relying on it in runbooks.\nReferences\nusql README Database support matrix ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"usql"},"/garden/vagrant":{"content":"Vagrant manages disposable VM development environments from a Vagrantfile. We adopt it when the work needs a real guest OS, not only containers.\nBlurb Development Environments Made Easy. Vagrant is the command line utility for managing the lifecycle of virtual machines. Isolate dependencies and their configuration within a single disposable and consistent environment.\nSummary What it is: HashiCorp CLI over providers (VirtualBox, VMware, Hyper-V, libvirt, and others). Boxes plus provisioning (shell, Ansible, etc.) give portable teammate parity.\nWhen to use:\nSituation Notes Full OS / kernel needs Drivers, systemd, nested virt, Windows guests Match prod-ish VMs Closer than Docker alone for some stacks Teach / demo infra Repeatable vagrant up labs Second-touch practice Provision guests after the box boots When to skip:\nApp already runs cleanly in containers or Dev Containers Team has no hypervisor capacity (ARM/host friction, corporate lockdown) Cloud ephemeral VMs or Codespaces already solve the workspace Trade-offs: Strong isolation and realism. Heavier than containers in RAM, disk, and boot time. Keep adopt for VM-shaped problems; prefer Docker for most app microservices.\nDetails Concept Notes Box Packaged base image from a catalog or custom build Vagrantfile Declarative machine, network, synced folders, provisioners vagrant up Create and configure the guest References\nHashiCorp Vagrant docs vagrantup.com ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Vagrant"},"/garden/vim":{"content":"Vim is the ubiquitous modal text editor shipped as vi on many UNIX systems. We adopt its stock configuration and basic bindings as a portable operational baseline.\nBlurb Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient.\nSummary Use the basic vi/Vim command set for reliable editing on servers, containers, recovery shells, and unfamiliar machines. Keep the configuration unmodified so the same muscle memory works wherever vi is available.\nDo not recreate a full IDE through Vim plugins when Cursor or Emacs already covers personal development. The value here is universal availability and baseline proficiency, not a customized daily-driver environment.\nDetails Upstream: https://www.vim.org/ Core model: Modal editing through normal, insert, visual, and command-line modes Estate pattern: Leave vi unmodified and rely on bindings available nearly everywhere Required competence: Navigate, insert, delete, search, save, and exit without local configuration Availability: Commonly present as vi or vim on UNIX and macOS toolchains Primary editors: Emacs or Cursor for personal development Fit: Tool / IDE when primary; otherwise a ubiquitous CLI utility ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"Vim"},"/garden/visa-vulnerability-agentic-harness":{"content":"Visa Vulnerability Agentic Harness. We assess it under Tool in the garden.\nBlurb Visa Vulnerability Agentic Harness. Contribute to visa/visa-vulnerability-agentic-harness development by creating an account on GitHub.\nSummary VVAH targets the triage bottleneck in AI-assisted vulnerability management, not raw discovery alone. Its primary effectiveness metric is Mean Time to Adapt (MTTA): time from AI-discovered weakness to a validated fix in production.\nWhen to try: you own or have explicit permission to scan a repo; you want multi-model agentic SAST with structured triage artifacts; you already emit or consume SARIF in DevSecOps pipelines.\nWhen to skip: you need deterministic, rule-based gates only (prefer Conftest or traditional SAST); you cannot review LLM-generated triage candidates; you lack budget for token-heavy multi-stage runs.\nInstall: Python >= 3.10, pip install . or pipx install . yields the vvaharness CLI. Default profile uses the Claude Code CLI (claude login); Anthropic SDK and OpenAI backends are also supported.\nKey commands:\n1 2 3 vvaharness doctor vvaharness estimate --repo /path/to/target vvaharness scan --repo /path/to/target --application-id 12345 Details Pipeline Three phases, nine stages:\nPhase Stages Purpose Discovery and Modeling S1-S3 Attack surface mapping, threat modeling, hunting plan Deep Dive and Verification S4-S6 Multi-lens research, policy gates, adversarial verification Synthesis, Chaining, and Reporting S7-S9 Deduplication, chain construction, SARIF emission Each stage is a composable skill (attack surface mapper, AppSec threat modeler, language/crypto/logic/access-control lenses, adversarial reviewer, exploit strategist). See the repo docs/architecture.md and docs/SKILLS.md.\nDesign choices Threat modeling before deep analysis to focus the attack surface. Multi-agent deterministic voting on SDK and OpenAI backends to reduce false positives. Structured triage artifacts to compress the path from AI finding to actionable report. Output Per target, under <target>/security-scan/:\n<module>_<ts>_report.md with findings and a dropped-findings appendix <module>_<ts>_report.sarif (SARIF 2.1.0) <module>_<ts>_errors.jsonl for non-fatal errors A run_manifest.json records tool version, model roles, config hash, target git SHA, and timing.\nLimitations Findings are LLM-generated triage candidates, not confirmed vulnerabilities. Human review is required. Runs are non-deterministic. Two scans may differ. Token use is high. Run vvaharness estimate and tune per-stage max_budget_usd knobs. The tool runs with elevated privilege. Scan only trusted repos with authorized operators. Contrast Daybreak (assess): OpenAI-hosted cyber-defense platform with Codex Security harness. VVAH is self-hosted, multi-provider, and open source. Codacy (assess): multi-repo quality dashboards with traditional SAST aggregation. VVAH adds agentic reasoning and exploit-chain validation. Conftest (trial): deterministic Rego policy on IaC. Complementary, not a substitute for VVAH’s application-source analysis. Agent integration vvaharness setup --install-agents drops operating instructions for Claude Code, Copilot, Gemini CLI, and cross-tool AGENTS.md without overwriting existing files.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Visa Vulnerability Agentic Harness"},"/garden/visual-studio-code":{"content":"Visual Studio Code is Microsoft’s extensible code editor and the upstream foundation for many editor products. We hold it as a direct daily driver because Cursor replaced it in this estate.\nBlurb The open source AI code editor\nSummary Use Visual Studio Code when a team needs its extension ecosystem, Remote Development stack, or Microsoft integrations without adopting Cursor. For this estate, start new personal work in Cursor unless compatibility requires stock VS Code.\nVS Code remains capable and actively developed. The hold rating reflects local replacement, not product deprecation. Its familiar interface and extensions made the transition from Atom easier and later carried into Cursor.\nDetails Upstream: https://code.visualstudio.com/ Source: https://github.com/microsoft/vscode Core model: Electron editor with extensions, language servers, debugging, terminals, and remote development Estate status: Former daily driver after Atom; superseded by Cursor Fit: Tool / IDE as an editor platform Contrast: Cursor adds the preferred agent workflow while retaining a familiar VS Code-derived interface ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-23T00:00:00-04:00","tags":null,"title":"Visual Studio Code"},"/garden/warp-agent":{"content":"Warp Agent. Is Warp’s built-in multi-model coding agent.\nSummary Warp Agent drives an interactive agent loop in your repo: attach files, images, and URLs; run shell commands; review diffs inline; and track task lists across sessions. It supports multi-agent management, voice input, web search, and proactive fix recommendations from terminal output.\nUse it when you already live in Warp Terminal or need the same harness locally and in Oz cloud runs. Oz can also run Claude Code and Codex as alternate harnesses under one control plane. Warp Agent is distinct from third-party CLIs that Warp hosts with a richer UI shell.\nDetails Surfaces: embedded in Warp Terminal; cloud runs via Oz with one-click session join. Models: multi-model routing including frontier and open-weight options per Warp docs. Context: codebase indexing, Warp Drive rules, MCP servers, and WARP.md project steering files. Controls: autonomy settings, command allowlists, team permission policies, and audit logs on Oz. Fit: Tool / AI Agent, Warp’s native repo-bounded coding agent. Contrast: cursor-agent for our adopted Cursor stack; Claude Code and Codex when vendor billing or harness quality is the deciding factor. ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Warp Agent"},"/garden/warp-terminal":{"content":"Warp Terminal. Is a Rust-based agentic development environment (ADE) born from the terminal.\nSummary Warp Terminal is the desktop client for Denver Technologies’ Warp stack. You get terminal mode and agent mode in one universal input, vertical session tabs, LSP-backed editing, and interactive diff review. It hosts the built-in Warp Agent and can wrap third-party CLI agents such as Claude Code, Codex, OpenCode, and Gemini CLI with richer UI, notifications, and context sharing.\nChoose it when you want agents inside a fast terminal shell rather than a VS Code fork. It pairs with Oz for cloud agents, schedules, triggers, and local-to-cloud handoff. The client is open source (warpdotdev/warp, AGPLv3) as of Apr 2026. Oz and Warp Drive backend remain proprietary.\nDetails Install: https://www.warp.dev/download (macOS, Linux, Windows); Homebrew, winget, and distro packages per docs. Surfaces: terminal commands, agent conversations, file tree, inline code review, cloud-agent session join. Third-party agents: run Claude Code, Codex, OpenCode, and Gemini CLI inside Warp’s agent toolbelt. Team layer: Warp Drive for shared workflows, rules, notebooks, and MCP configs across local and cloud agents. Fit: Tool / IDE, agentic development environment with terminal form factor. Contrast: Cursor for our default VS Code-based editor stack; plain iTerm2 or Ghostty when you want a terminal without an ADE. ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Warp Terminal"},"/garden/wasm":{"content":"WebAssembly (Wasm) is a portable binary instruction format for a stack-based VM. We trial it as a compile target for near-native code in browsers, edge, and embeddable runtimes.\nBlurb WebAssembly (abbreviated Wasm) is a binary instruction format for a stack-based virtual machine. Wasm is designed as a portable compilation target for programming languages, enabling deployment on the web for client and server applications.\nSummary What it is: Open W3C standard. Size- and load-efficient binary format aiming for near-native speed. Sandboxed; works with JavaScript on the web and in non-web embeddings (Node.js, edge workers, databases).\nWhen to use:\nSituation Notes Heavy browser compute Port Rust/C++/Go hot paths into the page Portable plugins Ship one binary across hosts that embed Wasm Edge / serverless Small cold start vs full containers in some platforms Embedded analytics Engines like DuckDB ship Wasm clients When to skip:\nSimple UI and I/O-bound Node services (plain JS/TS is enough) Need for full OS syscalls without WASI or host glue Teams without a language that compiles cleanly to Wasm Trade-offs: Great portability and sandboxing; debugging and host ABI complexity remain. Not a replacement for native services when you control the OS.\nDetails Ecosystem Notes Topic Notes Standards W3C Community Group and Working Group Text format Human-readable for debug and teaching Hosts Browsers, Node, Wasmer/Wasmtime, many embedders Languages Rust, C/C++, Go, and others compile to Wasm References webassembly.org MDN WebAssembly ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"WASM"},"/garden/webgoat":{"content":"WebGoat ships guided OWASP lessons with hints, fix-it workflows, and a companion mail/file server (WebWolf). We trial it for secure-coding labs and classroom-style drills.\nBlurb WebGoat is a deliberately insecure web application maintained by OWASP designed to teach web application security lessons.\nSummary What it is: A Java/Spring Boot training app (port 8080) plus WebWolf (port 9090) for email and file scenarios. Source and releases: github.com/WebGoat/WebGoat.\nWhen to use:\nTeaching OWASP-class flaws with step-by-step lesson text Java and Spring Boot secure-coding drills Pairing Burp or Zed Attack Proxy (Zap) with a localhost-bound lab Complementing CTF-style apps like Juice Shop with a classroom curriculum When to skip:\nYou need a modern SPA e-commerce narrative (prefer Juice Shop) You want the lightest PHP stack (prefer DVWA) You need a Django/Python lab (prefer PyGoat) You cannot disconnect or isolate the host while the lab runs Stack: Java/Spring Boot (JDK 25 for current source builds per upstream README). Official paths include Docker (webgoat/webgoat), a browser-desktop image (webgoat/webgoat-desktop), and standalone JAR releases.\nDetails Lesson Model Lessons group into categories (for example injection, auth, client-side, general, challenge). Instructors can trim the menu with EXCLUDE_CATEGORIES and EXCLUDE_LESSONS environment variables when running the JAR or Docker image. Default configuration binds to localhost to limit exposure.\nWebGoat and WebWolf Service Default port Role WebGoat 8080 Main lesson application at /WebGoat/ WebWolf 9090 Companion mail and file server at /WebWolf/ Some lessons require both services and matching timezone (TZ env var). For proxy work, upstream docs recommend custom host entries (for example www.webgoat.local) instead of bare 127.0.0.1.\nCompared to Sibling Labs Lens WebGoat Juice Shop DVWA PyGoat Maintainer OWASP OWASP Community Community UX Guided lesson UI CTF scoreboard SPA Minimal module menu Django challenge modules Stack Java, Spring Boot Node.js, Angular PHP, Apache Django, Python Best fit Classroom lesson path Modern API/SPA drills Web vuln fundamentals Python/Django drills Deployment Guardrails Disconnect from the internet or use host-only networking while the lab runs (upstream warning). Bind to 127.0.0.1 unless you deliberately need LAN access for a class. Prefer official Docker images or release JARs over stale third-party bundles. Reset lesson progress between sessions when you need repeatable teaching flows. Use only on systems you own or have explicit authorization to test. Install Sketch 1 2 3 4 5 6 7 8 # Docker (WebGoat + WebWolf on localhost) docker run -it -p 127.0.0.1:8080:8080 -p 127.0.0.1:9090:9090 webgoat/webgoat # WebGoat: http://127.0.0.1:8080/WebGoat/ # WebWolf: http://127.0.0.1:9090/WebWolf/ # Standalone JAR (see releases page for current artifact name) export TZ=America/New_York java -Dfile.encoding=UTF-8 -jar webgoat-2023.8.jar For a full in-browser desktop with tools preinstalled, upstream documents webgoat/webgoat-desktop on port 3000.","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-07T00:00:00-04:00","tags":null,"title":"WebGoat"},"/garden/which-key-nvim":{"content":"which-key.nvim shows a popup of available keybindings as you type in NeoVim. We trial it as the command palette in the editor config.\nBlurb WhichKey helps you remember your Neovim keymaps, by showing available keybindings in a popup as you type.\nSummary Use which-key to make the leader-based keymap set discoverable, especially during the NeoVim ramp when muscle memory is still forming. It reads the desc attribute of keymaps, so little extra config is needed.\nDetails Upstream: https://github.com/folke/which-key.nvim Role: keybinding help popup in the NeoVim stack Requirements: NeoVim 0.9.4+ Related: NeoVim, Telescope.nvim ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-09-18T00:00:00-04:00","tags":null,"title":"which-key.nvim"},"/garden/wireguard":{"content":"Wireguard. Bills itself as a fast, modern VPN solution.\nSummary Garden stance: We assess Wireguard for our estate.\nKey points: We are glad it exists. However, it is not a wide use case.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Wireguard"},"/garden/work-queue":{"content":"Work Queues is a technique we assess in the garden.\nSummary Key points: decouple producers and consumers so tasks can be processed asynchronously, retried, and scaled independently. They pair well with the Inbox Pattern when you need at-least-once delivery without building a full workflow engine. Adopt a mature broker (or managed queue) before inventing your own persistence layer.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Work Queues"},"/garden/workflow":{"content":"Workflow is a technique we assess in the garden.\nSummary Key points: is the orchestration of multi-step business or technical processes, often with state, retries, timeouts, and human approvals. In software it maps to engines such as Dagu or to staged CI-CD Tools pipelines. Model workflows explicitly when coordination across services or teams is the bottleneck.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Workflow"},"/garden/yaml":{"content":"YAML. Is a more human readable format which is fully API compatible with JSON.\nSummary Garden stance: We adopt YAML for our estate.\nOverview: There are some syntactic sugar like anchors and aliases and deep merging of maps which makes it easier to for humans to read. Additionally, many systems (like Helm) add a templating language on-top to make generating large amounts of YAML easier. And since Yaml is a subset of JSON, JSON Schema that can be used to validate complex YAML. Because of this ubiquity you should adopt it.\nDetail 1: The creators of YAML also created YAMLScript as a templating language, but it is not wide spread yet.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"YAML"},"/garden/yamlscript":{"content":"YAMLScript. (YS) is valid YAML, however, it is not API compatible with YAML.\nBlurb Programming in YAML. Contribute to yaml/yamlscript development by creating an account on GitHub.\nSummary Garden stance: We assess YAMLScript for our estate.\nOverview: All YS files must start with !yamlscript/v0/data, or a SheBang (#!). This will cause non-compliant parsers to fail, and instruct compliant ones on which language to use for the rest of the file.\nExample Data 1 2 3 4 !yamlscript/v0/data base =: 42 example: int(base) will result in\n1 example: 43 Example Program 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 #!/usr/bin/env ys-0 # Print the verses to \"99 Bottles of Beer\" # # usage: # ys 99-bottles.ys [<count>] defn main(number=99): each [n (number .. 1)]: say: paragraph(n) defn paragraph(num): | $bottles(num) of beer on the wall, $bottles(num) of beer. Take one down, pass it around. $bottles(num - 1) of beer on the wall. defn bottles(n): cond: n == 0 : 'No more bottles' n == 1 : '1 bottle' => : \"$n bottles\" main is the entry point and all command line arguments are split as function arguments. Builtins like each, say, cond take zero or more arguments and perform work given by their object definition. User defined functions are called using ().\nThis is a functional language and thus the program and object definitions are unordered. For example in cond the “=>” string indicates the default case; it is only placed last as a convention. This also means that all conditions have to be fully evaluated before the default case can be chosen. Not usually a issue, but something to be aware of.\nIn paragraph the | indicates that the next block is text. The $ in the block is interpolation.\nDetails Example Data 1 2 3 4 !yamlscript/v0/data base =: 42 example: int(base) will result in\n1 example: 43 Example Program 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 #!/usr/bin/env ys-0 # Print the verses to \"99 Bottles of Beer\" # # usage: # ys 99-bottles.ys [<count>] defn main(number=99): each [n (number .. 1)]: say: paragraph(n) defn paragraph(num): | $bottles(num) of beer on the wall, $bottles(num) of beer. Take one down, pass it around. $bottles(num - 1) of beer on the wall. defn bottles(n): cond: n == 0 : 'No more bottles' n == 1 : '1 bottle' => : \"$n bottles\" main is the entry point and all command line arguments are split as function arguments. Builtins like each, say, cond take zero or more arguments and perform work given by their object definition. User defined functions are called using ().\nThis is a functional language and thus the program and object definitions are unordered. For example in cond the “=>” string indicates the default case; it is only placed last as a convention. This also means that all conditions have to be fully evaluated before the default case can be chosen. Not usually a issue, but something to be aware of.\nIn paragraph the | indicates that the next block is text. The $ in the block is interpolation.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"YAMLScript"},"/garden/yq":{"content":"yq is a tool we adopt in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"yq"},"/garden/zabbix":{"content":"Zabbix. Is an enterprise-class open source monitoring platform for hosts, networks, applications, and services.\nBlurb Zabbix is an enterprise-class, open-source monitoring solution that makes network and application monitoring simple.\nSummary What it is: Server, agents or agentless checks, web frontend, alerting, and reporting over a central metadata database. Strong at SNMP, classic server metrics, and all-in-one ops teams that want one box.\nWhen to use: Existing Zabbix estate with templates and on-call runbooks already paid for. Heavy SNMP network and datacenter monitoring where migration cost dominates.\nWhen to skip: New SaaS or Kubernetes platforms where hosts are fungible and service-level signals matter more than per-host ping checks. Prefer Grafana with Prometheus, Loki, or cloud APIs, instrumented via OpenTelemetry.\nKey features: Triggers and escalations, discovery, maps, SLA reporting, distributed proxies, and a large template library.\nDetails Topic Notes Deploy Server plus DB (MySQL/Postgres/TimescaleDB), agents on hosts, optional proxies at the edge Data model Host-centric items, triggers, and graphs; service maps added over time but mindset stays host-first Auth Role-based UI access; LDAP and SSO in commercial tiers Practices: Treat Zabbix as legacy carry-forward, not the default observability stack. If you keep it, isolate read-only monitoring networks and cap alert noise with maintenance windows.\nReferences\nZabbix documentation Zabbix source ","garden":{"kind":"item","usefulness":"hold"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Zabbix"},"/garden/zanzibar":{"content":"Zanzibar is a technique we assess in the garden.\nSummary Key points: Google Zanzibar is a white paper on how Google handles fine-grained permissions authorization at scale. The first 2 sections of the document (Introduction & Model, Language, and API), and 1/2 of the third (Architecture and Implementation) are broadly applicable to anyone concerned about permissions. The rest of the document is really about Google’s scale, which is less universal. If you need to implement a permissions model then this is a good one.\nDetails The Permissions Schema Basically, the data schema is a simple tuple of <object>#<relation>@<user> that represents a relationship graph. The permissions are derived by asking if a certain relationship is explicit or implied by the graph. If yes, permission granted, if not then denied.\nThese tuples are stored in a database and evaluated dynamically at runtime. The creation of a tuple is effectively adding a permission, while removing one is like removing a permission.\n<object> is <namespace>:<id> but is basically anything that uniquely identifies something. This might be a virtual item like a report (report:5), or an abstract thing like a group (group:reporters). Basically anything that isn’t a user.\n<user> is a <user id> (e.g., 10) or an additional relation (<object>#<relation>), thus creating a graph. A user can be human id (email) + context (usually device) or a machine (service account).\n<relation> is a string identifier for the type of relationship between object and user.\nSome ways relationships are mapped:\nUser 10 is an owner of doc:readme - doc:readme#owner@10 User 11 is a member of group:eng - group:eng#member@11 Members of group:eng are viewers of doc:readme - doc:readme#viewer@group:eng#member doc:readme is in a folder:A - doc:readme#parent@folder:A#… #… is self-referential relationship. Basically it is a means to draw a graph between two objects instead between an object and a user. Eval First, we - as the implementors - would define a finite set of relations. Then we would add check(user, object, <relation>) to our code. The <relation> would be the hard or soft-coded part in the code. The user would come from the user session, and the object would be from the request.\nChecking of rules is then a matter of graph traversal, if you are able to map between a user and an object then the check passes, if not then it fails. For example, if you want to check(11, \"doc:readme\", \"viewer\") then the eval looks like this:\nDoes doc:readme#viewer@11 exist? No. Does doc:readme have any other relations that satisfy viewer? Yes, group:eng#member Does group:eng#member@11 exist? Yes. doc:readme#viewer@11 is true and can be cached. Defining a Namespace Schema A namespace is basically a rule set that dynamically implies relationships. Basically how to map relations.\nLet’s say you want to add a relationship “editor”. You previously had “owner” and “viewer”. Owner had edit but also had other abilities. To correct the overly broad use of owner first you update the code and fix any use of check(..., \"owner\") to check(..., \"editor\") for any case where you care if they can edit. Then you update the namespace schema to rewrite / remap relations:\n1 2 3 4 5 6 7 8 9 10 11 relation { name: \"editor\", userset_rewrite { union { child { _this {} } # all things explicitly given editor relation # Any that was explicitly given the owner relation is also an editor child { computed_userset { relation: \"owner\" } } } } } The above uses the _this which is the collection of all explicit tuples. Then it adds computed_userset which is a search pattern on the relationship owner. Effectively this means when someone checks for editor anyone that has the owner relation will return true as well. By doing this “editor” can be added having the same meaning as “owner” and then it can diverge as needed.\nDefining permissions Zanzibar is based on permissions so it is best to define fine-grained permissions vs coarse permissions like “admin”, “editor”, and “viewer”. For each object-type think about the permissions that make the most sense. For example for a bucket you’d likely want a separate permission for listing the content vs downloading a file.\nOnce the fine-grained permissions are defined it is time to update the code to use the fine-grained permissions. For example the service that serves GET /bucket/<name> would check for the <name>#list relation, while GET /bucket/<name>/<path> would check the <path>#download permission.\nThen we the namespace schema we can remap behaviors. Above for example makes owners also editors.\nRoles vs permissions Zanzibar is concerned about permissions, and evaluating those permissions. That is it. However, Roles and other higher level constructs are need by humans. They can be performed via relations, since it is a graph.\nThe recommended implementation is to define the fine-grain permission set in the namespace schema and check that in the code. Then in the app / service create a role or group style object.\nUse a tuple to bind a group to a relation on an object (e.g., doc:readme#viewer@group:eng#member).\nThen use another tuple to bind a user to a group (e.g., group:eng#member@11)\nGoogle Scale Internally Google uses a system that is implied by the whitepaper. But at their scale it would be impossible to check permissions using a vector check like explained in the paper. Instead they reduce all permissions to their simplest form. Checks - for access - are executed against the flattened dataset. This reduces the complexity of the check and also increases the speed and accuracy.\nThe process that does this reduction works in a similar way to what is explained in the Prodspec and Annealing paper.\nNew Enemy problem and Zookies Note\nThis is a problem because google has to cache relations in order to meet SLAs.\nA New Enemy problem happens when a person that previously had access is continued to be allowed even if the permission is removed (usually due to caching). A zookie (Zanzibar Cookie) is a low cost means to mark oldest cache that can be used.\nSetup:\nLex has reader to plans A Kara has admin to plans A Kara need to write info that Lex cannot see to Plan A If Lex sees the secret info he will do bad things New Enemy Scenario:\nLex reads plans A (seeding the cache) Kara removes Lex’s access to plans A Kara adds secret information to plan A Lex reads plans A (cache returns true) so has access Lex does bad things With Zookies:\nLex reads plan A (seeds cache with Zookie T1) Kara removes Lex’s access to plan A (Plan A now has Zookie T2) Kara adds secret information to plan A Lex reads plan A Check sees cache has Zookie T1, but document has Zookie T2 Cache is expunged Full path is recalculated Lex is denied access Reference https://authzed.com/blog/what-is-zanzibar/","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Zanzibar"},"/garden/zap":{"content":"Zap is Uber’s structured, leveled logging library for GoLang. We trial it when a service needs low-allocation JSON logs; not to be confused with OWASP Zed Attack Proxy (Zap).\nBlurb Blazing fast, structured, leveled logging in Go.\nSummary What it is: Strongly typed fields (zap.String, zap.Int, …) instead of printf-style formatting. Production configs favor JSON; development often uses console encoding.\nWhen to use:\nSituation Notes Existing Zap estate Stay consistent with Uber-style instrumentation Benchmark-sensitive services Low allocation vs heavier facades Team standard already Zap Config via zap.Config or zap.NewProduction() When to skip:\nGreenfield modern Go: prototype with stdlib log/slog first Mixing multiple logging facades in one binary Need only trivial stderr prints Trade-offs: Mature and fast. Another dependency and API to learn versus slog. Prefer one facade per service.\nDetails Topic Notes Category Code / Library (imported, not a standalone agent) Ops JSON lines into Loki, ELK, or CloudWatch; set level and sampling per env Disambiguation OWASP Zed Attack Proxy (Zap) is unrelated DAST tooling References\nuber-go/zap ","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-29T00:00:00-04:00","tags":null,"title":"Zap"},"/garden/zed-attack-proxy-zap":{"content":"Zed Attack Proxy (Zap) is a tool we trial in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.\nDetails https://www.stackhawk.com/ is a hosted solution","garden":{"kind":"item","usefulness":"trial"},"lastmodified":"2026-07-28T00:00:00-04:00","tags":null,"title":"Zed Attack Proxy (Zap)"},"/garden/zero-trust-network-architecture":{"content":"Zero Trust Network Architecture. (zero trust) assumes no implicit trust based on network location.\nSummary Core idea: without a trusted “inside” network, you must enforce safety on every request. Perimeter firewalls and VPNs that grant broad LAN access do not meet that bar.\nCommon pillars (NIST-style):\nPillar Practice Verify explicitly AuthN/AuthZ on every request; device and user posture Least privilege Just enough access for the task; time-bound where possible Assume breach Segment, log, and monitor; no silent lateral movement How we apply it: treat ZTNA as the default remote-access pattern. Pair Access on Demand for production and break-glass paths. Use Tailscale or similar L3 VPN only when an app truly needs network adjacency, not as the org-wide front door.\nNot the same as: ZTNA (product and broker pattern) or a single vendor SKU. This note is the reference architecture under Specification.\nDetails Origin: popularized in industry by Google’s BeyondCorp papers (see Garden Notes). NIST SP 800-207 documents a widely cited zero-trust architecture model. Identity: Single Sign-on (OIDC/SAML) is the front door; group and role claims feed Policy as Code and access brokers. Products (examples): Boundary (Hashicorp) for session-brokered infra access; commercial ZTNA suites when you need a managed broker fleet. Contrast: “castle and moat” VPNs, flat VPC peering, and long-lived SSH keys on bastions are hold patterns for new work. ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"Zero Trust Network Architecture"},"/garden/zoomeye":{"content":"ZoomEye. Is a cyberspace search engine from Knownsec’s 404 Team.\nSummary What it is: Continuous Internet scanner plus search UI, API, and official Python SDK (ZoomEye-python). Supports host (v4/v6) and web search modes, dork-style filters, facets, and exports.\nWhen to use:\nFill gaps that Western indexes miss in Chinese or Asian IP space Compare results across engines after M&A or cloud expansion into APAC Integrate via API or CLI in authorized pipelines Pair with tools like Nuclei that support ZoomEye as an uncover engine When to skip: Teams that have already standardized on one Western index. Investigations where query logging under Chinese jurisdiction is unacceptable OPSEC. Needs already covered entirely by Shodan without APAC-specific gaps. Orgs that forbid third-party recon data.\nAPI: freemium web tier with tight daily search limits on free accounts. Paid plans and API keys unlock programmatic search, larger page sizes, and automation.\nDetails Use case Notes Regional asset discovery country:\"CN\" and related filters for APAC exposure Service hunting port:, app:, service:, device: dorks Web exposure sub_type:web for crawled sites and components Version/CVE context ver: and product filters after advisories drop Automation Official SDK, CLI, and third-party wrappers Data sovereignty: Knownsec operates ZoomEye in China. Queries are logged. Treat sensitive hunts accordingly.\nEthics and policy: only query assets you own or have written permission to assess. Pair external recon with internal Shift Left scanning.\nAlternatives: Shodan remains our default global index. Censys leads on certificate pivots and enterprise ASM. Use ZoomEye when APAC coverage or a second opinion matters.\nReferences\nZoomEye ZoomEye documentation ZoomEye-python SDK ","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"ZoomEye"},"/garden/zsh":{"content":"Zsh is the interactive shell that has been the shell of choice since Apple made it the macOS default. We adopt it with the ohmyzsh configuration framework.\nBlurb Zsh is a shell designed for interactive use, although it is also a powerful scripting language.\nSummary Use Zsh as the login and interactive shell on Mac and Linux. Managing its config through the stowed dotfiles repo keeps every machine identical.\nPairs with ohmyzsh for plugins and themes and Stow for deployment.\nDetails Upstream: https://www.zsh.org Role: interactive shell in the TUI IDE stack Setup: ohmyzsh on top; config managed by Stow Related: ohmyzsh, Stow, Dotfiles in Version Control ","garden":{"kind":"item","usefulness":"adopt"},"lastmodified":"2026-09-18T00:00:00-04:00","tags":null,"title":"Zsh"},"/garden/ztna":{"content":"Zero Trust Network Access (ZTNA) grants application-level access based on identity and policy instead of traditional perimeter VPNs. We assess it under Technique in the garden.\nSummary When to use: Evaluate on a project when the capability clearly fits the requirement.\nWhen to skip: When a simpler alternative already covers the need.","garden":{"kind":"item","usefulness":"assess"},"lastmodified":"2026-07-02T00:00:00-04:00","tags":null,"title":"ZTNA"},"/linkindex/index.json":{"content":"","lastmodified":"0001-01-01T00:00:00Z","tags":null,"title":"Link Index"},"/resources/bash-tips-and-tricks":{"content":"The following are common useful tricks for Bash programming.\nDirectory Containing the Script Many times it can be useful to get the directory of where the script lives even if PWD is set to something else.\n1 2 3 APP_DIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )/.\" && pwd )\" source \"$APP_DIR/../lib/mylib.sh\" Iterate over lines in a file Warning\nThe file will need an empty line at the end or you will miss the last line.\n1 2 3 while IFS= read -r line; do echo \"$line\" done < file Iterate over command output Very similar to files command output can be treated like a file using the <() operator. This for example can be used to grep certain strings out, and or manipulate the line ahead of iterating.\n1 2 3 while IFS= read -r line; do echo \"$line\" done < <(ls .) Local OR and AND With the test ([) command\n1 2 3 4 5 6 7 if [ \"$a\" == 1 -a \"$b\" == 1 ]; then echo \"a AND b\" fi if [ \"$a\" == 1 -o \"$b\" == 1 ]; then echo \"a OR b\" fi With the build-in [[\n1 2 3 4 5 6 7 if [[ \"$a\" == 1 && \"$b\" == 1 ]]; then echo \"a AND b\" fi if [[ \"$a\" == 1 || \"$b\" == 1 ]]; then echo \"a OR b\" fi Logging Very often logging is useful, especially in bash. However, many times logging clobbers proper output. The best solution is to use standard error for logging. Also, it is usually useful to have levels of logging, so you put logging lines in your code that are unused by default.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 function now() { TZ=\"UTC\" date +\"%Y%m%d%H%M%S\" } function log() { echo \"$@\" >&2 } function debug() { if [[ -n \"$DEBUG\" ]]; then log \"$(now) DEBUG:\" \"$@\" fi } function info() { log \"$(now) INFO:\" \"$@\" } function warn() { log \"$(now) WARN:\" \"$@\" } function error() { log \"$(now) ERR:\" \"$@\" } function fatal() { log \"$(now) FATAL:\" \"$@\" exit 1 } ## Usage debug \"This is a debug\" info \"this is an info message\" References Bash-hackers wiki (bash-hackers.org) Shell vars (bash-hackers.org) Bash Guide (mywiki.wooledge.org) ","lastmodified":"2025-04-18T00:00:00-04:00","tags":null,"title":"Bash Tips and Tricks"},"/resources/container-tips-and-tricks":{"content":"The following are useful tricks for containers.\nTools Containers It is often useful to put tools like gcloud, aws, and others in containers and use the containers in place of installing programs directly on the computer. This makes the commands more portable, but also make it easier to upgrade and rebuild should something go wrong.\nFirst, install docker-desktop for your give OS, or some other container runtime.\nSecond, create a script like the following and put it somewhere it can be loaded.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 #!/bin/bash APP_DIR=\"$(cd \"$(dirname \"${BASH_SOURCE[0]}\")/..\" && pwd)\" source \"$APP_DIR/lib/log.sh\" # docker_run does some basic stuff to to setup a # `docker run <standard args>` so that the rest of the args # can be blindly passed in. function docker_run() { local args=(\"--rm\") # Make a local array of args # If standard out/in is a terminal if [[ -t 0 ]]; then args[\"${#args[@]}\"]=\"--interactive\" args[\"${#args[@]}\"]=\"--tty\" else info \"No input\" fi debug \"Args:\" \"${args[@]}\" # Note: if you use a different docker runtime (like podman) # then simply switch the args and the command here. docker run \"${args[@]}\" \"$@\" } Third, create a wrapper for the function you want. For example, the AWS CLI.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 #!/bin/bash # Trick from the bash tips and tricks page APP_DIR=\"$(cd \"$(dirname \"${BASH_SOURCE[0]}\")/..\" && pwd)\" # Load the docker script from above source \"$APP_DIR/lib/docker.sh\" # this is the container name you will be building IMAGE_TAG=\"aws-cli\" # Setup the local directories that get mounted # That way the auth state gets persisted between # runs of the container SRC_PATH=/workdir mkdir -p \"$HOME/.aws\" mkdir -p \"$HOME/.kube\" MOUNT_PATHS=( -v \"$APP_DIR:$SRC_PATH\" -v \"$HOME/.kube:/root/.kube\" -v \"$HOME/.aws:/root/.aws\" ) # Now pass it all to docker_run docker_run \"${MOUNT_PATHS[@]}\" --workdir \"$SRC_PATH\" --entrypoint=\"/usr/local/bin/aws\" \"$IMAGE_TAG\" \"$@\" Finally, build / cache the needed CLI tool as a local container.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 # Often there exists a public container with the tool FROM amazon/aws-cli:latest # Often a good idea to label so you know you built it, and when LABEL Maintainer=\"Myself\" LABEL Revision=\"20211008150705\" # Now install any other tools that tools that might help when using # this container. # # kubectl allows for the connection to AWS EKS clusters # JQ is a JSON CLI parser to help with AWS API output. # YQ is the same as JQ but for YAML, so works nicer with # K8s objects. ENV KUBECTL_VERSION=1.19.6 ENV JQ_VERSION=jq-1.6 ENV YQ_VERSION=v4.7.1 # hadolint ignore=DL3020 ADD \"https://amazon-eks.s3.us-west-2.amazonaws.com/${KUBECTL_VERSION}/2021-01-05/bin/linux/amd64/kubectl\" /usr/local/bin/kubectl # hadolint ignore=DL3020 ADD \"https://github.com/stedolan/jq/releases/download/${JQ_VERSION}/jq-linux64\" /usr/local/bin/jq # hadolint ignore=DL3020 ADD \"https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64\" /usr/bin/yq RUN chmod +x /usr/local/bin/* RUN yum install -y tar-1.* && yum clean all ENTRYPOINT [\"/bin/bash\"] For bonus points you can setup a nightly CI pipeline to build containers like this and push to public or private image repo. But I leave that as an exercise for the audience.","lastmodified":"2025-04-18T00:00:00-04:00","tags":null,"title":"Container Tips and Tricks"},"/resources/git-tips-and-tricks":{"content":"The following are useful git tips and tricks.\nCleanup to a given branch Often times a git repo needs to be brought up-to-date with the remote quickly. Using a feature branch style also means that branches need to be cleaned up as well. The following does all that.\nNote\nIf you copy the below into git-cleanup and put it in your path, then Git will automatically consider it a subcommand. So within a git repo just run git cleanup main (note the space) will move your to the main branch, sync it with the remote, and delete any synced branches.\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 #!/usr/bin/env bash # Unset the PAGER to prevent interactive behavior unset PAGER # Update main to remote, and branches that were deleted in the remote # NOTE: \"-d\" will only delete if everything is merged, which doesn't work for # squash commits. so use \"-D\" instead git fetch -p \\ && git checkout main \\ && git pull \\ && git branch -v | grep \"\\[gone\\]\" | awk '{print $1}' | xargs git branch -D branch=$(git branch | grep \"*\" | awk '{print $2}') if [[ \"$branch\" != \"main\" ]]; then echo \"Left on branch $branch, manual cleanup may be required\" git branch exit 1 fi Find the hash of the latest commit 1 2 3 4 5 # If you know you are in the HEAD commit git rev-parse HEAD # or, one that works regardless git log --pretty=\"oneline\" | head -n1 | awk '{print $1}' Find the files that changed 💡 This works if you have a stable ancestor branch. 1 2 3 4 5 6 7 8 9 10 11 12 ANCESTOR=\"master\" COMMMIT=\"HEAD\" # replace with commit hash if you could be in detached head # sync the acenstor branche to ensure it has full history git fetch origin \"$ANCESTOR:remotes/origin/$ANCESTOR\" # diff to the anscestor git diff --name-only \"origin/$ACTIVE_BRANCH\"...\"$COMMIT\" # Unfortunately this doesn't catch if you are on $ACTIVE_BRANCH. # So you need to check the the last commit if the above produces no output git diff --name-only \"$COMMIT^..$COMMIT\" ","lastmodified":"2025-04-19T00:00:00-04:00","tags":null,"title":"Git Tips and Tricks"},"/resources/golang-tips-and-tricks":{"content":"The following are some basics on GoLang.\nHow to justforfunc: Programming in Go - YouTube GitHub - campoy/justforfunc: The repository for the YouTube series JustForFunc GitHub - campoy/go-tooling-workshop: A workshop covering all the tools gophers use in their day to day life Documentation - The Go Programming Language pkg.go.dev - Documentation on most go packages Go Docker image golang-standards · GitHub - Shows an example project layout and project-templatez Quick start Install Go: brew install go\nYou may want to use docker which is what build systems will use\n1 2 docker pull golang:1.15.4 docker run -rm -v \"$PWD\":/code -w \"/code\" golang:1.15.4 go build -v Install Go plugin to your favorite Editor (e.g., go-plus for Atom)\nSetup your repo\nIf a library then it should be in $GOPATH/src/<url path>\nGeneral project layout GitHub - golang-standards/project-layout: Standard Go Project Layout\nUniversal files:\nREADME.md - Every project should have one LICENSE.md - Every project should have one run - A script to easily build or test the code go.mod - initialize as a module go mod init <name> go.sum - commit this if it exists. /cmd/<name> This is the place for the main package. It should build into an executable. <name> should be the name of the command you want to build. You will build it via go build cmd/<name>.\nNot much code should be here. Just a means to load stuff from /internal, or /pkg.\n/internal Private code should be here. This is enforced by the compiler\n/pkg Library code that is ok for others to use.\n/vendor (managed) This directory is (or should be) managed by your dependency manager and not by you directly.\n/build Not universally recommended, but if your build system takes scripts then it should be /build/ci and then linked to whatever location the build system wants it to actually be. Where possible it is just a thing wrapper around run.\nTools go - The general tool for go devel - Go debugger GitHub - tsliwowicz/go-wrk: go-wrk - a HTTP benchmarking tool based in spirit on the excellent wrk tool goimports - An improved fmt tool that also handls imports Libraries https://awesome-go.com/ - A curated list of awesome Go libraries https://threedots.tech/post/list-of-recommended-libraries/ - 22 libraries known to work in production Command Tools GitHub - spf13/cobra: A Commander for modern Go CLI interactions\nConfiguration Loading GitHub - spf13/viper: Go configuration with fangs Database Examples:\nconcourse/atc/db - Does not use an ORM or Migration library, example of how to do it manually DB Drivers https://golang.org/pkg/database/sql/ - Golang’s built in SQL Library, most have a compatable interface https://github.com/lib/pq - database/sql Postgres Driver https://github.com/jackc/pgx - Postgres specific driver as well as database/sql compatible driver. The specific driver interface is more performant, but the standard interface is available for use with other libraries. https://github.com/Masterminds/squirrel - Fluent SQL generation for golang makes queries easier. DB ORMs https://gorm.io - A Rails-type ORM similar to ActiveRecord. https://github.com/go-pg/pg - Golang ORM with focus on PostgreSQL features and performance https://godoc.org/github.com/Masterminds/structable - Simple Struct to DB mapper / recorder DB Migrations https://github.com/golang-migrate/migrate - Database migrations. CLI and Golang library. This is library agnostic. It has a BinData source driver that allows SQL migration files to be loaded directly into binary. https://gorm.io - A Rails-type ORM similar to ActiveRecord, with a similar migration style WARNING: in practice these style migration are fragile as there is a tight coupling to the record. Git https://pkg.go.dev/github.com/go-git/go-git/v5 - A pure Golang implementation of Git\nGerrit Note\nAs a Google maintained project all Golang code is maintained in public version of their GitOnBorg system which uses Gerrit as the review system. To contribute to the main golang code base you have to understand Gerrit.\nGerrit is the code review system used by Google’s Public GoLang team.\nChanges (cls) are created by pushing to a special branch called refs/for/<target branch>. This opens the Equivalent of a GitHub PR. With the difference being that in Gerrit a commit is the unit of work, and in GitHub the branch is.\nTopics are a way of associating changes across multiple repos. It is interfaced by using the config push.pushOption = topic=<name>, or doing it via an option during the push: git push ... -o topic=<name>, or git push origin HEAD:refs/for/main%topic=<name>.\nhttps://github.com/andygrunwald/go-gerrit - Gerrit API client\nGraphs https://github.com/dominikbraun/graph - Generic graph data-structure HTTP http - The Go Programming Language\nGitHub - justinas/alice: Painless middleware chaining for Go - Allows Middlewares\nGitHub - throttled/throttled: Package throttled implements rate limiting access to resources such as HTTP endpoints.\nGitHub - justinas/nosurf: CSRF protection middleware for Go.\nHTTP Router / MUX GitHub - vmihailenco/treemux: Fast and flexible HTTP router Logging log - The logging package is enough if all you want to do is add a date Structured Logging In most cases structured logging is what you want.\nslog - slog augments log by adding levels, and fields. It is usually enough.\nGitHub - sirupsen/logrus: Structured, pluggable logging for Go. - Dead project as of 2020-11\nGitHub - rs/zerolog: Zero Allocation JSON Logger\nGitHub - uber-go/zap: Blazing fast, structured, leveled logging in Go.\nGitHub - apex/log: Structured logging package for Go.\nMerging Objects GitHub - imdario/mergo: Mergo: merging Go structs and maps since 2013.\nMetrics (prometheus) prometheus · pkg.go.dev\nParsing YAML https://gopkg.in/yaml.v2 - Built-in yaml.v2 sigs.k8s.io/yaml - YAML parser from K8s / Helm Use this one when YAML and JSON inter-opt is needed. 1 2 3 4 5 6 7 // Reading unstructured yaml data := map[string]interface{}{} bytes, err := yaml.Parse(fileBytes,&data) if err != nil { return nil, err } Static Files GitHub - markbates/pkger: Embed static files in Go binaries (replacement for gobuffalo/packr)\nTesting BDD https://github.com/onsi/ginkgo - BDD library https://github.com/onsi/gomega - Ginkgo’s Preferred Matcher Library TDD https://github.com/smartystreets/goconvey - A nicer testing framework, more TDD like","lastmodified":"2025-04-18T00:00:00-04:00","tags":null,"title":"Golang Tips and Tricks"},"/resources/hyrums-law":{"content":"An observation on Software Engineering\nPut succinctly, the observation is this:\nWith a sufficient number of users of an API, it does not matter what you promise in the contract: all observable behaviors of your system will be depended on by somebody.\nhttps://www.hyrumslaw.com/","lastmodified":"2025-04-18T00:00:00-04:00","tags":null,"title":"Hyrums Law"}}